1847574 Members
4034 Online
110265 Solutions
New Discussion

Remove swap

 
SOLVED
Go to solution
hpuxrox
Respected Contributor

Remove swap

Can someone tell me how to remove swap on hpux 11.23. This used to be in the fstab, but have no idea how to do it now..
10 REPLIES 10
Torsten.
Acclaimed Contributor
Solution

Re: Remove swap

Remove the entry from fstab file and reboot.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
hpuxrox
Respected Contributor

Re: Remove swap

There is no entry in the fstab
Tim Nelson
Honored Contributor

Re: Remove swap

Primary swap ? I would assume because all others should be in the fstab.

If removing or reducing primary you may have to do it by booting into lvm maintenance mode.

I do not think modifying with lvrmboot -s xyz /dev/vg00 will suffice. Never tried though.
Patrick Wallek
Honored Contributor

Re: Remove swap

If you have no entry in /etc/fstab, then you probably just have primary swap, usually /dev/vg00/lvol2, defines and that CAN NOT be removed. Primary swap is REQUIRED.

If you post the output of:

# swapinfo -tam

we can verify.
James R. Ferguson
Acclaimed Contributor

Re: Remove swap

Hi:

To remove secondary swap space you delete the entry (entries) in '/etc/fstab' and reboot. Secondary swap can only be de-activated with a reboot. Following the boot, you can 'lvremove' the logical volume(s) representing the defunct swap device(s).

Regards!

...JRF...
Torsten.
Acclaimed Contributor

Re: Remove swap

How about

swapinfo -tam

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
James R. Ferguson
Acclaimed Contributor

Re: Remove swap

Hi (again):

Perhaps the entry was never made in '/etc/fstab', but the swap device created and activiated on-the-fly. I presume that you are seeing additional (secondary) swap in the output of 'swapinfo -tam'. If so, reboot as I indicated above.

Regards!

...JRF...
hpuxrox
Respected Contributor

Re: Remove swap

# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 8192 0 8192 0% 0 - 1 /dev/vg00/lvol2
dev 8192 0 8192 0% 0 - 1 /dev/vg00/lvol11
reserve - 1732 -1732
memory 8181 2859 5322 35%
total 16373 4591 11782 28% - 0 -
Torsten.
Acclaimed Contributor

Re: Remove swap

You want to remove this:

/dev/vg00/lvol11

right?

If it is not in fstab, a reboot should be enough to remove it. Perhaps it was created and activated since the last reboot.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
James R. Ferguson
Acclaimed Contributor

Re: Remove swap

Hi:

Your 'lvol11' is secondary swap. The 'lvol2' is the primary swap device which is required and cannot be removed.

Remember that you do *not* specifiy primary swap in '/etc/fstab'. It is activated during startup independently. Should you specify a primary swap device in '/etc/fstab' you will see an error reported during startup to the effect that primary swap is already active.

Regards!

...JRF...