Operating System - HP-UX
1834586 Members
3736 Online
110069 Solutions
New Discussion

Re: Increase filesystem swap

 
Ian Jones_1
Advisor

Increase filesystem swap

i have needed to use filesystem swap, i now want to increase its size, how do i tell the system to unmount it so i can increase its size, as its in use all the time?

Thanks

Ian
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor

Re: Increase filesystem swap

Once swap is activated via swapon() whether or not it's actually used, it can't deactivated. You will need to reboot.
If it ain't broke, I can fix that.
Patrick Wallek
Honored Contributor

Re: Increase filesystem swap

You can't resize swap online. If you really do need more, you will have to add a new swap area.
Ian Jones_1
Advisor

Re: Increase filesystem swap

but it then will allocate swap again on the reboot, so i will still not be able to change the file system?
Or have i missed a step here!
A. Clay Stephenson
Acclaimed Contributor

Re: Increase filesystem swap

You can change the fstab entry and then reboot. When the system comes back up the new size will be recognized and used.

NOTE: You may need to increase the kernel tunable maxswapchunks.
If it ain't broke, I can fix that.
Patrick Wallek
Honored Contributor

Re: Increase filesystem swap

You would need to boot into single-user mode, which is before any swap is activated.

Now, hopefully you are not wanting to extend your Primary Swap partition (vg00/lvol2) because the only real supported way to do that is via an Ignite make_tape_recovery tape.

If it is a different swap area, then you can extend it via lvextend.
Kent Ostby
Honored Contributor

Re: Increase filesystem swap

You comment the swap line out of the fstab while you are up and then reboot.

"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"