Operating System - HP-UX
1822828 Members
4354 Online
109645 Solutions
New Discussion юеВ

Re: How to activate Service Guard Volume group for maintenance

 
John Jayaseelan
Super Advisor

How to activate Service Guard Volume group for maintenance

Hi,

I would like to add a physical disk on a Service Guard Volume group. I tried to activate the volume group without starting the cluster services and received the following messages

# vgchange -a y /dev/vginf
vgchange: Activation mode requested for the volume group "/dev/vginf" conflicts
with configured mode.

Could you please tell how to activate the VG.

Thanks
John Jayaseelan


11 REPLIES 11

Re: How to activate Service Guard Volume group for maintenance

Hi,

cluster volume groups always have to be activated in exclusive mode. Try

vgchange -a e /dev/vginf

Kind regards,

Birgit
melvyn burnard
Honored Contributor

Re: How to activate Service Guard Volume group for maintenance

if cmcld is running, i.e. cluster is up, then vgchange -a e should be used, assuming the package is down and the vg is not activated.
If there is no cmcld runing, then you need to do vgchange -a n
vgchange -a y
do your work,
vgchange -a n
vgchange -c y
then start the cluster and TEST the vg
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Marco Santerre
Honored Contributor

Re: How to activate Service Guard Volume group for maintenance

In order to activate your Volume Groups without starting your cluster, all you have to do is

#vgchange -c n vgname
#vgchange -a y vgname

and when you are done you just need to deactivate your VG with

#vgchange -a n vgname

and the cluster will reinstate your VG in the cluster.
Cooperation is doing with a smile what you have to do anyhow.
John Jayaseelan
Super Advisor

Re: How to activate Service Guard Volume group for maintenance

While trying vgchange -a e /dev/vginf , I received a message like "HA Cluster node is not reachable'.

Thanks
Jochen Heuer
Respected Contributor

Re: How to activate Service Guard Volume group for maintenance

Hi John,

since you want to add a disk to a cluster volume group you have to export / import the VG on the other node too. Have a look at the Software Recovery handbook chapter 19:

http://www.itrc.hp.com/service/iv/node.do?node=prod%2FWW_Start%2FN1%7C16
Well, yeah ... I suppose there's no point in getting greedy, is there?
Jean-Louis Phelix
Honored Contributor

Re: How to activate Service Guard Volume group for maintenance

Hi,

As melvyn told you, to activate a vg in exclusive mode, MC ServiceGuard must be running. If not, then you should first unset the exclusive flag using vgchange -c n (you won't be able to reactivate it using -c y until service guard is back), and then use a normal vgchange -a y.

Regards.
It works for me (┬й Bill McNAMARA ...)
Jochen Heuer
Respected Contributor

Re: How to activate Service Guard Volume group for maintenance

You should have a look at

- Useful Procedures and Commands

--> LVM Modifications of Cluster Volume Groups

Regards,

Jochen
Well, yeah ... I suppose there's no point in getting greedy, is there?
John Jayaseelan
Super Advisor

Re: How to activate Service Guard Volume group for maintenance

Jochen Heuer ,

Could you please tell where/How 'Useful Procedures and Commands - LVM Modifications of Cluster Volume Groups - ' can be accessed.

Thanks


Jochen Heuer
Respected Contributor

Re: How to activate Service Guard Volume group for maintenance

Hi John,

it's in chapter 19 of the Software Recovery handbook I mentioned above. But you need to have access to the knowledge trees ....

Regards,

Jochen
Well, yeah ... I suppose there's no point in getting greedy, is there?
MANOJ SRIVASTAVA
Honored Contributor

Re: How to activate Service Guard Volume group for maintenance

Hi John


The best palce to know is teh control script template which you can print to know the details for the activation :

# 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.
#
# Uncomment the first line (VGCHANGE="vgchange -a e -q n"), and comment
# out the default, if your disks are mirrored on separate physical paths,
#
# Uncomment the second line (VGCHANGE="vgchange -a y") if you wish to
# use non-exclusive activation mode. Single node cluster configurations
# must use non-exclusive activation.
#
# VGCHANGE="vgchange -a e -q n"
# VGCHANGE="vgchange -a y"
VGCHANGE="vgchange -a e" # Default

# VOLUME GROUPS
# Specify which volume groups are used by this package. Uncomment VG[0]=""
# and fill in the name of your first volume group. You must begin with
# VG[0], and increment the list in sequence.
#
# For example, if this package uses your volume groups vg01 and vg02, enter:
# VG[0]=vg01
# VG[1]=vg02
#
# The volume group activation method is defined above. The filesystems
# associated with these volume groups are specified below.


also you can look at this link for your commands .

http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B3936-90026/B3936-90026_top.html&con=/hpux/onlinedocs/B3936-90026/00/00/5-con.html&toc=/hpux/onlinedocs/B3936-90026/00/00/5-toc.html&searchterms=MC%7cservice%7cGaurd&queryid=20030120-075535



Manoj Srivastava
David Caldicott
New Member

Re: How to activate Service Guard Volume group for maintenance

John,

What we have done is to create a "maintenance" mode package similar to the real package, which mounts all the filesystems but does not start any services. We name the package "_mtce". In order to install new versions of application files or carry out LVM configuration, simply halt the real package and run the maintenance one.

Regards,
David Caldicott