1833777 Members
2239 Online
110063 Solutions
New Discussion

Re: Swap

 
SOLVED
Go to solution
JOHN TURNER_2
Frequent Advisor

Swap

How do i go about increasing the size of swap on a hp-ux 11.11 server. Can i just increase the size of swap or do i need to create a new swap slice

cheers
john
GUI's are for wimps!
4 REPLIES 4
Alex Lavrov.
Honored Contributor
Solution

Re: Swap

It's not good to increase the current swap, because you will harm it's integrity.

You should create a new LV and use as swap space.

Refer to these threads for more info:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=242275
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=58315
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Adisuria Wangsadinata_1
Honored Contributor

Re: Swap

Hi John,

It's better you create a new swap ... can use SAM for easier way

It's troublesome to increase the size of swap

Hope this can help you.

Best Regards,
Adisuria Wangsadinata
now working, next not working ... that's unix
Mark Nieuwboer
Esteemed Contributor

Re: Swap

hi John,

Just increacing the current swapspace can't be done online. you have to reboot the system than and extend it in runlevel 1.
Beter or simpler is to make another swap file system with.

4. Create logical volume.
lvcreate -L 200 â m â n 1 swap -C y -r n /dev/vg00
in case of san disks lvcreate â L 2000 â m â n 1 â C y â r n /dev/vgswap

Watch carefuly you only can use the â m option if you have a mirror disk on the other location if not then donâ t use the â m option.

Example command creates a 200-megabyte contiguous logical volume called swap in
the vg00 volume group. The logical volume also has bad block reallocation
turned off.
See "man 1m lvcreate" for more information.

5. Then edit /etc/fstab (HP-UX 10.X, 11.X) or /etc/checklist (HP-UX 9.X)
to enable swap after each shutdown of the system.

example /etc/fstab entry:

/dev/vg00/swap ... swap pri=1 0 1 #device swap
6. Enable swap using swapon command.
MarkSyder
Honored Contributor

Re: Swap

If you have more than one disc you will get better system performance by having a swap area set up on each rather than one big swap area.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing