[linux-lvm] Removing vg and lv after physical drive has been removed

Scott Merrilees scott at merrilees.net
Sun Sep 2 02:31:44 UTC 2012


If you have a running production on the machine, and don't want to
reboot, or otherwise break it, then it might be a good idea to spin up
a virtual machine and break it in a similar way, and use that to test.

It seems like lvm just uses the device mapper to maintain current
state, so dmsetup is probably ok, but ... YMMV.

I would try dmsetup remove

then make sure the vgscan etal work ok without problems.

If you get pv not found errors, then you might have to try re-creating
pvs with the correct uuids.
--
Scott Merrilees




More information about the linux-lvm mailing list