Operating System - HP-UX
1832906 Members
2775 Online
110048 Solutions
New Discussion

add disk to VG and extend FS

 
SOLVED
Go to solution
cheesytime
Regular Advisor

add disk to VG and extend FS

Hello fellow UXers!

Could someone please help me and explain how to add a new disk to an existing VG thats used by a two node cluster Service Guard?

HP-UX version on both nodes is 11.11, I would need to add a disk to an existing VG and extend a LV inside that VG.

Thanks a lot
1 REPLY 1
Jayakrishnan G Naik
Trusted Contributor
Solution

Re: add disk to VG and extend FS

Hi

Do you have Online JFS?

I will mention the Steps here.

# pvcrerate /dev/rdsk/cxtxdx (New PV)

# vgextend vgname /dev/dsk/cxtxdx

# vgdisplay vgname
to see the added free extends.

# lvextend -L XXXXM /dev/vgname/lvname

XXXXM stands for the size in Mb

Further steps depend o the availability of online JFS. If online jfs not available follow the steps below. Else skip next 3 steps.

unmount the filesystem ( may need the related application to be shutdown first.)

# umount /app

# extendfs /dev/vgname/lvname

# mount /dev/vgname/lvname /app.

If online JFS is available skip the above 3 steps, then follow the steps below.

# fsadm -F vxfs -b XXXXM /mnt_point

XXXXm stands for the size in MB and using the M/G is a must while using -b , if not used it will take the value as Kb (default)

Once the filesystem is extended, vg changes should be replicated to other cluster node.

Create the map file in preview mode

vgexport -p -v -s -m vgname.map /dev/vgname

copy it to the other node. you may need to remove and recreate the vg information on the other node where the vg is inactive.

# scp vgname.map user@clusternode2:/tmp

on other node
# vgexport /dev/vgname

# mkdir /dev/vgname; mknode /dev/vgname/group c 64 0x0X0000
( 0X0000: use the same minor number as in the other cluster node)

# vgimport -v -s -m /tmp/vgname.map /dev/vgname



regards
Jayakrishnan G Naik