1752785 Members
6094 Online
108789 Solutions
New Discussion юеВ

Re: SwapSpace increase

 
SOLVED
Go to solution
Senthil Kumar .A_1
Honored Contributor
Solution

Re: SwapSpace increase

Hi Mehul,

For obvious reasons, the steps you followed will fail because, ROOT ,SWAP/DUMP are supposed to be contiguous allocated logical volumes. Since root vol is lvol3 following the swap vol which is lvol2 it is quite defficult to extend the primary swap lvol2 even if it possible.

The Best solution is to leave the primary swap as it is and add some secondary swap to supplement the already configured priamry swap.

Please read on...

You can configure 2 type of secondary swaps..

1) Device swaps.
2) Filesystem swaps.


I would suggest Device swap to be hassle free and would advice you to go ahead with FS swap only if you do not have enough free extents to create an additional LV in VG00.

following are the commands

1) lvcreate -L vg00 (lets assume it would create /dev/vg00/lvol10)
2) issue the following command to enable the swap..
swapon /dev/vg00/lvol10
You can check whether a swap was added or not by issuing the command "swapinfo".
3) Now you need to make this swapon activity automatic to be done across boots by adding the follwoing line in the /etc/fstab file.

/dev/vg00/lvol10 - swap defaults 0 0

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Nguyen Anh Tien
Honored Contributor

Re: SwapSpace increase

this is command option. I prefer!
Device swap:
Device swap is faster than file system swap. Device swap resides in its own partition.
steps:
the following command creates a file system on a disk and reserves 200 megabytes
(MB) for swap:
#newfs -R 200 /dev/rdsk/c0t2d0
#swapon /dev/dsk/c0t2d0
File System Swap
File system swap is a form of secondary swap. It can be configured dynamically.
Steps:
#lvcreate -L 16 -n myswap /dev/vg01
#swapon /dev/vg01/myswap

Several kernel tunable parameters limit the amount of swap that can be made available.
├в ┬в The default maximum amount of swap space you can configure, for both device swap and
file system swap combined, is approximately 512 MB. The tunable system parameter,
maxswapchunks, controls this maximum. This parameter (default value of 256) limits the
number of swap space chunks. The default size of each chunk of swap space is 2 MB. The
size of a swapchunk can be modified with the swchunk kernel tunable parameter.
HP is simple
mehul_3
Regular Advisor

Re: SwapSpace increase

Thanks for all of you for kind support.
Problem has been resolved by creating new logical volume for new swap rather than adding to existing one.

Thanks once again all of you for updating my knowledge.

Regards,
Mehul