On 04/22/2011 01:30 AM, Laurent Bigonville wrote: > When I'm removing a LUN mapping (association to the machine) using the > SAN manager, it seems that udev is starting several: > What is a SAN Manager here? An external tool?
Steps when unmapping a LUN is: * Ensure it has been freed from the initiator. (Includes FS, DM) * Unmap LUN on target * Rescan scsi bus on Initiator > /sbin/kpartx -a -p -part /dev/dm-0 > /sbin/blkid -o udev -p /dev/dm-0 > > these process are in D (interruptible sleep) state because the machine > cannot access them anymore. > > Steps: > > multipath -f lun_name > echo "- - -" >/sys/class/scsi_host/$hba/scan > /etc/init.d/multipath-tools reload > > multipath -ll now shows a mpath0 path that cannot be removed (mpath0: > map in use). > > I guess this is a bad integration with udev/kpartx/dmsetup > -- Ritesh Raj Sarraf RESEARCHUT - http://www.researchut.com "Necessity is the mother of invention."
signature.asc
Description: OpenPGP digital signature

