LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-20-2007, 02:28 PM   #1
paco36
Member
 
Registered: Jan 2004
Distribution: Fedora Core 2, Gentoo
Posts: 33

Rep: Reputation: 15
Best Practices for RAID Swap


Hello,

I am setting up a software RAID system on top of Suse 10.2 using mdadm. I have read several different opinions regarding what to do with swap in a RAID setup. I plan on having two mirrored hard drives. I would like the system to be able to continue running even if a disk crashes.

I have read some places that it would best to set up a swap partition on each disk using RAID 0 to increase performance. However, if a single disk crashes will the system continue to run or will it even boot with only one disk available from a 0 swap array?

Also, I have seen some people say that using RAID1 on the swap partitions in the best thing to do and will make sure that the computer will continue running even if one drive fails. However, others have said that this is not needed since it will reduce swap speed and is unnecessary.

And lastly, people have said that it is best to keep the swap partition out of the array completely and just prioritize the partitions in fstab. If I go this route, if a drive crashes that contains needed swap data, won't the entire system go down or segfault?

Does anybody have any opinions on which is the best solution to accommodate the swap partition if I want the computer to continue running even if a single drive crashes?

Thanks,
-Tom
 
Old 04-20-2007, 03:15 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Raid0 is very fast but has no backup. If one disk on a raid0 setup crashes you loose everything.


Raid1 is much slower. Essentially one disk is the backup of the other. If one crashes you should be able to stick in a replacement drive and rebuild.

Two 100gb disks in a raid0 setup will give you about 200gb storage space. Two 100gb disks in a raid1 will give you about 100gb of storage space.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC6 Raid 1 on /, /boot, and swap sephiro499 Fedora 4 12-23-2006 03:37 AM
RAID 1 swap device does not start automatically upon restart Akhran Linux - Newbie 8 10-11-2006 05:45 PM
LXer: Encrypting /home and swap over RAID with dm-crypt LXer Syndicated Linux News 0 05-24-2006 04:54 AM
swap and raid 1 xrado Linux - General 1 05-20-2005 08:01 PM
Raid 1 stopping sync problem after swap guanyu Linux - Networking 0 03-07-2003 01:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration