Operating System - HP-UX
1834974 Members
2099 Online
110073 Solutions
New Discussion

increaing lvol in cluster server

 
gany59
Regular Advisor

increaing lvol in cluster server

how to extend the lvol in the cluster configured server, is the vg is already shared in the both the servers.
10 REPLIES 10
Robert-Jan Goossens
Honored Contributor

Re: increaing lvol in cluster server

Benoy Daniel
Trusted Contributor

Re: increaing lvol in cluster server

if you dont need to add any more luns, just extend as normal. Nothing else to be done. If you add any luns to extend the file system, need to import the VG into other node.
nightwich
Valued Contributor

Re: increaing lvol in cluster server

Hi Gany


If this is cluster, then you have a shared vg.

You need to do a vgdisplay -v volume_group_name.

If you have any Free PE ex:

Free PE 1485


The only think you need to do is a:

lvextend -L new_size in megas /dev/vg_name/lvol_name


Then you need to resize the FS.

IF you have onlineJFS

Type:

fsadm -F vxfs -b "size"M /mount_point.

If you have any problem reply.

Regards...
Redhat
Trusted Contributor

Re: increaing lvol in cluster server

if you have space in vg just extend the lvol but if you need to add new LUN to your VG then once you have added the LUN in vg and extended the lvol , you need to export the new vg info to other cluster node.

gany59
Regular Advisor

Re: increaing lvol in cluster server

hello nig,

If the space is not there, then we need to add the disk, i need to know the thing in that part
singh sanjeev
Trusted Contributor

Re: increaing lvol in cluster server

if space is not in VG then you have to follow below steps:

-pvcreate on new disk
-vgextend vgname #add to volume group
-lvextend -L lvname #extend the logical voulume
fsadm -b M
-vgexport -psv -m /tmp/vgname.mapfile vgname #create a mapfile which should be then transfer to alternate node
on another node
-ll /dev/group/group #to see the major/minor no:
-mkdir /dev/vgname
-mknod /dev/vgname/group c
-vgimport -sv -m /tmp/vgname.mapfile


all the best...
Sanjeev Singh
Kenan Erdey
Honored Contributor

Re: increaing lvol in cluster server

Hi,

if you want to change volume group configuration in active/active cluster you have two choices. if you have pathces for SNOR capability, you can add disk without bringing down the application. take a look at the document:

http://docs.hp.com/en/7389/LVM_SNOR_whitepaper.pdf

if you can't use SNOR, you must halt the cluster, deactivate volume groups. and follow the other prosedure.
Computers have lots of memory but no imagination
Kanagaraj
Regular Advisor

Re: increaing lvol in cluster server

Gany59,

Add new disk on node1
pvcreate
vgextend /dev/vgname
lvextend -L
lvdiskplay
fsadm â b
vxexport â p â s -v â m mapfile vgname
copy the map file to node2
take copy of vgconfiig
cp â p /etc/lvmconf/
Remove vg on node2 for importvg from mapfile.
vgexport /dev/vgname (vgremoved)
mkdir /dev/vgname
mknode
vgimport -v â m vgname
strings /etc/lvmtab ï   check all disks added including new disk also.
Check available lvâ s ï   ll /dev/vgname/*

I hope above steps will help you.
best of luck.
Kanagaraj
Regular Advisor

Re: increaing lvol in cluster server

Gany59,

Sorry some juck on above reply.

See the steps to extend an shared LV on both nodes.

add new disk on node1
vgextend /dev/vgname
lvextend -L
lvdiskplay
fsadm -B
vgexport -p -s -v -m vgname
***copy the map file from node1 to node2
take one configuration copy of that VG
cp -p /etc/lvmconf/vgname
remove vg on node2
vgexport /dev/vgname(for vgimport)
mkdir /dev/
mknode /dev/vgname/group c 64 0x??0000
vgimport -v -m vgname

strings /etc/lvmtab -->check all disks are import including with new disk under same vgname.

check all available lv's on that vg--> ll /dev/vgname/*

I hope above steps will help you.
Kanagaraj
Regular Advisor

Re: increaing lvol in cluster server

above step
fsadm -B
correct it
fsadm -b