Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jul 2010 08:45:45 -0700
From:      Freddie Cash <fjwcash@gmail.com>
To:        freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: Problems replacing failing drive in ZFS pool
Message-ID:  <AANLkTimOIgCIO4txpPeeoMrRSYAqM25V7cm-h7djmZUC@mail.gmail.com>
In-Reply-To: <AANLkTimOrwHe7xiwoap2H2mUtA7vU6TjENkPC4yJ02_z@mail.gmail.com>
References:  <AANLkTimOrwHe7xiwoap2H2mUtA7vU6TjENkPC4yJ02_z@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 19, 2010 at 8:21 AM, Garrett Moore <garrettmoore@gmail.com> wro=
te:
> I have an 8-drive ZFS array consisting of WD15EADS drives. One of my disk=
s
> has started to fail, so I got a replacement disk. I have replaced a disk
> before by:
>
> =C2=A0zpool offline tank /dev/da5
> shutting down, swapping from old disk to new disk
> booting
> =C2=A0zpool replace tank /dev/da5
>
> This worked fine.
>
> This time the failing disk was da3, and I tried the same thing:
> =C2=A0zpool offline tank /dev/da3
> zpool status showed da3 offline.
> shut down, swapped old disk to new disk.

For some reason, ZFS is getting confused by the device names, possibly
due to the controller renumbering device nodes?

Try the following:
  zpool offline tank /dev/da3
  zpool status tank                           to make sure it offlined
the correct drive
  zpool export tank                           might have to do this
from single-user mode
  reboot

  zpool import tank                           this forces ZFS to
re-taste each drive to read the metadata
  zpool replace tank /dev/da3            this should force it to use
the correct drive

Note:  if you have / on ZFS, the above may not be doable.

--=20
Freddie Cash
fjwcash@gmail.com



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