On Wed, 2007-09-05 at 14:27 +0200, Hans Meine wrote:
> Am Mittwoch, 05. September 2007 14:22:35 schrieb Darren Freeman:
> > On Wed, 2007-09-05 at 14:18 +0200, Jean-Marc Lasgouttes wrote:
> > > I am taker for any hints.
> >
> > Here is a quick and lazy solution to get things going again:
> >
> > mv /var/foo /home/foo
> > ln -s /home/foo /var
> 
> Uuh, first use "lsof" to check that no files (e.g. logfiles) below /var/foo 
> are still opened by a running process (e.g. syslog daemon).  That'd make for 
> ugly surprises... ;-/

Hmm.. I guess common sense is required :) /var/lib would be pretty safe,
no?

Using cp -a followed by ln -s followed by "mv && mv" to pretend to
atomically replace the dir with the link. Then check if anybody is still
reading anything from that dir before finally removing it.

Have fun,
Darren

Reply via email to