How to deactivate a LVM logical volume on Linux?

How 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 (--available) argument of the vgchange command.

To deactivates the volume group vg, use this command

# vgchange -a n vg
Answered by Eric Z Ma.

Eric Z Ma

Eric is a father and systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

Leave a Reply

Your email address will not be published. Required fields are marked *