- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vgchange headache
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
12-10-2003 09:43 AM
12-10-2003 09:43 AM
Yesterday I depowered one of the VA's (deliberately), and the L3000 in the same rack (which was running our only package), and thus simulating a building power failure (the failover node and other va7410 being in another building).
When the package came up on the other node (automatically), the package came up clean (I had set 'no quorum on vgchange'). I thought 'this okay'.
THEN, I brought back the depowered va, and l3000 (the l3000 is not further relevant to this problem) and a short time later an ioscan on my failover node running the the active package showed the links were available. SO, I shutdown the package, and started it again. It was a painful 80 mins until the package came backup up.
The question is, if I read the man page for vgchange correctly, that if I use the s switch 'no resync' it will be ignored due to NOMWC being relevant to this case.
Want I really want to happen is that on vgchange it becomes active immediately for use, and stale syncing goes on the background. I don't want certain scenarios putting an hours delay into package startup!
Further, the syncing that did occur in the foreground of package startup seemed to involve almost as much time as the creation of a mirror copy would, even though there were only a maximum of 10MB's of data being change during the depower!
Finally, if I lose sitewide power, the va's will go down at diffent times, due to differnt ups capacities. Thus, when node come back up, its seems I will have to go through all this again.
Basically, the problem is that I WILL have quorum if the package is restarted, and will thus get a foreground resync, thus hours of waiting.
HELP!
PS, Can I get my cluster nodes to tell the va's to shutdown if the ups sends a signal to the node?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 09:51 AM
12-10-2003 09:51 AM
Re: vgchange headache
There may be problems with your test methodology and/or the setup.
Restart should resolve the short term problem and let you deal with the quorum issue at your leisure.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 06:14 PM
12-10-2003 06:14 PM
Re: vgchange headache
This won't happen. When the mirror is unavilale the other vg would still get activated if it is set to activate without quorum. but once the mirror copy is online, the vg has to be activated manually to recognize the stale disk and then you have to manually run vgsync to sync up the mirror.
In your case once the other VA was brought up, you should have done,
On the node where the package / VG was active,
vgchange -a e /dev/vg_name for all the VG's and then,
vgsync /dev/vg_name for all the VGs.
Otherwise once the vg is deativated and then reactivated, it will first sync up the mirror before it does any mounting and all.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 06:47 PM
12-10-2003 06:47 PM
SolutionYou should use this vgchange option in the package control script :
# Uncomment the second line (VGCHANGE="vgchange -a e -q n -s"), and comment
# out the default, if your disks are mirrored on separate physical paths,
# and you want the mirror resynchronization to ocurr in parallel with
# the package startup.
#
Service Guard checks if -s option has been used in the VGCHANGE variable (no synchronization), but instead of doing nothing, it adds a 'background' vgsync. Service Guard ALWAYS synchronize vg at startup, either in foreground, either in background if -s is used, which is different from the usage of this command at the hp-ux command level.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 06:51 PM
12-10-2003 06:51 PM
Re: vgchange headache
I think I can see where the headache is coming from. :-)
Am I correct in thinking you are refering to the entry in the man page for vgchange where is says (regarding the -s option) :
"However, for those logical volumes that have Mirror Write Cache turned off, mirror synchronization is done independently of whether the -s option appears on the command line."
I am not 100% sure of exactly what this means but I don't _think_ it is how you are reading it. Uisng the -s option should not resync the mirrors, even with NOMWC specified. I thinks its more to do with how lvm can track changes when the MWC is off.
However, you can get round all your problems by turning MWC on? You are seeing the long sync times as without MWC on all extents of all but one mirror are marked stale so in effect it is like mirroring the whole volume again. With MWC on it will only write those tracks that it knows are out of sync between the volumes. An analogy may be the difference between vxfs and hfs fsck procedures (and times!).
I'll have a play with my boxes at home later and see what I find.
cheers,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2003 10:33 PM
12-10-2003 10:33 PM
Re: vgchange headache
-- James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2003 12:22 AM
12-15-2003 12:22 AM
Re: vgchange headache
Thanks for your comment. I took a look in /sbin/lvmrc and can't see how it will be invoked as a background test. Please clarify.
James,
Thanks for your assistance. I do have MWC on for all volumes, but as you say I got the impression from the man page that a -s would be ignored. However, after another read I interpret it diffently. I have now turned on the -s switch. However, a commented above by others, I will avoid stopping the package in future.
To you both and the rest of the team, a big thanks!