Operating System - HP-UX
1833268 Members
2923 Online
110051 Solutions
New Discussion

Adding new volume group to package

 
SOLVED
Go to solution
Michael Yu_1
Occasional Contributor

Adding new volume group to package

Anyone can tell me what's the correct way of adding new volume group to existing package? I have an idea but I don't want to miss any steps. Thanks.
3 REPLIES 3
Dietmar Konermann
Honored Contributor

Re: Adding new volume group to package

You may have a look at the ServiceGuard chapter of the Software Recovery Handbook...

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x148f93e260b0d611abdb0090277a778c,00.html
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Sridhar Bhaskarla
Honored Contributor
Solution

Re: Adding new volume group to package

Hi Michael,

Create the volume group as usual with the following procedure on one node.

1. pvcreate /dev/rdsk/c?t?d?
2. mkdir /dev/vg??
3. mknod /dev/vg?? c 64 0x0?0000
4. vgcreate /dev/vg?? /dev/dsk/c?t?d?
5. vgextend /dev/vg?? (remaining disks)
6. Create the logical volumes
(lvcreate, newfs etc.,)
7. Generate a map file using either -f or -s option. I would prefer -s if there aren't many disks.

vgexport -p -s -m /tmp/vg??.map vg??

8. Copy the map file to the other nodes
9. Repeat the steps 2 and 3 on other nodes
10. vgimport -v -s -m /tmp/vg??.map vg?? on all other nodes to import the volume groups.
11. Edit /etc/cmcluster/cmclconf.ascii (or whatever your ascii file is). Add the new volume group name. Copy the ascii file to other nodes.
12. Apply the configuration
cmapplyconf -C /etc/cmcluster/cmclconf.ascii

You don't need to bring down the cluster for this unless you have a very old version of ServiceGuard. That will prompt you to bring down the cluster anyway if it does not allow it.

Now vg?? is part of your serviceguard resources.

13. Add the volume group to your existing package control file. Copy it to all other nodes.

If you don't want to bring down the package, then do the following.

vgchange -c y vg??
vgchange -a e vg??
mount all the file systems


-Sri

You may be disappointed if you fail, but you are doomed if you don't try
Ashwani Kashyap
Honored Contributor

Re: Adding new volume group to package

Create the VG's , LV's and file system normally as you would on one node .

Export the VG is preview and shareable mode into a map file .

Copy the map file on the other node and import the VG .

Make the VG cluster aware by putting the VG entry in the cluster ascii file . Distributr the ascii file on all nodes .

Reapply the cluster ascii file using cmapplyconf .

Edit your package conf file and enter your new VG, LV and file system information .

Put the VG in the cluster using vgchange -c y /dev/vg_name .

Activate the VG exclusively using vgchange -a -e y vgname .

Mount your file systems.