How to Activate Volume Group in Linux
In this post, we are going to discuss how to activate volume group in linux and how to deactivate volume group in linux. When we create a new volume group by default it gets activated during creation so we can access all the logical volumes inside the volume group and able to mount and start using in Linux.
A scenario like if this volume group is of replicated category and you have to perform DR you need to deactivate the volume group from currently active production server and need to activate the volume group once you failover to DR and ready to mount the file system on DR as part of your activity in Linux.
We are sharing here how you can deactivate the volume group and reactivate. Your scenario may be different but commands still will be relevant.
There will be two scenarios either you want to deactivate all the LV in the system or particular as there may not be all the file systems on the server is replicated. It may have a few non replicated file systems lying on non-replicated storage.
Activating and Deactivating Volume Group System-Wide
If you want to activate system-wide – all VG including all LV in the system.
# vgchange -a y How to Activate Volume Group in Linux
# vgchange -a n How to Deactivate Volume Group in Linux
Activating and Deactivating Specific Volume Group
If you want to activate specific volume group-wise – all VG including all LV in the system.
# vgchange -a n <vg> How to Activate Volume Group in Linux
# vgchange -a y <vg> How to Deactivate Volume Group in Linux
That’s it about how to activate volume group in linux and how to deactivate volume group in linux . Please have a look at other Redhat Linux related topics of your interest.