how to add swap space?

Answer Posted / stratovarius

For swap slice:
1.mkfile <size of swap file> <location of swap file>
eg:#mkfile 512m /data2/swapfile -->where /datat2 is a
precarted directory and swapfile is the swapfile
automaticaly created.
2.swap - a /location_ofswap_file
#swap -a /data2/swapfile

For swap partition:
1.Create partition using format command. eg: c1d0s4
2.swap -a /dev/dsk/c*t*d*s*
#swap -a /dev/dsk/c1d0s4

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In a two node cluster i have typed #hastart command in one node.The cluster is starting in second node also,what is going in background?

1729


what is mean by netfmd in sun cluster what is the use of netfmd and what is the relation between ccd and netfmd?

2226


Hi, I need information regarding LDOMS.Like What is LDOMS ,Creation of LDOMS, errors on LDOMS, troubleshooting LDOMS...etc.... pls post the info. Regards, Naresh

2724


How do u know that,what patch can be applicable on the system?

1785


hi to all,, i need few real time issues please provide me,, if you have any,,,

1732






What is the use of Sam utility in solaris

2343


how can u give space garentee for volume in netapp storage

2791


What is cachefs?

1906


Local zone in shutting down state.how to bring state of zone to installed?

1597


What is the zone in DNS?

1874


How to create a gateway?

6279


when i am starting solaris10 with 'fail safe mode' on intel machine it is asking "#starting shell".what is it and how to solve this problem?

2014