How to deactivate a LVM logical volume on Linux?
Posted on In Linux, Systems, TutorialHow to deactivate a LVM logical volume activated by #vgchange -aay
on Linux
You may need to make a LVM volume group inactive and thus unknown to the kernel.
To deactivate a volume group, use the -a
(--activate
) argument of the vgchange
command.
To deactivates the volume group vg
, use this command
# vgchange -a n vg
I believe “-a” is not an abbreviation of “–available” but of “–activate”
Yes. Fixed. Thanks.