Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Aug 2016 14:52:07 +0200
From:      Oliver Peter <lists@peter.de.com>
To:        FreeBSD FS <freebsd-fs@freebsd.org>
Subject:   Re: [ZFS] "online" spares ?
Message-ID:  <20160823125207.GA20287@mail.opdns.de>
In-Reply-To: <CBE4BFA0-D8C8-4CAE-A232-079B3A97657C@gmail.com>
References:  <CBE4BFA0-D8C8-4CAE-A232-079B3A97657C@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 22, 2016 at 06:31:29PM +0200, Ben RUBSON wrote:
> Hello,
> 
> Let's assume the following status :
> 
>   pool: zroot
>  state: ONLINE
> config:
> 	NAME                       STATE     READ WRITE CKSUM
> 	zroot                      ONLINE       0     0     0
> 	  mirror-0                 ONLINE       0     0     0
>           (...)
> 	spares
> 	  15751675431801904320     REMOVED   was /dev/label/X92020TYEEGHT
> 
> For some reason one of the spares is in removed state but is now available again to the system.
> "online" command does not work for spares.
> Is there any way to bring spares back to available state without having to "remove" and "add" them again ?
> 
> Many thanks !

If the spare comes up as /dev/label/X92020TYEEGHT again you might want to
give 'zpool clear zroot' a try.  That did it for me.


-- 
Oliver PETER       oliver@gfuzz.de       0x456D688F



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