Re: Reboot hangs on failing multipath devices

2010-03-23 Thread James Hammer

Mike Christie wrote:

On 03/22/2010 03:38 PM, James Hammer wrote:

Every time I reboot my server it hangs on the multipath devices.

The server is Debian based. I've had this problem with all kernels I've
tried (2.6.18, 2.6.24, 2.6.32). In /etc/multipath.conf, no_path_retry is
set to queue

Here are snippets from the reboot log:

snip
Stopping multipath daemon: multipathd.
...
Shutting down LVM Volume Groupsdevice-mapper: multipath: Failing path 
8:64.

device-mapper: uevent: dm_send_uevents: kobject_uevent_env failed
device-mapper: multipath: Failing path 8:48.
device-mapper: uevent: dm_send_uevents: kobject_uevent_env failed
device-mapper: multipath: Failing path 8:80. mult


Are there file systems mounted on the multipath device?



As far as I can tell, there are *no* file systems mounted on the 
multipath device.  This multipath device is used by a virtual machine.  
The virtual machine is turned off at that point.  The 'mount' command on 
the physical host does not list the multipath device as being mounted.


This is what I have found...I ran the whole shutdown sequence manually, 
i.e. running each script in /etc/rc0.d manually in order (with 
*no_path_retry* set to *queue*). Between each shutdown script, I ran 
'*multipath -f mpath5*' to try and remove the multipath device manually. 
Each time I got this result:


 mpath5: map in use

All the way down until I got to the last 3 scripts:

 S50lvm2 - ../init.d/lvm2
 S60umountroot - ../init.d/umountroot
 S90halt - ../init.d/halt



When that lvm2 script gets run to shutdown lvm2, I again get the 
multipath: Failing path results:


 Shutting down LVM Volume Groupsdevice-mapper: multipath: Failing path 
8:48.

 device-mapper: uevent: dm_send_uevents: kobject_uevent_env failed
 device-mapper: multipath: Failing path 8:80.
 device-mapper: uevent: dm_send_uevents: kobject_uevent_env failed
 device-mapper: multipath: Failing path 8:64.
 device-mapper: uevent: dm_send_uevents: kobject_uevent_env failed

That hangs indefinitely.

Now, if I do the same thing with *no_path_retry* set to *fail* the 
sequence goes similarly, except that when I run */etc/init.d/lvm2 stop* 
I get the same as above followed by a few of these lines:


 /dev/dm-9: read failed after 0 of 2048 at 0: Input/output error
 end_request: I/O error, dev dm-9, sector 20971776

Then the script finishes and the reboot can proceed.

So the key seems to be the *no_path_retry* setting.

From my tests, things seem to go so much better if *no_path_retry* is 
set to *queue* and the connection to the iSCSI server is interrupted.


So, is it possible to get those paths to fail with *no_path_retry* set 
to *queue* so the reboot can continue?


Thanks!

-- James

--
You received this message because you are subscribed to the Google Groups 
open-iscsi group.
To post to this group, send email to open-is...@googlegroups.com.
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.



Re: [PATCH 2/2] RFC: The be2iscsi driver support for bsg

2010-03-23 Thread FUJITA Tomonori
On Mon, 22 Mar 2010 11:16:31 -0400
James Smart james.sm...@emulex.com wrote:

  About the implementation, I think that it's better to have the common
  library code rather than just copying the fs bsg code into iscsi.
 
 Note: I tried to library-ize the transport implementation on the first pass 
 of 
 the RFC. But it was making things more complex.  I tried to explain this, 
 perhaps not very well (http://marc.info/?l=linux-scsim=125725904205688w=2).

Ah, I overlooked it. I'll think about it later. Maybe Mike already has
some ideas about it. Anyway, library-izing is not urgent at all. We
can work on it later.

-- 
You received this message because you are subscribed to the Google Groups 
open-iscsi group.
To post to this group, send email to open-is...@googlegroups.com.
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.