Thursday 19 July, 2012

Adding Temporary Swap Space in HP-UX


If you want to add temporary swap space then you can create a directory which should have the required space and then create the additional swap on that as follows:

#swapinfo -tam
#mkdir //tempswap1
#chmod 777 /  /tempswap1
#swapon -p2 -l 1000M /  /tempswap1
(-p2 priority 2)
#swapinfo –tam

* 1000M is 1000 MB swap space which will be created

tempswap1 is just an example, you can give any name you want but it will be good if you can identify that it is a swap space just by looking at the name of the directory

* 777 is the permission setting for the directory created