Operating System - HP-UX
1748170 Members
4298 Online
108758 Solutions
New Discussion юеВ

Re: To remove secondary swap

 
SOLVED
Go to solution
M.sureshkumar
Regular Advisor

To remove secondary swap

Hi All,

I want to remove secondary swap on our hpunix 11.23(ia) server.Please share the procedure.
I have attached swapinfo output.

Is it possiple to remove secondary swap without reboot ?

Regards,
Suresh.
15 REPLIES 15
Md. Farhan A Azam
Trusted Contributor

Re: To remove secondary swap

R.K. #
Honored Contributor

Re: To remove secondary swap

Hi Suresh,

To my knowledge we have to perform below steps:
- First remove the entry in "/etc/fstab" for "/dev/vgswap/swaplv"
- Reboot the server in order to remove this swap.

So by this way, reboot is necessary.

Thanks,
R.K.
Don't fix what ain't broke
Johnson Punniyalingam
Honored Contributor

Re: To remove secondary swap

That's an easy 2 step process --

1) Comment out, or delete, the /dev/vg00/u0swap line in /etc/fstab

2) Reboot the machine. Upon reboot that swap area won't be mounted.

Swap can NOT be deleted without rebooting the machine. If this is something you wanted to accomplis without a reboot, then I'm sorry to tell you that you can't do it. A reboot will be required!

removing swap would require a system reboot

Good Luck !

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Md. Farhan A Azam
Trusted Contributor

Re: To remove secondary swap

Hi,

Can u post the output of below command.

#more /etc/fstab

Re: To remove secondary swap

as already indicated, a reboot is required.

11iv3 (11.31) introduced the swapoff command, so it can be done without a reboot in the latest version of the OS.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Aneesh Mohan
Honored Contributor
Solution

Re: To remove secondary swap

Hi Duncan ,

swapoff ?? , I couldn`t find it on hpux 11.31.0803.Could you advice me .

fyi :-
# uname -a
HP-UX cmcrxsvr B.11.31 U ia64 3902920412 unlimited-user license
# swlist |grep -i oe
HPUX11i-DC-OE B.11.31.0803 HP-UX Data Center Operating Environment
# whereis swapoff
swapoff:
#

Thanks ,
Aneesh
Md. Farhan A Azam
Trusted Contributor

Re: To remove secondary swap

Hi,

If u got the solution, then plz go ahead and assign the points.
Aneesh Mohan
Honored Contributor

Re: To remove secondary swap

M.sureshkumar
Regular Advisor

Re: To remove secondary swap

Hi

Pls find fstab output.

root@app1#more /etc/fstab
# System /etc/fstab file. Static information about the file systems
# See fstab(4) and sam(1M) for further details on configuring devices.
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand vxfs tranflush 0 1
/dev/vg00/lvol4 /home vxfs delaylog 0 2
/dev/vg00/lvol5 /opt vxfs delaylog 0 2
/dev/vg00/lvol6 /tmp vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvol8 /var vxfs delaylog 0 2
/dev/vg00/lvdb2 /db2 vxfs rw,suid,largefiles,delaylog,datainlog 0 2
/dev/vgswap/swaplv ... swap pri=0 0 0




Regards,
Suresh