From owner-freebsd-fs@FreeBSD.ORG Sat Aug 16 09:00:06 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 63F96BA9 for ; Sat, 16 Aug 2014 09:00:06 +0000 (UTC) Received: from mail-oa0-x235.google.com (mail-oa0-x235.google.com [IPv6:2607:f8b0:4003:c02::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 32AF72120 for ; Sat, 16 Aug 2014 09:00:06 +0000 (UTC) Received: by mail-oa0-f53.google.com with SMTP id j17so2664974oag.26 for ; Sat, 16 Aug 2014 02:00:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=nIb2J7gnE+A2v1Fz+uhPK9b0jh9akJWHccg2ptO2hak=; b=BM/j9cD+0erp5YV8REDu9xoL3cs8d3K3hsIOITPpW3R0WLs5yQ8xE0h50fEqyH/oPe NlZdy4kCn0/FGkUAZjLpo1x69omHXatxagFvUcY7e5pquIMZ6OYVT2V5A4bK95ChW3Be zNEAgy9ZXMImJM+cEjezFlSBK16xxIKD6blOF87OoJSc3t9LxAepZi+A7TtbMblAHqaJ 5PNSh4tvt2EdewZo16egBj8YpZO/Vxs6Mxrv4U8dqeEIHeL47TAFaXWwGHIGvzNKzjJI KrHD4zwj5DOTL3uYsJblZ6LmGbuwb7LRoVX3yllCZCvERDpd165IgiY4wontaKcv4X1/ rUsA== MIME-Version: 1.0 X-Received: by 10.182.38.138 with SMTP id g10mr8255027obk.21.1408179605486; Sat, 16 Aug 2014 02:00:05 -0700 (PDT) Received: by 10.182.155.37 with HTTP; Sat, 16 Aug 2014 02:00:05 -0700 (PDT) Date: Sat, 16 Aug 2014 11:00:05 +0200 Message-ID: Subject: zfs only mounting "root" after reboot From: Thomas Schweikle To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2014 09:00:06 -0000 Hi! I've managed to setup freebsd using zfs for root about one year ago. Everything was fine until about three weeks ago. Since then the system boot up, but doesn't mount the whole pool, but only zfs:zroot to "/". Here is my config: # zpool status pool: zroot state: ONLINE status: Some supported features are not enabled on the pool. The pool can still be used, but some features are unavailable. action: Enable all features using 'zpool upgrade'. Once this is done, the pool may no longer be accessible by software that does not support the features. See zpool-features(7) for details. scan: scrub repaired 0 in 0h20m with 0 errors on Sat Aug 16 09:48:37 2014 config: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 gptid/9b82dab2-fae0-11e3-91bd-005056a52112 ONLINE 0 0 0 errors: No known data errors # zfs mount zroot / after booting into single user, then issuing "zfs mount -a": zfs mount zroot / zroot/tmp /tmp zroot/usr /usr zroot/usr/home /usr/home zroot/usr/ports /usr/ports zroot/usr/ports/distfiles /usr/ports/distfiles zroot/usr/ports/packages /usr/ports/packages zroot/usr/src /usr/src zroot/var /var zroot/var/crash /var/crash zroot/var/db /var/db zroot/var/db/pkg /var/db/pkg zroot/var/empty /var/empty zroot/var/log /var/log zroot/var/mail /var/mail zroot/var/run /var/run zroot/var/tmp /var/tmp This looks ways better. CTRL-D makes the system boot to full multiuser. # zfs list NAME USED AVAIL REFER MOUNTPOINT zroot 21.6G 49.6G 1.43G legacy zroot/tmp 402M 49.6G 402M /tmp zroot/usr 17.5G 49.6G 12.1G /usr zroot/usr/home 288K 49.6G 288K /usr/home zroot/usr/ports 3.15G 49.6G 1.85G /usr/ports zroot/usr/ports/distfiles 1.30G 49.6G 1.30G /usr/ports/distfiles zroot/usr/ports/packages 144K 49.6G 144K /usr/ports/packages zroot/usr/src 2.26G 49.6G 2.26G /usr/src zroot/var 2.20G 49.6G 2.06G /var zroot/var/crash 55.4M 49.6G 55.4M /var/crash zroot/var/db 89.0M 49.6G 24.3M /var/db zroot/var/db/pkg 64.7M 49.6G 64.7M /var/db/pkg zroot/var/empty 144K 49.6G 144K /var/empty zroot/var/log 472K 49.6G 472K /var/log zroot/var/mail 144K 49.6G 144K /var/mail zroot/var/run 300K 49.6G 300K /var/run zroot/var/tmp 532K 49.6G 532K /var/tmp In /boot/loader.conf: # cat /boot/loader.conf zfs_load="YES" vfs.root.mountfrom="zfs:zroot" looks OK so far. "/boot/zpool.cache" does exist too: # ll /boot/zpool.cache -rw-r--r-- 1 root wheel 1184 Jun 23 16:32 /boot/zpool.cache And fstab doesn't reference zfs at all: # cat /etc/fstab # Device Mountpoint FStype Options Dump Pass# /dev/acd0 /cdrom cd9660 ro,noauto 0 0 # linproc /compat/linux/proc linprocfs rw,noauto 0 0 fdesc /dev/fd fdescfs rw,noauto 0 0 # /dev/gpt/swap0 none swap sw 0 0 Since it worked for a long time and nothing really changed -- what might be missing zfs not automounting the whole pool "zroot" at bootup, only mounting zfs:zroot? And since google wasn't helpful at all -- how to fix this? -- Thomas