From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076450423466.tru64-unix-managers.marc@archive.invalid> From: Joseph C King Date: Tue, 28 Jan 1997 14:24:45 +0000 To: tru64-unix-managers Subject: SUMMARY: Seperate /var /users /local X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076450423466 Sorry this took so long to compile :) Thanks for all that responed including Hans Ullitz-Moeller ioux@ip6480nl.ce.utexas.edu (Tom Rioux) Cliff Krieger Steve Wright (Sys Guy) alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) "Dr. Tom Blinn, 603-881-0646" chopewel@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" 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