[linux-lvm] unable to remove lvm1 volume (can't remove open logical volume)

Olivier Kaloudoff kalou at kalou.net
Wed May 10 11:24:29 UTC 2006


Hello List,

 	I'm facing a weird problem with lvm on 2.4.21-40 and
lvm tools 1.0.8-13;

[root at shinwey root]# lvremove /dev/nr_180/B_FDB
lvremove -- can't remove open  logical volume "/dev/nr_180/B_FDB"

[root at shinwey root]# lvchange  -a n /dev/nr_180/B_FDB
lvchange -- operation not permitted for (open) logical volume 
"/dev/nr_180/B_FDB"

 	After looking into list archives, I tried the two things
below without success;

[root at shinwey root]# vgscan -f
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found active volume group "nr_300"
vgscan -- found active volume group "nr_180"
vgscan -- found active volume group "nr_120"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume 
groups

[root at shinwey root]# ls /dev/*/group | sed 's!/group!!' | xargs rm -r ; 
vgmknodes
vgmknodes -- successfully made all nodes of volume group "nr_120"
vgmknodes -- successfully made all nodes of volume group "nr_180"
vgmknodes -- successfully made all nodes of volume group "nr_300"

[root at shinwey root]# lvremove /dev/nr_180/B_FDB
lvremove -- can't remove open  logical volume "/dev/nr_180/B_FDB"

[root at shinwey root]# lvchange  -a n /dev/nr_180/B_FDB
lvchange -- operation not permitted for (open) logical volume 
"/dev/nr_180/B_FDB"



Can someone help me with this ?


Best Regards,


Olivier Kaloudoff




More information about the linux-lvm mailing list