Mounting from zfs... failed with error 2, again

Xin Li delphij at delphij.net
Wed Feb 20 03:49:19 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 2/19/13 6:21 PM, Zhihao Yuan wrote:
> On Feb 19, 2013 9:00 PM, "Xin Li" <delphij at delphij.net> wrote:
>> Show the error message from root mount (plus what shows up after 
>> ?<enter>).
> 
> http://twitpic.com/c57t9b
> 
> After ?<enter>, I see a list of gptids and names; nothing mentions
> 'zfs'.

Did you loaded zfs.ko?

>> It's pretty likely that you have a bad zpool.cache or bad fstab
>> configuration.
> 
> I suppose I don't need a fstab, since I used the non-legacy plan,
> as shown in the RootOnZFS/9.0-RELEASE wiki page.
> 
> The (/mnt)/boot/zfs/zpool.cache is copied from /tmp/zpool.cache,
> which was created by -o cachefile.

This is not correct unless it's the first time and you have never
imported the pool again.  Some recent changes to ZFS mounting code may
have relieved the requirement of keeping zpool.cache but I have not
tested it myself.

Regenerate the zpool.cache with:

zpool set cachefile=/mnt/boot/zfs/zpool.cache zdell

Then sync; sleep 5; sync; then reboot.
-----BEGIN PGP SIGNATURE-----

iQEcBAEBCAAGBQJRJEe6AAoJEG80Jeu8UPuziI0H+gLLrpAtVyzZZglkBbuntFOJ
CRJJiqpYo1ogTSjIVRAQJKDqg95QTXJfmlCep31LZWGohcENuQLNzvkXyKlC5qVX
h0ROkvqXJ2yli8poH9bydXHfdvF9YuCUHxWnMDTEcRMk4ztLoCvi4DgGArPrdKSV
3cnIJaLXGcAKWqaD39DN+L61I/Db4C9hGANj9FYd4vkTQ9apmfunLEJDSkXOiFNA
hr3ttVaG/2ZdC3EgaNSKBZGNAE3IzcU1s2OpO2bNIemgT3qRkR9ZpPm8NmFujy+q
OSjzIy+MjQR0mIRSdXlZsjAZv39mkdzoflTNp1QDxJHj1h372mRFAFiVnxrj/ZI=
=Bv01
-----END PGP SIGNATURE-----


More information about the freebsd-stable mailing list