cancel
Showing results for 
Search instead for 
Did you mean: 

FS extension

 
SOLVED
Go to solution
kgpenator
Advisor

Re: FS extension

xxxxx# lvdisplay /dev/vg04bwq/lv1
--- Logical volumes ---
LV Name /dev/vg04bwq/lv1
VG Name /dev/vg04bwq
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 677264
Current LE 42329
Allocated PE 42329
Stripes 0
Stripe Size (Kbytes) 0
Bad block NONE
Allocation PVG-strict/distributed
IO Timeout (Seconds) default

 

xxxxxx# vf gdisplay /dev/vg04bwq
--- Volume groups ---
VG Name /dev/vg04bwq
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 4
Open LV 4
Max PV 250
Cur PV 176
Act PV 176
Max PE per PV 1016
VGDA 352
PE Size (Mbytes) 16
Total PE 178816
Alloc PE 169316
Free PE 9500
Total PVG 1
Total Spare PVs 0
Total Spare PVs in use 0

 

xxxxx# lvextend -L 748944 /dev/vg04bwq/lv1
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg04bwq/lv1" could not be extended.

 

 

I have face this error.Due to PVG restriction policy.Luckily it was the free volume,so i did 


xxxxx# lvreduce -L 677264 /dev/vg04bwq/lv1
When a logical volume is reduced useful data might get lost;
do you really want the command to proceed (y/n) : y
Logical volume "/dev/vg04bwq/lv1" has been successfully reduced.

xxxxx# vgreduce  -l /dev/vg04bwq /dev/dsk/c46t6d1 /dev/dsk/c47t6d1
Device file path "/dev/dsk/c46t6d1" is an primary link.
Removing primary link and switching to an alternate link.
Device file path "/dev/dsk/c47t6d1" is an alternate path.
Volume group "/dev/vg04bwq" has been successfully reduced.
Volume Group configuration for /dev/vg04bwq has been saved in /etc/lvmconf/vg04bwq.conf

xxxxxx#vgextend -g pvg _vg04bwq_ /dev/vg04bwq /dev/dsk/c46t6d1 /dev/dsk/c47t6d1

vgextend: Warning: Max_PE_per_PV for the volume group (1016) too small for this PV (1049).
Using only 1016 PEs from this physical volume.
Volume group "/dev/vg04bwq" has been successfully extended.
Physical volume group "pvg_vg04bwq_" has been successfully extended.
Volume Group configuration for /dev/vg04bwq has been saved in /etc/lvmconf/vg04bwq.conf

 

xxxxxx# VG  vgdisplay /dev/vg04bwq
--- Volume groups ---
VG Name /dev/vg04bwq
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 4
Open LV 4
Max PV 250
Cur PV 188
Act PV 188
Max PE per PV 1016
VGDA 376
PE Size (Mbytes) 16
Total PE 191008
Alloc PE 169316
Free PE 21692
Total PVG 2
Total Spare PVs 0
Total Spare PVs in use 0

 

xxxxx# lvextend -L 747264 /dev/vg04bwq/lv1
Logical volume "/dev/vg04bwq/lv1" has been successfully extended.
Volume Group configuration for /dev/vg04bwq has been saved in /etc/lvmconf/vg04bwq.conf

 

xxxxx# fsadm -F vxfs -b 747264M /oracle/BWQ/sapdata1
vxfs fsadm: /dev/vg04bwq/rlv1 is currently 693518336 sectors - size will be increased

 

 

It worked 

kgpenator
Advisor

Re: FS extension

I didn't adjusted PVG file?Could you post how to do on that way?