From owner-freebsd-fs@freebsd.org Tue Aug 23 13:01:58 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 27CA9BC3CB2 for ; Tue, 23 Aug 2016 13:01:58 +0000 (UTC) (envelope-from lists@peter.de.com) Received: from elsa.gfuzz.de (elsa.gfuzz.de [176.9.193.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E26CD16C2 for ; Tue, 23 Aug 2016 13:01:57 +0000 (UTC) (envelope-from lists@peter.de.com) Received: from localhost (localhost [127.0.0.1]) by elsa.gfuzz.de (Postfix) with ESMTP id DD21F1000CD for ; Tue, 23 Aug 2016 14:52:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at elsa.gfuzz.de Received: from elsa.gfuzz.de ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6UOx9W9ZJIdQ for ; Tue, 23 Aug 2016 14:52:09 +0200 (CEST) Received: from mail.opdns.de (ipbcc23b2b.dynamic.kabel-deutschland.de [188.194.59.43]) (Authenticated sender: oliver@gfuzz.de) by elsa.gfuzz.de (Postfix) with ESMTPSA id 74E9E10006E for ; Tue, 23 Aug 2016 14:52:09 +0200 (CEST) Date: Tue, 23 Aug 2016 14:52:07 +0200 From: Oliver Peter To: FreeBSD FS Subject: Re: [ZFS] "online" spares ? Message-ID: <20160823125207.GA20287@mail.opdns.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux 3.16.0-4-686-pae i686 User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2016 13:01:58 -0000 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