[CentOS] shrink LV with ext3 filesystem

Tue Sep 4 18:25:29 UTC 2007
Ross S. W. Walker <rwalker at medallion.com>

From: centos-bounces at centos.org 
[mailto:centos-bounces at centos.org] 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 with files opened in /var.
> > 
> > You can find the processes accessing /var with lsof or fuser:
> > # fuser -mv /var
> > # lsof /var
> 
> 
> I stopped all services except sshd and fuser and lsof doesn't show me 
> any files, but i still can't unmount /var :-(
> 
> # umount /var
> umount: /var: device is busy
> umount: /var: device is busy
> 
> Ayn ideas?

/var is required for multi-user mode.

Try bringing the system to single-user mode 'init 1' and then try it.

-Ross

______________________________________________________________________
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.