micky@cunixc.cc.columbia.edu (Micky Liu) (02/23/89)
On a Sun 3/140 running SunOS 3.5... I have been trying to find the correct procedure for having swap space on more than one disk... I found that I must have an entry in my /etc/fstab and that I must rebuild the kernel with something like: config root on sd0 swap on sd0 and sd2 Is this true? Do I have to rebuild the kernel like this or is swapon(8) enough to add the swap space? I have tried w/o modifying the kernel and swapon doesn't work... Am I missing something? What I am trying to do is be able to disconnect the other disk drive in case of failure and still be able to boot, actually want to be able to boot off of either if one should fail, as has actually happened in the last week... Second thing I noticed and I am not sure if it has something to do with my kernel fooling, but I noticed that when I start up suntools, it fails on the cmdtool creation and I get some error message like: window: could not open subwindow (something like that) and it appears that cmdtool has failed to intercept the console because and messages that get sent to /dev/console echo on the console and mess up the display... Everything else appears to work after I refresh the display, but it is annoying to have a cmdtool that doesn't redirect the console, and yes, the "-C" flag is in place... I thought it had something to do with me messing with the kernel, but when I restored the GENERIC kernel and rebooted, the problem persisted... Any clues? Thanx, Micky Liu arpa: micky@cunixc.cc.columbia.edu uucp: ...!rutgers!columbia!eastend!m-liu bitnet: malua@cuvmc
louis@sun.com (Louis Brune x403) (03/08/89)
We have a couple of dual swap machines. Be brave (after making backups) and try: In the config file: config vmunix root on rf0 swap on rf0 and rf1 (Fix the rf to be whatever you really use.) In /etc/fstab: /dev/rf1b 0 swap swap 0 0 The zeroes, I'm told, are irrelevant. Experience says they don't hurt anything. (Once again, you probably don't have rf.) In /etc/rc: /usr/etc/swapon -a We have this immediately after the invocation of rc.local. I suppose one might also put it in rc.local. That ought to do it. Now rebuild the kernel according to standard procedures, do the cp of vmunix, and use pstat -s to verify your success. The number you're looking for is the sum of used and free. If you did this before you started, comparing them will provide a bit of a morale boost. Also, swapping on two drives seems to make the thing work better.