From owner-freebsd-fs@freebsd.org Tue Jul 21 07:54:59 2015 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 E4EE99A6F75 for ; Tue, 21 Jul 2015 07:54:59 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.81]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AA9F619DD for ; Tue, 21 Jul 2015 07:54:59 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1ZHSO2-0000Vw-Op; Tue, 21 Jul 2015 09:54:56 +0200 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-fs@freebsd.org, "Matthew Seaman" Subject: Re: Attach a device to an unimported pool? References: <55ADA043.5060002@FreeBSD.org> <55ADCFFD.8090000@infracaninophile.co.uk> Date: Tue, 21 Jul 2015 09:54:49 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: <55ADCFFD.8090000@infracaninophile.co.uk> User-Agent: Opera Mail/1.0 (Win32) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: - X-Spam-Score: -1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, BAYES_20, URIBL_BLOCKED autolearn=disabled version=3.3.1 X-Scan-Signature: 12f61b0c8dc8dcc8c992b8e1fde77987 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2015 07:55:00 -0000 On Tue, 21 Jul 2015 06:52:13 +0200, Matthew Seaman wrote: > On 2015/07/21 02:28, Matthew Seaman wrote: >> I have an unimportable zpool which is telling me to 'attach the missing >> devices and try again' >> >> The missing devices are a mirrored pair for logs -- they exist and >> should be readily attachable, but it seems I cannot attach devices to an >> un-imported pool, and I can't import the pool with out attaching the >> devices. >> >> Any clues as to how to unfuck this system most gratefully received. > > Following myself up, because I missed out providing enough useful > information. > > This is a 10.1-RELEASE machine -- I was upgrading it from p5 to p14 and > changing the vfs.zfs.arc_max setting: nothing that should have been > anything other than routine. However the machine wouldn't reboot > properly, and I have eventually ended up with it booted up from a USB > stick trying to repair it's boot pool. > > I've tried: > > zpool import -R /mnt zroot > zpool import -f -R /mnt zroot > zpool import -f -F -R /mnt zroot > zpool import -f -m /mnt zroot > > plus variations on zpool attach ... and zpool replace ... none of which > has succeeded. > > Matthew > > I did not try, but can you import the pool readonly? Ronald.