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

To deactivates the volume group vg, use this command

# vgchange -a n vg

Eric Ma

Eric is a 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.

2 comments:

Leave a Reply

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