Hi there
I am having a slight problem in a test setup, it has eluded me for days.
The case is, I have 2 virtual machines both running Debian linux with kernel
2.6.32-5-686
I have a 3rd VM with windows 2003 and iSCSI initiator v.2.08
These VM's are called SAN02 and SAN03 and WIN
Both Linux VM's have 4 NIC's
Eth0 for management
Eth1+2 for iscsi connectivity
Eth3 for DRBD synchronization.
The windows VM has 3 NIC's
1 for management and 2 for iSCSI connectivity.
DRBD is configured in primary/secondary mode.
Heartbeat seems to detect failover fine if I shutdown SAN02, SAN03 becomes
primary and SAN02 goes unknown.
However when I shutdown SAN02, the iSCSI connectivity from WIN to the iSCSI
device drops.
When I restart the iscsi service on SAN03 the disk reappears on WIN. <- this
should happen without me restarting the service.
Does anyone have a clue as to why I have to manually restart the iscsi service
before things work again? If I turn back on SAN02 while SAN03 is primary, the
same thing happens once SAN02 becomes the primary and SAN03 becomes secondary.
I will have to restart the iscsitarget service on SAN02 and only then WIN
regains the iSCSI disk.
Thank you in advance,
Michael Laursen
Configuration files:
Common for both: /etc/Ha.d/haresources
SAN02 drbddisk::r0 \
IPaddr::192.168.1.1/24/eth1 \
IPaddr::192.168.2.1/24/eth2 \
arp_filter \
iscsitarget
#
Common for both: /etc/ha.d/ha.cf
keepalive 1
deadtime 10
warntime 5
initdead 60
baud 9600
serial /dev/ttyS0
udpport 694
bcast eth3
auto_failback on
node SAN02
node SAN03
#
/etc/drbd.d/r0.res
resource r0 {
on SAN02 {
device /dev/drbd1;
disk /dev/sdb1;
address 10.0.0.1:7789;
meta-disk internal;
}
on SAN03 {
device /dev/drbd1;
disk /dev/sdb1;
address 10.0.0.2:7789;
meta-disk internal;
}
}
#
SAN03: /etc/init.d/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 192.168.1.2
netmask 255.255.255.0
auto eth2
iface eth2 inet static
address 192.168.2.2
netmask 255.255.255.0
auto eth3
iface eth3 inet static
address 10.0.0.2
netmask 255.0.0.0
#
SAN02: /etc/init.d/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 192.168.1.5
netmask 255.255.255.0
auto eth2
iface eth2 inet static
address 192.168.2.5
netmask 255.255.255.0
auto eth3
iface eth3 inet static
address 10.0.0.1
netmask 255.0.0.0
#
Common: /etc/iet/ietd.conf
Target iqn.2001-04.com.san3:drbd1.lun1
IncomingUser
OutgoingUser
Lun 0 Path=/dev/drbd1,Type=fileio,ScsiSN=AMHDSK-061031-03
Alias LUN1
MaxConnections 6
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems