HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to leave a VG not activated at boot time?
Operating System - HP-UX
1827286
Members
1735
Online
109717
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
06-05-2003 07:43 AM
06-05-2003 07:43 AM
Hi all,
Is it possible to have a non-root VG not activated at boot time? then use vgchange -a y afterwards when needed?
thanks,
Gary
Is it possible to have a non-root VG not activated at boot time? then use vgchange -a y afterwards when needed?
thanks,
Gary
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 07:51 AM
06-05-2003 07:51 AM
Re: how to leave a VG not activated at boot time?
Gary:
Yes.
1. I think that if you leave it out of /etc/fstab, it will not be activated. (But I'm not sure.)
2. You can use /etc/lvmrc to say:
a. Don't activate VGs on boot.
b. Activate these only on boot.
But this means that you will have to specify every OTHER VG that you want to activate:
cd /etc
cp lvmrc lvmrc.old
vi lvmrc
set
AUTO_VG_ACTIVATE=0
set VGs to activate in "custom_vg_activation()"
/sbin/vgchange -a y vg01 # activate vg01
# vg00 is always activated on boot
It's a lot of work and prone to problems in the future.
Why don't you DEactivate the VG in question after boot is completed? that might be easier.
Yes.
1. I think that if you leave it out of /etc/fstab, it will not be activated. (But I'm not sure.)
2. You can use /etc/lvmrc to say:
a. Don't activate VGs on boot.
b. Activate these only on boot.
But this means that you will have to specify every OTHER VG that you want to activate:
cd /etc
cp lvmrc lvmrc.old
vi lvmrc
set
AUTO_VG_ACTIVATE=0
set VGs to activate in "custom_vg_activation()"
/sbin/vgchange -a y vg01 # activate vg01
# vg00 is always activated on boot
It's a lot of work and prone to problems in the future.
Why don't you DEactivate the VG in question after boot is completed? that might be easier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 07:52 AM
06-05-2003 07:52 AM
Re: how to leave a VG not activated at boot time?
Yes you can do that. In /etc/lvmrc, you can go in the function custom_vg_activation and place any VG you want to activate. Don't forget to change AUTO_VG_ACTIVATE to 0
Cooperation is doing with a smile what you have to do anyhow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 07:55 AM
06-05-2003 07:55 AM
Solution
You have to do some customization in /etc/lvmrc. If you got ..
AUTO_VG_ACTIVATE=1
.. it will activate all volume group and you can't change that. If you want to customize your own vg activation change the above to 0 and then in the same file (/etc/lvmrc).. in the "custom_vg_activation" function put these ..
custom_vg_activation()
{
/sbin/vgchange -a y -s /dev/vg00
parallel_vg_sync "/dev/vg00"
}
That way ONLY vg00 is activated at boot time.
AUTO_VG_ACTIVATE=1
.. it will activate all volume group and you can't change that. If you want to customize your own vg activation change the above to 0 and then in the same file (/etc/lvmrc).. in the "custom_vg_activation" function put these ..
custom_vg_activation()
{
/sbin/vgchange -a y -s /dev/vg00
parallel_vg_sync "/dev/vg00"
}
That way ONLY vg00 is activated at boot time.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP