在Linux中无法删除没有挂载的逻辑卷,提示:Can✀t remove locked LV v0 我是菜鸟,高手高手

2025-05-03 12:03:47
推荐回答(1个)
回答1:

我遇到这样的问题,终于解决了。下面是操作方法:
to fix the "locked" error, you first need to deactivate your lv
# lvchange -an /dev/vg/lv
then edit your vg backup (/etc/lvm/backup/vg) and remove "LOCKED" in the
lv status line.
after that do
# vgcfgrestore vg
# lvchange -ay /dev/vg/lv

when doing lvreduce now, everything should work properly.