Hi. I want to make a snapshot from a logical volume and noticed that there must be enough free disk space in the volume group. Actually there is no free disk space left. How do i shrink online /var without losing any data or restore from backup? I do not have physical access to the server. Specs: Dell PE SC1430 with a 5/i RAID Controller one RAID 1 array from the Dell RAID controller 2 partitons (boot and LVM) 1 VG 3 LV (swap, /var (/dev/VolGroup00/LogVol02) and / formatted with ext3) /dev/mapper/VolGroup00-LogVol02 211G 39G 162G 20% /var Thank you in advance. Thomas Antony
On Tue, Sep 04, 2007 at 12:40:24PM +0200, Thomas Antony wrote:> Hi. > > I want to make a snapshot from a logical volume and noticed that there must > be enough free disk space in the volume group. Actually there is no free > disk space left. > How do i shrink online /var without losing any data or restore from backup?You can't shrink ext2/ext3 filesystems online. You'll have to schedule a downtime. Another solution is to remove and use a file for swap (swapoff ... && lvremove ...), or reduce it (swapoff ... && lvreduce ... && mkswap && swapon). -- lfr 0/0 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20070904/e1fb9035/attachment.sig>
Luciano Rocha schrieb:> On Tue, Sep 04, 2007 at 12:40:24PM +0200, Thomas Antony wrote: >> Hi. >> >> I want to make a snapshot from a logical volume and noticed that there must >> be enough free disk space in the volume group. Actually there is no free >> disk space left. >> How do i shrink online /var without losing any data or restore from backup? > > You can't shrink ext2/ext3 filesystems online. You'll have to schedule a > downtime. > > Another solution is to remove and use a file for swap (swapoff ... && > lvremove ...), or reduce it (swapoff ... && lvreduce ... && mkswap && swapon).Hi. Is it possible that i log into the server with ssh and umount only /var and then resize the logical volume? Thomas