Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Jun 2012 21:38:44 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        Kaya Saman <kayasaman@gmail.com>
Cc:        freebsd-fs@FreeBSD.org
Subject:   Re: Using ZFS as RAID0 - disk offline question
Message-ID:  <4FCD1CD4.5080406@FreeBSD.org>
In-Reply-To: <4FCD19E6.1010802@gmail.com>
References:  <4FCD13CF.3010406@gmail.com> <4FCD17C6.5020503@FreeBSD.org> <4FCD19E6.1010802@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig7C07C9F536A679043898022C
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 04/06/2012 21:26, Kaya Saman wrote:
> You see if say a system board fails and both devices are named /dev/ad4=

> and /dev/ad5 then a new system board gets put in and the device names
> changed to /dev/ad12 and /dev/ad13 my question is will the ZPOOL still
> exist? Will ZFS be intelligent enough to pick up the new device names
> via the disk ID's?

Yes, this should work just fine.  ZFS labels each disk with its own UUID
value, so you can pretty much shuffle the disks in any order across all
available disk slots, and ZFS will be able to put the zpool back together=
=2E

> Additionally if /dev/ad5 goes down, is it possible to keep using
> /dev/ad4 which is part of the 'downed' pool...?? Or would one need to
> replace the disk ad5 then the pool comes up again with only the
> information on ad4??

No.  A RAID0 zpool will be marked offline if any of the drives within it
fails.  You might be able to recover some data from remaining drives,
but not easily.  The surest way of getting anything back would be to go
to a specialist disaster recovery company, but expect to pay $$$ for it.
 Considering the price of hard drives nowadays, this would be a dumb
choice: you could easily convert your RAID0 to a RAID10 for much less
than it would cost you to try and recover from a broken RAID0.

Even if you do install a replacement disk, ZFS won't be able to rebuild
from your original drive.  You'ld have to wipe and rebuild from scratch.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey



--------------enig7C07C9F536A679043898022C
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/NHNUACgkQ8Mjk52CukIyQRwCdF2OY+RQiQTiY4NTeAp+bPD47
Pb8An0q1PigP/Ncx6co2c4Oj+bO8+pVN
=IiSz
-----END PGP SIGNATURE-----

--------------enig7C07C9F536A679043898022C--



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