I tried lvextend here's the error message.
[root@localhost /]# lvextend -L+200G /dev/VolGroup_ID_17452/LogVol4
Extending logical volume LogVol4 to 200.50 GB
Insufficient free space: 6400 extents needed, but only 5772 available
what am I going to do next?
quote from no3x3c
Quote:
If you don't have any space left on your volume group, create new physics volume, add it to your vol group and then extend your logical volume
pvcreate /path/to/new/dev
vgextend lvname /path/to/new/dev
|
kindly fill this up according to my need. thanks
the following are my HDD partitions information:
[root@localhost etc]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup_ID_17452-LogVol1
1008M 205M 752M 22% /
/dev/sda3 190M 15M 166M 8% /boot
none 2.0G 0 2.0G 0% /dev/shm
/dev/mapper/VolGroup_ID_17452-LogVol2
496M 15M 457M 4% /tmp
/dev/mapper/VolGroup_ID_17452-LogVol5
154G 3.1G 143G 3% /usr
/dev/mapper/VolGroup_ID_17452-LogVol4
496M 468M 2.5M 100% /var ------> I want to increase this Sir to 300G.
/dev/mapper/VolGroup_ID_17452-LogVolHome
123G 4.0G 113G 4% /home
[root@localhost etc]# fdisk -l
Disk /dev/sda: 499.9 GB, 499999834112 bytes
255 heads, 63 sectors/track, 60788 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 5 40131 de Dell Utility
/dev/sda2 6 16305 130929750 83 Linux
/dev/sda3 * 16306 16330 200812+ 83 Linux
/dev/sda4 16331 60788 357108885 5 Extended
/dev/sda5 16331 60788 357108853+ 8e Linux LVM
[root@localhost etc]#
[root@localhost etc]# vgscan -v
Wiping cache of LVM-capable devices
Wiping internal VG cache
Reading all physical volumes. This may take a while...
Finding all volume groups
Finding volume group "VolGroup_ID_17452"
Found volume group "VolGroup_ID_17452" using metadata type lvm2
[root@localhost etc]# vgscan
Reading all physical volumes. This may take a while...
Found volume group "VolGroup_ID_17452" using metadata type lvm2
[root@localhost etc]#
[root@localhost etc]# vgdisplay -v
Finding all volume groups
Finding volume group "VolGroup_ID_17452"
--- Volume group ---
VG Name VolGroup_ID_17452
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 12
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 6
Open LV 6
Max PV 0
Cur PV 2
Act PV 2
VG Size 465.41 GB
PE Size 32.00 MB
Total PE 14893
Alloc PE / Size 9121 / 285.03 GB
Free PE / Size 5772 / 180.38 GB
VG UUID eHI1zb-ETtp-35RA-fNJa-4r62-TITX-vEHBE0
--- Logical volume ---
LV Name /dev/VolGroup_ID_17452/LogVol1
VG Name VolGroup_ID_17452
LV UUID 4ajEIB-yMzl-om2y-sHGy-hHl3-plaK-fXoZke
LV Write Access read/write
LV Status available
# open 1
LV Size 1.00 GB
Current LE 32
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:0
--- Logical volume ---
LV Name /dev/VolGroup_ID_17452/LogVol2
VG Name VolGroup_ID_17452
LV UUID yUm11O-dakR-jVjZ-fk8P-I0Ld-DFvd-mw9UY5
LV Write Access read/write
LV Status available
# open 1
LV Size 512.00 MB
Current LE 16
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:1
--- Logical volume ---
LV Name /dev/VolGroup_ID_17452/LogVol5
VG Name VolGroup_ID_17452
LV UUID 7KyTLD-t1in-ujxH-oXIo-bC1Q-5vQh-4hqUiC
LV Write Access read/write
LV Status available
# open 1
LV Size 156.19 GB
Current LE 4998
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:2
--- Logical volume ---
LV Name /dev/VolGroup_ID_17452/LogVol4
VG Name VolGroup_ID_17452
LV UUID 6wC20r-qVW5-cDK6-p6Xb-dSsw-e777-BMVPKa
LV Write Access read/write
LV Status available
# open 1
LV Size 512.00 MB
Current LE 16
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:3
--- Logical volume ---
LV Name /dev/VolGroup_ID_17452/LogVol0
VG Name VolGroup_ID_17452
LV UUID kXJe8T-uVVJ-CV38-bq0J-VU8x-spKH-pLOsv1
LV Write Access read/write
LV Status available
# open 1
LV Size 2.00 GB
Current LE 64
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:4
--- Logical volume ---
LV Name /dev/VolGroup_ID_17452/LogVolHome
VG Name VolGroup_ID_17452
LV UUID yJIGtt-4tlk-4ntK-aWIm-mhKL-cvL8-M2QumE
LV Write Access read/write
LV Status available
# open 1
LV Size 124.84 GB
Current LE 3995
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:5
--- Physical volumes ---
PV Name /dev/sda5
PV UUID 1v0ScE-7ZOe-o3Ef-PxJL-8hA0-LzA0-RHdsmU
PV Status allocatable
Total PE / Free PE 10898 / 1777
PV Name /dev/sda2
PV UUID a2gnZa-TFV0-sQIA-Ukvt-d3ra-TIWE-jPTCzs
PV Status allocatable
Total PE / Free PE 3995 / 3995