<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>Hello,<br><br>I think I did it in order:<br>1- nothing is mounted<br>> mount<br>rootfs on / type rootfs (rw)<br>proc on /proc type proc (rw)<br>sysfs on /sys type sysfs (rw)<br>devpts on /dev/pts type devpts (rw)<br>tmpfs on /dev/shm type tmpfs (rw)<br>rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)<br>nfsd on /proc/fs/nfsd type nfsd (rw)<br><br>2- deactivating VG/LVs<br>> vgchange -an disk2<br><br>3- stop the storage<br>> sdparm -C stop /dev/sdb<br><br>4- checking for LVs on other disk<br>> lvscan<br><br><br>Isn't it the right order? I'm new to LVM and that's why I may be confused...<br><br>I don't like doing "echo 1 > /sys/block/sdb/device/delete" since I can't get the device restarted when I do sdparm -C start /dev/sdb...<br><br>Thanks<br><br><br><br>----- Original Message -----<br>From: "Bryn M. Reeves" <bmr@redhat.com><br>To: "Alireza Nematollahi" <alirezan@sfu.ca><br>Cc: "device-mapper development" <dm-devel@redhat.com><br>Sent: Wednesday, February 11, 2009 10:50:45 AM GMT -08:00 US/Canada Pacific<br>Subject: Re: [dm-devel] Stopped disk causes LVM to go crazy<br><br>Alireza Nematollahi wrote:<br>> hi. Thanks for your reply. Well, I had tried that before, but no luck. I tried it again, and still no luck: <br><br>You have to do it *BEFORE* you disable/remove the storage. Doing it <br>afterwards will just throw all the errors you are seeing since the LVM <br>tools can no longer access the device.<br><br>You have to do things in the correct order; first unmount any file <br>systems, then de-activate LVs/VGs, then stop or remove the storage <br>hardware.<br><br>If you do this in the wrong order you'll end up with the problems <br>you're seeing.<br><br>For now, you can clean up /dev/sdb by deleting it via sysfs:<br><br>echo 1 > /sys/block/sdb/device/delete<br><br>Which will stop other commands that scan the disks from tripping over <br>the dead device. You can also manually delete any remaining device <br>mapper devices that reference the removed disk (see similar thread <br>yesterday).<br><br>Regards,<br>Bryn.<br><br></div></body></html>