Operating System - HP-UX
1753482 Members
4463 Online
108794 Solutions
New Discussion юеВ

add 2 new volume groups and change and old one

 
SOLVED
Go to solution
Prashanth Waugh
Esteemed Contributor

Re: add 2 new volume groups and change and old one

Hi,

Pls check below steps,

1)first check the device path for the PV which u r going to add in new vg
2)#pvcreate /dev/rdsk/c1t9d4
3)#make the vg directory using
#mkdir /dev/vg01
4)check the major and minor no of existing vg using
#ll /dev/*/vg
use the minor no greater than existing
5) #mknod /dev/vg01/group c 64
6)#vgcreate /dev/vg01 /dev/dsk/c1t9d4
7) if u want to extend the vg then extend it is
#vgextend /dev/vg01 /dev/dsk/c1t9d5
8)make the VG cluster aware
#vgchange -c y
9) Crate the map file
#vgexport -v -s -p -m /tmp/vg01.map /dev/vg01
10)rcp the map file on different node
#rcp -r /tmp/vg01.map node2:/tmp
===================================================
1) On node 2 use the following steps
2)#mkdir /dev/vg01
3)#mknod /dev/vg01/group c 64
Here use the minor no which used for vg01 on node1
4)check it using
#ls -l /dev/*/vg
5)#import the vg
#vgimport -v -s -m /tmp/vg01.map /dev/vg01
6)check it activating in read only mode it
#vgchange -a r vg01

============================================================
add the entries for new vg in cluser config file and pkg control file
distrbute according to your setup on HA/DR nodes
============================================Regards
Prashant
For success, attitude is equally as important as ability
Prashanth Waugh
Esteemed Contributor

Re: add 2 new volume groups and change and old one

Hi dipak,

I am agree with u regarding deactivation/export of vg that we r creating map file only so no need to worry abt error.But my opnion was that it was not the member of actual production VG. we are going to make it as a part of production VG. So eventhough we deactivated it it will not affect the application right.

Regards
Prashant
For success, attitude is equally as important as ability
Prashanth Waugh
Esteemed Contributor

Re: add 2 new volume groups and change and old one

Hi dipak,

No need to deactivate the vg while creating the mapfile.you are absolutely correct.when we r actually exporting the vg on primay node that time it require deactivation.

Regards
Prashant
For success, attitude is equally as important as ability
Prashanth Waugh
Esteemed Contributor

Re: add 2 new volume groups and change and old one

Hi,

I have used vgscan command one of the my above post. It should be
#vgchange -c y vgname.

Regards
Prashant

For success, attitude is equally as important as ability
Prashanth Waugh
Esteemed Contributor

Re: add 2 new volume groups and change and old one

Hi ptii,

Pls read the How many points should I assign to replies? this topic on ITRC .
Regards
Prashant
For success, attitude is equally as important as ability