SunOS 4.0.3 swapping across multiple drives........

Guy Harris guy at auspex.auspex.com
Wed Nov 29 06:41:41 AEST 1989


 >First, the kernal line should say:
 >    ... root on xd0a swap on xd0b and on xd6f 
 >(notice the 'and' vs. the 'swap'). My guess is that what you are telling the
 >kernal is that you want swapping on xd6f ONLY (i.e. swap on xd6f
 >overrides swap on xd0b).

Note that when running SunOS 4.x you do not, as far as I know, have to
reconfigure the kernel to know about new swap partitions, unlike 4.xBSD
and older SunOS releases that use the 4.xBSD code for swapping.

 >Second, read the man page for swapon. Those I have seen say that specifying 
 >"/etc/swapon name" (like swapon /dev/xd6f) makes ONLY THIS SPACE available to
 >the system for swaping.

More precisely, it says "add only this space to the list of swap areas",
it doesn't say "forsake all other swap areas and cleave only unto this
one".

 >Change the swapon command from: "swapon /dev/xd6f" to: "swapon -a".
 >The "-a" option says start swaping on any partitions defined
 >as swapable in /etc/fstab. See "man swapon" for details.

Note also that there's already a "swapon -a" command in "/etc/rc".



More information about the Comp.unix.questions mailing list