From owner-freebsd-questions@FreeBSD.ORG Tue May 14 12:55:24 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AE6B0D2A for ; Tue, 14 May 2013 12:55:24 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 78B7F96F for ; Tue, 14 May 2013 12:55:24 +0000 (UTC) Received: from r56.edvax.de (port-92-195-13-38.dynamic.qsc.de [92.195.13.38]) by mx02.qsc.de (Postfix) with ESMTP id C93AA276C9; Tue, 14 May 2013 14:47:12 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r4EClLuU001887; Tue, 14 May 2013 14:47:21 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Tue, 14 May 2013 14:47:21 +0200 From: Polytropon To: Robert Huff Subject: Re: Hot Swapping SATA drive? Message-Id: <20130514144721.aa321c25.freebsd@edvax.de> In-Reply-To: <20882.9169.697806.928200@jerusalem.litteratus.org> References: <26657.1368506242@server1.tristatelogic.com> <20882.9169.697806.928200@jerusalem.litteratus.org> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, "Ronald F. Guilmette" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 May 2013 12:55:24 -0000 On Tue, 14 May 2013 07:45:21 -0400, Robert Huff wrote: > > Ronald F. Guilmette writes: > > 1) Given a system running FreeBSD 9.1-RELEASE, is anything bad > > gonna happen if I insert a drive into this thing while the system > > is running? Will I be able to mount partitions contained on the > > drive in question after I do so? > > That works for me. I need to re-scan the ata channel using > "atacontrol" but once that happens it's fine. Isn't that supposed to be "camcontrol" today? I've been using SCSI "hot swap" devices for many years, and they usually required a re-scan of the bus. The same often works for USB-connected devices which also use CAM, and maybe SATA and eSATA also support it today? > > 2) Given a system running FreeBSD 9.1-RELEASE, is anything bad > > gonna happen if I remove a drive from this thing while the system > > is running, assuming that I have already properly umounted all > > relevant partitions first? > > Nothing bad happened to me. Again, it may be nice (to the system) to detach the ATA device from the bus; see "man atacontrol" (and "man camcontrol" in comparison) for the proper command to do this. From the "electrical point of view", there should be no problem. > > 3) Assuming that I want to do this stuff, what BIOS options > > should I be setting or unsetting on the motherboard? > > I am unable to check the BIOS settings on that MB (which may be > ASrock as well), but I don't believe I had to do anything other hand > make sure eSATA was enabled. The only thing that might be worth looking at in the CMOS setup would be the "method" of the driver, making the device come up as da0 (for example) or ada0, depending if EHCI or XHCI can be selected. But I assume this only applies to USB devices (and maybe Firewire). SATA should work fine with the default settings. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...