How to mark volume groups as active or inactive
2012-08-16 11:07
267 查看
Here we are going to findout how to mark volume groups as active or inactive in Linux using lvchange command in Linux Use lvscan command 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/LogVol02′ [10.00 GB] inherit
ACTIVE ‘/dev/VolGroup00/LogVol00′ [35.25 GB] inherit
ACTIVE ‘/dev/VolGroup00/LogVol01′ [1.94 GB] inherit
Then for testing, mark this Linux_volume as 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 it with lvscan.The current lvscan output 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 back to active with 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
#/usr/sbin/lvscan
the output will be
ACTIVE ‘/dev/Linux_volume/LogVol00′ [33.78 GB] inherit
ACTIVE ‘/dev/Linux_volume/LogVol02′ [10.00 GB] inherit
ACTIVE ‘/dev/VolGroup00/LogVol00′ [35.25 GB] inherit
ACTIVE ‘/dev/VolGroup00/LogVol01′ [1.94 GB] inherit
Then for testing, mark this Linux_volume as 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 it with lvscan.The current lvscan output 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 back to active with 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
相关文章推荐
- How to mark volume groups as active or inactive
- How to view the schema class or attribute definition you first have to install the Active Directory Schema snap-in
- How to Use a Function or a Procedure as a Parameter in another Function
- How to search All-In-OneCode Framework with google or Bing
- How To Store State in Active Server Pages Applications
- How To Check the Usage of Active Undo Segments in AUM
- How to Enable Trace or Debug for APIs executed as SQL Script Outside of the Applications ?
- How to Delete or Add Resource in 11gR2 Grid Infrastructure [ID 1069369.1]
- Need to specify class name in environment or system property, or as an applet parameter, or in a
- How to properly use relative or absolute imports in Python modules? - Stack Overflow
- How to read Mac .DMG file in Linux or PC(II)
- How to enable sound in Ubuntu 11.04 While login as root
- How to Update millions or records in a table", version 8.1.7
- How to render a 128 Barcode in Reporting Services or .Net applications
- How to use Metadata as search parameter in Advance Search Web Part
- How to collate SQL_Latin1_General_CP1_CI_AS using IN operator
- [ASP.NET2.0][数据库更新]How to troubleshoot 'Procedure or function has too many arguments specified' in asp.net 2.0
- How to replace tab as spaces in vim?
- How to fix “The system is running in low-graphics mode” Ubuntu 17.04 or 16.04
- How to Enable Trace or Debug for APIs executed as SQL Script Outside of the Applications ?