breaking a mount point and setting up a new one

der.hans plug-discuss@lists.plug.phoenix.az.us
Sun, 8 Dec 2002 22:54:19 -0700 (MST)


Am 08. Dec, 2002 schw=E4tzte Scott H so:

> Thanks, George.  But I'm over an hour away from
> this box, connecting via ssh.  Is there any way
> to do this without a rescue disk? (I.e., without
> being physically present at the server?)

*WARNING*: This is not good sys_adm practice.

Try this on a local test box first if you can.

Normally, you'd want to boot into single-user mode, make the changes, then
come back to default run-level. That requires console access. I presume you
don't have a serial console on the box. If you do, use it ;-).

You need to at, cron, anacron and SMTPd to change /var/spool.

I think syslog doesn't touch /var/spool.

Use fuser to find out what's touching /var/spool. "fuser /var/spool" should
be englightening. See the man page for more help if that isn't enough. fuse=
r
gives you process IDs for processes touching the specified file. Locate
them, shut them down.

If fuser doesn't find them use lsof as was suggested earlier this weekend.

Move data and partitions around.

Restart services.

This actually shouldn't be a big deal as long as syslog doesn't rely on
/var/spool and this machine doesn't handle much mail.

After you've got everything going again make sure syslog is still working.

Since you're running anacron it should take care of the cron outtage.

ciao,

der.hans
--=20
#  https://www.LuftHans.com/    http://www.TOLISGroup.com/
#  I'm not anti-social, I'm pro-individual. - der.hans