javilmer
asked on
/var full, how to use lvextend ?
Hello,
We run Postfix and our /var is full :
/var Linux Native Filesystem (ext3) LVM VG sysvg, LV var 100%
We tried the lvextend command with something like :
lvextend -L+1G /var
but we get the error message :
"/var": Invalid path for Logical Volume
Any Idea ?
We run Postfix and our /var is full :
/var Linux Native Filesystem (ext3) LVM VG sysvg, LV var 100%
We tried the lvextend command with something like :
lvextend -L+1G /var
but we get the error message :
"/var": Invalid path for Logical Volume
Any Idea ?
ASKER
I got an error message :
Volume group "vg01" not found
Volume group vg01 doesn't exist
??
Volume group "vg01" not found
Volume group vg01 doesn't exist
??
first identify your volume group
Please post a copy of the following: 'lvscan' & 'vgdisplay'
ASKER
> lvscan
ACTIVE '/dev/sysvg/root' [3.00 GB] inherit
ACTIVE '/dev/sysvg/var' [4.00 GB] inherit
ACTIVE '/dev/sysvg/data' [14.88 GB] inherit
ACTIVE '/dev/sysvg/usr' [4.00 GB] inherit
ACTIVE '/dev/sysvg/swap' [2.00 GB] inherit
> vgdisplay
--- Volume group ---
VG Name sysvg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 6
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 5
Open LV 5
Max PV 0
Cur PV 1
Act PV 1
VG Size 33.78 GB
PE Size 32.00 MB
Total PE 1081
Alloc PE / Size 892 / 27.88 GB
Free PE / Size 189 / 5.91 GB
VG UUID not1mN-b5dm-b4nB-4x4g-M5DJ -fTsy-T2u1 rh
ACTIVE '/dev/sysvg/root' [3.00 GB] inherit
ACTIVE '/dev/sysvg/var' [4.00 GB] inherit
ACTIVE '/dev/sysvg/data' [14.88 GB] inherit
ACTIVE '/dev/sysvg/usr' [4.00 GB] inherit
ACTIVE '/dev/sysvg/swap' [2.00 GB] inherit
> vgdisplay
--- Volume group ---
VG Name sysvg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 6
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 5
Open LV 5
Max PV 0
Cur PV 1
Act PV 1
VG Size 33.78 GB
PE Size 32.00 MB
Total PE 1081
Alloc PE / Size 892 / 27.88 GB
Free PE / Size 189 / 5.91 GB
VG UUID not1mN-b5dm-b4nB-4x4g-M5DJ
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
OK, I'll try, no danger to loose some datas ?
Nope. 'lvextend' only extends the logical volume limits.
However, 'lvreduce' can (and usually does) corrupt data as it is used to reduce the logical volume limits.
However, 'lvreduce' can (and usually does) corrupt data as it is used to reduce the logical volume limits.
ASKER
Thank you, great help, and happy new year !!!
/dev/vg01/lvol10 is your physical volume