- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Need to increase swap using new partition on a...
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
Discussions
Discussions
Forums
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
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
тАО07-01-2010 01:45 AM
тАО07-01-2010 01:45 AM
Need to increase swap using new partition on a server
I am going to create new partition.
what steps i need to do ? do i need to use swapoff command ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2010 07:25 AM
тАО07-01-2010 07:25 AM
Re: Need to increase swap using new partition on a server
Run the mkswap command against your new device. Just running it with the defaults against your device created above is usually fine.
mkswap /dev/
Add a line to /etc/fstab for your new swap device:
/dev/
run the command:
swapon -a
to verify you've got it:
cat /proc/swaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2010 08:35 AM
тАО07-01-2010 08:35 AM
Re: Need to increase swap using new partition on a server
After creating partition is would need reboot is it advised we can run partprobe command or should i go reboot ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2010 10:46 AM
тАО07-01-2010 10:46 AM
Re: Need to increase swap using new partition on a server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2010 12:52 PM
тАО07-01-2010 12:52 PM
Re: Need to increase swap using new partition on a server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2010 09:38 PM
тАО07-01-2010 09:38 PM
Re: Need to increase swap using new partition on a server
The steps to Create A new Swap Space.
1) Create A new filesystem with the partition System ID of "linux Swap"
2) Use mkswap to set up a Linux swap area on the partition.
3) If you want to make it permanant make an entry of it in /etc/fstab
4) swapon with partition name will activate that partition as Swap
You can view your newly created swap space is active or not by using Command
1) cat /proc/swaps
2) free
3) top
Regards
Ishwar