Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Apr 2013 10:41:56 -0400
From:      Jay Borkenhagen <jayb@braeburn.org>
To:        Darren Pilgrim <list_freebsd@bluerosetech.com>
Cc:        fs@freebsd.org, Niclas Zeising <zeising@freebsd.org>
Subject:   Re: mounting failed with error 2
Message-ID:  <20830.58036.422569.831143@oz.mt.att.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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
<shutdown of Live CD, reboot to system on HDD>
---------------

... 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.





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