Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Nov 2009 11:32:39 -0800
From:      Derrick Ryalls <ryallsd@gmail.com>
To:        Steve Polyack <korvus@comcast.net>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: ZFS disk replacement questions
Message-ID:  <d5eb95fc0911031132g264182c9qf1c4d51bb1ea2086@mail.gmail.com>
In-Reply-To: <4AF07493.7050208@comcast.net>
References:  <d5eb95fc0911030937n15bc2c9h73866ca6c7788216@mail.gmail.com> <4AF07493.7050208@comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 3, 2009 at 10:21 AM, Steve Polyack <korvus@comcast.net> 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.
>>
>>
>
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d5eb95fc0911031132g264182c9qf1c4d51bb1ea2086>