Solaris Commands Question: Download Solaris Commands PDF

How to add swap space in Sun Server?

Tweet Share WhatsApp

Answer:

There are two ways to add swap in Sun Server(i.e. Sun
Solaris) as below;

1. Make a partion at availbale free disk of required swap
size and then make an entry in /etc/vfstab file. After that
run the command #swapadd /dev/dsk/cXtXdXsX or give the
reconfiguration reboot to the Server.

2. Instead of making partion you can create make a file of
required swap size with the help of #mkfile <size>
<filename> command and after that make an entry
in /etc/vfstab and follow rest of steps mention in point
one.

Download Solaris Commands PDF Read All 55 Solaris Commands Questions
Previous QuestionNext Question
What is the difference between container and zones?How to grow disk size in SDS? what is SDS?