- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- what is the purpose of /etc/lvmrc
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2009 03:22 AM
11-21-2009 03:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2009 04:46 AM
11-21-2009 04:46 AM
Re: what is the purpose of /etc/lvmrc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2009 06:12 AM
11-21-2009 06:12 AM
Re: what is the purpose of /etc/lvmrc
If you read the comments in the '/etc/lvmrc' file you will see that it controls what volume groups and when those volume groups get activated.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2009 08:12 AM
11-21-2009 08:12 AM
SolutionThis file is used to check if the VGs need to be activated automatically or not.This is the configuration file for /sbin/lvmrc which execute during the system start up.The file contains two variables
1)AUTO_VG_ACTIVATE=
the value may be 0 or 1
2)RESYNC=
the value may be PARALLEL or SERIAL
PARALLEL option resync all the VGs at once.
SERIAL option resync VGs one at a time.
Also see the file /etc/lvmrc
bijeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2009 12:22 PM
11-21-2009 12:22 PM
Re: what is the purpose of /etc/lvmrc
All VGs listed in lvmtab are automatically activated during system startup. This is done in the script /sbin/lvmrc, based upon configuration in /etc/lvmrc.
If you do not trust the information in the lvmtab anymore because it may have become corrupt somehow you can easily recreate it from PVRA and VGRA on the disks through the vgscan(1M) command. But be sure to save a copy before:
# cp /etc/lvmtab /etc/lvmtab.old
# vgscan -v
In Service Guard:
The MC/ServiceGuard software will activate the volume group on the secondary node if the primary node fails. Activating the volume group on the secondary node while the primary node has the volume group activated, too, will cause corruption. Change the AUTO_VG_ACTIVATE variable to prevent automatic volume group activation.
# vi /sbin/lvmrc
AUTO_VG_ACTIVATE=0
If you have other volume groups that are not part of the cluster configuration, the custom_vg_activation function in /sbin/lvmrc can be modified to selectively activate those volume groups.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2009 06:19 PM
11-21-2009 06:19 PM
Re: what is the purpose of /etc/lvmrc
You can tell the system which VG will be activated and which will not be activated during bootup.This is very much necessary where there is a cluster installed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2009 05:37 PM
11-23-2009 05:37 PM
Re: what is the purpose of /etc/lvmrc
Marlou
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2009 05:53 PM
11-23-2009 05:53 PM
Re: what is the purpose of /etc/lvmrc
This file is sourced by /sbin/lvmrc. This file contains the flags
AUTO_VG_ACTIVATE and RESYNC which are required by the script in /sbin/lvmrc.
These flags must be set to valid values (see below).
The activation of Volume Groups may be customized by setting the
AUTO_VG_ACTIVATE flag to 0 and customizing the function
custom_vg_activation()
To disable automatic volume group activation,
set AUTO_VG_ACTIVATE to 0.
AUTO_VG_ACTIVATE=1