From owner-freebsd-fs@FreeBSD.ORG Mon Sep 5 19:55:09 2011 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01573106566B for ; Mon, 5 Sep 2011 19:55:08 +0000 (UTC) (envelope-from jeremie@le-hen.org) Received: from smtp5-g21.free.fr (unknown [IPv6:2a01:e0c:1:1599::14]) by mx1.freebsd.org (Postfix) with ESMTP id 665228FC0C for ; Mon, 5 Sep 2011 19:55:06 +0000 (UTC) Received: from endor.tataz.chchile.org (unknown [82.233.239.98]) by smtp5-g21.free.fr (Postfix) with ESMTP id 3586BD480CD; Mon, 5 Sep 2011 21:55:00 +0200 (CEST) Received: from felucia.tataz.chchile.org (felucia.tataz.chchile.org [192.168.1.9]) by endor.tataz.chchile.org (Postfix) with ESMTP id 2328533E05; Mon, 5 Sep 2011 19:54:59 +0000 (UTC) Received: by felucia.tataz.chchile.org (Postfix, from userid 1000) id 11DCCA131B; Mon, 5 Sep 2011 19:54:59 +0000 (UTC) Date: Mon, 5 Sep 2011 21:54:58 +0200 From: Jeremie Le Hen To: freebsd-fs@FreeBSD.org Message-ID: <20110905195458.GA7863@felucia.tataz.chchile.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Cc: jeremie@le-hen.org Subject: Difficulties to use ZFS root: ROOT MOUNT ERROR X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2011 19:55:09 -0000 Hi list, I've followed the instructions documented here: http://wiki.freebsd.org/RootOnZFS/ZFSBootPartition The kernel starts correctly so this rules out any problem regarding boot0, zfsboot and ZFS loader. But when the kernel tries to mount the root filesystem, it fails with the following output: % Trying to mount root from zfs:zroot % ROOT MOUNT ERROR: % If you have invalid mount options, reboot, and first try the following from % the loader prompt: % % set vfs.root.mountfrom.options=rw % % and then remove the invalid mount options from /etc/fstab. % % Loader variables: % vfs.root.mountfrom=zfs:zroot % vfs.root.mountfrom.options=rw >From a netboot'd FreeBSD: # zfs import zroot % # zpool get bootfs zroot % NAME PROPERTY VALUE SOURCE % zroot bootfs zroot local % % # zfs list -o name,canmount,mountpoint % NAME CANMOUNT MOUNTPOINT % zroot on legacy % zroot/tmp on /tmp % zroot/usr on /usr % zroot/usr/home on /usr/home % zroot/usr/ports on /usr/ports % zroot/usr/ports/distfiles on /usr/ports/distfiles % zroot/usr/ports/packages on /usr/ports/packages % zroot/usr/src on /usr/src % zroot/usr/src8 on /usr/src8 % zroot/var on /var % zroot/var/crash on /var/crash % zroot/var/db on /var/db % zroot/var/db/pkg on /var/db/pkg % zroot/var/empty on /var/empty % zroot/var/log on /var/log % zroot/var/mail on /var/mail % zroot/var/run on /var/run % zroot/var/tmp on /var/tmp % # zfs export zroot /boot/zfs/zpool.cache exists in the zroot filesystem: % # zpool import -R /mnt zroot % # zfs set mountpoint=/ zroot % # ls -l /mnt/boot/zfs/zpool.cache % -rw-r--r-- 1 root wheel 924 Sep 5 07:31 /mnt/boot/zfs/zpool.cache % # grep zfs /mnt/boot/loader.conf /mnt/etc/rc.conf % /mnt/boot/loader.conf:zfs_load="YES" % /mnt/boot/loader.conf:vfs.root.mountfrom="zfs:zroot" % /mnt/etc/rc.conf:zfs_enable="YES" Any idea why this error occurs? Thanks -- Jeremie Le Hen Men are born free and equal. Later on, they're on their own. Jean Yanne