Operating System - HP-UX
1747980 Members
4404 Online
108756 Solutions
New Discussion юеВ

Volume Group extension on Serviceguard clustered systems

 
SOLVED
Go to solution
Manoj1
Advisor

Volume Group extension on Serviceguard clustered systems

Hi all,

Can someone tell me the steps for extending a volume group on serviceguard running clustered systems ?

Thanks,
Manoj

6 REPLIES 6
Manix
Honored Contributor
Solution

Re: Volume Group extension on Serviceguard clustered systems

On primary node:

1.create phisical volume using pvcreate
#pvcreate /dev/rdsk/c8t2d5
2.extend the volume group using vgextend
#vgextend /dev/vgdp /dev/dsk/c8t2d5 /dev/dsk/c11t2d5
3.extend the logical volume using lvextend
#lvextend -L /dev/vgdp/lvtest
5.extend the file system using fsadm
#fsadm -b M /test
#export the vg in preview mode
#vgexport -p -s -m /tmp/vgdp.map vgdp
6.copy the map file to alternative node using scp/rcp

On alternative node

1.check and note the minor number in group file for vgdp
#ls -l /dev/vgdp/group
2 export the vg
#vgexport vgdp
3.create the directory for vgdp
#mkdir /dev/vgdp
4.create the group file vgdp
#mknod /dev/vgdp/group c 64
5.import the vg
#vgimport -s -m /tmp/vgdp.map vgdp

#vgchange -c y vgname


Hope this helps

Thanks

Manix
HP-UX been always lovable - Mani Kalra
Anoop Sivan
Frequent Advisor

Re: Volume Group extension on Serviceguard clustered systems

Hi Manoj,

If free PE's are available your can extend the pkg file system as normal procedure.
lvextend,fsadm
There is no need for vgexport and import

You don't have any free PE's and new lun's need to add, then you have to follo the above procedure.
nijokj
Trusted Contributor

Re: Volume Group extension on Serviceguard clustered systems


Hi manoj,

1. Extend the logical volume:

lvextend -L 256 /dev/vg07/lvolx

256 MB is now the Total size of the LV

2. Extend the filesystem:

# fsadm -b 262144 /FS

The size is in blocks, so multiply the logical volume size by 1024
(256 x 1024 = 262144)

>> If the VG is only activated in only One node (Active - Passive Cluster) the above two steps are enough.
NOTE: If you are adding extending the VG (adding disk to a VG) then you have to perform the vgexport and vgimport operations.
vinay_singh
New Member

Re: Volume Group extension on Serviceguard clustered systems

Deactivate the VG:


# vgchange -a n vgNEW

Cluster the VG:


# vgchange -c y vgNEW

If the package that will operate the VG is already running, activate the VG. Also activate the VG if a logical volume will be created.


# vgchange -a e vgNEW

Kennedy G. Doss
Regular Advisor

Re: Volume Group extension on Serviceguard clustered systems

It is not a bad idea to use the "-N" option while running the vgimport on the inactive node. This keeps the format of the disk number in a consistent format - agile Vs legacy.
nagnampalli
Occasional Visitor

Re: Volume Group extension on Serviceguard clustered systems

Can we use the same steps for lvcreation instead of extension for a VG in service guard which is active on both nodes.