Operating System - HP-UX
1847583 Members
3050 Online
110265 Solutions
New Discussion

Confirming steps for vxvm in serviceguard

 
SOLVED
Go to solution
Srikanth Arunachalam
Trusted Contributor

Confirming steps for vxvm in serviceguard

Hi,

I have a shared volume group called omcdg that need to be activated exclusively in package control script. Whereas in LVM we specify vgchange -e to exclusive mount the volume, can you please confirm, how should i deactivate volume from all nodes of cluster and activate the volume group in exclusive mode. An example will really help my understanding now.

Thanks,
Srikanth
6 REPLIES 6
melvyn burnard
Honored Contributor

Re: Confirming steps for vxvm in serviceguard

Well wiht VxVM there is no Volume Group, but a Disk Group, and the DG gets deported from one node and then imported on the next node.
This is all documented in the Managing Serviceguard manual available at:
http://docs.hp.com/en/ha
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Srikanth Arunachalam
Trusted Contributor

Re: Confirming steps for vxvm in serviceguard

Hi Melvin,

I did see in the documentation. My question is when we depot, what files get created and where? Should I rcp that to the second node.

After copying to second node, what parameter i need to specify to vxdg import.

Thanks,
Srikanth
Chauhan Amit
Respected Contributor
Solution

Re: Confirming steps for vxvm in serviceguard

Hello Srikanth,

There are 4-Modes available:

a)sw means shared-write
The node has write access to the disk group.

b)ew means exclusive-write
The node has exclusive write access to the disk group. No other node can activate the disk group for write access.

c)ro means read-only
The node has read access to the disk group and denies write access for all other nodes in the cluster. The node has no write
access to the disk group. Attempts to activate a disk group for either of the write modes on other nodes fail.

d)sr means shared-read
The node has read access to the disk group. The node has no write access to the disk group, however other nodes can obtain
write access.

Example to set the same:
#vxdg -g willowdg set activation=sw

You can use above modes in similar fashion in the scripts.

Hope this helps.

-Amit
PS: Please remember to assign points.
If you are not a part of solution , then you are a part of problem
melvyn burnard
Honored Contributor

Re: Confirming steps for vxvm in serviceguard

>My question is when we depot, what files get created and where?

I am not sure what you mean here.
The details on how to do this are all documented in the manual.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Chauhan Amit
Respected Contributor

Re: Confirming steps for vxvm in serviceguard

Hello Srikanth,

Reply is inline:

how should i deactivate volume from all nodes of cluster and activate the volume group in exclusive mode

A) Suppose the DG ( Disk Group = VG in LVM) name is dg01 and the setup is two node cluster , node1 and node2

Now you have already created a shared DG , dg01 by the command "vxdg -s init dg01 c4t0d0" on any of the node on the shared disk "c4t0d0"

Once you create a shared DG , it will be activated on both the nodes. You can create Volume,delete volume from the Master Server , which can be known by the command
#vxdctl -c mode"

If you want DG to be imported from both the nodes, you need to give the command
#vxdg deport dg01

It will be deported from both the nodes.

Now you can give following command on the node2 , on which you want to activate the same:
#vxdg import dg01

With this command only node2 will be able to see the DG not node1.

If again you want both the nodes to see the Dg after completing your work , then you can give the following commands:
#vxdg deport dg01
#vxdg -s import dg01

Also I have mentioned the various modes which are available. Suppose you want to create volume from any node , then you need to give the command
#vxdg -g dg01 set activation=sw

Hope this helps. update if you still have any confusion on the same.

-Amit
PS: Please don't forget to assign the points.
If you are not a part of solution , then you are a part of problem
Srikanth Arunachalam
Trusted Contributor

Re: Confirming steps for vxvm in serviceguard

Hi All,

Thanks everybody..its working fine now. I will assign points to you all.

Thanks,
Srikanth