Operating System - HP-UX
1834788 Members
2504 Online
110070 Solutions
New Discussion

Re: Changing swap on hpux 11i

 
David Cassin
Advisor

Changing swap on hpux 11i

I've got an rp4440 running HP-UX11i and VxVM, and need to alter the swap size on the volume /dev/vx/dsk/rootdg/swapvol.

What is the best way of doing this?

9 REPLIES 9
Patrick Wallek
Honored Contributor

Re: Changing swap on hpux 11i

Are you trying to increase it or decrease it? If you are trying to increase, it would be much much easier to create a new swap volume and then just do a 'swapon' to activate.

If you are trying to decrease it, I think you may have to use an ignite tape and reinstall the server.
Geoff Wild
Honored Contributor

Re: Changing swap on hpux 11i

If you want to change it - then you need to re-ignite the server - and modify the disk sizes...

If you want to add more - then just create another swap volume.

http://docs.hp.com/en/5991-0607/ch05s09.html

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
David Cassin
Advisor

Re: Changing swap on hpux 11i

i'm trying to increase swap, but i want to have one contiguous swap volume.

so if i create a new volume, swapvol2 for example, and run swapon to add it, is it possible to remove the original swap volume, swapvol, without re-igniting the box?
Deoncia Grayson_1
Honored Contributor

Re: Changing swap on hpux 11i

You can remove the other swap space without having to re-igniting but you will have to reboot the box after doing so.
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Victor Fridyev
Honored Contributor

Re: Changing swap on hpux 11i

Hi,

If the swap is not on the system disk, you can create a new contigious volume for it. Don't create two swap volumes on the same physical disk.
Theoretically you can extend the existing swap volume, if the extended one is contigious

HTH
Entities are not to be multiplied beyond necessity - RTFM
David Cassin
Advisor

Re: Changing swap on hpux 11i

Deoncia,

what command do i use to remove the original swapvol? leaving swapvol2 as the primary swap?
i havent been able to find one so far.
Deoncia Grayson_1
Honored Contributor

Re: Changing swap on hpux 11i

David,

comment it out from fstab, reboot, then lvremove - or just use SAM
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
David Cassin
Advisor

Re: Changing swap on hpux 11i

I'm using VxVM not LVM, so i can't do this.

Anyhow, i've taken the option of re-igniting the box and configuring the swap at build time.

Thankyou for all the comments.
David Cassin
Advisor

Re: Changing swap on hpux 11i

I'm going to re-ignite the box, and set the swap at buld time.

Thank you for all the comments.