SUMMARY: Installing Solaris with custom filesys params

From: Matthew Donaldson (matthew@cs.adelaide.edu.au)
Date: Thu Jul 13 1995 - 19:47:45 CDT


Hi all. Earlier I asked:

> Hi all. I'm installing Solaris 2.4 on a SS2 we have here, and have run into
> something that doesn't seem to be supported (to my amazement). I hope I'm
> wrong. Anyway here's the problem:
>
> Under SunOS 4.x I have been accustomed to making my own filesystem for /,
> /usr and so on. I do this so I can make them with less inodes than the default
> which is far too large, saving goodly amount of disk space, especially on
> large /usr partitions, on which I also change minfree to 5.

>Under Solaris 2.4 I can't seem to do the same thing. I can bring up a
>commandtool and run newfs on the filesystems fine, but when I try to ask
>to preserve them, it says I have to rename /, /usr etc if I want to preserve
>them, because new ones will be created. But this is exactly what I don't
>want to happen. I want to have them called by their names, and used. I
>just don't want newfs run on them.

The answer is: yes there is a way. First prize goes to Casper Dik
<casper@Holland.Sun.COM>. I'll quote his message in full:

> If you use jump-start, you can look at
> ftp.fwi.uva.nl:/pub/solaris/auto-install/*.
>
> In there you'll find a trcik to do what you want.
>
> You can even do it normally:
>
> When installing, pop up a root shell window and do the
> following:
>
> cd /
> find usr/lib/fs/ufs -print | cpio -pdm /tmp
> cd /tmp/usr/lib/fs/ufs &&
> mv newfs newfs.bin &&
> cp -p $SI_CONFIG_DIR/bin/newfs . &&
> mount -F lofs /tmp/usr/lib/fs/ufs /usr/lib/fs/ufs
>
> with the folloing newfs script from SI_CONFIG_DIR:
>
> !/sbin/sh
> #
> # Wrapper round newfs to change the default parameters for the
> # standard filesystems.
> #
> #
> MINFREE=5
> CGSIZE=32
> BPI=8192
>
> # Should check usage.
> /usr/lib/fs/ufs/newfs.bin -i $BPI -m $MINFREE -o space -c $CGSIZE "$@"
> status=$?
> # Get last argument in $1
> shift `shift; echo $#`
> # Newfs won't allow you to specify -o time, so we'll use tunefs.
> # Prevents NOTICE: blah during installation
> tunefs -o time $1
> exit $status

Other solutions were:

Use tunefs afterwards to reduce minfree:
  js@cctechnol.com (Johnie Stafford)
  mayank@mss.mss.com (Mayank Gupta)

Install on a scratch disk and copy over to the real install disk after making
filesystems with the right parameters:
  Stephen P Richardson <spr@myxa.com>
  <adam@ltx.com>

Many thanks to all who responded.

                -Matthew

+--------------------------------------------------------------------------+
| Matthew Donaldson Email: matthew@cs.adelaide.edu.au |
| Computer Science Department Phone: +61 8 303 5583 _ |
| University of Adelaide Fax: +61 8 303 4366 John / \/ |
| South Australia 5005 Telex: UNIVAD AA89141 3:16 \_/\ |
+--------------------------------------------------------------------------+



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:29 CDT