SUMMARY: adding swap file

From: Michael Hawk (mike@gi.net)
Date: Thu Dec 05 1996 - 20:12:42 CST


Hi,

Thanks to those who answered so quickly. I figured I was wrong
because the format of my entry was so different from the other
partition entries.
 
Here is my original question:
 
A while back someone posted a question regarding adding a permanent swap
file to a solaris 2.x machine. We are running solaris 2.4.
 
I created the swap file as specified. I had no trouble getting it to
work on a temporary basis by using swap -a.
 
In an attempt to make it permanent upon a reboot, I entered the following
line into our vfstab, as the SUMMARY said to do:
 
/usr/swap2/swapfile swap swap rw 0 0
 
When rebooting, I get a "too few arguments" error, so I guess I am missing
an argument. The man pages don't offer any help. Can someone tell me
what I'm missing?
 
 
In an attempt to make it permanent upon a reboot, I entered the following
line into our vfstab, as the SUMMARY said to do:
 
/usr/swap2/swapfile swap swap rw 0 0
 
When rebooting, I get a "too few arguments" error, so I guess I am missing
an argument. The man pages don't offer any help. Can someone tell me
what I'm missing?
 
 
 
Here is the answer:
 
/usr/swap2/swapfile - - swap - no -
 
 
Thanks to:
 
jhsieh@soemail.ucsd.edu
jeffw@smoe.org
jerryc.wang@Eng.Sun.COM
kevin@uniq.com.au
brendan@unsw.EDU.AU
 
BTW, my above mistaken entry would have worked for an old SunOS 4.x
system, I'm told.
 
-mike

-----------------------------------------------------------------------------
Michael Hawk Senior Network Technician
mike@gi.net Global Internet Network Services



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:17 CDT