Hi,
I want to increase my harddisk space and receive the following error
# lvextend -l +323 /dev/VolGroup00/LogVol00
Extending logical volume LogVol00 to 48.97 GB
device-mapper: reload ioctl failed: Invalid argument
Failed to suspend LogVol00
Can you help me please?
# fdisk -l
Disk /dev/hda: 54.7 GB, 54759997440 bytes
255 heads, 63 sectors/track, 6657 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 5221 41833260 8e Linux LVM
#pvdisplay
--- Physical volume ---
PV Name /dev/hda2
VG Name VolGroup00
PV Size 50.00 GB / not usable 31.81 MB
Allocatable yes
PE Size (KByte) 32768
Total PE 1599
Free PE 323
Allocated PE 1276
PV UUID OcT323-L3sk-r2dX-2qlC-lNuL-slEj-gJF0Ql
# vgdisplay
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 8
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 49.97 GB
PE Size 32.00 MB
Total PE 1599
Alloc PE / Size 1276 / 39.88 GB
Free PE / Size 323 / 10.09 GB
VG UUID AeMGtt-Ieic-q0JQ-91LC-38Am-HCD5-sO4tle
# lvdisplay
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID FC0PHC-NNNS-ZRTB-HVCx-gGKg-f3vk-5qzbn1
LV Write Access read/write
LV Status available
# open 1
LV Size 38.88 GB
Current LE 1244
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID cnhEpj-deSS-3nPr-lVfE-mzZ4-4dLH-tTqzQR
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 auto
- currently set to 256
Block device 253:1
On 6/2/2011 1:13 PM, Manu wrote:
Hi,
I want to increase my harddisk space and receive the following error
# lvextend -l +323 /dev/VolGroup00/LogVol00
Extending logical volume LogVol00 to 48.97 GB
device-mapper: reload ioctl failed: Invalid argument
Failed to suspend LogVol00
Try: lvextend -L +10G /dev/VolGroup00/LogVol00
upper case L
Looks like you have 10.09GB free.
Have you also unmounted the filesystem on LogVol00?
On Thursday, June 02, 2011 08:34:26 PM Drew wrote:
Have you also unmounted the filesystem on LogVol00?
There is no need to unmount the filesystem when increasing the size of the underlying lv. In fact you can even grow the filesystem inside the lv afterwards without unmounting it (resize2fs).
/Peter