Monday, September 12, 2011

Configuring SWAP partition in Sun (Oracle) Solaris 10


Creating/Adding Swap file: 

which swap

swap -l     : lists swap devices/space

swap -s     : lists total and used swap space


mkfile 512m /data2/swap2


cd /data2

ls -ltr


file swap2

swap -a /data2/swap2

[to add swap file to swap]

swap -l
swap -s

mounting in vfstab

/data2/swap2 - - swap - no -

How to remove swap file?

swap -d /data2/swap2

format> partition

Creating Swap partition:

swap -a /dev/c0t1d0s6

swap -l

swap -s


No comments:

Post a Comment