Here we are going to findout how to mark volume groups as active or inactive in Linux using lvchange command in Linux useLvscanCommand to get list of volumes
#/Usr/sbin/lvscan
The output will be
"Active"/dev/linux_volume/logvol00' [33.78 GB] inherit
Active '/dev/linux_volume/logvol0' [10.00 GB] inherit
"Active"/dev/volgroup00/logvol00' [35.25 GB] inherit
Active '/dev/volgroup00/logvol01' [1.94 GB] inherit
Then for testing, mark thisLinux_volumeAs inactive by following procedure. umount the partitions before proceeding. Then use the following command to mark volume group inactive.
#/Usr/sbin/lvchange-a n/dev/linux_volume
Verify itLvscan. The currentLvscanOutput will be,
Inactive '/dev/linux_volume/logvol00' [33.78 GB] inherit
Inactive '/dev/linux_volume/logvol02' [10.00 GB] inherit
"Active"/dev/volgroup00/logvol00' [35.25 GB] inherit
Active '/dev/volgroup00/logvol01' [1.94 GB] inherit
We can change it backActiveWith following command
#/Usr/sbin/lvchange-A y/dev/linux_volume
Note:You must umount the partitions before proceeding to mark volume group inactive
And mount the logical volumes after marking active
Read more: http://www.lynuxstuff.com/2011/06/how-to-mark-volume-groups-as-active-or-inactive/#ixzz23ftkCdmG