From owner-freebsd-questions@FreeBSD.ORG Tue Nov 3 19:32:40 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED2671065676 for ; Tue, 3 Nov 2009 19:32:40 +0000 (UTC) (envelope-from ryallsd@gmail.com) Received: from mail-qy0-f176.google.com (mail-qy0-f176.google.com [209.85.221.176]) by mx1.freebsd.org (Postfix) with ESMTP id A88F68FC08 for ; Tue, 3 Nov 2009 19:32:40 +0000 (UTC) Received: by qyk6 with SMTP id 6so3015076qyk.3 for ; Tue, 03 Nov 2009 11:32:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=FiCIWzM9lOwb6O5zhHoYyHsTfbP0txAv6OSV6+nz1lU=; b=IZvXVuIH2fwl/nV0KvvVz7LYU5fU6352h6k+4/9mFoud384PvEzEIU2ptnyzyMup2W i+1LVd1JX+QMwQNIWl5H5jk9BqRkMEDFLY/zRoVJTlj1/1boIEKLHhqmRW9dFvxuo9wB W/bLDTTn8pty2D2dVUW05wqFpSMqUq+a4anAQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=kmR9FRaW2A5uiuibU3t+tGT5K0lqdQVCbIkZTPY2ieHu5X722tpziFdiNMV1EP0oFu GpXh3zUhmr3FpgWjHyrE9sfH6WLxbPhGiBi5+2gdkqvltmkFNwSy2toBS5UwKVVY8LOO FetO+5vNepC0i025Ail1FxJmDi/Tt+XaOshus= MIME-Version: 1.0 Received: by 10.229.23.74 with SMTP id q10mr56399qcb.63.1257276759968; Tue, 03 Nov 2009 11:32:39 -0800 (PST) In-Reply-To: <4AF07493.7050208@comcast.net> References: <4AF07493.7050208@comcast.net> Date: Tue, 3 Nov 2009 11:32:39 -0800 Message-ID: From: Derrick Ryalls To: Steve Polyack Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Questions Subject: Re: ZFS disk replacement questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Nov 2009 19:32:41 -0000 On Tue, Nov 3, 2009 at 10:21 AM, Steve Polyack wrote: > Derrick Ryalls wrote: >> >> 1) In the event of a disk failure, how do I trace back the name such >> as adX to a physical drive in the enclosure? =A0Is there a way to take >> the drive offline then use atacontrol to spin it down or something so >> it is easy to identify? >> > > In my opinion you are best off using glabel(8) to give names to the disks= . > =A0This way you can name them in a way that makes sense to you. =A0Additi= onally, > when you create the ZFS pool you will use the glabel'd names. =A0This mea= ns > that the pool will still come up properly if something causes your device= s > to be numbered differently (i.e. a drive dies and you happen to reboot th= e > system). I believe ZFS does this automatically. Supposedly, if you take a working set of RAIDZ drives from one machine and put it in another, ZFS will figure out the drives since they get labelled by ZFS internally. My question concerns how to identify the physical disk in question based on the adX or glabel name? Different name in software is fine, but if the drive fails I want to make sure I pull the correct drive. > > Depending on your controller it is also probably worth it to use one of t= he > SATA-specific drivers in FreeBSD 8 - these are ones like ahci(4) and > siis(4). =A0While the generic ata(4) driver will work for pretty much > everything, the updated AHCI drivers can take advantage of some more > features. =A0Enable the modules at boot to use them. I will look into it, thanks. The machine in question is 2 year old hardware currently with a 3ware raid card. I will be going software raid only, but FreeBSD already recognizes the eSATA drive I have attached as a backup device so I know the O/S can at least talk to sata drives attached to the mobo. >> >> Any tips would be greatly appreciated. >> >> > > >