- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: how to create a new swap partition on a new hd...
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
01-17-2007 02:13 AM
01-17-2007 02:13 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2007 02:25 AM
01-17-2007 02:25 AM
Re: how to create a new swap partition on a new hdisk
You need to set up the second swap device on the new added disk. Usually use fdisk to complete this step
Next add the new swap partition on /etc/fstab
The new swap should be seen after the system is rebooted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2007 02:35 AM
01-17-2007 02:35 AM
SolutionThen (if for example the created partition is /dev/sdb1) you need to do:
mkswap /dev/sdb1
and to activate:
add respective entry to /etc/fstab and
swapon -a or simply reboot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2007 11:04 AM
01-17-2007 11:04 AM
Re: how to create a new swap partition on a new hdisk
How much memory is in that machine that you're running out of swap ?!?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2007 09:19 PM
01-17-2007 09:19 PM
Re: how to create a new swap partition on a new hdisk
Make sure that you do NOT create a second swap partition on the same physical hard disk as this will cause the disk to thrash, greatly reduce performance, and possibly damage the disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 02:45 AM
01-19-2007 02:45 AM
Re: how to create a new swap partition on a new hdisk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 02:52 AM
01-19-2007 02:52 AM
Re: how to create a new swap partition on a new hdisk
>>> Make sure that you do NOT create a second swap partition on the same physical hard disk as this will cause the disk to thrash, greatly reduce performance, and possibly damage the disk.
In the past, Linux was not able to handle swap partitions larger than 2 GB and you have to create several partitions of 2 GB on the same disk for the swap to be accroding with your RAM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 03:11 AM
01-19-2007 03:11 AM
Re: how to create a new swap partition on a new hdisk
As for the paging space limitation I think that there are two separate points there and I would still recommend putting them on multiple disks, since, correct me if I'm wrong, even a lower priority swap device could be in use at the same time as another, if it were to be fully utilised.
Where possible for Windows, Linux, et al, I would always recommend if possible that you use more than one physical disk. One for the OS, and another for paging and data.
in any event I'm always happy when somebody disagrees, but we can all learn something :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 03:13 AM
01-19-2007 03:13 AM
Re: how to create a new swap partition on a new hdisk
In the past, i have installed Fedora and Debian on the same computer but in two different disks.
I have created the swap partition of one linux distro on the disk of other distro.
This only for the performance.
So, i used GParted, a free Linux LiveCD distro.
http://gparted.sourceforge.net/
It work like Partition Magic.
Good for work the partitions.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 04:30 AM
01-19-2007 04:30 AM
Re: how to create a new swap partition on a new hdisk
Is it better to spread things across multiple drives? Usually. Is it necessary? Usually not. That means the real question becomes: is it practical? My experience has been that it usually isn't, for one simple reason - most of the systems large enough for me to worry about it have used some kind of array storage that distributed the I/O better than I could have.