From owner-freebsd-fs@FreeBSD.ORG Wed Aug 21 13:29:08 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A6088A3D for ; Wed, 21 Aug 2013 13:29:08 +0000 (UTC) (envelope-from mcdouga9@egr.msu.edu) Received: from mail.egr.msu.edu (dauterive.egr.msu.edu [35.9.37.168]) by mx1.freebsd.org (Postfix) with ESMTP id 7E64F2BBB for ; Wed, 21 Aug 2013 13:29:08 +0000 (UTC) Received: from dauterive (localhost [127.0.0.1]) by mail.egr.msu.edu (Postfix) with ESMTP id 3FD4C2D6CC for ; Wed, 21 Aug 2013 09:29:01 -0400 (EDT) X-Virus-Scanned: amavisd-new at egr.msu.edu Received: from mail.egr.msu.edu ([127.0.0.1]) by dauterive (dauterive.egr.msu.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W2kQOnwAjzja for ; Wed, 21 Aug 2013 09:29:01 -0400 (EDT) Received: from EGR authenticated sender Message-ID: <5214C089.2040206@egr.msu.edu> Date: Wed, 21 Aug 2013 09:28:41 -0400 From: Adam McDougall User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130808 Thunderbird/17.0.8 MIME-Version: 1.0 To: freebsd-fs@freebsd.org Subject: Re: How do we clear a bogus zpool? References: <1377015858.1450.3.camel@localhost> <20130821113850.GA63039@mid.pc5.i.0x5.de> <1377090973.2345.20.camel@localhost> In-Reply-To: <1377090973.2345.20.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Aug 2013 13:29:08 -0000 On 08/21/13 09:16, Sean Bruno wrote: > On Wed, 2013-08-21 at 13:38 +0200, Nicolas Rachinsky wrote: >>> # zpool destroy -f zroot >>> cannot open 'zroot': no such pool >>> # zpool clear -F zroot >>> cannot open 'zroot': no such pool >> >> What about zpool export zroot? >> >> Nicolas # > > > > # zpool export zroot > cannot open 'zroot': no such pool > # > Can you try 'truss zpool import' to see which device it opens just before printing information about the bogus zpool? It is a bit crude but it might help narrow down the source. Example output: ... open("/dev/da0p3",O_RDONLY,0240726100) = 7 (0x7) close(7) = 0 (0x0) __sysctl(0x7fffffff7ba0,0x2,0x7fffffff7bd0,0x7fffffff7c38,0x80146ac28,0x15) = 0 (0x0) __sysctl(0x7fffffff7bd0,0x4,0x7fffffff7c84,0x7fffffff7c78,0x0,0x0) = 0 (0x0) ioctl(3,0xc0185a05 { IORW 0x5a('Z'), 5, 24 },0xffff7c20) ERR#2 'No such file or directory' madvise(0x802843000,0x10000,0x5,0x42,0x7fffffff73a0,0xffffffff) = 0 (0x0) ioctl(3,0xc0185a06 { IORW 0x5a('Z'), 6, 24 },0xffff7ca0) = 0 (0x0) ioctl(3,0xc0185a06 { IORW 0x5a('Z'), 6, 24 },0xffff7ca0) = 0 (0x0) open("/dev/gptid/253f5bfa-8005-11e2-8c92-00224d51fa64",O_RDONLY,0240727500) = 7 (0x7) close(7) = 0 (0x0) ioctl(3,0xc0185a05 { IORW 0x5a('Z'), 5, 24 },0xffff7c20) = 0 (0x0) madvise(0x80288d000,0x10000,0x5,0x8c,0x7fffffff7390,0xffffffff) = 0 (0x0) open("/dev/gptid/cf8ffb28-d96f-11e0-8255-00224d51fa64",O_RDONLY,0240727500) = 7 (0x7) close(7) = 0 (0x0) ioctl(3,0xc0185a05 { IORW 0x5a('Z'), 5, 24 },0xffff7c20) = 0 (0x0) madvise(0x80288d000,0x10000,0x5,0x8c,0x7fffffff7390,0xffffffff) = 0 (0x0) __sysctl(0x7fffffff94f0,0x2,0x7fffffff94e0,0x7fffffff94e8,0x0,0x0) = 0 (0x0) fstat(1,{ mode=crw--w---- ,inode=212,size=0,blksize=4096 }) = 0 (0x0) ioctl(1,TIOCGETA,0xffff8fd0) = 0 (0x0) pool: cruzerfit write(1," pool: cruzerfit\n",19) = 19 (0x13) id: 14480202155425657121 write(1," id: 14480202155425657121\n",30) = 30 (0x1e) state: ONLINE