From owner-freebsd-fs@FreeBSD.ORG Fri Apr 5 14:42:41 2013 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4040694F; Fri, 5 Apr 2013 14:42:41 +0000 (UTC) (envelope-from jayb@braeburn.org) Received: from nbfkord-smmo06.seg.att.com (nbfkord-smmo06.seg.att.com [209.65.160.94]) by mx1.freebsd.org (Postfix) with ESMTP id DA657A72; Fri, 5 Apr 2013 14:42:40 +0000 (UTC) Received: from unknown [144.160.20.145] (EHLO nbfkord-smmo06.seg.att.com) by nbfkord-smmo06.seg.att.com(mxl_mta-6.15.0-1) with ESMTP id 0e2ee515.2aaaf9a28940.122692.00-547.338321.nbfkord-smmo06.seg.att.com (envelope-from ); Fri, 05 Apr 2013 14:42:40 +0000 (UTC) X-MXL-Hash: 515ee2e05b3c0712-c82793b61271cd8ccf89d2f2cbc647dc9a3f93b2 Received: from unknown [144.160.20.145] (EHLO mlpd192.enaf.sfdc.sbc.com) by nbfkord-smmo06.seg.att.com(mxl_mta-6.15.0-1) over TLS secured channel with ESMTP id dc2ee515.0.122525.00-425.337802.nbfkord-smmo06.seg.att.com (envelope-from ); Fri, 05 Apr 2013 14:42:22 +0000 (UTC) X-MXL-Hash: 515ee2ce72c8190a-f84b9012b400db2181a2180e0377929a3e178123 Received: from enaf.sfdc.sbc.com (localhost.localdomain [127.0.0.1]) by mlpd192.enaf.sfdc.sbc.com (8.14.5/8.14.5) with ESMTP id r35EgLDx025777; Fri, 5 Apr 2013 10:42:21 -0400 Received: from alpi133.aldc.att.com (alpi133.aldc.att.com [130.8.217.3]) by mlpd192.enaf.sfdc.sbc.com (8.14.5/8.14.5) with ESMTP id r35Eg8A6025502 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 5 Apr 2013 10:42:14 -0400 Received: from alpi153.aldc.att.com (alpi153.aldc.att.com [130.8.42.31]) by alpi133.aldc.att.com (RSA Interceptor); Fri, 5 Apr 2013 15:42:01 +0100 Received: from aldc.att.com (localhost [127.0.0.1]) by alpi153.aldc.att.com (8.14.5/8.14.5) with ESMTP id r35Eg1tT019454; Fri, 5 Apr 2013 10:42:01 -0400 Received: from oz.mt.att.com (oz.mt.att.com [135.16.165.23]) by alpi153.aldc.att.com (8.14.5/8.14.5) with ESMTP id r35Efv1Y019224; Fri, 5 Apr 2013 10:41:58 -0400 Received: by oz.mt.att.com (Postfix, from userid 1000) id 297B7680B94; Fri, 5 Apr 2013 10:41:57 -0400 (EDT) X-Mailer: emacs 23.3.1 (via feedmail 8 I); VM 8.2.0b under 23.3.1 (i686-pc-linux-gnu) Message-ID: <20830.58036.422569.831143@oz.mt.att.com> Date: Fri, 5 Apr 2013 10:41:56 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Jay Borkenhagen To: Darren Pilgrim Subject: Re: mounting failed with error 2 In-Reply-To: <515E0696.2020901@bluerosetech.com> References: <20825.59038.104304.161698@oz.mt.att.com> <515DB070.1090803@bluerosetech.com> <20829.52349.314652.424391@oz.mt.att.com> <515E0696.2020901@bluerosetech.com> X-GPG-Fingerprint: DDDB 542E D988 94D0 82D3 D198 7DED 6648 2308 D3C0 X-RSA-Inspected: yes X-RSA-Classifications: public Cc: fs@freebsd.org, Niclas Zeising X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Jay Borkenhagen List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Apr 2013 14:42:41 -0000 Darren Pilgrim writes: > On 4/4/2013 11:54 AM, Jay Borkenhagen wrote: > > Darren Pilgrim writes: > > > Reboot using the install disk, go to the Live CD. Import the pool using > > > an altroot and a cachefile: > > > > > > zpool import -c /tmp/zpool.cache -o altroot=/mnt zroot > > > > > > Copy /tmp/zpool.cache to /mnt/ROOT/boot/zfs/zpool.cache, then reboot > > > *without* exporting the pool. > > > > Thanks, Darren. > > > > However, when I try that I get this: > > > > --------------- > > root@:/root # zpool import -c /tmp/zpool.cache -o altroot=/mnt zroot > > failed to open cache file: No such file or directory > > cannot import 'zroot': no such pool available > > root@:/root # > > --------------- > > Sorry, wrong cachefile option, try: > > zpool import -o cachefile=/tmp/zpool.cache -o altroot=/mnt zroot OK: --------------- root@:/root # zpool status ZFS filesystem version 5 ZFS storage pool version 28 no pools available root@:/root # zpool import -o cachefile=/tmp/zpool.cache -o altroot=/mnt zroot root@:/root # root@:/root # cp /tmp/zpool.cache /mnt/boot/zfs/zpool.cache root@:/root # root@:/root # shutdown -r now --------------- ... and now the system boots from the GPT/ZFS, and everything looks great. Thanks!! I see that the previous version of Niclas's instructions (not sure if those are still available on the web, but I have hardcopy) included exactly that 'zpool import' command immediately following 'zpool export zroot' which is now the final pre-reboot step. I guess that statement should not have been removed from the procedure. Thanks again! Jay B.