Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SUN Solaris 2.6 - Increase swap space 1

Status
Not open for further replies.

ob1knobe

Programmer
Apr 1, 1999
1
US
How do I safely increase the swap space on the above referenced system? How can I be sure I won't delete or corrupt the data that is there, without backing up to a peripheral drive?<br>
<br>
I'm a novice, so the more detail the better.<br>
<br>
Thank You!
 
ok, no worries,

first of all check your swap space with
1. &quot;swap -l&quot;
2. su to root (if not already)
3. do a man on 'mkfile' to be sure you have all your options you ever wanted.
4. issue &quot;mkfile (size required) (filename)&quot;
5. issue &quot;swap -a (pathname)&quot; this adds the swap file
you MUST use an absolute path name
6. &quot;swap -l&quot; to confirm the new swap addition

you can delete it with the &quot;swap -d&quot; command

hope it helps,
[sig][/sig]
 
oops.. just a quick note, not wishing to teach you to suck eggs but obviously if you want it mounted at boot, the /etc/vfstab will also need to be updated... [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top