Operating System - HP-UX
1753369 Members
4804 Online
108792 Solutions
New Discussion юеВ

Re: additional swap device

 
Asad Malik_1
Occasional Advisor

additional swap device

can someone help me with step by step procedure to create additional swap
device on HP-UX 11.0, both by using SAM and from command line. Thanks
2 REPLIES 2
Paul Heffels_1
Frequent Advisor

Re: additional swap device

Hi,

I can't help you to the command line procedures right now but it's quite easy
within SAM.

1) start up sam
2) go to the disk area
3) select logical volumes
4) select ADD in the ACTIONS menu
5) add the volume like you are used to but select swap device in the
appropriate selectbox and make your choice between a device swap or a volume
swap
6) proceed with adding and everything will be done for you

Without questioning your reasons, I would like to point out that under HP-UX 11
swap spaces don't have to follow the "standard" guidelines of at least 100% of
your internal memory. HP-UX 11 doesn't create a full crashdump of your complete
internal memory on crashing (if it ever does). Only the most usefull
information is saved. You can configure what information is dumped with the
"crashconf" command.

Hope this helped.

Paul
Anthony Goonetilleke_1
Regular Advisor

Re: additional swap device

By an additional swap device I presume you mean a secondary swap device as
primary swap should be kept on the same disk as the root file system if
possible.\
Device swap is usually faster that filesystem swap, but device swap usually
resides on its own partition.

You can issue the following commands on the command line to enable a whole disk
as swap device

swapon /dev/dsk/c0t1d0 (or whatever the device is)

Note: you can use -f to force it to use the device i.e destroys existing
filesystem

if you are doing it on a logical volume you have already created try something
like

swapon /dev/vg11/hpswap

Dont forget to include it in /etc/fstab so that it will be enabled on boot.

/dev/dsk/c0t1d0 . swap defaults 0 0

You will find that /sbin/init.d/swap_start script will invoke swapon -a when
the system boots

hope this helps,
regards,
AG