LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-30-2010, 08:12 AM   #1
slacky
Member
 
Registered: Feb 2004
Location: USA
Distribution: Debian
Posts: 174

Rep: Reputation: 16
Hot Swap SATA vs. USB HDDs


Hello,

I am planning on replacing a server that one of its purposes is to archive some weekly backup data, which I currently copy to USB hard drives for permanent storage. I am looking to replace with a new server that supports Hot Swap SATA. Are there any issues if hot swapping a SATA drive like I was changing the USB drive (plug in, mke2fs, mount, copy data, umount, unplug)? I've used hot swap SATA in RAID 5 arrays before that worked good for redundancy, but that was below the OS level - obviously the new backup archive drive would not be part of the RAID array.

Thanks,
slacky
 
Old 08-30-2010, 12:07 PM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
No problems for me in *buntu
 
1 members found this post helpful.
Old 08-30-2010, 12:22 PM   #3
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
I have not done this, but I rather suspect you'll have a problem in that the drive won't be automatically detected and mounted since it will appear in a location that UDEV isn't watching.

I think you'll have to force a rescan of the bus after inserting the drive. This should cause the new drive to be detected.

You can do this by going to /sys/class/scsi/scsi_host and examining the entries. One of them will be the entry for the SATA port you've connected your drive bay to. When you figure out which one it is, cd into that directory, then enter this command: echo "- - -" >scan

This will cause the system to rescan that bus and your new drive should be detected. Then you make your file system, etc, and you should be good to go.

edit:

If you are using the ahci driver for sata, I understand that it does support hotplugging. In this event, your drive should be detected automatically.

Last edited by jiml8; 08-30-2010 at 12:25 PM.
 
1 members found this post helpful.
Old 08-30-2010, 02:03 PM   #4
slacky
Member
 
Registered: Feb 2004
Location: USA
Distribution: Debian
Posts: 174

Original Poster
Rep: Reputation: 16
Okay, that makes sense. Looking at what I'm planning on buying for a server, motherboard SATA is Intel ICH9R which should be the AHCI driver, hardware RAID card is 3ware 3w_9xxx driver - so I think I will be able hot swap either way I connect the drives.
 
  


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
Is this normal operation for a SATA hot swap? dreamgear Linux - Hardware 6 08-17-2010 09:17 AM
Hardware recommendation - SATA hot swap trays wjtaylor Linux - Hardware 7 11-03-2009 05:48 PM
Debian lenny hot swap sata configuration. ZepTepi Linux - Hardware 1 09-11-2009 11:24 PM
Properly removing SATA hard drives(hot-swap) galapogos Linux - Hardware 3 08-26-2009 02:40 AM
Adding new Sata HDD hot swap beumont Linux - Hardware 1 10-12-2008 08:46 AM

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

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