[comp.unix.ultrix] Multiple swap partitions across drives/controllers

mason@aurora.UUCP (Tony Mason) (01/19/88)

Configuration: Ultrix 2.0-B on an 8350, 16MB, 2-KDB50's, ethernet controller,
tape controller (basically, a full bus.)  The kernel was modified to include
a packet filter.

When we first had DEC install this thing they had it swapping on two
partitions.  After modifying the kernel (including the packet filter in the
ethernet driver) we have been unable to get it to swap on multiple disks.  A
bit frustrating because the normal 'b' partition was 17MB - definitely not
enough with 16MB of memory.  Alas, attempts to add extra partitions (say
/dev/ra0b) with swapon merely gives me the error message "swapon:/dev/ra0b no
such device."  After talking with the DEC person who originally installed the
OS he said it always does this.  So I checked but it doesn't add the
partition.  So now we are swapping on /dev/ra3g (40MB is much better than
17MB) but I've got three 17MB partitions floating out there going to waste.

Any suggestions?

Tony Mason
Distributed Systems Group
Stanford University
mason@pescadero.stanford.edu

karl@grebyn.com (Karl A. Nyberg) (01/22/88)

> Alas, attempts to add extra partitions (say
> /dev/ra0b) with swapon merely gives me the error message "swapon:/dev/ra0b no

  ^^^^^^^^^
I presume that is a typo, or just a bad example, since 0b is ALWAYS a swap
partition (isn't it?).

> such device."  After talking with the DEC person who originally installed the
> OS he said it always does this.  So I checked but it doesn't add the
> partition.  So now we are swapping on /dev/ra3g (40MB is much better than
> 17MB) but I've got three 17MB partitions floating out there going to waste.

You can reconfigure your partitions.  You don't HAVE to swap on partition(s)
B of the other drives.  You can do other things with those partitions as
well, such as putting /tmp on them, or /usr/spool/news (OK, 17MB is a little
small for news!).  Check out the chpt(8?) command.  Do anything you want
with them!  You can configure the system to swap on any partition of the
second (third, etc.) drives if you want.  I never could understand the logic
of having the second .. Nth drives with that silly little a and b
partitions.

On to more constructive (?) solutions:

========================================================================

Make sure your conf file says where the swapping is (e.g., ra1b below):

	config	vmunix	root on ra0a  swap on ra0b and ra1b dumps on ra0b  

And that your /etc/rc file has:

	/etc/swapon -a			>/dev/console

Although you said you do that by hand and get the error message.

Check your /etc/fstab file to make sure that it knows these are swap
partitions:

	/dev/ra0b::sw:0:0:ufs::
	/dev/ra1b::sw:0:0:ufs::

========================================================================

That's about all the advice I can think of.  Good luck.

-- Karl --

Karl A. Nyberg				Grebyn Corporation
karl@grebyn.com				P. O. Box 1144
nyberg@ajpo.sei.cmu.edu			Vienna, VA 22180
{decuac,umd5,vrdxhq}!grebyn!karl	703-281-2194

grr@cbmvax.UUCP (George Robbins) (02/03/88)

In article <19682@felix.UUCP> jeff@necntc.nec.com (Jeff Janock) writes:
> 
> You do NOT want to list /dev/ra0b as a swap partition in /etc/fstab
> if you are booting a kernal configured as above, but make sure that 
> any other partition you want to swapon is listed in the /etc/fstab.
> ie. (from our 780 still running 1.2 - sigh :-(
> 
> 	/dev/ra0a:/:rw:2:1
> 	/dev/ra1b::sw::
> 	/dev/ra2b::sw::
> 	etc...
> 
> You will receive an error message if ra0b is listed -
> (I cannot remember the exact wording of the message) 

/dev/ra0b: no such device.

This doesn't seem to be a problem, as long as you know that the /etc/fstab
entries duplicated what was configured into the kernal.

BTW, I was talking to some people in the Ultrix support group this afternoon
and they said that Ultrix 2.2 had been released.  They did ask where I was
located, so perhaps there is geographical staging going on.  Anyway, I asked
my local sales rep to quote up a 1.2 -> 2.2 upgrade for me.  Of course last
week the sales people were denying any knowledge of Ultrix 2.2...  8-)

jeff@necntc.nec.com (Jeff Janock) (02/10/88)

In article <20314@felix.UUCP> grr@cbmvax.UUCP (George Robbins) writes:
>
>/dev/ra0b: no such device.
>

Thanks for digging this out (or did you rmemeber? :-)

>BTW, I was talking to some people in the Ultrix support group this afternoon
>and they said that Ultrix 2.2 had been released.  They did ask where I was
>located, so perhaps there is geographical staging going on.  Anyway, I asked

I received our 2.2 Ultrix-32 distribution  1-29-88 !!  Too bad there
has been no time to attempt the upgrade - 2.0 was built on a ra60, but
never placed into production...  Anyone done the 2.2 installation yet?

	-jj