LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-01-2006, 01:20 AM   #1
Synesthesia
Member
 
Registered: Jan 2004
Location: the abyss
Posts: 209

Rep: Reputation: 30
Hot-swappable SATA Drives in RAID 5 on Linux?


Is it possible yet? How about with NCQ?
 
Old 01-02-2006, 02:40 PM   #2
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 433

Rep: Reputation: 117Reputation: 117
Quote:
Originally Posted by Synesthesia
Is it possible yet? How about with NCQ?
For NCQ see the "Linux SATA Hardware status" -> http://linux.yyz.us/sata/sata-status.html
Lookup up your controller. Some controllers supports ncq some other don't.

For Hotplugging see the "Linux SATA Software status" ->
http://linux.yyz.us/sata/software-status.html#hotplug

It says that you can't take the drive out yet.
 
Old 01-02-2006, 05:19 PM   #3
Synesthesia
Member
 
Registered: Jan 2004
Location: the abyss
Posts: 209

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by imitheos
For NCQ see the "Linux SATA Hardware status" -> http://linux.yyz.us/sata/sata-status.html
Lookup up your controller. Some controllers supports ncq some other don't.

For Hotplugging see the "Linux SATA Software status" ->
http://linux.yyz.us/sata/software-status.html#hotplug

It says that you can't take the drive out yet.
Well, thats the whole point of hotplug, especially with raid 5 or 6.
 
Old 01-03-2006, 07:41 AM   #4
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 433

Rep: Reputation: 117Reputation: 117
Quote:
Originally Posted by Synesthesia
Well, thats the whole point of hotplug, especially with raid 5 or 6.
Yes, it is just that libata isn't finished yet, so some things are not yet written.
I believe that when i was playing with some kernel patches i caught my eye in a patch
that implemented hotplug but is not in mainland libata yet. Search jgarzik directory
in your kernel.org mirror.
 
Old 01-05-2006, 12:09 AM   #5
LinuxGeek
Member
 
Registered: Jun 2002
Posts: 302

Rep: Reputation: 31
Just out of curiosity, does anyone know when they plan on completing it? We're thinking of building a small NAS for the office using linux but clearly hot swap is necessary. Also, if the drive is in a hot swap enclosure, does this make a difference in whether or not you can hot swap it? Thanks for your time.

PS. Also, is hot swap support being developed for PATA, SATA I, or SATA II? According to this thread: http://www.linuxquestions.org/questi...highlight=sata
only the SATA II interface allows for hot swapping. Is this true? Thanks for your time.

Last edited by LinuxGeek; 01-05-2006 at 12:12 AM.
 
Old 01-05-2006, 12:23 AM   #6
Synesthesia
Member
 
Registered: Jan 2004
Location: the abyss
Posts: 209

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by LinuxGeek
Just out of curiosity, does anyone know when they plan on completing it? We're thinking of building a small NAS for the office using linux but clearly hot swap is necessary. Also, if the drive is in a hot swap enclosure, does this make a difference in whether or not you can hot swap it? Thanks for your time.

PS. Also, is hot swap support being developed for PATA, SATA I, or SATA II? According to this thread: http://www.linuxquestions.org/questi...highlight=sata
only the SATA II interface allows for hot swapping. Is this true? Thanks for your time.
You could use SCSI. I'm pretty sure Linux has good SCSI hotswap implementation.
 
Old 01-05-2006, 06:24 AM   #7
LinuxGeek
Member
 
Registered: Jun 2002
Posts: 302

Rep: Reputation: 31
Quote:
Originally Posted by Synesthesia
You could use SCSI. I'm pretty sure Linux has good SCSI hotswap implementation.
Synesthesia, any links pertaining to SCSI hotswap support on Linux? Thanks for your time.
 
Old 01-05-2006, 01:58 PM   #8
Synesthesia
Member
 
Registered: Jan 2004
Location: the abyss
Posts: 209

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by LinuxGeek
Synesthesia, any links pertaining to SCSI hotswap support on Linux? Thanks for your time.
A variety of hopefully helpful links:

http://www.ram.org/computing/linux/dpt_raid.html

http://www.tldp.org/HOWTO/Hardware-HOWTO/scsi.html

http://www.linuxjournal.com/article/2391

http://www.linuxjournal.com/article/5653

http://linas.org/linux/raid.html

http://www.tldp.org/HOWTO/Software-RAID-HOWTO-4.html
 
Old 01-05-2006, 09:23 PM   #9
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Have a look at 3ware SATA-I and SATA-II controllers. The kernel does support the latest SATA-II controllers from 3ware but you need kernel version 2.6.14.

I suggest you do not mess with software RAID level 5 and 6 because it will put a very huge load on the computer if the system does not have multiple processors.

Using NCQ will slow the RAID-5 down, so only use it for RAID-1 or single drive systems. If you want the system to access multiple files at once, put two hardware RAID-5 arrays in software RAID-1. Buying a hard drive with the biggest cache will not help in RAID stripping levels. I do not think the hard drive cache is ever used in Linux anyways.
 
Old 01-06-2006, 02:35 AM   #10
LinuxGeek
Member
 
Registered: Jun 2002
Posts: 302

Rep: Reputation: 31
Thanks for the links Synesthesia. Electro, what are you experiences with RAID 5 or multiple RAID 5s in terms of CPU usage? On what CPU did you have the RAID configuraton and how much CPU usage did the RAID 5/6 take up? Also, would using a dual-core AMD64 processor be more than enough to handle the load?
 
Old 01-06-2006, 01:33 PM   #11
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Quote:
Originally Posted by LinuxGeek
Thanks for the links Synesthesia. Electro, what are you experiences with RAID 5 or multiple RAID 5s in terms of CPU usage? On what CPU did you have the RAID configuraton and how much CPU usage did the RAID 5/6 take up? Also, would using a dual-core AMD64 processor be more than enough to handle the load?
I am sorry, but I do not use RAID. What I have seen from benchmarks at several sites with software controllers (Promise and Highpoint) that includes RAID 5 support (for Windows only) perform poor even though they have onboard XOR and some cache. One reason for this is high processor usage. Hardware RAID controllers such as 3ware and Areca perform very well.

You can go with software RAID-5 or RAID-6 with a dual processor system like the Athlon64 X2 but the I/O throughput is going to be worst than going the hardware RAID controller route.
 
Old 01-06-2006, 06:14 PM   #12
Synesthesia
Member
 
Registered: Jan 2004
Location: the abyss
Posts: 209

Original Poster
Rep: Reputation: 30
I know its not linux oriented, but this is a nice read: http://www.tomshardware.com/2006/01/...d_controllers/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
God says THOU shalt MAKE SATAUX --- Linux dedicated to sata hard drives & Raid etc . studpenguin Linux - General 13 05-18-2007 07:21 PM
hot swap for adding random hard drives? PATA, SATA, SCSI? Oo.et.oO Linux - General 1 11-05-2005 10:38 AM
Hot Swappable USB devices vanwas Linux - Hardware 1 08-27-2004 10:50 PM
RAID 1 and Hot-Swapable drives tarballed Linux - General 10 02-12-2003 10:37 AM
hot swappable ide hard disks chens_83 Linux - General 1 09-23-2002 07:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:56 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