- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgchange -a n on volume group does not show volume...
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
05-10-2002 07:21 AM
05-10-2002 07:21 AM
I've got two servers using a shared disk array with one volume group. I am not using Service Guard.
One of the servers acts as the primary server and will mount the disk array while it is acting as a production server. Only the production server will execute the init 4 command to transition to run-level 4.
As the production server transitions to run-level 3, vgchange -a n is executed to deactivate the volume group. The volume group is not removed via vgexport. So the volume group exists on both servers.
My question is as follows:
Shouldn't the inactive server show a status something other than "available" for the volume group when vgdisplay is executed on the inactive server? vigdisplay works just fine and it appears that I could mount the volume group if I wanted.
I was expecting to see a "not available" message on the inactive server.
jack..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2002 07:29 AM
05-10-2002 07:29 AM
SolutionLVM doesn't work in a shared mode, it expects exclusive access to the disks it is controling - you could indeed attempt to mount the file systems, and you would probably end up corrupting all of them...
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2002 07:33 AM
05-10-2002 07:33 AM
Re: vgchange -a n on volume group does not show volume group as inactive on inactive server.
I think that both groups may have the VG activated, if it gives you the info in vgdisplay.
I think you are better off editing /etc/lvmrc to set AUTO_VG_ACTIVATE=0. Then you will not have to de-activate the volume group on the standby and run the risk of mounting the filesystem LVs on both servers at once.
If you use /etc/lvmrc, you will only manually activate the VG on the live server so you will have less risk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2002 07:35 AM
05-10-2002 07:35 AM
Re: vgchange -a n on volume group does not show volume group as inactive on inactive server.
jack..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2002 07:42 AM
05-10-2002 07:42 AM
Re: vgchange -a n on volume group does not show volume group as inactive on inactive server.
You should be aware that if filesystems are ever mounted on both boxes absolute chaos is assured.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2002 07:43 AM
05-10-2002 07:43 AM
Re: vgchange -a n on volume group does not show volume group as inactive on inactive server.
DO NOT EVER activate a VG on two nodes at once without Serviceguard (or MC/lockmanager).
Serviceguard is used to control exclusive access to a VG, to avoid corruption.
If you use /etc/lvmrc to set AUTO_VG_ACTIVATE=0, you will have to manually sort out the volume group activation yourself, again this sort of thing isn't supported by HP, but some sites have managed to get it working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2002 07:44 AM
05-10-2002 07:44 AM
Re: vgchange -a n on volume group does not show volume group as inactive on inactive server.
Even without serviceguard, you can change /etc/lvmrc to do what you want. You can subsequently activate volume groups whenever the need arises.
There's no problem having the same volume group activated on more than one server. It's only an issue if you attempt to mount the same filesystem more than once.
Serviceguard gives you an extra feature 'activate exclusive' which ensures that the volume group is only activated once.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2002 09:46 AM
05-10-2002 09:46 AM
Re: vgchange -a n on volume group does not show volume group as inactive on inactive server.
The discussion got me to start checking my other systems that are similar and I found inconsistencies in the /etc/lvmrc file for the volume group activation. Even found a typo in one of the files where value was set to 0.
I'm surprised one of the systems activated vg00 because /etc/lvmrc executed the following two statements.
/sbin/vgchange -a y -s
/sbin/vvgsync "vg00"
Note first entry does not specify vg00 and the second entry has a typo for vgsync.
I suppose it was okay because vg00 was never deactivated.
Jack...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2002 10:01 AM
05-10-2002 10:01 AM
Re: vgchange -a n on volume group does not show volume group as inactive on inactive server.
Regards,
John