From owner-freebsd-fs@FreeBSD.ORG Sat Aug 16 09:12:20 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BBD81FB8 for ; Sat, 16 Aug 2014 09:12:20 +0000 (UTC) Received: from mail-pa0-x22a.google.com (mail-pa0-x22a.google.com [IPv6:2607:f8b0:400e:c03::22a]) (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 9519922C2 for ; Sat, 16 Aug 2014 09:12:20 +0000 (UTC) Received: by mail-pa0-f42.google.com with SMTP id lf10so4807540pab.29 for ; Sat, 16 Aug 2014 02:12:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=8XEkUmpoxace6Rgwr5SjxUVfckekYD8KyuLc9JCwu/o=; b=v2vHIbTOlC2Fg999jta9p3PuLMCmgusB0OzEeXoTzGdNIt0eqEonn75HJm+gnYU5aJ 9hrMcDeqAAZ8o0NkWnlN/zyNehU9tigMD+/QYDSNeWbfkTcK7gcMwShmW0Xh7NN53Liv xWiYkKrSzJS/BWwPbZSxcUeou5wZD9hXncXl9LKPg0CLkztyBl2k6Kj7KH2LSI63A2rU hUSC77YI1OflVZqcnVSsPRfGKNRvbr6pQAWis3317cBtxnAAAC8MX9YQJS5U7uWKhxJF +3K8fSmM05jxCJYJ5QVKTAycvgFdi+A3jqHGHmtiCwkl9l8W9f4Af9n7smXfB/WtyTL1 vXmw== X-Received: by 10.66.180.98 with SMTP id dn2mr19111167pac.83.1408180340205; Sat, 16 Aug 2014 02:12:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.70.22.4 with HTTP; Sat, 16 Aug 2014 02:12:00 -0700 (PDT) In-Reply-To: References: From: Anton Sayetsky Date: Sat, 16 Aug 2014 12:12:00 +0300 Message-ID: Subject: Re: zfs only mounting "root" after reboot To: Thomas Schweikle Content-Type: text/plain; charset=UTF-8 Cc: freebsd-fs 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:12:20 -0000 man rc.conf /zfs_enable 2014-08-16 12:00 GMT+03:00 Thomas Schweikle : > 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 > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"