On Sun, May 2, 2010 at 3:15 PM, Rudi Ahlers rudiahlers@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.