1834456 Members
2462 Online
110067 Solutions
New Discussion

swap space

 
prakasse
Advisor

swap space

Hi,

How to increase swap space on a PA-RISC machine?

Thanks in advance,
Senthil.
3 REPLIES 3
freddy_21
Respected Contributor

Re: swap space

Hello Senthil,

Please used SAM to configure swap file system.

thanks
freddy
Senthil Kumar .A_1
Honored Contributor

Re: swap space

Hi,

1.DEV swap on LVM LV.

For example we can enable /dev/vg01/myswap logical volume for use as device swap. The
entire logical volume will be claimed as swap, so it will no longer be available for use as a file system. If the logical volume contained a file system in the past, you may need to use the -f option to "force" an overwrite of the old file system structures.

swapon /dev/vg01/myswap

2.DEV swap on a whole disk.

We can enable device swap on the whole disk /dev/dsk/c0t2d0. If the disk contains a file system that was created with newfs -R 200 /dev/rdsk/c0t2d0, you can preserve the file system and simply enable swap on the available space reserved at the end of the disk by including the -e option on swapon. If you wish to overwrite the file
system on the disk, use the -f force option instead.

swapon /dev/dsk/c0t2d0


3. Swap on a FS.

We can enable the file system mounted on /myfs2 for use as file system swap. The
-p option sets the priority for this swap area to 4, and the -l ensures that vhand can take no more than 4 MB from the file system for use as swap.

swapon -p 4 -l 4M /myfs2

SK
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Redhat
Trusted Contributor

Re: swap space

to create additional swap space use the procedure:

lvcreate -L -C y -s y -m 1 /dev/vg00

swapon -p 1 /dev/vg00/ where p is for priority

then update the fstab

/dev/vg00/lvname ...swap pri=1 0 0

you should use same size of the exiting swap space for having interleaving.