- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- secondary swap delete
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 01:26 PM
03-08-2004 01:26 PM
Need some advice / document on how to delete the secondary swap space . Here are information from swapinfo :
# swapinfo
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1048576 118320 930256 11% 0 - 1 /dev/vg00/lvol2
dev 10240000 0 10240000 0% 0 - 2 /dev/vg00/u0swap
reserve - 290452 -290452
memory 336332 137888 198444 41%
want to delete /dev/vg00/u0swap .
regards
mB
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 01:36 PM
03-08-2004 01:36 PM
Solution1) 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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 01:50 PM
03-08-2004 01:50 PM
Re: secondary swap delete
Comment or delete the /dev/vg00/u0swap line in /etc/fstab and reboot the machine.
Reboot is must.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 02:30 PM
03-08-2004 02:30 PM
Re: secondary swap delete
removing swap would require a system reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 03:07 PM
03-08-2004 03:07 PM
Re: secondary swap delete
Edit the /etc/fstab and comment out the line for the swap or remove the line and then reboot your system when ready.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 06:16 PM
03-08-2004 06:16 PM
Re: secondary swap delete
The above is the same for device seap and filesystem swap.
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 08:26 PM
03-08-2004 08:26 PM
Re: secondary swap delete
unfortunately all replies regarding swapspace releasing on HP-UX are correct in that to achieve this a reboot is required.
However, I cannot supress to mention that there are indeed other Unices where such is possible without a reboot.
E.g. here's the manpage of the swap command of a Solaris 8 box of ours':
Maintenance Commands swap(1M)
NAME
swap - swap administrative interface
SYNOPSIS
/usr/sbin/swap -a swapname [ swaplow ] [ swaplen ]
/usr/sbin/swap -d swapname [ swaplow ]
/usr/sbin/swap -l
/usr/sbin/swap -s
DESCRIPTION
The swap utility provides a method of adding, deleting, and
monitoring the system swap areas used by the memory manager.
OPTIONS
The following options are supported:
...
-d swapname
Delete the specified swap area. This option can only
be used by the super-user. swapname is the name of the
swap file: for example, /dev/dsk/c0t0d0s1 or a regular
file. swaplow is the offset in 512-byte blocks into
the swap area to be deleted. If swaplow is not speci-
fied, the area will be deleted starting at the second
page. When the command completes, swap blocks can no
longer be allocated from this area and all swap blocks
previously in use in this swap area have been moved to
other swap areas.
N.B. to my knowing Linux as well comes with a swapoff command ;-)
- Tags:
- swapoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2011 02:42 AM
09-05-2011 02:42 AM
Re: secondary swap delete
Hello,
For removing secondary swap also reboot is must.
Remove entry from fstab
reboot server.Seems that is the only option.
Rgds
Sree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2011 03:26 AM
09-05-2011 03:26 AM
Re: secondary swap delete
There is a free optional enhancement package for HP-UX 11.31 that provides the "swapoff" functionality:
https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=SwapoffEnh
The installation instructions don't mention if the installation of SwapoffEnh requires a reboot or not. However, they say this package depends on kernel patch PHKL_38038: if you don't have that patch installed, installing the kernel patch will definitely require a reboot.
- Tags:
- swapoff