1833049 Members
2439 Online
110049 Solutions
New Discussion

Re: logical volume

 
SOLVED
Go to solution
Sajjad Sahir
Honored Contributor

logical volume

society1# lvextend -L 9218 /dev/vg00/lvol8
Warning: rounding up logical volume size to extent boundary at size "9232" MB.
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol8" could not be extended.
Failure possibly caused by strict allocation policy.
14 REPLIES 14
Davis Paul
Valued Contributor

Re: logical volume

Hi sajjad,
You have to increase the volume space first. You have no enough free space to increase the logical volume. Add pv to your vg00.
Davis Paul
Sajjad Sahir
Honored Contributor

Re: logical volume


no I have space in volume

# vgdisplay
--- 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 4384
VGDA 4
PE Size (Mbytes) 16
Total PE 8748
Alloc PE 8017
Free PE 731
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
Jeeshan
Honored Contributor

Re: logical volume

Hi sajjad

The space you calculated in vgdisplay, you have 731 PE available

731X16 = 11696 MB / 2 =5848 MB available. Because your internal disk is mirrored and you got the total disk available in both HDD.

so you can extend upto 5848 MB
a warrior never quits
Davis Paul
Valued Contributor

Re: logical volume

Hi sajjad,
Your max PE per PV is only 4384. So you have to modify your vg characteristics with vgmodify command. Which is your OS version?
Davis
Mridul Shrivastava
Honored Contributor

Re: logical volume

Is this logical volume mirrored ? if yes then you must have those no. of extents on both the disk by which you want to extend the LV.
If no. of PEs are less on one of the disk it will fail.
Time has a wonderful way of weeding out the trivial
Siju Vadakkan
Trusted Contributor

Re: logical volume

provide the following details:

#vgdisplay -v vg00
#more /etc/lvmpvg
#lvdisplay -v /dev/vg00/lvol8
Sajjad Sahir
Honored Contributor

Re: logical volume

version is B.11.23
also it is mirrored
see below,
# vgdisplay -v 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 4384
VGDA 4
PE Size (Mbytes) 16
Total PE 8748
Alloc PE 8017
Free PE 731
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) 1792
Current LE 112
Allocated PE 224
Used PV 2

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 12272
Current LE 767
Allocated PE 1534
Used PV 2

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 3072
Current LE 192
Allocated PE 384
Used PV 2

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 128
Allocated PE 256
Used PV 2

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 64
Allocated PE 128
Used PV 2

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 5312
Current LE 332
Allocated PE 664
Used PV 2

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

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 9216
Current LE 576
Allocated PE 1152
Used PV 2

LV Name /dev/vg00/lvol9
LV Status available/syncd
LV Size (Mbytes) 25600
Current LE 1600
Allocated PE 1600
Used PV 1

LV Name /dev/vg00/u01
LV Status available/syncd
LV Size (Mbytes) 25008
Current LE 1563
Allocated PE 1563
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c0t6d0
PV Status available
Total PE 4374
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c3t6d0
PV Status available
Total PE 4374
Free PE 731
Autoswitch On
Proactive Polling On

Jeeshan
Honored Contributor

Re: logical volume

though it is mirrored you can extend upto the mark as i mentioned earlier.
a warrior never quits
Sajjad Sahir
Honored Contributor

Re: logical volume

# lvdisplay /dev/vg00/lvol8
--- Logical volumes ---
LV Name /dev/vg00/lvol8
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 9216
Current LE 576
Allocated PE 1152
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

this is my current logical volume size i am increasing from 9216 to 9225 only i mean i am increasing 9MB additional
u are telling 5848 MB is possible to increase but i need only 9 Mb
Jeeshan
Honored Contributor

Re: logical volume

if you need 9 MB , why you enter in lvcreate -L 9232?

you must enter lvcreate -L 9 instead 9232.

you entered -L 9232 is 9 GB.
a warrior never quits
Sajjad Sahir
Honored Contributor

Re: logical volume

dear Ahsan
please understand my question

I have currently 9218 MB space ok
I am planning to increase this value to 9225 ok
lvextend -L 9225 /dev/vg00/lvol8
then what is the wrong
this is new value of logical volume
if i want to increase this space i have to adde this space +current one.
Siju Vadakkan
Trusted Contributor
Solution

Re: logical volume


You can not extend this LV , here are the reasons.


1. lvol8 is mirrored across both the disks and There is no free PE on one of the disk.See the underlined disk below. That is the reason ur getting "strict allocation policy error."

Physical volumes ---
PV Name /dev/dsk/c0t6d0
---------------------
PV Status available
Total PE 4374
Free PE 0
----------
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c3t6d0
PV Status available
Total PE 4374
Free PE 731
Autoswitch On
Proactive Polling On

3. U have created "/dev/vg00/lvol9" and /dev/vg00/u01 without mirroring and it is used the available space from both the disks.

4. The only way to extend the lvol8 is to remove the mirror and extend,But it is not adviceble since u will lose alternative disk(one will be without lvol8)
Mridul Shrivastava
Honored Contributor

Re: logical volume

This lvol8 can not be extended since there is not enough space available on both the disk on which this LV is mirrored.

Moreover the disk space has been utilised by the lvol9 and u01, see the below o/p's:

LV Name /dev/vg00/lvol9
LV Status available/syncd
LV Size (Mbytes) 25600
Current LE 1600
Allocated PE 1600
Used PV 1

LV Name /dev/vg00/u01
LV Status available/syncd
LV Size (Mbytes) 25008
Current LE 1563
Allocated PE 1563
Used PV 2

These lvols are not mirrored so considering current scenario, u can not extend it without making some changes in LV or u need to add one more disk to this vg.

May be u can think of relocating the PEs assigned to u01 since it is using PEs from both the disks but to do that as well u have to take the data backup , since that will destroy the data and u have to create newfs and restore the data.
Time has a wonderful way of weeding out the trivial
Sajjad Sahir
Honored Contributor

Re: logical volume

closed