ZFS zpool mirror drive replacement confusion

Freddie Cash fjwcash at gmail.com
Thu Aug 11 16:36:09 UTC 2011


On Thu, Aug 11, 2011 at 9:30 AM, Andriy Gapon <avg at freebsd.org> wrote:

> on 11/08/2011 19:03 Martin Cracauer said the following:

> It didn't

> >   let me, saying it can only remove drives from mirror or raid sets.
> >   I think it should have been possible before I mounted the filesystem
> >   in there read-write for the first time after the drive add.  This
> >   seems like an easy mistake to make.
>
> This has been reported to the ZFS people (upstream) many times, still they
> didn't
> add any safety nets.
>
> There's a very big safety net included already:  zpool will error out
complaining about mis-matched vdevs if you try to "zpool add" a single disk
to a pool with a mirror vdev.  In fact, the user has to add "-f" (force) to
the "zpool add" command in order for this to even happen.  IOW, this is user
error, not "lack of safety nets".  :)


> > The array doesn't contain important data, just trying to sort out
> > things for the future.
>
> Read the docs, twice, be careful, take backups before any modifying
> actions.
>
> And read the error messages, as well.  :)

-- 
Freddie Cash
fjwcash at gmail.com


More information about the freebsd-fs mailing list