W dniu 01.01.2013 13:54, Jun Hu pisze:
Hi guys:
the lv can't remove ,it reports it has opened , but lvdisplay show open count is zero
junwork:/etc/kvm/vm # lvremove -f /dev/domu/atta Can't remove open logical volume "atta"
junwork:/etc/kvm/vm # lvdisplay /dev/domu/atta --- Logical volume --- LV Name /dev/domu/atta VG Name domu LV UUID 27XK8j-7Ay7-Rsv3-M3SI-y9Nw-aIT6-i8Kjrl LV Write Access read/write LV Status available # open 0 LV Size 1.00 GiB Current LE 256 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 1024 Block device 253:5
junwork:/etc/kvm/vm # lsof /dev/domu/atta junwork:/etc/kvm/vm #
junwork:/etc/kvm/vm # pvs PV VG Fmt Attr PSize PFree /dev/sda8 domu lvm2 a- 32.25g 3.25g
Did you tried to make this lv non-available firts (lvchange -a n)? The lsof command you used may not work this way. Try also something like this: lsof /dev/mapper/domu-atta or use: fuser -vm /dev/domu/atta --- Stefan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org