Operating System - HP-UX
1833016 Members
2813 Online
110048 Solutions
New Discussion

Re: extending the mirror logical volume

 
SOLVED
Go to solution
JMS G
Advisor

extending the mirror logical volume

Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 20512768 907832 19451808 4% /
/dev/vg00/lvol1 505392 62488 392360 14% /stand
/dev/vg00/lvol9 20480000 395312 19928104 2% /var
/dev/vg00/lvol8 5144576 920776 4190840 18% /usr
/dev/vg00/lvol7 10256384 1053568 9131144 10% /tmp
/dev/vg00/lvol6 12288000 1944304 10262944 16% /opt
/dev/vg00/lvol5 25624576 5122184 20342280 20% /home

/dev/vgcare/lvolhms_idx 10240000 5148030 4932854 51% /hms_idx

/dev/vgcare/lvolhms 25600000 2977288 22269264 12% /hms

/dev/vgcare/lvolerp_idx 10240000 4099438 5948676 41% /erp_idx

/dev/vgcare/lvolerp 10240000 4099438 5948676 41% /erp

/dev/vgcare/lvoldic_idx 4096000 3586136 478004 88% /dic_idx

/dev/vgcare/lvoldic 4096000 3586136 478004 88% /dic

/dev/vg00/lvol4 20480000 19966184 513596 90% /Oracle



Class I H/W Path Driver S/W State H/W Type Description
=========================================================================
disk 0 0/0/3/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-N
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 146 GST3146707LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0 - used by vg00 comment by james
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 146 GST3146707LC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0 - used by vgcare comment by james
disk 3 0/4/2/0.8.0 sdisk CLAIMED DEVICE HP 146 GST3146707LC
/dev/dsk/c6t8d0 /dev/rdsk/c6t8d0 - used by vg00 comment by james
disk 4 0/4/2/0.10.0 sdisk CLAIMED DEVICE HP 146 GST3146707LC
/dev/dsk/c6t10d0 /dev/rdsk/c6t10d0 - use by vgcare comment by james

uname output
HP-UX hayatdb B.11.11 U 9000/800 2841999068 unlimited-user license



VG00 Display
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 9
Open LV 9
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4384
VGDA 4
PE Size (Mbytes) 32
Total PE 8748
Alloc PE 7550
Free PE 1198
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 512
Current LE 16
Allocated PE 32
Used PV 2

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 8192
Current LE 256
Allocated PE 512
Used PV 2

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 20032
Current LE 626
Allocated PE 1252
Used PV 2

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 20000
Current LE 625
Allocated PE 1250
Used PV 2

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 25024
Current LE 782
Allocated PE 1564
Used PV 2

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 12000
Current LE 375
Allocated PE 750
Used PV 2

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 10016
Current LE 313
Allocated PE 626
Used PV 2

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 5024
Current LE 157
Allocated PE 314
Used PV 2

LV Name /dev/vg00/lvol9
LV Status available/syncd
LV Size (Mbytes) 20000
Current LE 625
Allocated PE 1250
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c2t0d0
PV Status available
Total PE 4374
Free PE 599
Autoswitch On

PV Name /dev/dsk/c6t8d0
PV Status available
Total PE 4374
Free PE 599
Autoswitch On


/VGcare display
--- Volume groups ---
VG Name /dev/vgcare
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 6
Open LV 6
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 17501
VGDA 4
PE Size (Mbytes) 8
Total PE 34998
Alloc PE 15750
Free PE 19248
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vgcare/lvolhms
LV Status available/syncd
LV Size (Mbytes) 25000
Current LE 3125
Allocated PE 6250
Used PV 2

LV Name /dev/vgcare/lvolhms_idx
LV Status available/syncd
LV Size (Mbytes) 10000
Current LE 1250
Allocated PE 2500
Used PV 2

LV Name /dev/vgcare/lvolerp
LV Status available/syncd
LV Size (Mbytes) 10000
Current LE 1250
Allocated PE 2500
Used PV 2

LV Name /dev/vgcare/lvolerp_idx
LV Status available/syncd
LV Size (Mbytes) 10000
Current LE 1250
Allocated PE 2500
Used PV 2

LV Name /dev/vgcare/lvoldic
LV Status available/syncd
LV Size (Mbytes) 4000
Current LE 500
Allocated PE 1000
Used PV 2

LV Name /dev/vgcare/lvoldic_idx
LV Status available/syncd
LV Size (Mbytes) 4000
Current LE 500
Allocated PE 1000
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c2t1d0
PV Status available
Total PE 17499
Free PE 9624
Autoswitch On

PV Name /dev/dsk/c6t10d0
PV Status available
Total PE 17499
Free PE 9624
Autoswitch On


the data above is my actual problem in my customer. i want to ask help how can i extend my logical volume in mirror. im using hp-ux 11.11

8 REPLIES 8
Johnson Punniyalingam
Honored Contributor

Re: extending the mirror logical volume

>>>the data above is my actual problem in my customer.<<<

Above I ' am unable to see problem, above consider outputs of (file system , vgdisplay )

>>> i want to ask help how can i extend my logical volume in mirror. im using hp-ux 11.11<<<

I want ask you .? which file system / Logical volume you want to extend ..? hope you can help
Problems are common to all, but attitude makes the difference
JMS G
Advisor

Re: extending the mirror logical volume

i want to extend the following volumes

dev/vgcare/lvoldic_idx 4096000 3586136 478004 88% /dic_idx

/dev/vgcare/lvoldic 4096000 3586136 478004 88% /dic

/dev/vg00/lvol4 20480000 19966184 513596 90% /Oracle

Johnson Punniyalingam
Honored Contributor
Solution

Re: extending the mirror logical volume

>>>dev/vgcare/lvoldic_idx 4096000 3586136 478004 88% /dic_idx

>>>/dev/vgcare/lvoldic 4096000 3586136 478004 88% /dic

Above Logical volume exist under (VG = vgcare free space left in the volume group = 150 GB)

If I would consider "you have Online JFS" purpose of Online jfs you can extend the FS /LV on fly with out unmounting and no downtime required.
if you d'not have you need to unmount,lvextend,extenfs,mount, conserponding logical volumes.

#swlist -l product |grep -i JFS -> (check wether online JFS) Installed

# lvextend -L /dev/vgcare/lvoldic_idx
# fsadm -F vxfs -b M /dic_idx

(if d'not have Online jfs, stop all you application & Database ..etc..)

# unmount /File_system_name
# lvextend -L /dev/vgcare/lvoldic_idx
# extendfs -F vxfs /dev/vg00/rlvoldic_idx
# mount /dev/vgcare/lvoldic_idx /dic_idx



>>>>>/dev/vg00/lvol4 20480000 19966184 513596 90% /Oracle <<<<<<

here also procedure same as above mentioned, if you have online jfs you extendfs on fly, if not you need (down Oracle DB & application) and proceed to lvextend file system


Above Logical volume exist under (VG = vg00 free space left in the volume group = 37 GB)

if satisfied with answers. consider assign points , and close the thread
Problems are common to all, but attitude makes the difference
fizan
Super Advisor

Re: extending the mirror logical volume

hi,

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=861970

check this thread you will get an idea.

Thanks
Fizan
JMS G
Advisor

Re: extending the mirror logical volume

hi johnson, can u please check if this is correct.

/dev/vgcare/lvoldic_idx 4096000 3586136 478004 88% /dic_idx

umount /dic_idx
1. lvextend -L 20000 /dev/vgcare/lvoldic_idx
extendfs -F vxfs /dev/vgcare/rlvoldic_idx
mount /lvoldic_idx

umount /dic
2. lvextend -L 20000 /dev/vgcare/lvoldic
extendfs -F vxfs /dev/vgcare/rlvoldic
mount /dic

/dev/vg00/lvol4 20480000 19966184 513596 90% /Oracle

3. lvextend -L 19000 /dev/vg00/lvol4

extendfs -F vxfs /dev/vg00/rlvol4

mount /oracle

i need also to extend the volume for my /oracle
Johnson Punniyalingam
Honored Contributor

Re: extending the mirror logical volume

James Gulla>> u please also let know how much space you want to extend ..? is it about to (add by another 16GB space for ..?

/dev/vgcare/lvoldic_idx
/dev/vgcare/lvoldic


LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 20000

>>>>3. lvextend -L 19000 /dev/vg00/lvol4<<

you already have current (20GB) for /oracle..? why do need to extend with less size ..?

Problems are common to all, but attitude makes the difference
JMS G
Advisor

Re: extending the mirror logical volume

i want to extend my /oracle up to 20 GB if possible in the same vg00
and extend my /lvoldic_idx and /lvoldic up to 20GB each if posible in the same vgcare group. can u please help me the exact command to apply this. thank you
Johnson Punniyalingam
Honored Contributor

Re: extending the mirror logical volume

>>>i want to extend my /oracle up to 20 GB if possible in the same vg00<<

means you want to add another (20GB) ..? if yes

# lvextend -L 40960 /dev/vg00/lvol4

# extendfs -F vxfs /dev/vg00/rlvol4

>>and extend my /lvoldic_idx and /lvoldic up to 20GB each if posible in the same vgcare group. can u please help me the exact command to apply this<<<


# lvextend -L 20480 /dev/vgcare/l/voldic_idx
# extendfs -F vxfs /dev/vgcare/rlvoldic_idx

# lvextend -L 20480 /dev/vgcare/lvoldi
# extendfs -F vxfs /dev/vgcare/rlvoldi


# mount -a
(will help to mount all the file system)

>>can u please help me<<

You can also help me to understand execution of commands by checking (man pages)

man lvextend
man extendfs
(Good examples are given)
Problems are common to all, but attitude makes the difference