Saturday, 19 May 2012

ADDING SWAP SIZE SOLARIS

Hi All,

You can in crease the swap size in two ways

1. By Adding another slice
2. By adding file

Example: Please follow the below steps
*******************************************************************************
Adding Swap Files
To add a swap file, complete the following steps:
1. The
/export/data file system appears to have adequate space to
create an additional swap file. Create a 20-Mbyte swap file named

swapfile
in the /export/data directory.

#
mkfile 4g /u01/naga/fmwapp/swap/swapfile1

2. Add the swap file to the system’s swap space.
#
swap -a /u01/naga/fmwapp/swap/swapfile1

3. List the details of the modified system swap space.
#
swap -l

swapfile dev swaplo blocks free
/dev/dsk/c0t0d0s1 136,1 16 1206736 1084736
/export/data/swapfile - 16 40944 40944
4. List a summary of the modified system swap space.
#
swap -s

total: 106256k bytes allocated + 8512k reserved = 114768k used,
587512k
available
5. To use a swap file when the system is subsequently rebooted, add an
entry for the swap file in the
/etc/vfstab file.

#
vi /etc/vfstab

#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot opt
/export/data/swapfile - - swap - no -

Adding Slice
all the above steps are followed

except here u mention ,

#swap -a /dev/rdsk/c*t*d*s*

make an entry in /etc/vfstab, to make it permanent.

Hope this will help you....

Regards,
Naga.

2 comments:

  1. Hello Mr. Naga!

    Nice post about solaries.
    I would like to write the Solaries Certification. It would be great if you give me the best way to achieve it?

    Thanks in advance,

    --Mallikarjun V
    Oracle DBA

    ReplyDelete
  2. Thanks mallikarjun . Will update on solaris certification ASAP.

    ReplyDelete