Hot-swap SATA and atacontrol
justin at redwiredesign.com
Tue Aug 2 15:31:45 GMT 2005
I might be being a little dense, but what do you mean by sync?
From: owner-freebsd-current at freebsd.org
[mailto:owner-freebsd-current at freebsd.org] On Behalf Of Colin King
Sent: 02 August 2005 16:20
To: Justin Finkelstein
Cc: freebsd-current at freebsd.org
Subject: Re: Hot-swap SATA and atacontrol
Try swapping drives without using atacontrol and read the kernel messages
that follow. It will tell you if it automatically detached the old drive and
attached the new drive, somewhat like it does with USB. If not, you will
need to use atacontrol to manually detach and attach. Either way, you will
always need to unmount it, and since this kind of operation has crashed my
machine many times, you might as well sync before you do anything too.
The feature list doesn't seem to tell you either way if hot plugging is
supported. With IDE, it depends on the chipset you're using.
On Tue, Aug 02, 2005 at 10:23:09AM +0100, Justin Finkelstein wrote:
> OK, so how can I be sure that the controller DOES support hotswap
> SATA? I've tested pulling and replacing the drive several times while
> the system's on, umounting and remounting it to no ill affect.
> atacontrol's capability list below shows me lots of info, but I don't
> know how that relates to hotswap. one point is that the case comes
> with a hotswap backplane and I presume that the Supermicro board
> that's running the SATA should support hot-swap - it's running an
> Intel 6300ESB controller, and afaik that supports hot-swap.
> ATA channel 1, Master, device ad2:
> Protocol Serial ATA v1.0
> device model ST3160827AS
> serial number 4MT0J7AA
> firmware revision 3.42
> cylinders 16383
> heads 16
> sectors/track 63
> lba supported 268435455 sectors
> lba48 supported 312581808 sectors
> dma supported
> overlap not supported
> Feature Support Enable Value Vendor
> write cache yes yes
> read ahead yes yes
> SATA NCQ yes - 31/0x1F
> SMART yes yes
> microcode download yes yes
> security yes no
> power management yes yes
> advanced power management no no 65278/0xFEFE
> automatic acoustic management no no 0/0x00 254/0xFE
> -----Original Message-----
> From: Søren Schmidt [mailto:sos at FreeBSD.org]
> Sent: 02 August 2005 10:11
> To: Justin Finkelstein
> Cc: 'Colin King'; freebsd-current at FreeBSD.org
> Subject: Re: Hot-swap SATA and atacontrol
> On 02/08/2005, at 9:42, Justin Finkelstein wrote:
> > OK; so, what you're saying is that it'll be ok to pull the drive if
> > I've unmounted it?
> > In that case, is the atacontrol step unneccesary? My thinking is
> > that it
> > might be, but it's just another step to ensure nothing goes wrong.
> If the SATA controller supports hotswap ATA will notice when you yank
> the drive and detach it properly from the system (ATA wise, if
> mounted you get into trouble). Also it will autodiscover any SATA
> driver added, again only on supporting chipsets (and those I know how
> to handle).
> - Søren
> freebsd-current at freebsd.org mailing list
> To unsubscribe, send any mail to
> "freebsd-current-unsubscribe at freebsd.org"
More information about the freebsd-current