I’ve been attempting to follow the recipe laid-out in the Linbit guide “Highly available iSCSI storage with DRBD and Pacemaker”…
[QUOTE]crm configure primitive p_target_iscsivg01 ocf:heartbeat:iSCSITarget params iqn=“iqn.2001-04.com.example:storage.example.iscsivg01” tid=“1” op monitor interval=“10s”
crm configure primitive p_target_iscsivg02 ocf:heartbeat:iSCSITarget params iqn=“iqn.2001-04.com.example:storage.example.iscsivg02” tid=“2” op monitor interval="10s
crm configure primitive p_iSCSI-san1_0 ocf:heartbeat:iSCSILogicalUnit params target_iqn=“iqn.2001-04.com.example:storage.example.iscsivg01” lun=“1” path="/dev/iscsivg01/lun1" op monitor interval=“10s”
crm configure primitive p_iSCSI-san1_1 ocf:heartbeat:iSCSILogicalUnit params target_iqn=“iqn.2001-04.com.example:storage.example.iscsivg01” lun=“2” path="/dev/iscsivg0
crm configure primitive p_iSCSI-san1_2 ocf:heartbeat:iSCSILogicalUnit params target_iqn=“iqn.2001-04.com.example:storage.example.iscsivg02” lun=“1” path="/dev/iscsivg02/lun1" op monitor interval=“10s”
crm configure primitive p_iSCSI-san1_3 ocf:heartbeat:iSCSILogicalUnit params target_iqn=“iqn.2001-04.com.example:storage.example.iscsivg02” lun=“2” path="/dev/iscsivg02/lun2" op monitor interval=“10s”
[/QUOTE]
…to create a highly-available iSCSI server on the two servers san1 & san2 but can’t quite get the details right:
[CODE]crm configure property stonith-enabled=false
crm configure property no-quorum-policy=ignore
crm configure primitive p_IP-1_254 ocf:heartbeat:IPaddr2 params ip=192.168.1.254 cidr_netmask=24 op monitor interval=30s
crm configure primitive p_DRBD-r0 ocf:linbit:drbd params drbd_resource=r0 op monitor interval=60s
crm configure ms ms_DRBD-r0 p_DRBD-r0 meta master-max=1 master-node-max=1 clone-max=2 clone-node-max=1 notify=true
crm configure primitive p_iSCSI-san1 ocf:heartbeat:iSCSITarget params iqn=iqn.2012-11.com.example.san1:sda op monitor interval=10s
crm configure primitive p_iSCSI-san1_0 ocf:heartbeat:iSCSILogicalUnit params target_iqn=iqn.2012-11.com.example.san1:sda lun=0 path=/dev/drbd0 op monitor interval=10s
crm configure primitive p_iSCSI-san1_1 ocf:heartbeat:iSCSILogicalUnit params target_iqn=iqn.2012-11.com.example.san1:sda lun=1 path=/dev/drbd1 op monitor interval=10s
crm configure primitive p_iSCSI-san1_2 ocf:heartbeat:iSCSILogicalUnit params target_iqn=iqn.2012-11.com.example.san1:sda lun=2 path=/dev/drbd2 op monitor interval=10s
crm configure primitive p_iSCSI-san1_3 ocf:heartbeat:iSCSILogicalUnit params target_iqn=iqn.2012-11.com.example.san1:sda lun=3 path=/dev/drbd3 op monitor interval=10s
crm configure primitive p_iSCSI-san1_4 ocf:heartbeat:iSCSILogicalUnit params target_iqn=iqn.2012-11.com.example.san1:sda lun=4 path=/dev/drbd4 op monitor interval=10s
crm configure group g_iSCSI-san1 p_iSCSI-san1 p_iSCSI-san1_0 p_iSCSI-san1_1 p_iSCSI-san1_2 p_iSCSI-san1_3 p_iSCSI-san1_4 p_IP-1_254
crm configure order o_DRBD-r0_before_iSCSI-san1 inf: ms_DRBD-r0:promote g_iSCSI-san1:start
crm configure colocation c_iSCSI_with_DRBD-r0 inf: g_iSCSI-san1 ms_DRBD-r0:Master[/CODE]
IET (i.e., iscsitarget) is already running (with the default configuration) and DRBD’s already correctly configured to create the resource r0…
resource r0 {
volume 0 {
device /dev/drbd0 ;
disk /dev/sda7 ;
meta-disk internal ;
}
volume 1 {
device /dev/drbd1 ;
disk /dev/sda8 ;
meta-disk internal ;
}
volume 2 {
device /dev/drbd2 ;
disk /dev/sda9 ;
meta-disk internal ;
}
volume 3 {
device /dev/drbd3 ;
disk /dev/sda10 ;
meta-disk internal ;
}
on san1 {
address 192.168.1.1:7789 ;
}
on san2 {
address 192.168.1.2:7789 ;
}
}
But the shared IP address won’t start nor will the LUN’s:
[CODE]san1:~ # crm_mon -1
Last updated: Thu Jan 17 20:55:55 2013
Last change: Thu Jan 17 20:55:09 2013 by root via cibadmin on san1
Stack: openais
Current DC: san1 - partition with quorum
Version: 1.1.7-77eeb099a504ceda05d648ed161ef8b1582c7daf
2 Nodes configured, 2 expected votes
9 Resources configured.
Online: [ san1 san2 ]
Master/Slave Set: ms_DRBD-r0 [p_DRBD-r0]
Masters: [ san1 ]
Slaves: [ san2 ]
Resource Group: g_iSCSI-san1
p_iSCSI-san1 (ocf:iSCSITarget): Started san1
p_iSCSI-san1_0 (ocf:iSCSILogicalUnit): Stopped
p_iSCSI-san1_1 (ocf:iSCSILogicalUnit): Stopped
p_iSCSI-san1_2 (ocf:iSCSILogicalUnit): Stopped
p_iSCSI-san1_3 (ocf:iSCSILogicalUnit): Stopped
p_iSCSI-san1_4 (ocf:iSCSILogicalUnit): Stopped
p_IP-1_254 (ocf:IPaddr2): Stopped
Failed actions:
p_iSCSI-san1_0_start_0 (node=san1, call=23, rc=1, status=complete): unknown error
p_iSCSI-san1_1_start_0 (node=san1, call=26, rc=1, status=complete): unknown error
p_iSCSI-san1_2_start_0 (node=san1, call=29, rc=1, status=complete): unknown error
p_iSCSI-san1_3_start_0 (node=san1, call=32, rc=1, status=complete): unknown error
p_iSCSI-san1_4_start_0 (node=san1, call=35, rc=1, status=complete): unknown error
p_iSCSI-san1_0_start_0 (node=san2, call=11, rc=1, status=complete): unknown error
p_iSCSI-san1_1_start_0 (node=san2, call=14, rc=1, status=complete): unknown error
p_iSCSI-san1_2_start_0 (node=san2, call=17, rc=1, status=complete): unknown error
p_iSCSI-san1_3_start_0 (node=san2, call=20, rc=1, status=complete): unknown error
p_iSCSI-san1_4_start_0 (node=san2, call=23, rc=1, status=complete): unknown error[/CODE]
What am I doing wrong?
TIA,
Eric Pretorious
Truckee, CA