Running open-iscsi with device mapper hangs
Hi,
I'm trying to run open-iscsi with the multipath tool. I was able to create a scenario in which the initiator machine hangs:
My initiator runs on a SLES 10 beta 8 machine. The db contains 2 targets:
iscsiadm -m node
[83347a] 192.168.10.106:3260,1 iqn.2005-12.com.voltaire.206000C0FF07C1D1 [030479] 192.168.10.105:3260,1 iqn.2005-12.com.voltaire.206000C0FF07C1D1
Loading the dm modules:
salt:~ # modprobe dm-mod; modprobe dm-multipath
I start the initiator:
salt:~ # /etc/init.d/open-iscsi start
Starting iSCSI initiator service: done
Logging into iqn.2005-12.com.voltaire.206000C0FF07C1D1: done Logging into iqn.2005-12.com.voltaire.206000C0FF07C1D1: done
salt:~ # sg_map -i -x/dev/sg0 0 0 0 0 0 /dev/sda DotHill SANnet II FC 411I /dev/sg1 1 0 0 0 0 /dev/sdb DotHill SANnet II FC 411I
Now, I start the multipath daemon:
salt:~ # ls /dev/mapper/
control
salt:~ # multipathd
salt:~ # ls /dev/mapper/
control mpath0
salt:~ # multipath -l
mpath0 (3600c0ff00000000007c1d121c397f503)
[size=10 GB][features=0][hwhandler=0]
\_ round-robin 0 [prio=0][active]
\_ 0:0:0:0 sda 8:0 [active][undef]
\_ round-robin 0 [prio=0][enabled]
\_ 1:0:0:0 sdb 8:16 [active][undef]
Running some traffic:
salt:~ # dd if=/dev/mapper/mpath0 of=/dev/null count=500000 500000+0 records in
500000+0 records out
256000000 bytes (256 MB) copied, 9.54608 seconds, 26.8 MB/s
Now, I disconnect (unplug the cable) the target which is represented by /dev/sda and run another dd command:
salt:~ # dd if=/dev/mapper/mpath0 of=/dev/null count=500000 500000+0 records in
500000+0 records out
256000000 bytes (256 MB) copied, 199.601 seconds, 1.3 MB/s
Now, the 1st priority group has failed:
salt:~ # multipath -l
mpath0 (3600c0ff00000000007c1d121c397f503)
[size=10 GB][features=0][hwhandler=0]
\_ round-robin 0 [prio=0][enabled]
\_ 0:0:0:0 sda 8:0 [failed][faulty]
\_ round-robin 0 [prio=0][active]
\_ 1:0:0:0 sdb 8:16 [active][undef]
I reconnect the target and it's back to life:
salt:~ # multipath -l
mpath0 (3600c0ff00000000007c1d121c397f503)
[size=10 GB][features=0][hwhandler=0]
\_ round-robin 0 [prio=0][enabled]
\_ 0:0:0:0 sda 8:0 [active][undef]
\_ round-robin 0 [prio=0][active]
\_ 1:0:0:0 sdb 8:16 [active][undef]
I stop the initiator and the machine hangs:
salt:~ # /etc/init.d/open-iscsi stop
Logging out from iqn.2005-12.com.voltaire.206000C0FF07C1D1: done Logging out from iqn.2005-12.com.voltaire.206000C0FF07C1D1: (now the machine is dead)
I know that the device mapper was tested in the past. Was this scenario tested? Is anyone able to reproduce this behavior? I was able to reproduce it 5 times in a row.
Thanks
Signature · 11 lines
____________________________________________________________ Erez Zilber | 972-9-971-7689 Software Engineer, Storage Team Voltaire – _The Grid Backbone_ __ www.voltaire.com <http://www.voltaire.com/>
Quoted 75 lines · Erez Zilber
Hi,
I'm trying to run open-iscsi with the multipath tool. I was able to create a scenario in which the initiator machine hangs:
My initiator runs on a SLES 10 beta 8 machine. The db contains 2 targets:
iscsiadm -m node
[83347a] 192.168.10.106:3260,1 iqn.2005-12.com.voltaire.206000C0FF07C1D1 [030479] 192.168.10.105:3260,1 iqn.2005-12.com.voltaire.206000C0FF07C1D1Loading the dm modules:
salt:~ # modprobe dm-mod; modprobe dm-multipath
I start the initiator:
salt:~ #
/etc/init.d/open-iscsistart
Starting iSCSI initiator service: done
Logging into iqn.2005-12.com.voltaire.206000C0FF07C1D1: done Logging into iqn.2005-12.com.voltaire.206000C0FF07C1D1: donesalt:~ #
sg_map-i -x/dev/sg00 0 0 0 0/dev/sdaDotHill SANnet II FC 411I/dev/sg11 0 0 0 0/dev/sdbDotHill SANnet II FC 411INow, I start the multipath daemon:
salt:~ # ls
/dev/mapper/
control
salt:~ # multipathd
salt:~ # ls/dev/mapper/
control mpath0
salt:~ # multipath -l
mpath0 (3600c0ff00000000007c1d121c397f503)
[size=10 GB][features=0][hwhandler=0]
\_ round-robin 0 [prio=0][active]
\_ 0:0:0:0 sda 8:0 [active][undef]
\_ round-robin 0 [prio=0][enabled]
\_ 1:0:0:0 sdb 8:16 [active][undef]Running some traffic:
salt:~ # dd if=/dev/mapper/mpath0 of=/dev/null count=500000 500000+0 records in
500000+0 records out
256000000 bytes (256 MB) copied, 9.54608 seconds, 26.8 MB/sNow, I disconnect (unplug the cable) the target which is represented by
/dev/sdaand run another dd command:salt:~ # dd if=/dev/mapper/mpath0 of=/dev/null count=500000 500000+0 records in
500000+0 records out
256000000 bytes (256 MB) copied, 199.601 seconds, 1.3 MB/sNow, the 1st priority group has failed:
salt:~ # multipath -l
mpath0 (3600c0ff00000000007c1d121c397f503)
[size=10 GB][features=0][hwhandler=0]
\_ round-robin 0 [prio=0][enabled]
\_ 0:0:0:0 sda 8:0 [failed][faulty]
\_ round-robin 0 [prio=0][active]
\_ 1:0:0:0 sdb 8:16 [active][undef]I reconnect the target and it's back to life:
salt:~ # multipath -l
mpath0 (3600c0ff00000000007c1d121c397f503)
[size=10 GB][features=0][hwhandler=0]
\_ round-robin 0 [prio=0][enabled]
\_ 0:0:0:0 sda 8:0 [active][undef]
\_ round-robin 0 [prio=0][active]
\_ 1:0:0:0 sdb 8:16 [active][undef]I stop the initiator and the machine hangs:
Quoted 9 lines
salt:~ #
/etc/init.d/open-iscsistop
Logging out from iqn.2005-12.com.voltaire.206000C0FF07C1D1: done Logging out from iqn.2005-12.com.voltaire.206000C0FF07C1D1: (now the machine is dead)I know that the device mapper was tested in the past. Was this scenario tested? Is anyone able to reproduce this behavior? I was able to reproduce it 5 times in a row.
Thanks
BTW - a very similar test without the device mapper works ok. I've disconnected /dev/sda, tried running a dd command using /dev/sda, then I reconnected /dev/sda and the command completed. When I stopped the initiator, the machine didn't hang.
Erez
Signature · 11 lines
____________________________________________________________ Erez Zilber | 972-9-971-7689 Software Engineer, Storage Team Voltaire – _The Grid Backbone_ __ www.voltaire.com <http://www.voltaire.com/>
Quoted 10 lines · Erez Zilber
Hi,
I'm trying to run open-iscsi with the multipath tool. I was able to create a scenario in which the initiator machine hangs:
My initiator runs on a SLES 10 beta 8 machine. The db contains 2 targets:
iscsiadm -m node
[83347a] 192.168.10.106:3260,1 iqn.2005-12.com.voltaire.206000C0FF07C1D1 [030479] 192.168.10.105:3260,1 iqn.2005-12.com.voltaire.206000C0FF07C1D1
are you using the iscsi initiator in a SLES kernel, a mainline kernel or svn or a open-iscsi.org tarball?
Quoted 15 lines · Mike Christie
Quoted 11 lines · Erez Zilber
Hi,
I'm trying to run open-iscsi with the multipath tool. I was able to create a scenario in which the initiator machine hangs:
My initiator runs on a SLES 10 beta 8 machine. The db contains 2 targets:
iscsiadm -m node
[83347a] 192.168.10.106:3260,1 iqn.2005-12.com.voltaire.206000C0FF07C1D1 [030479] 192.168.10.105:3260,1 iqn.2005-12.com.voltaire.206000C0FF07C1D1
Quoted 9 lines
are you using the iscsi initiator in a SLES kernel, a mainline kernel or svn or a open-iscsi.org tarball?
--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
I'm using the initiator that comes with the SLES kernel (2.6.16-rc6-git1-4-smp). We applied 3 patches that are located in https://openib.org/svn/gen2/branches/backport/sles10/:
iscsi-04-libiscsi.patch
iscsi-05-convert-tcp.patch
iscsi-06-transport-ep-cb.patch
The userspace part is r560.
Do you prefer that I try to run it with a different open-iscsi version?
Signature · 11 lines
____________________________________________________________ Erez Zilber | 972-9-971-7689 Software Engineer, Storage Team Voltaire – _The Grid Backbone_ __ www.voltaire.com <http://www.voltaire.com/>
Quoted 33 lines · Erez Zilber
Quoted 15 lines · Mike Christie
Quoted 12 lines · Erez Zilber
Hi,
I'm trying to run open-iscsi with the multipath tool. I was able to create a scenario in which the initiator machine hangs:
My initiator runs on a SLES 10 beta 8 machine. The db contains 2 targets:
iscsiadm -m node
[83347a] 192.168.10.106:3260,1 iqn.2005-12.com.voltaire.206000C0FF07C1D1 [030479] 192.168.10.105:3260,1 iqn.2005-12.com.voltaire.206000C0FF07C1D1Quoted 9 lines
are you using the iscsi initiator in a SLES kernel, a mainline kernel or svn or a open-iscsi.org tarball?
--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-develI'm using the initiator that comes with the SLES kernel (2.6.16-rc6-git1-4-smp). We applied 3 patches that are located in
https://openib.org/svn/gen2/branches/backport/sles10/:
iscsi-04-libiscsi.patch
iscsi-05-convert-tcp.patch iscsi-06-transport-ep-cb.patch
Quoted 4 lines
The userspace part is r560.
Do you prefer that I try to run it with a different open-iscsi version?
Maybe. Do those patches have any of the later fixes PatM found? Look at r543, 544, 545. Without them you can hit some lockups or oops.
Quoted 48 lines · Mike Christie
Quoted 33 lines · Erez Zilber
Quoted 18 lines · Mike Christie
Quoted 13 lines · Erez Zilber
Hi,
I'm trying to run open-iscsi with the multipath tool. I was able to create a scenario in which the initiator machine hangs:
My initiator runs on a SLES 10 beta 8 machine. The db contains 2 targets:
iscsiadm -m node
[83347a] 192.168.10.106:3260,1 iqn.2005-12.com.voltaire.206000C0FF07C1D1 [030479] 192.168.10.105:3260,1 iqn.2005-12.com.voltaire.206000C0FF07C1D1Quoted 11 lines
are you using the iscsi initiator in a SLES kernel, a mainline kernel or svn or a open-iscsi.org tarball?
--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-develQuoted 11 lines
I'm using the initiator that comes with the SLES kernel (2.6.16-rc6-git1-4-smp). We applied 3 patches that are located in https://openib.org/svn/gen2/branches/backport/sles10/:
iscsi-04-libiscsi.patch
iscsi-05-convert-tcp.patch
iscsi-06-transport-ep-cb.patchThe userspace part is r560.
Do you prefer that I try to run it with a different open-iscsi version?
Quoted 9 lines
Maybe. Do those patches have any of the later fixes PatM found? Look at r543, 544, 545. Without them you can hit some lockups or oops.
--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
I'm now running with r545 and I don't see this behavior anymore.
Hannes - do you know when will there be an update for SLES 10 with those fixes ?
Signature · 11 lines
____________________________________________________________ Erez Zilber | 972-9-971-7689 Software Engineer, Storage Team Voltaire – _The Grid Backbone_ __ www.voltaire.com <http://www.voltaire.com/>