sun 4.0 multiple swap partitions

Alan M. Brown alan%prism at gatech.edu
Fri Jun 2 01:52:03 AEST 1989


In article <8905190032.AA05736 at rice.edu>, nassio%cfassp12 at harvard.harvard.edu
(George Nassiopoulos) writes:

> We have a Sun 4/280 server running 4.0 -- we would like to be able to swap
> on two partitions on two disks connected to the server, but don't seem to
> be able to do so.
[more detail removed - AMB]

After fighting with unknowledgable Sun employees and some experimentation,
I've found that the config program's handling of the "config vmunix..."
specification is different between Sun OS 3.5 and 4.0.  Note that at 3.5
and 4.0, TFM states that to specify two swap partitions, use a config line
similar to

   "config vmunix root on xy0a swap on xy0b and xy1b"

At 3.5 this works great, while at 4.0 an error message is produced by
/usr/etc/config.  

Solution for 4.0:  Simply specify your first (any) partition in the
config line similar to

   "config vmunix root on xy0a swap on xy0b"

then place in your /etc/fstab an entry for each partition to be swapped
upon.  For example, 

   /dev/xy0b   /swap   swap   rw   0 0
   /dev/xy1f   /swap   swap   rw   0 0

Now issue the "swapon -a" command.  You should be able to verify the
results with the "pstat -s" command.

> Also, does anyone know if the naming of the kernel matters
> at all. i.e. what does using the line:
> #
> ident           GENERIC
> #
> do to you if the rest of the kernel is not really GENERIC?

The naming of the kernel is entirely for your convenience.  We use the
names to specify different versions of the kernel, e.g., hostname.1,
hostname.2.  The only impact that I'm aware of is that your motd that
appears at login includes a header which specifies the kernel name
(RADAR.4 in this example), a build number (9), and a build date (...May
19...).

   login: alan
   Password:
   Last login: Thu Jun  1 09:51:09 from ...
   SunOS Release 4.0.1 (RADAR.4) #9: Fri May 19 16:47:05 EDT 1989


Alan M. Brown					Systems Support Specialist
						Office of Computing Services
telephone:  (404) 894-4660			Georgia Institute of Technology
Internet:   alan at prism.gatech.edu		Atlanta, Georgia  30332-0275
uucp:       ...!{allegra,amd,hplabs,ut-ngp}!gatech!prism!alan



More information about the Comp.sys.sun mailing list