[CentOS] is it possible to resive /var online?

Sun May 2 20:35:01 UTC 2010
Kwan Lowe <kwan.lowe at gmail.com>

On Sun, May 2, 2010 at 3:15 PM, Rudi Ahlers <rudiahlers at gmail.com> wrote:
> Hi all,
>
> Is it possible, safely, to resize /var while a server is running? I urgently
> need to resize a full 2GB /var on a running server which is located at a
> remote location where no one can get to it for 2 days?
>
> The system runs on lvm.

If it's on LVM it's pretty simple:

lvs  to show the current lvs.


lvresize -L +500M /dev/VolGroup00/var_lv
resize2fs /dev/VolGroup00/var_lv

If you're running earlier versions of lvm you may need to use
ex2online instead of resize2fs.