SUMMARY: Seperate /var /users /local

From: Joseph C King <jking_at_cos6.hcf.jhu.edu>
Date: Tue, 28 Jan 1997 09:24:45 -0500

Sorry this took so long to compile :)

Thanks for all that responed including

Hans Ullitz-Moeller <hum_at_biobase.dk>
ioux_at_ip6480nl.ce.utexas.edu (Tom Rioux)
Cliff Krieger <ckrieger_at_latrade.com>
Steve Wright (Sys Guy) <wright_at_cs.sc.edu>
alan_at_nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward
Inodes.)
"Dr. Tom Blinn, 603-881-0646" <tpb_at_zk3.dec.com>
chopewel_at_redwood.dn.hac.com (Craig C. Hopewell)

My original Post
--------------------
I want to create a /var /local /users file system so I can get these things
off of the /usr disk so restoring from a fatal crash might be easier and
also /usr from my past experience should be a filesystem that grows and
shrinks much but just holds the commands and the inerds that keep the box
running.

Question: Is my thinking on track or am I totally confused?
          Are there any system ramifications?


Basic Answer
-----------
Do it. It will save you headaches in the future
------
Summary From "Dr. Tom Blinn, 603-881-0646" <tpb_at_zk3.dec.com>

To move /usr/var into a /var partition of its own, you can first set up all
the stuff you'd need (disk partitions, etc) and then bring the system down
to single user mode. Run bcheckrc to check & mount your file systems. rm
the existing /var symbolic link, then create a /var mount point. Mount the
new /var partition on the mount point. Use dump/restore or vdump/vrestore
to copy your existing /usr/var to /var -- or maybe you'll have to use tar,
I haven't done this in a while. (If you want to use advfs for the new /var
you will need to do even more to get it ready, and you will have to use the
vdump/vrestore utilities for sure to copy it.) In any case, it's just like
moving any other directory hierarchy into a new file system. Once you've
got the /var filesystem populated, move the old /usr/var aside and link the
new /var into /usr/var -- most people would cd to /usr and ln -s ../var .
to create the symbolic link. Be sure to update /etc/fstab to mount /var by
putting the definition right after the one for /usr.

You can, of course, do similar things for /users in place of /usr/users and
for /local in place of /usr/local.

Some people like to use /usr/users or /usr/local as mount point for other
file systems, and that works too as long as you are careful to make sure the
order of the mounts in /etc/fstab is correct (that is, mount /usr before you
try to mount anything on a subdirectory in /usr).

You can also make /tmp be a memory file system or alternative partition if
you run with a small root and run out of space because of /tmp being in the
root partition. Some things may be open in the /tmp directory when you do
the mount onto it, but as long as you mount /tmp about the same time when
you mount /usr (in fact, do it before /usr and /var) things work fine.

Tom

-*-*-*-*-*-*-*-*-*-*-*-*-*-
Joseph C. King
Community Of Science, Inc.
Baltimore , MD
Received on Tue Jan 28 1997 - 15:57:54 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:47 NZDT