Discussion:
[linux-lvm] lvremove try to remove a WRONG logic volume!!!
BaiLin Times
2017-11-15 03:26:14 UTC
Permalink
***@d11:/home/sone# lvremove vg0 lv0v16
Do you really want to remove active logical volume vg0/lv0v15? [y/n]: y
Logical volume "lv0v15" successfully removed
Do you really want to remove active logical volume vg0/lv0v00? [y/n]: ^C
Interrupted...
Logical volume vg0/lv0v00 not removed.
Interrupted...
Interrupted...



***@d11:/home/sone# lvremove vg1 vl1v16
Logical volume vg1/lv1uni contains a filesystem in use.
Do you really want to remove active logical volume vg1/lv1win? [y/n]: ^C
Interrupted...
Logical volume vg1/lv1win not removed.
Interrupted...
Interrupted...



[image: Inline image 1][image: Inline image 2][image: Inline image 3][image:
Inline image 4]
Peter Rajnoha
2017-11-15 09:25:28 UTC
Permalink
There's missing slash '/' in between VG name and LV name - you should
have used vg0/lv0v16. Without that slash, the name given means the whole
VG so the command you typed actually means "remove all volumes in volume
group vg0 and lv0v16".
Post by BaiLin Times
Do you really want to remove active logical volume vg0/lv0v15? [y/n]: y
  Logical volume "lv0v15" successfully removed
^C  Interrupted...
  Logical volume vg0/lv0v00 not removed.
  Interrupted...
  Interrupted...
  Logical volume vg1/lv1uni contains a filesystem in use.
^C  Interrupted...
  Logical volume vg1/lv1win not removed.
  Interrupted...
  Interrupted...
Inline image 1Inline image 2Inline image 3Inline image 4
_______________________________________________
linux-lvm mailing list
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
--
Peter
Loading...