🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.dec
Article #1836

Re: Swap space question...

#1836
From: George Robbins
Date: Thu, 09 Aug 1990 20:25
26 lines
1686 bytes
In article <10063@hubcap.clemson.edu> hubcap@hubcap.clemson.edu (System Janitor) writes:
> With all this talk about swap going on, what do you think of this?...
> My config file looks like:
> 
> config vmunix	root on ra0a  swap on ra0b and ra1b and ra2b  dumps on ra2b  
> 
> My fstab has:
> /dev/ra1b::sw:0:0:ufs::
> /dev/ra2b::sw:0:0:ufs::
> 
> And I've got ``swapon -a'' in /etc/rc...
> 
> But at boot time (or anytime I type ``swapon -a'' or ``swapon /dev/ra1b'')
> I get:      ``/dev/ra1b: No such device''

Interesting question...  The actual swap configuration from the config file
goes into /sys/{MIPS/}swapvmunix.c, and puts hard coded major and minor numbers
in a table.  You get the "No such device" if you're adding an area already in
use, but might also get it if the partition wasn't allocated or if you don't
have an appropriate /dev entry for the device - it may be that swapon makes
some references to the /dev entry before issuing the "swapon" system call.

-- 
George Robbins - now working for,     uucp:   {uunet|pyramid|rutgers}!cbmvax!grr
but no way officially representing:   domain: grr@cbmvax.commodore.com
Commodore, Engineering Department     phone:  215-431-9349 (only by moonlite)
Technical Details
Message-ID: <13733@cbmvax.commodore.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!cbmvax!grr
References: <13707@cbmvax.commodore.com> <10063@hubcap.clemson.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!cbmvax!grr
From: grr@cbmvax.commodore.com (George Robbins)
Newsgroups: comp.sys.dec,comp.unix.ultrix
Subject: Re: Swap space question...
Message-ID: <13733@cbmvax.commodore.com>
Date: 9 Aug 90 20:25:14 GMT
References: <13707@cbmvax.commodore.com> <10063@hubcap.clemson.edu>
Reply-To: grr@commodore.com (George Robbins)
Organization: Commodore, West Chester, PA
Lines: 26