On Sun, May 2, 2010 at 11:13 PM, Kwan Lowe <email@example.com> wrote:
On Sun, May 2, 2010 at 5:01 PM, Rudi Ahlers <firstname.lastname@example.org> wrote:
> heh, there's plenty space left on the drive:
> [root@zaxen02 ~]# pvscan
> * PV /dev/md1** VG LVM01** lvm2 [232.69 GB / 141.69 GB free]
> * Total: 1 [232.69 GB] / in use: 1 [232.69 GB] / in no VG: 0 [0** ]
> As far as I know, one needs to unmount a volume in order to resize it, but
> /var can't be unmounted.
With LVM you don't need to unmount /var. You can do it on a running
system with the following caveats:
1) You'll need some free space on /var. I.e., not extra space in the
volume group, but a little extra space in the /var partition itself.
In other words, don't try to resize a completely full /var partition.
2) There is a possibility that you'll need to resize some metadata. If
so, this has to be done offline via a boot disk for /var.
That's exactly as I thought
For now, a safer way around this, I moved the /var/lib/xend/saved folder to it's own LVM volume, and re-mounted it on /var/lib/xend.
So now /var has 1.4GB free space from 2GB
Technical Blog: http://Blog.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532
CentOS mailing list