Operating System - HP-UX
1748177 Members
4331 Online
108758 Solutions
New Discussion юеВ

How to extend stripped LV?(not add disks)

 
SOLVED
Go to solution
Ryan Gu
Frequent Advisor

How to extend stripped LV?(not add disks)

When I extend a stripped lv,a error message is returned.
How can I do to extend a stripped lv? I have no expirence on it.

For some reason, I must to extend /opt directory and it's a stripped lv.

The information of vg, lv, and my test result is below here.

# vgdisplay vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 10
Open LV 10
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4350
VGDA 4
PE Size (Mbytes) 8
Total PE 8680
Alloc PE 6051
Free PE 2629
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

# vgdisplay -v vg00 | grep dsk
PV Name /dev/dsk/c2t2d0
PV Name /dev/dsk/c1t2d0
#
#
# lvcreate -L 104 -n ceshi -i 2 -I 64 /dev/vg00
Warning: rounding up logical volume size to extent boundary at size "112" MB for striping.
Logical volume "/dev/vg00/ceshi" has been successfully created with
character device "/dev/vg00/rceshi".
lvcreate: Not enough free physical extents available.
Logical volume "/dev/vg00/ceshi" could not be extended.
lvcreate: Couldn't retrieve the list of the physical volumes
belonging to volume group "/dev/vg00".
Run the "lvextend" command to create space on the Logical Volume.
#
# lvdisplay /dev/vg00/ceshi
--- Logical volumes ---
LV Name /dev/vg00/ceshi
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule striped
LV Size (Mbytes) 0
Current LE 0
Allocated PE 0
Stripes 2
Stripe Size (Kbytes) 64
Bad block on
Allocation strict
IO Timeout (Seconds) default

#
# lvextend -L 200 /dev/vg00/ceshi
Warning: rounding up logical volume size to extent boundary at size "208" MB for striping.
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/ceshi" could not be extended.
lvextend: Couldn't retrieve the list of the physical volumes
belonging to volume group "/dev/vg00".
Failure possibly caused by strict allocation policy
#
Ryan Gu
5 REPLIES 5
melvyn burnard
Honored Contributor
Solution

Re: How to extend stripped LV?(not add disks)

You need to check that there are free extents on BOTH disks
use pvdisplay to verify this.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Ryan Gu
Frequent Advisor

Re: How to extend stripped LV?(not add disks)

Could I understand free extend on pv means the free PE of that pv?

And the vgdisplay command shows the vg00 has about 20GB free.
Ryan Gu
Devender Khatana
Honored Contributor

Re: How to extend stripped LV?(not add disks)

Hi,

When you are creating a LVOL of 208 MB across two PV's in strict stripping then both of your PV's should have atleast 104MB i.e. 13PE's free. Confirm it from complete output of "vgdisplay -v /dev/vg00"

If any one has not got yet then either create file system without stripping or create it with max size equal to double then the free space on one disk where the free space is less.

HTH,
Devender
Impossible itself mentions "I m possible"
Ryan Gu
Frequent Advisor

Re: How to extend stripped LV?(not add disks)

ok,thank you.

I will try it.
Ryan Gu
Ryan Gu
Frequent Advisor

Re: How to extend stripped LV?(not add disks)

Thank you for your replay.

I checked the pv(s) by 'pvdisplay -v' and I found that one disk have no free space. It's why I got that error message.
Ryan Gu