Re: Moving /var to another drive
* François Chenais (Francois.Chenais@citb.bull.net) spake thusly:
> And what happens if the /var/log and /var/run dirs that can change during
> the tar ?
You may end up with a slightly b0rked system (but you knew that
already).
If your /var was on the root drive, you'll have to delete its
contents before mounting new /var -- otherwise nfs-mounted /var
will mask the old one, and contents of old /var will still be
there, using up disk space.
Of course you'd better stop the daemons whose log and run files
you're deleting. So you'll do that in a single-user mode, with
all daemons stopped anyway, and then /var/run and /var/log won't
change during tar.
Dima
--
We're sysadmins. Sanity happens to other people. -- Chris King
Reply to: