Operating System - HP-UX
1825805 Members
2182 Online
109687 Solutions
New Discussion

MC/SG OPS - two node access volume group at the same time.

 
SOLVED
Go to solution

MC/SG OPS - two node access volume group at the same time.

HI!
In my system is installed the MC/SG OPS bundle edition A.11.14.
Two node cluster have a pkg1.
At the same time two system is going to aceess vg02(sharable VG).
After I finished the configuration with pkg1,
i do cmviewcl. the result work right.
But System1 has mount vg02, system2 has'nt mount vg02.
pkg1 control script, vgchange -a s
I have a question.
At the same time one volume group is mounted by two system.
Please!! solve me.
thank you

5 REPLIES 5
Sukant Naik
Trusted Contributor

Re: MC/SG OPS - two node access volume group at the same time.

Hi Ischae,

I am sending you part of my scripts, which was part of the package to activate the VG's.

vgchange -a n /dev/array1
vgchange -a n /dev/array2
vgchange -a n /dev/vglock
vgchange -S y -c y /dev/array1
vgchange -S y -c y /dev/array2
vgchange -S y -c y /dev/vglock
vgchange -a s /dev/array1
vgchange -a s /dev/array2
vgchange -a s /dev/vglock

This will activate my VG's shared mode and accessable by both the nodes.

After this I had a package to start my Oracle database.

Just my two cents.
-Sukant
Who dares he wins

Re: MC/SG OPS - two node access volume group at the same time.

HI..
When I do the next command,
The result is..
#cmhaltcl -f
#vgchange -a n /dev/vg02
#vgchange -S y -c y /dev/vg02
vgchange: Cluster Services not available or unreachable on this system, for volu
me group "/dev/vg02".
#cmruncl -v
#vgchange -S y -c y /dev/vg02
vgchange: The volume group "/dev/vg02" is active on this system.
Cannot perform requested chang

Can you tell me the method while the cluster alive Two node access the VG at the same time.
IF I install the oracle, the both system is able to access the sharable volumegroup.
tell me mount the both system at a time.

Please...
thank you.




Sukant Naik
Trusted Contributor
Solution

Re: MC/SG OPS - two node access volume group at the same time.

Hi Ischae,

Can you check the cluster this way.

1. Bring up the cluster.
2. Then run the following commands on node1 as root user:
vgchange -a n /dev/array1
vgchange -a n /dev/array2
vgchange -a n /dev/vglock
This will first deactivate the volumegroups if by chance you have mounted these volumegroups in exclusive mode.

3. Run the same set of commands as root on the node2.
vgchange -a n /dev/array1
vgchange -a n /dev/array2
vgchange -a n /dev/vglock

4. When you are assured that the VG's have been deactivated on both the nodes then run the following commands on node1:
vgchange -S y -c y /dev/array1
vgchange -S y -c y /dev/array2
vgchange -S y -c y /dev/vglock
vgchange -a s /dev/array1
vgchange -a s /dev/array2
vgchange -a s /dev/vglock

5. Repeat the same step no. 4 on node2.

This will ensure you that the volumegroups have now been mounted in shared mode.

6. Bring up the oracle Instances.

Hope this helps.

-Sukant

Who dares he wins
Stephen Doud
Honored Contributor

Re: MC/SG OPS - two node access volume group at the same time.

Hello Ischae,

Each node in an OPS cluster must have it's own package in order to activate the Volume Groups in "shared" mode and start their own instance of Oracle.
This means two different packages with unique package names and control scripts.
Each package should be configured to run on only one node and no other.

See the manual: "Configuring OPS Clusters with ServiceGuard OPS Edition " at http://docs.hp.com/hpux/ha/index.html#ServiceGuard%20OPS%20Edition%20(MC/LockManager) for more information.

-s.

Re: MC/SG OPS - two node access volume group at the same time.

Thank you..
At first, I have made one package two node cluster. But the both node cannot access at the same time.
So, I make a one package owned by one node each other.
Now, the both node can access the volume group.
Thank you..