- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Replacing swap with larger logcial volume - Can I ...
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
04-20-2004 07:30 AM
04-20-2004 07:30 AM
Question:
Can I comment out the entry in /etc/fstab, reboot, delete and recreate the logical volume with a bigger size and then re-enable swap to use the larger logical volume?
Will the server have any problems shutting down if the fstab entry is missing?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 07:34 AM
04-20-2004 07:34 AM
SolutionAll sounds rather depressing! However, there is nothing to stop you having two swap logical volumes. Keep your existing one and just create a new 1GB logical volume and add it to /etc/fstab taking the existing entry as a template. You can start using this new swap immediately with the "swapon" command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 07:37 AM
04-20-2004 07:37 AM
Re: Replacing swap with larger logcial volume - Can I remove fstab entry
I assume you mean secondary swap - not in vg00.
In that case - certainly - you can do that. I would just caution you to keep the system quiesced such that you won't need that secondary swap for reservation purposes.
Also I'd urge you to verify you kernal parms maxswapchunks & swchunks to make sure they're high enough before adding or raise them on the first boot so they will be.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 07:37 AM
04-20-2004 07:37 AM
Re: Replacing swap with larger logcial volume - Can I remove fstab entry
If this is secondary swap then simply change the /etc/fstab entry to reflect the new swap LVOL and reboot. The system won't care and the reboot will utilize the new swap LVOL. You can then remove the original, non-primary swap LVOL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 07:41 AM
04-20-2004 07:41 AM
Re: Replacing swap with larger logcial volume - Can I remove fstab entry
1 - Comment out secondary swap entries (not lvol2) from /etc/fstab
2 - Reboot the server. Swapping on the logical volumes should not be in use at this point. The default lvol2 will be used.
3 - lvremove the two old swap volumes.
4 - lvcreate -C y -L 2000 -n lvol3 /dev/vg00
5 - Re-insert one more swap entry in /etc/fstab.
6 - Reboot.
Not sure if I was clear before.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 07:44 AM
04-20-2004 07:44 AM
Re: Replacing swap with larger logcial volume - Can I remove fstab entry
I don't believe you need that last reboot.
You can activate *new* swap with just
swapon -a
IF you have it's entry proper in the fstab file AND you have the sufficient sized kernel parms already set.
My 2 cents,
Jeff (Who's all for minimum reboots)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 07:46 AM
04-20-2004 07:46 AM
Re: Replacing swap with larger logcial volume - Can I remove fstab entry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 07:51 AM
04-20-2004 07:51 AM
Re: Replacing swap with larger logcial volume - Can I remove fstab entry
Do not mess with lvol2 (primary swap / dump). If you want to increase the size of primary swap, take a ignite backup and rebuild the root disk using the ignite tape.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 07:56 AM
04-20-2004 07:56 AM
Re: Replacing swap with larger logcial volume - Can I remove fstab entry
Jack
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 08:04 AM
04-20-2004 08:04 AM
Re: Replacing swap with larger logcial volume - Can I remove fstab entry
If you are worried about multiple swaps and want to combine them into one single swap, don't do that.
//Quote//
Multiple swap areas on different disks perform better than one swap area of the equivalent size
//endQuote//
Try this link below,
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000072951343
The ITRC doc id is KBAN00000895.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 08:08 AM
04-20-2004 08:08 AM
Re: Replacing swap with larger logcial volume - Can I remove fstab entry
Well, technically yes.
But IF you're swapping it won't make much difference as performance will be in the toilet anyway. And when it comes to swap reservation, since nothing is actually written to the device, it won't make any difference there as well.
My 2 cents,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 08:08 AM
04-20-2004 08:08 AM
Re: Replacing swap with larger logcial volume - Can I remove fstab entry
I added the lvswap3 in an emergency because swap was originally undersized. I'd like to have only lvol2 and lvol3, nothing more.
jack..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 08:17 AM
04-20-2004 08:17 AM
Re: Replacing swap with larger logcial volume - Can I remove fstab entry
If you want only lvol2 on the system, then ignite is the way to go.
Jeff,
I'm not sure that i agree with you. But of-course the ground realities might be different for both of us.
Hope this helps.
Regds