Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Aug 2011 18:17:03 +0200
From:      Olivier Smedts <olivier@gid0.org>
To:        Martin Cracauer <cracauer@cons.org>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: ZFS zpool mirror drive replacement confusion
Message-ID:  <CABzXLYMZJJfpw=3ALn7EkvZvYizrKgogQor-vkpfpo5BnTKTQg@mail.gmail.com>
In-Reply-To: <20110811160314.GA25076@cons.org>
References:  <20110811160314.GA25076@cons.org>

next in thread | previous in thread | raw e-mail | index | archive | help

2011/8/11 Martin Cracauer <cracauer@cons.org>:
> My computer keeps doing what I say, not what I want :-)
>
> This zpool with a 2-drive mirror had a dead drive (ad10) which I
> removed.  After I tried to put ad2 as a replacement drive I ended up
> with the drive not in the mirror, it seems to have extended the zpool
> (it's size?).
>
>        NAME        STATE     READ WRITE CKSUM
>        cbackup3    DEGRADED     0     0     0
>          mirror    DEGRADED     0     0     0
>            ad6     ONLINE       0     0     0
>            ad10    REMOVED      0     0     0
>          ad2       ONLINE       0     0    11
>
> Unfortunately I didn't keep note of the specific command that I used.
>
> Two questions:
>
> - Does somebody know offhand what I did and what I should have done
>  instead to get ad2 into the mirror?

Maybe try :
zpool history

> - Would there have been a way to remove ad2 from this set? 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.

Unfortunately, There is no way to shrink a pool, or remove vdevs.

> The array doesn't contain important data, just trying to sort out
> things for the future.
>
> Martin
> --
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> Martin Cracauer <cracauer@cons.org>   http://www.cons.org/cracauer/
> _______________________________________________
> freebsd-fs@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"
>



-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: olivier@gid0.org        - against HTML email & vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  "Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABzXLYMZJJfpw=3ALn7EkvZvYizrKgogQor-vkpfpo5BnTKTQg>