Operating System - HP-UX
1833780 Members
2578 Online
110063 Solutions
New Discussion

Re: Volume group in MC/SG

 
SOLVED
Go to solution
aaaA_4
Regular Advisor

Volume group in MC/SG

Hello,

I have a simple question. Do I have to halt the cluster when I am adding the new volume group (volume_group) to the cluster? Is it possible to add volume group to the cluster (make it cluster aware) while the cluster is running?

Thanks,
BZ
4 REPLIES 4
Sunil Sharma_1
Honored Contributor
Solution

Re: Volume group in MC/SG

Hi,

No need to halt the cluster, you can do it while cluster is active.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
G. Vrijhoeven
Honored Contributor

Re: Volume group in MC/SG

Hi,

Sure just use:

pvcreate -f /dev/rdsk/...&& vgcreate vgname /dev/dsk/.... && lvcreate -L size /dev/vgname & vgchange -c y /dev/vgname

You can add the volume group to the cluster ascii file so it will be activated cluster awaire if the cluster software is started.
to apply the ascii file use chcheckconf -v -C /etc/cmcluster/*.ascii and cmapplyconf -v -C /etc/cmcluster/*.ascii

This all can be done online.

Gideon
aaaA_4
Regular Advisor

Re: Volume group in MC/SG

Thank you...
BZ
Stephen Doud
Honored Contributor

Re: Volume group in MC/SG

1) Add a new line to the cluster ASCII file for future cmapplyconf.

2) Create the new VG

3) Make it cluster-aware:
$ vgchange -c y
NOTE: this can only be done on a node where cmlvmd is active (node UP in cluster)

4) Add the VG and it's LVOL references to the package control script

5) Copy the package control script to adoptive nodes

6) Activate the VG on the node where it's package is UP
$ vgchange -a e

7) Mount the new VG's LVOLs to file systems

8) Test package halt/failover

-StephenDoud