Link to home
Start Free TrialLog in
Avatar of javilmer
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 ?
Avatar of Felipe Souza
Felipe Souza
Flag of Brazil image

lvextend -L +1024 /dev/vg01/lvol10 /var

/dev/vg01/lvol10 is your physical volume
Avatar of javilmer
javilmer

ASKER

I got an error message :

Volume group "vg01" not found
  Volume group vg01 doesn't exist

??
first identify your volume group
Avatar of Michael Worsham
Please post a copy of the following: 'lvscan' & 'vgdisplay'

> 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-T2u1rh


ASKER CERTIFIED SOLUTION
Avatar of Michael Worsham
Michael Worsham
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Thank you, great help, and happy new year !!!