Re: shrink LV with ext3 filesystem

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



On Tue, Sep 04, 2007 at 03:26:53PM +0200, Thomas Antony wrote:
>  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?

Yes, but you'll have to stop a lot of daemons and other processes that
run with files opened in /var.

You can find the processes accessing /var with lsof or fuser:
# fuser -mv /var
# lsof /var

-- 
lfr
0/0

Attachment: pgpmznNHDXDJw.pgp
Description: PGP signature

_______________________________________________
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