Operating System - HP-UX
1832275 Members
1722 Online
110041 Solutions
New Discussion

Extend a vg on a cluster need help

 
cheesytime
Regular Advisor

Extend a vg on a cluster need help

Hello,

The Storage Administrator just told me that he has provided us with a new LUN for our cluster (2 node cluster)

These are the special files I see:

/dev/[r]dsk/c8t2d5
/dev/[r]dsk/c11t2d5


This is the xpinfo output:

node1:
============================
Device File : /dev/rdsk/c8t2d5 Model : XP10000
Port : CL1A Serial # : 00042130
Host Target : 02 Code Rev : 5001
Array LUN : 15 Subsystem : 0004
CU:LDev : 00:03 CT Group : ---
Type : OPEN-E CA Volume : SMPL
Size : 13893 MB BC0 (MU#0) : SMPL
ALPA : b2 BC1 (MU#1) : SMPL
Loop Id : 20 BC2 (MU#2) : SMPL
SCSI Id : ---
RAID Level : RAID1 RAID Type : 2D+2D
RAID Group : 1-1 ACP Pair : 1
Disk Mechs : HDD0000 HDD0100 HDD0200 HDD0300
FC-LUN : 0000a49200000003 Port WWN : 50060e8004a49200
HBA Node WWN: --- HBA Port WWN: ---
Vol Group : --- Vol Manager : ---
Mount Points: ---
DMP Paths : ---
CLPR : ---


============================
Device File : /dev/rdsk/c11t2d5 Model : XP10000
Port : CL2A Serial # : 00042130
Host Target : 02 Code Rev : 5001
Array LUN : 15 Subsystem : 0004
CU:LDev : 00:03 CT Group : ---
Type : OPEN-E CA Volume : SMPL
Size : 13893 MB BC0 (MU#0) : SMPL
ALPA : 98 BC1 (MU#1) : SMPL
Loop Id : 30 BC2 (MU#2) : SMPL
SCSI Id : ---
RAID Level : RAID1 RAID Type : 2D+2D
RAID Group : 1-1 ACP Pair : 1
Disk Mechs : HDD0000 HDD0100 HDD0200 HDD0300
FC-LUN : 0000a49200000003 Port WWN : 50060e8004a49210
HBA Node WWN: --- HBA Port WWN: ---
Vol Group : --- Vol Manager : ---
Mount Points: ---
DMP Paths : ---
CLPR : ---

============================


node2:
=============================
Device File : /dev/rdsk/c8t2d5 Model : XP10000
Port : CL5A Serial # : 00042130
Host Target : 02 Code Rev : 5001
Array LUN : 15 Subsystem : 0004
CU:LDev : 00:03 CT Group : ---
Type : OPEN-E CA Volume : SMPL
Size : 13893 MB BC0 (MU#0) : SMPL
ALPA : ae BC1 (MU#1) : SMPL
Loop Id : 22 BC2 (MU#2) : SMPL
SCSI Id : ---
RAID Level : RAID1 RAID Type : ---
RAID Group : 1-1 ACP Pair : 1
Disk Mechs : HDD0000 HDD0100 HDD0200 HDD0300
FC-LUN : 0000a49200000003 Port WWN : 50060e8004a49240
HBA Node WWN: --- HBA Port WWN: ---
Vol Group : --- Vol Manager : ---
Mount Points: ---
DMP Paths : ---
CLPR : ---

===========================
Device File : /dev/rdsk/c11t2d5 Model : XP10000
Port : CL6A Serial # : 00042130
Host Target : 02 Code Rev : 5001
Array LUN : 15 Subsystem : 0004
CU:LDev : 00:03 CT Group : ---
Type : OPEN-E CA Volume : SMPL
Size : 13893 MB BC0 (MU#0) : SMPL
ALPA : 90 BC1 (MU#1) : SMPL
Loop Id : 32 BC2 (MU#2) : SMPL
SCSI Id : ---
RAID Level : RAID1 RAID Type : ---
RAID Group : 1-1 ACP Pair : 1
Disk Mechs : HDD0000 HDD0100 HDD0200 HDD0300
FC-LUN : 0000a49200000003 Port WWN : 50060e8004a49250
HBA Node WWN: --- HBA Port WWN: ---
Vol Group : --- Vol Manager : ---
Mount Points: ---
DMP Paths : ---
CLPR : ---
=============================

I would like to extend the size of the existing FS (see below)

/dev/vgdp/lvtest 14221312 12946708 1239830 91% /test

JFS is installed if needed

JFS B.11.11 The Base VxFS File System
OnlineJFS B.11.11.03.03 Online features of the VxFS File System
PHKL_24026 1.0 JFS Filesystem swap corruption
PHKL_28512 1.0 Fix for POSIX_AIO in JFS3.3
PHKL_29115 1.0 JFS Direct I/O cumulative patch
PHKL_30366 1.0 JFS3.3;ACL patch
PHKL_34805 1.0 JFS3.3 patch; mmap

I would like to extend it 13000Mb.

Thanks and a step-by-step guide would be truly appreciated.
7 REPLIES 7
cheesytime
Regular Advisor

Re: Extend a vg on a cluster need help

I forgot to add the following:

Filesystem kbytes used avail %used Mounted on
/dev/vgdp/lvtest 14221312 12947552 1239012 91% /test

root@host:/etc/cmcluster/TEST # vgdisplay vgdp |egrep -i "Free|PE"
Open LV 1
Max PE per PV 3473
PE Size (Mbytes) 4
Total PE 3472
Alloc PE 3472
Free PE 0

Maybe this helps you help me!
cheesytime
Regular Advisor

Re: Extend a vg on a cluster need help

Help?
sen_ux
Valued Contributor

Re: Extend a vg on a cluster need help

Ivan Krastev
Honored Contributor

Re: Extend a vg on a cluster need help

You don't need to stop the cluster/package for this. Just do the following:
1. extend VG on primary node and file systems
2. export vg map in preview mode at the fist node
3. export on the second node and import it with the map file from the first node.

regards,
ivan
Roopesh Francis_1
Trusted Contributor

Re: Extend a vg on a cluster need help

Andrew,

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

Thanks
Vishu
Trusted Contributor

Re: Extend a vg on a cluster need help

Hi andrewcorebug,

you just need the following procedure to do.

1. pvcreate the new disks
2. vgextend with the new disks
3. lvextend the LV with the new size followed by fsadm.
4. vgexport in preview mode to make a map file.
5. rcp that map file in your secondary node.
6. vgexport that VG in secondary node.
7. create the group file for that VG with the same minor no. which it was having before exporting.
8. vgimport that VG with the map file copied from the primary server.

There you go. All tasks done.
Lijeesh N G_1
Respected Contributor

Re: Extend a vg on a cluster need help

Hi,



Given informations
=====================

New LUN size ==> 13893 MB
Device file ==> /dev/[r]dsk/c8t2d5
Alternate ==> /dev/[r]dsk/c11t2d5
LV to be extended ==> /dev/vgdp/lvtest mounted on /test
LV present size ==> 14221312
extend it to 13000Mb
Online JFS ==> Yes
Max PE/PV ==> 3473
PE Size ==> 4 MB
So, max PV Size ==> 3473 x 4 = 13892MB,so you can add this LUN.

2 Node Cluster.

Procedure to add
===================
For eg,
Node1 - Primary Node
Node2 - Alternate Node

On Node1 - Primary Node do the follwing,
===================================
#pvcreate -f /dev/rdsk/c8t2d5
#vgextend vgdb /dev/dsk/c8t2d5
#vgextend vgdb /dev/dsk/c11t2d5
#vgdisplay -v vgdb <<==verify
#lvextend -L 13000 /dev/vgdb/lvtest
#fsadm -F vxfs -b 13000M /test
#lvdisplay -v /dev/vgdb/lvtest <<==verify
#bdf /test <<==verfify
#vgexport -p -s -m /tmp/vgdb.map vgdb <<< -p means ***preview mode***
#scp /tmp/vgdb.map :/tmp/vgdb.map

On Node2 - Alternate Node do the following
======================================
#ll /dev/vgdb/group <#vgexport vgdb
#mkdir /dev/vgdb
#mknod /dev/vgdb/group c 64
#vgimport -s -m /tmp/vgdb.map vgdb
#strings /etc/lvmtab <
Regards,
LIJEESH N G