- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: swap problem
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
11-06-2002 12:37 AM
11-06-2002 12:37 AM
swap problem
Enable auxiliary swap space
Output from "/sbin/rc1.d/S500swap_start start":
----------------------------
Enabling device paging on /dev/vg02/lvswap02.
/usr/sbin/swapon: Device /dev/vg02/lvswap02 contains a file system.
The system will page in the space after the end of the file system.
Add `end' to the options field in /etc/fstab to turn off this warning.
/usr/sbin/swapon: The kernel tunable parameter "maxswapchunks" needs to be increased to add
paging on device /dev/vg02/lvswap02.
Warning: swapon returned exit code: 1
"/sbin/rc1.d/S500swap_start start" FAILED
I have checked the maxswapchunk parameter, 8000 should be sufficient for 16GB of swap space.
The primary lvol2 swap seem to be okay. The only problem is the other swap in vg02 when I use swapon /dev/vg02/lvswap02, I will get this error
swapon: Device /dev/vg02/lvswap02 contains a file system.
Use -e to page after the end of the file system, or -f to overwrite
the file system with paging.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2002 12:40 AM
11-06-2002 12:40 AM
Re: swap problem
swapon has detected that the logical volume that you are trying to use used to contain a filesytem. This quite often happens when you reuse an area of disk.
All you have to do to override this safety feature is to run swapon with the -f (force) flag (see man 1m swapon). This will overwrite the filesystem data and you won't get the error again.
swapon -f /dev/vg02/lvswap02
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2002 12:53 AM
11-06-2002 12:53 AM
Re: swap problem
Then reboot the machine.
This should resolve it.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2002 12:54 AM
11-06-2002 12:54 AM
Re: swap problem
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2002 12:56 AM
11-06-2002 12:56 AM
Re: swap problem
you can remove an create the lv again, to get rid of the filesystem on the lv. use lvremove and lvcreate. You do not have to go to runlevel 1 since the swapdevice is not in use.
Goodluck,
Donald
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2002 01:05 AM
11-06-2002 01:05 AM
Re: swap problem
Regards,
John