[linux-lvm] vgchange -an question with disconnected disks

Alasdair G Kergon agk at redhat.com
Thu Feb 2 18:28:00 UTC 2006


On Thu, Feb 02, 2006 at 10:06:47AM -0800, John DeFranco wrote:
> My question is that is there a 
> way to force the deactivation to occur in this case?
 
Not from lvm2 unless you restore the metadata from a backup
first.

To remove the logical volumes from the kernel, use 'dmsetup'.
List what's there: dmsetup info -c
*After* ensuring the open count is 0, remove individually
with 'dmsetup remove' or all at once with 'dmsetup remove_all'.

Alasdair
-- 
agk at redhat.com




More information about the linux-lvm mailing list