Operating System - HP-UX
1833875 Members
3102 Online
110063 Solutions
New Discussion

Info Regarding reducing swap without rebooting the system

 
SOLVED
Go to solution
akshata bv
Occasional Advisor

Info Regarding reducing swap without rebooting the system

Hi,

I am working on a critical HP-UX 11i server. We need to recreate the swap as it has not been created according to the standard. This swap space is a device swap. Is there a way to delete this swap without rebooting the server and recreating it once again according to standard?Is hashing of the entry in /etc/fstab and rebooting the server the only solution to remove device swap?

Thanks in advance for taking time to reply to my enquiry.

Regards
Akshata
3 REPLIES 3
Pete Randall
Outstanding Contributor
Solution

Re: Info Regarding reducing swap without rebooting the system

There is no such thing as a "swapoff" command so your only choice is reboot.


Pete

Pete
Bill Hassell
Honored Contributor

Re: Info Regarding reducing swap without rebooting the system

Swap space is the same as RAM since this is a virtual memory OS. Therefore, swap space can never be reduced on a running system, whether it is used/reserved or not. There is nothing to change in fstab except to remove additional (secondary) swap space. the primary swap space can never be removed or reduced in size except by reinstalling (ie, using Ignite/UX). If you are removing secondary swap space, you remove the entry from fstab and then reboot. You can add swap space at any time with swapon.


Bill Hassell, sysadmin
akshata bv
Occasional Advisor

Re: Info Regarding reducing swap without rebooting the system

Hi,

Thanks to all for replying.

I was talking about reducing secondary swap. So there is no option to remove swap without reebooting.

Will get a down time and remove the secondary swap and recreate them.

Regards
Akshata