extend filesystem

 
SOLVED
Go to solution
grace white
Advisor

extend filesystem

Hi

I have added a new disk to current mirror but am unable to extend the volume group as error comes back :

lvextend -L 18384 /dev/vg01/lvol12
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg01/lvol12" could not be extended.

Out put from vgdisplay is :

vgdisplay -v vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 3
Act PV 3
Max PE per PV 4341
VGDA 6
PE Size (Mbytes) 4
Total PE 13021
Alloc PE 8680
Free PE 4341
Total PVG 2
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg01/lvol12
LV Status available/syncd
LV Size (Mbytes) 17360
Current LE 4340
Allocated PE 8680
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c5t9d0
PV Status available
Total PE 4340
Free PE 0
Autoswitch On

PV Name /dev/dsk/c7t9d0
PV Status available
Total PE 4340
Free PE 0
Autoswitch On

PV Name /dev/dsk/c5t10d0
PV Status available
Total PE 4341
Free PE 4341
Autoswitch On


--- Physical volume groups ---
PVG Name pv0
PV Name /dev/dsk/c5t9d0

PVG Name pv1
PV Name /dev/dsk/c7t9d0

Can anyone advise me on this.

Thanks
Zean
UNIX/ORACLE DBA
5 REPLIES 5
Jeff Schussele
Honored Contributor
Solution

Re: extend filesystem

Hi Zean,

What is the current LV config now?
Post an lvdisplay output of all the LVs in this VG.
Because if this is already a 2 part mirror for ALL the LVs in this VG, then all you could do with that new PV is make a 3 part mirror. BUT, if you have no mirrors currently or have some small LVs or have an LV that occupies less than half the current VG, you could mirror THAT.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
grace white
Advisor

Re: extend filesystem

Hi

output from lvdisplay


--- Logical volumes ---
LV Name /dev/vg01/lvol12
VG Name /dev/vg01
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 17360
Current LE 4340
Allocated PE 8680
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation PVG-strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c5t9d0 4340 4340
/dev/dsk/c7t9d0 4340 4340

Thanks
Zean
UNIX/ORACLE DBA
Tom Geudens
Honored Contributor

Re: extend filesystem

Hi Zean,
I see two possible causes for your problem.
1) Note the following
From vgdisplay output ...
--- Physical volume groups ---
PVG Name pv0
PV Name /dev/dsk/c5t9d0

PVG Name pv1
PV Name /dev/dsk/c7t9d0

You did not add the new disk in either one of the Physical volume groups (this is option -g of the vgextend command). Since your logical volume has the "Allocation PVG-strict" this is not wise.

2) You should have added 2 disks, 1 in each Physical volume group. Remember that this logical volume is mirrored. You cannot allocate space for just 1 of the mirrors and "forget" about the other.

How would I have done this ?
1) Drop the mirror (lvreduce -m 0)
2) vgextend the volumegroup with 2 disks, one in each Physical volume group (pv0, pv1).
3) lvextend the logical volume
4) Recreate the mirror (lvextend -m 1)

Hope this helps,
Tom Geudens
A life ? Cool ! Where can I download one of those from ?
Sunil Sharma_1
Honored Contributor

Re: extend filesystem

Hi,

I think you can not do this because your lvol12 is mirrored and for extending a mirrored volume you require free space in 2 different disks becoz you have strict allocation policy.

Sunil

*** Dream as if you'll live forever. Live as if you'll die today ***
Todd McDaniel_1
Honored Contributor

Re: extend filesystem

Grace/Zean...

The answer is right in your VG display output.... you dont have 2 disks available to complete the mirror that you setup with the first 2 disks... c5t9d0 and c7t9d0...

You only have 3 disks... 2 of which are 100% allocated at present... and 1 that is unused... Simply put, You cant lvextend a mirrored Lvol with only 1 available disk present in the VG...

You need to add another available disk of the identical size to the VG...


Without an additional disk, The only way to lvextend the LVOL is to break the mirror and then lvextend it with /dev/dsk/c5t10d0 the disk but you will not be able to mirror it then... and must get another disk if you were to re-mirror it.
Unix, the other white meat.