- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- changing auto vg activate option to 0 from 1 in /e...
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
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
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
05-18-2012 04:12 AM
05-18-2012 04:12 AM
changing auto vg activate option to 0 from 1 in /etc/lvmrc
Hi
I don`t want external disk to activate ,only vg00 has to activate after rebooting the server.
so i am changing AUTO_VG_ACTIVATE=1 to AUTO_VG_ACTIVATE=0.
system is not in cluster.
by changing from 1 to 0, will VG00 activate or not.
--------------------------------------------------------------------------------------
$ cat /etc/lvmrc
# @(#)B.11.11_LR
# /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
#
# The variable RESYNC controls the order in which
# Volume Groups are resyncronized. Allowed values
# are:
# "PARALLEL" - resync all VGs at once.
# "SERIAL" - resync VGs one at a time.
#
# SERIAL will take longer but will have less of an
# impact on overall I/O performance.
#
RESYNC="SERIAL"
#
# Add customized volume group activation here.
# A function is available that will synchronize all
# volume groups in a list in parallel. It is
# called parallel_vg_sync.
#
# This routine is only executed if AUTO_VG_ACTIVATE
# equals 0.
#
custom_vg_activation()
{
# e.g. /sbin/vgchange -a y -s
# parallel_vg_sync "/dev/vg00 /dev/vg01"
# parallel_vg_sync "/dev/vg02 /dev/vg03"
return 0
}
#
# The following functions should require no additional customization:
#
parallel_vg_sync()
{
for VG in $*
do
{
if /sbin/vgsync $VG > /dev/null
then
echo "Resynchronized volume group $VG"
fi
} &
done
}
$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2012 06:22 AM
05-18-2012 06:22 AM
Re: changing auto vg activate option to 0 from 1 in /etc/lvmrc
You should add vg00 to the custom_vg_activation section of the /etc/lvmrcc file.
/sbin/vgchange -a y /dev/vg00
- Tags:
- vgchange
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2012 07:13 PM
05-18-2012 07:13 PM
Re: changing auto vg activate option to 0 from 1 in /etc/lvmrc
HI
If i dont add /sbin/vgchange -a y vg00 ,,, will vgoo not activate after booting ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2012 04:34 AM
05-19-2012 04:34 AM
Re: changing auto vg activate option to 0 from 1 in /etc/lvmrc
Madhuchakaravar,
You have to make /etc/lvmrc so that none but vg00 activates after booting, as you don't want SAN vgs activation after system bootup.
For this /etc/lvmrc has to be customized with AUTO_VG_ACTIVATE=0 and add /dev/vg00 in custome vg activation function: Without it , it may not activate the vg00 .
custom_vg_activation()
{
/sbin/vgchange -a y /dev/vg00
parallel_vg_sync " /dev/vg00 "
# e.g. /sbin/vgchange -a y -s
# parallel_vg_sync "/dev/vg00 /dev/vg01"
# parallel_vg_sync "/dev/vg02 /dev/vg03"
return 0
}
Hth,
Raj D.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2012 05:10 AM
05-19-2012 05:10 AM
Re: changing auto vg activate option to 0 from 1 in /etc/lvmrc
Hi Raj
You mean to say without adding vg00 to custom activation script,,vgoo will not be activated after reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2012 08:34 AM
05-19-2012 08:34 AM
Re: changing auto vg activate option to 0 from 1 in /etc/lvmrc
Yes, that is correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2012 08:47 AM
05-19-2012 08:47 AM
Re: changing auto vg activate option to 0 from 1 in /etc/lvmrc
hi
i checked with hp support,,they said vg00 will activate even if AUTO_VG_ACTIVATE=0, even when there is no entry in custom activation script