Hoi, this is my first post, please be gentle.
I have worked through the manual " reference design and how-to for HA 2-node Xenserver Pool". I followed all installs and configs, except for the fact that do not use Bonded interfaces.
In the final steps I should create a shared iscsi SR, but the floating IP is not online. My DRBD interfcaces have resp 10.10.10.1 and 10.10.10.2 IPnrs, the floating is in iscsi-ha.conf configured with 10.10.10.3.
How and when should this floating interface be online?
Here are my files:
targets.conf:
# Set the driver. If not specified, defaults to "iscsi".
default-driver iscsi
# Set iSNS parameters, if needed
#iSNSServerIP 192.168.111.222
#iSNSServerPort 3205
#iSNSAccessControl On
#iSNS On
# Continue if tgtadm exits with non-zero code (equivalent of
# --ignore-errors command line option)
#ignore-errors yes
<target iqn.2016.lan.cvo:xenserver-test>
backing-store /dev/drbd1
scsi_id 0000000000
scsi_sn 0000000001
lun 10
</target>
drdb.conf:
global { usage-count no; }
common { syncer { rate 100M; } }
resource iscsi1 {
protocol C;
net {
after-sb-0pri discard-zero-changes;
after-sb-1pri consensus;
cram-hmac-alg sha1;
shared-secret "samson39";
}
on xenserver-test-01 {
device /dev/drbd1;
disk /dev/sdb;
address 10.10.10.1:7789;
meta-disk internal;
}
on xenserver-test-02 {
device /dev/drbd1;
disk /dev/sdb;
address 10.10.10.2:7789;
meta-disk internal;
}
}
iscsi-ha.conf:
DRBD_RESOURCES=iscsi1
ISCSI_TARGET_SERVICE=/etc/init.d/tgtd
DRBD_VIRTUAL_IP=10.10.10.3
DRBD_VIRTUAL_MASK=255.255.255.0
DRBD_INTERFACE=xenbr1
MONITOR_MAX_STARTS=5
MONITOR_DELAY=10
MONITOR_KILLALL=1
MONITOR_SCANRATE=5
Ifconfig:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 00:26:18:0c:a9:09 txqueuelen 1000 (Ethernet)
RX packets 17113 bytes 6708443 (6.3 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 13228 bytes 4197057 (4.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 00:13:3b:12:6b:be txqueuelen 1000 (Ethernet)
RX packets 257 bytes 21272 (20.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 287 bytes 23016 (22.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 0 (Local Loopback)
RX packets 246 bytes 40697 (39.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 246 bytes 40697 (39.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
xenbr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.20.50.57 netmask 255.255.255.0 broadcast 172.20.50.255
ether 00:26:18:0c:a9:09 txqueuelen 0 (Ethernet)
RX packets 17058 bytes 6459915 (6.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 13244 bytes 4199857 (4.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
xenbr1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.10.10.2 netmask 255.255.255.0 broadcast 10.10.10.255
ether 00:13:3b:12:6b:be txqueuelen 0 (Ethernet)
RX packets 257 bytes 17674 (17.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 287 bytes 21594 (21.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
fdisk -l
Disk /dev/sdb: 250.1 GB, 250059350016 bytes, 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/sda: 250.1 GB, 250059350016 bytes, 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: gpt
# Start End Size Type Name
1 46139392 83888127 18G Microsoft basic
2 8390656 46139391 18G Microsoft basic
3 83888128 84936703 512M BIOS boot parti
5 2048 8390655 4G Microsoft basic
6 84936704 87033855 1G Linux swap
Disk /dev/mapper/VG_XenStorage--8562342e--5cf9--676f--9a34--a7a7addd68f1-MGT: 4 MB, 4194304 bytes, 8192 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Many thx!
Martijn