Re: is it possible to resive /var online?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sun, May 2, 2010 at 3:15 PM, Rudi Ahlers <rudiahlers@xxxxxxxxx> 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.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux