- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vgchange options in SG
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
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
10-31-2009 09:46 PM
10-31-2009 09:46 PM
vgchange options in SG
I have few questions about ServiceGuard. I have also gone through admin guide but still doubts are persistent.
For example, cluster is up; package is down; VG is deactivated on nodes; we start the package; everything runs fine (including VG activation).
But then, WHY and WHEN do we require "vgchange" options like "-c y", "-c n", "-a e", "-a y" etc.
Are these only for troubleshooting purpose??
Thanks in advance..
Good points assured ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2009 11:01 PM
10-31-2009 11:01 PM
Re: vgchange options in SG
-c is for each node in the cluster. It's a sharing of ownership mechanism for LVM.
-c y - yes share to other nodes
-c n - no share
-a e - activate in exclusive read / write - so the other nodes don't take control of the vg when used on another node
-a y - activate true - won't mount the file systems if not activated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2009 01:19 AM
11-01-2009 01:19 AM
Re: vgchange options in SG
Normally a vg is available fr use if it has been activated: can be activated with:
# vgchange -a y vgxx
Then mount the FS, work with lv , raw lv... etc....
To deactivate :
# unmount fsss..lvss..
# vgchange -a n vgxx
However in Service Guard Environment , Serive gurad cluser can use a VG if is made cluster aware, that means it adds a cluster flag/id on that vg:
This is done during setting up the cluster.
with vgchange -c y vgxx option.
And to activate # vgchange -a e vgxx
[ It will be activated exclusively , as it is shared vg between the nodes , and any node can activate the vg on request. ]
This options are alrady in the package control script and during package startup it takes care of it. However in case of packge failed to start, and you try to activate the vg, it won't actiavet with just # vgchang -a y , because it is cluster vg.
So you have to use:
# vgchange -a e vgxx
[ As already having cluster aware flag on it]
Similarly to deactivate a cluster aware vg , vgchange -a n will not work, you have to make it cluster unaware:
- Make sure lvs are not in use or mounted.
Then
# vgchange -c n vgxx
# vgchange -a n vgxx
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2009 01:44 AM
11-01-2009 01:44 AM
Re: vgchange options in SG
To make a vg cluster aware:
---> the cluster must be running.
cmviewcl should be showing that the cluster is UP/running.
If you try to make a vg cluster aware and want it to be the part of a High Availability service guard package, you have to run # vghange -c y vg_name
(This is needed during initialization of the vg as cluster aware at the time of creation of the cluster.)
This is also mentioned in the pkg control script:
Check : any pkg control script :
/etc/cmcluster/pkg/pkg.cntl
# VOLUME GROUP ACTIVATION:
# Specify the method of activation for volume groups.
# Leave the default (â VGCHANGE=â vgchange -a eâ ) if you want volume
# groups activated in exclusive mode. This assumes the volume groups have
# been initialized with â vgchange -c yâ at the time of creation.
Also further reading:
http://docs.hp.com/en/B2355-60127/vgchange.1M.html
http://docs.hp.com/en/B3936-90100/B3936-90100.pdf
Hth,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2009 05:11 AM
11-01-2009 05:11 AM
Re: vgchange options in SG
You can always check man pages for "vgchange"
lots of information with examples
vgchange -c "make the VG cluster aware" y|n - Yes/No
vgchange -a "activate volume group" y|n Yes/No
>>Are these only for troubleshooting purpose??
It depends on scenarios
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2009 06:27 AM
11-01-2009 06:27 AM
Re: vgchange options in SG
Package ctrl script takes care of VG activation etc but in case it fails and I want to activate VG manually and then run package;so for that, do we need to first activate (-a y) the VG and then make it cluster aware (-c y) ??
Thanks..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2009 07:25 AM
11-01-2009 07:25 AM
Re: vgchange options in SG
if you want to activate manauly-
vgchange -c n /dev/vgXX
vgchange -a y /dev/vgXX
Once activated , you need manually mount file system which part of cluster pkg.
Once you have fixed the issue why "your pkg "
before you ru "pkg"
vgchange -c y /dev/vgXX
than you run your "pkg"
cmrunpkg -v
Hope this helps :)
Rgds,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2009 10:31 AM
11-01-2009 10:31 AM
Re: vgchange options in SG
>> do we need to first activate (-a y) the VG and then make it cluster aware (-c y) ??
If you run the package ctrl file then no need to do all this just run
#cmrunpkg
if this fails then you need to do all manually from activate to mount.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2009 04:09 PM
11-01-2009 04:09 PM
Re: vgchange options in SG
if your package does not start properly FIX IT and then your package will start properly. Your package script needs to be robust enought to start the package even if the other system went down hard.
You do not want to start the package manually except as part of testing why the package did not start.
What ServiceGuard giveth ServiceGuard should take away so let serviceguard control the package and if there is a failure fix it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2009 04:15 PM
11-01-2009 04:15 PM
Re: vgchange options in SG
To verify,
cmgetconf -p pkg1 | grep ^NODE_NAME
cmgetconf -p pkg2 | grep ^NODE_NAME
cmgetconf -p pkg1 | grep ^SERVICE_NAME
cmgetconf -p pkg2 | grep ^SERVICE_NAME
cmviewcl -v
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2009 04:49 PM
11-01-2009 04:49 PM
Re: vgchange options in SG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2009 09:21 AM
11-02-2009 09:21 AM
Re: vgchange options in SG
WHY: Yo need to use these commands manually in order to solve problems with package start/stop.
WHEN: Somethimes you can have some problems with your application (Not necessarily with the cluster or package commands), for example your database does not start or stop. In such situations you need to activate or deactivate the volume groups that are used with this application, then manually try to solve the application problem before controlling it through the cluster packages.
Best Regards
Alexander