Thursday, 12 May 2011

File System:To increase the SWAP capacity by using File System Method


To increase the SWAP capacity by using File System Method

1. select any partition and allocate some space to the partition i.e. the amount of space that has to allocate to increase the swap.
- S4 selected with '100MB' space

2. Edit the file
# vi /etc/vfstab
  /dev/dsk/c0t0d0s1     -     -      swap    -    no
  /dev/dsk/c0t0d0s4     -     -      swap    1    yes  

:wq!

now still 1.2Gb only we need to update some commands

# swap -l
(only one file S1)

# df -h
 (swap 1.2G)

# /sbin/swapadd
# swap -l 
(now two files)
# df -h
1.3G

to delete swap:
# swap -d /dev/dsk/c0t0d0s4
# swap -l
# df -h
now vi /etc/vfstab and remove the entry of s4

note: recommended is file method.. because only file created thats it.
- in FS method whole slice S4, we need to allocate memory it is difficult and wastage.

No comments:

Post a Comment