- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- changing auto vg activate option to 0 from 1 in /e...
-
-
Categories
- Topics
- Hybrid IT with Cloud
- Mobile & IoT
- IT for Data & Analytics
- Transformation
- Strategy and Technology
- Products
- Cloud
- Integrated Systems
- Networking
- Servers and Operating Systems
- Services
- Storage
- Company
- Events
- Partner Solutions and Certifications
- Welcome
- Welcome
- Announcements
- Tips and Tricks
- Feedback
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- Converged Data Center Infrastructure
- Digital Transformation
- Grounded in the Cloud
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- Networking
- OEM Solutions
- Servers: The Right Compute
- Telecom IQ
- Transforming IT
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Categories
-
Forums
-
Blogs
-
InformationEnglish
changing auto vg activate option to 0 from 1 in /etc/lvmrc
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
Re: changing auto vg activate option to 0 from 1 in /etc/lvmrc
Yes, that is correct.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
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
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2018 Hewlett Packard Enterprise Development LP