How to add swap space in Sun Server?
Answers were Sorted based on User's Feedback
Answer / juganveer khosa
make a slice (using format utility),or make a file on
existing file system (using mkfile command) of required
size.
then add this to swap using
swap -a /dewv/dsk/c#t#d#s# or file path
also make entry in /etc/vfsab to add it permanent
verify it by using
swap -l
swap -s
| Is This Answer Correct ? | 29 Yes | 1 No |
Answer / suresh kumar.g
using format command we can do but,using mkfile also...i.e
#mkfile 100m /opt/swap
then created one file add this file to swap i.e.....
#swap -a /opt/swap..............
| Is This Answer Correct ? | 15 Yes | 2 No |
Answer / prashant raut
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.
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / solaris admin
we can add swap space in teo ways.
1.swap slice
2.swap file
both by using command swap -a
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / s ramesh reddy
first we can make file using below command
#mkfile <filesize> <filename>
Ex:- mkfile 100m file1
checking the file using bellow command
#ls -l
adding make file to swap space
#swap -a /file1 **here file1 is already make
#swap -l this is for swap management
#swap -s this is for status of swap.
After adding into the particular place in hard device
#swap -a /dev/dsk/c#t#d#s#
| Is This Answer Correct ? | 1 Yes | 0 No |
After creating swap file update the same to /etc/vfstab what will be the fstype.
Explain RAID0, RAID1, RAID3,
What is the physical device to check the 2 nodes connect in cluster
What is the function of truss in solaris?
How to clear the failing flag on a veritas volume manager disk:
What is mean by paging & server average time.
If the /var file system is full then what you will do.
Explain /etc/inittab files
In VERITAS How to recover the mirror disk with data. How to bring the existing data disk into VERITAS volume manger control.
How will you verify the disk and how many field will be there.
How can you search for commands at the boot prompt if you only know part of the command?
how to add an user without using "useradd" command in solaris10?