[comp.unix.xenix.sco] Dividing a File System Across 2 hard Drives

cpd1450@sjfc.UUCP (Craig Dufresne) (02/12/91)

I was recently hired by a Company running SCO Xenix '386,
they have shown an interest in Increasing their hard Disk space,
by adding a second drive. The onsite documentation is scarce.

Could somepeople answer the following questions:

	1. What are the steps for adding the second drive, and are
		their any secrets for making things go easy.

	2. What is the best way to divide the file system up ???

It looks like they will be adding a 130meg to the 80meg they
already own.

Thanks for any help,

Craig Dufresne			e-mail: ...sjfc!cpd1450@cci.com
St John Fisher College				or
My first Internship, YEA !!!            ...uunet!ccicpg!cci632!sjfc!cpd1450


	

glen@sungate.UUCP (Glen) (02/15/91)

In article <1243@sjfc.UUCP>, cpd1450@sjfc.UUCP (Craig Dufresne) writes:
> 	1. What are the steps for adding the second drive, and are
> 		their any secrets for making things go easy.

After low-level formatting the drive (if necessary) and modifying the
CMOS setup of your machine (if applicable) shut your system down to
single user mode

	/etc/shutdown su

and run

	mkdev hd

which is a mkdev script that "walks you through" installation of a second
hard drive.  It's best to have the system installation guide handy when
you do this.
 
> 	2. What is the best way to divide the file system up ???

This depends on how their first hard drive is divided up.  When they
installed, they were asked (with an 80MB drive) whether they wanted a
separate /u filesystem.

To find out if they have one, either type the command

	mount

to get a list of mounted filesystems, or, better yet, do

	df -v

to get the list of systems and usage statistics as well.  The best
thing, in my opinion, to do would be to put /u on the second drive.

If your system does not already have a /u system, then create it on
the new hard drive.  You'll do this when running divvy as a part of 
the mkdev hd script.  After it is created, edit /etc/default/mkuser,
changing the line  "HOME=/usr" to "HOME=/u".  This will tell the system
that all new users should be created on /u. You may also want to move
the existing users to /u (giving them more room, and freeing up room
on the root filesystem.  This isn't the easiest thing in the world to
do, I prefer to do it by hand to make sure it's done right.  For each
user, move their /usr/`logname` directory to /u/`logname`.  Edit their
".profile" to modify their HOME directory entry to the /u system.  Then
edit their entry in the /etc/passwd file to make sure it's changed also.
Finally, make sure their file ownerships and permissions are correct 
(they should be if you used mv).  That has to be done for each user.

If your system already has a /u system, it's best, again in my opinion,
to move the entire /u system to the second hard drive.  Back up the
/u file system from the first hard drive, then restore it to the second
hard drive.  The area that was /u on the first hard drive can be either
set up as a secondary work area (since it will be smaller) or released
back to the root file system.  But, to release it back, you'll have to
back up the entire root file system, run divvy to include the newly
released space on the first drive in the root system, then restore the
root system from a boot floppy.  Difficult, but it will free up the
space.

An easier, but less useful thing to do would be just to create one or
more new file systems on the second drive and make them available (via
permission settings) to all users for workspace.  But, in my opinion,
it's better to impose a *little bit* of organization on the filesystem.
I think it'll be easier in the long run.
-- 
**  --*--  --*--  --*--  --*--  --*--  --*--  --*--  --*--  --*--  **
Glen Barney 301-330-4700                The beach is not just a place
InterNet: glen%sungate@uunet.UU.NET       to be - it's a way of life!
BangPath: uunet!sungate!glen