Operating System - HP-UX
1830207 Members
1956 Online
109999 Solutions
New Discussion

SG Cluster shared disk to add

 
HP UNIX Professionals
Frequent Advisor

SG Cluster shared disk to add

Hi Team,

I am new to the SG Cluster Environment. we have 3 node cluster environment, We are planning to add new 2 disk to the (c16t0d2 and c18t0d2) to the shared disk( /dev/dgpkg2) having 200 GB. Anybody help me to do this activity.

1.What are the command to be used for adding c16t0d2 and c18t0d2 to the /dev/dgpkg2
2.How to populate this disk information to another nods
2.What are the precaution to taken before adding the disk
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: SG Cluster shared disk to add

Shalom,

You need to do this.

pvcreate both disks on one node.
vgextend current volume group activated by dgpk2 to these two new disks.

Then

vgexport the volume group with -p -m mapfile options
-p does it in preview mode and -m generates a map file

copy the map file from create node to other two nodes.

vgimport the shared volume group that is activated by package dgpk2

Precautions:
Notify user community in case something goes wrong and the cluster or package shuts down.
Get a good backup of all data before starting.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Prashanth Waugh
Esteemed Contributor

Re: SG Cluster shared disk to add

Hi,

pvcreate /dev/rdsk/c16t0d2
pvcreate /dev/rdsk/c18t0d2

vgextend /dev/dgpkg2 /dev/dsk/c16t0d2
vgextend /dev/dgpkg2 /dev/dsk/c18t0d2

check #cmviewcl


on primary node
ll /dev/dgpkg2/group
use the same minor no on secondary node
vgexport -v -s -p -m /tmp/dgpkg2.map /dev/dgpkg2

on secondary node
vgexport /dev/dgpkg2
ll /dev/dgpkg2/group
note down the minor no . use the same it on this node (0x220000 i assumed here but u check in ur setup)
mkdir /dev/dgpkg2
mknod /dev/dgpkg2/group c 64 0x220000
vgimport -s -m /tmp/dgpkg2.map /dev/dgpkg2

if u have configer failover policy for third node also then u need to do the
on third node also below step

vgexport /dev/dgpkg2
mkdir /dev/dgpkg2
ll /dev/dgpkg2
mknod /dev/dgpkg2/group c 64 0x220000
vgimport -s -m /tmp/dgpkg2.map /dev/dgpkg2
-------------------------------------------
prepare the steps by using above command . and paste it on forum if ur not sure abt it so that once again anyone can verify it. and it will avoid the mistake.

Thanks
Prashant
For success, attitude is equally as important as ability
Ivan Krastev
Honored Contributor

Re: SG Cluster shared disk to add


You can disable package switching during adding the disks to second and third node and enable it afterwards. But this is only optional.

regards,
ivan
Lijeesh N G_1
Respected Contributor

Re: SG Cluster shared disk to add

Hi,

1)What are the command to be used for adding c16t0d2 and c18t0d2 to the /dev/dgpkg2??
===>Are you sure these are different disks. I could see both of the LUNs numbers are same.Please verify it, one may be a alternate path.
>If these are two different disk, follow below steps to add to dgpkg2 from Node1,
===>
Node1#pvcreate /dev/rdsk/c16t0d2
Node1#pvcreate /dev/rdsk/c18t0d2
Node1#vgextend dgpkg2 /dev/dsk/c16t0d2 /dev/dsk/c18t0d2

2)How to populate this disk information to another nods??
===>Export it from present Node(Node1) and import it in another nodes(Node2 and Node3) in ***preview mode***
Node1#vgexport -s -p -m dgpkg2
Node1#scp Node2:/tmp/
Node1#scp Node3:/tmp/

Node2#vgimport -s -p -m /tmp/ dgpkg2
Node3#vgimport -s -p -m /tmp/ dgpkg2

3)What are the precaution to taken before adding the disk??
===>Normally it will not effect cluster.
===>Take a backup before.
===>Take prerequisites in case of something goes wrong and the cluster or package shuts down.

Regards,
LIJEESH N G