Re: [CentOS] shrink LV with ext3 filesystem

2007-09-04 Thread Thomas Antony
# umount /var umount: /var: device is busy umount: /var: device is busy Ayn ideas? Are you using chrooted BIND? Do a cat /proc/mounts, search for var, and unmount anything in use. # cat /proc/mounts | grep var /dev/VolGroup00/LogVol02 /var ext3 rw,data=ordered 0 0 I can't unmount var.

Re: [CentOS] shrink LV with ext3 filesystem

2007-09-04 Thread Luciano Rocha
On Tue, Sep 04, 2007 at 08:18:18PM +0200, Thomas Antony wrote: > > >> 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. >

Re: [CentOS] shrink LV with ext3 filesystem

2007-09-04 Thread Thomas Antony
/var is required for multi-user mode. Try bringing the system to single-user mode 'init 1' and then try it. -Ross Hi. single-user mode is a problem because i don't have physical access to the server I will try to get some remote hands. Thank you everybody for your help! kind regard

RE: [CentOS] shrink LV with ext3 filesystem

2007-09-04 Thread Ross S. W. Walker
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Antony > > >> 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 wit

Re: [CentOS] shrink LV with ext3 filesystem

2007-09-04 Thread Thomas Antony
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 #

Re: [CentOS] shrink LV with ext3 filesystem

2007-09-04 Thread Luciano Rocha
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

Re: [CentOS] shrink LV with ext3 filesystem

2007-09-04 Thread Sebastian Walter
Thomas Antony wrote: > Is it possible that i log into the server with ssh and umount only > /var and then resize the logical volume? > Try it. Most probably the system will tell you that the disk is in use. What you could do then is booting from a live CD and resize it from there (System will be of

RE: [CentOS] shrink LV with ext3 filesystem

2007-09-04 Thread Ross S. W. Walker
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Antony > > 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

Re: [CentOS] shrink LV with ext3 filesystem

2007-09-04 Thread Thomas Antony
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 wi

Re: [CentOS] shrink LV with ext3 filesystem

2007-09-04 Thread Luciano Rocha
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 a