From owner-freebsd-current@freebsd.org Tue Apr 9 08:06:20 2019 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 022191578841 for ; Tue, 9 Apr 2019 08:06:20 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 657FF81563 for ; Tue, 9 Apr 2019 08:06:19 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.15.2/8.15.2) with ESMTP id x3986C1k050540 for ; Tue, 9 Apr 2019 10:06:12 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.15.2/8.15.2/Submit) with ESMTP id x3986CHD050537 for ; Tue, 9 Apr 2019 10:06:12 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Tue, 9 Apr 2019 10:06:12 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: FreeBSD CURRENT Subject: Re: r346025: ZFS filesystems do not mount anymore In-Reply-To: <20190408195800.37046b3c@thor.intern.walstatt.dynvpn.de> Message-ID: References: <20190408195800.37046b3c@thor.intern.walstatt.dynvpn.de> User-Agent: Alpine 2.21.9999 (BSF 287 2018-06-16) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.fig.ol.no X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Apr 2019 08:06:20 -0000 On Mon, 8 Apr 2019 19:58+0200, O. Hartmann wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Hello, > > after a bunch of updates this weekend, mounting ZFS filesystems on CURRENT r346025 doesn't > work anymore at boot time when ZFS is built-in-kernel. zfs_enable="YES" is set in /etc/rc.conf. > > After the system has booted, mounting all ZFS filesystems via "zfs mount -a" operates as > expected and all filesystems are available as usual. I blame r346017: Trying to mount root from zfs:zroot/ROOT/20190409-r346017 [] Setting hostuuid: 7b624d1c-4bc3-e2cb-4ac2-6487a4b4774c. Setting hostid: 0xf9071336. interface zfsctrl.1 already present in the KLD 'kernel'! linker_load_file: /boot/kernel/zfs.ko - unsupported file type kldload: an error occurred while loading module zfs. Please check dmesg(8) for more details. /etc/rc: WARNING: Unable to load kernel module zfs Starting file system checks: Mounting local filesystems:. interface zfsctrl.1 already present in the KLD 'kernel'! linker_load_file: /boot/kernel/zfs.ko - unsupported file type kldload: an error occurred while loading module zfs. Please check dmesg(8) for more details. /etc/rc: WARNING: Unable to load kernel module zfs interface zfsctrl.1 already present in the KLD 'kernel'! linker_load_file: /boot/kernel/zfs.ko - unsupported file type kldload: an error occurred while loading module zfs. Please check dmesg(8) for more details. /etc/rc: WARNING: Unable to load kernel module zfs ELF ldconfig path: /lib /usr/lib /usr/lib/compat 32-bit compatibility ldconfig path: /usr/lib32 [...] Creating and/or trimming log files. Starting syslogd. Apr 9 09:48:32 freebsd-head-zfs syslogd: /var/log/security: No such file or directory Setting date via ntp. 9 Apr 09:48:38 ntpdate[1073]: step time server 2001:W:X:Y::Z offset -0.992370 sec No core dumps found. Clearing /tmp (X related). Updating motd:. Mounting late filesystems:mount: /usr/compat/linux: No such file or directory mount: /usr/compat/linux: No such file or directory mount: /usr/compat/linux: No such file or directory mount: /usr/compat/linux: No such file or directory . Mounting /etc/fstab filesystems failed, startup aborted ERROR: ABORTING BOOT (sending SIGTERM to parent)! Enter full pathname of shell or RETURN for /bin/sh: root@freebsd-head-zfs:/ # zfs mount -av root@freebsd-head-zfs:/ # mount -al root@freebsd-head-zfs:/ # exit Setting hostuuid: 7b624d1c-4bc3-e2cb-4ac2-6487a4b4774c. Setting hostid: 0xf9071336. interface zfsctrl.1 already present in the KLD 'kernel'! linker_load_file: /boot/kernel/zfs.ko - unsupported file type kldload: an error occurred while loading module zfs. Please check dmesg(8) for more details. /etc/rc: WARNING: Unable to load kernel module zfs Fast boot: skipping disk checks. Mounting local filesystems:. interface zfsctrl.1 already present in the KLD 'kernel'! linker_load_file: /boot/kernel/zfs.ko - unsupported file type kldload: an error occurred while loading module zfs. Please check dmesg(8) for more details. /etc/rc: WARNING: Unable to load kernel module zfs interface zfsctrl.1 already present in the KLD 'kernel'! linker_load_file: /boot/kernel/zfs.ko - unsupported file type kldload: an error occurred while loading module zfs. Please check dmesg(8) for more details. /etc/rc: WARNING: Unable to load kernel module zfs ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/local/lib/compat/pkg /usr/local/lib/perl5/5.28/mach/CORE 32-bit compatibility ldconfig path: /usr/lib32 [...] Once I manually mount the remaining filesystems, multiuser boot proceeds as expected. My kernel has options ZFS, and the boot scripts doesn't account for this scenario. -- Trond.