How to mark volume groups as active or inactive

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.