Date: Tue, 19 Feb 2013 19:49:14 -0800 From: Xin Li <delphij@delphij.net> To: freebsd-stable@freebsd.org Subject: Re: Mounting from zfs... failed with error 2, again Message-ID: <512447BA.3090709@delphij.net> In-Reply-To: <CAGsORuDZM7TN5GE=BNzbP2HvvieO3mKv0Jxf8frwaTZ1j7MsHw@mail.gmail.com> References: <CAGsORuAtunHHTj3GaNeFzd_GGLiM%2Bj6Rx-OHLs%2Bf6n5ZzH8-Xg@mail.gmail.com> <CAGMYy3uVWe2yShrg0mJBgWMNEicedZ1JW98%2BjD3KiqEw3Vvh=Q@mail.gmail.com> <CAGsORuAXqqABAfHqsY_%2B4so4cLZ=g8v8oxxq0Dm9WnHKQWE-gQ@mail.gmail.com> <51242E20.5070107@delphij.net> <CAGsORuDZM7TN5GE=BNzbP2HvvieO3mKv0Jxf8frwaTZ1j7MsHw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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@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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?512447BA.3090709>