Operating System - HP-UX
1833332 Members
2944 Online
110051 Solutions
New Discussion

i want to extend a logical volume.

 
SOLVED
Go to solution
AbhilashPaul
Advisor

i want to extend a logical volume.

Hi,
I have a hpux v2 cluster node & some packages are running ,In that box one logical volume doesn't have enough space,So i have to extend the same.In the VG doesn't have any free space , so i have to add one more disk from EVA.And this logical volume is mirrored.

I want to do this activity without downtime.
pls send me the procedures to do this activity.
Pls do some help ...
thanks..
5 REPLIES 5
Suraj K Sankari
Honored Contributor
Solution

Re: i want to extend a logical volume.

Hi,

Extend the volume group with a new disk /dev/dsk/cxtxdx

At Node1 do this activity

#pvcreate -f /dev/rdsk/cxtxdx
#vgextend /dev/dsk/cxtxdx
#vgdisplay -v

Extend existing logical volume

#lvextend -L
#lvdisplay -v

Export vg00 configuration from Node1 to Node2.

#vgexport -p -v -s -m
#scp Node2:/tmp/

At Node2 do this
#ll /dev//group <<==Note down the minor number
#mkdir /dev/
#mknod /dev//group c 64
#vgimport -v -s /tmp/

Suraj
AbhilashPaul
Advisor

Re: i want to extend a logical volume.

Thans Suraj,
Can i do it without down time ?
Is it affect the packages running in the node . ?
Kapil Jha
Honored Contributor

Re: i want to extend a logical volume.

Hi
process is
Node1
pvcreate
vgextend
lvextend

create map file
vgexport -p -v -s -m mapfile vg_name
scp mapfile to node 2

and on node 2
import the VG.

thats all, you don have to edit any configuration file as you are not adding anything related to cluster.

Kapil+
I am in this small bowl, I wane see the real world......
Kapil Jha
Honored Contributor

Re: i want to extend a logical volume.

and it can be done...online...
no DT.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Ivan Krastev
Honored Contributor

Re: i want to extend a logical volume.

Be careful when extending mirrored volumes.
Do you have PVG groups - how the mirror is implemented?

Please provide some information:
vgdisplay -v VGNAME


regards,
ivan