From owner-freebsd-fs@FreeBSD.ORG Wed Feb 18 19:23:01 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9BA212C9 for ; Wed, 18 Feb 2015 19:23:01 +0000 (UTC) Received: from smtp.atelo.org (atelo.org [198.100.144.64]) by mx1.freebsd.org (Postfix) with ESMTP id 745DBA62 for ; Wed, 18 Feb 2015 19:23:01 +0000 (UTC) Received: from coyotlan (cpe-76-88-16-9.san.res.rr.com [76.88.16.9]) by smtp.atelo.org (Postfix) with ESMTPSA id 50E6474A854 for ; Wed, 18 Feb 2015 11:14:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=atelo.org; s=mail; t=1424286879; bh=JBv8NVxAb0PrC6x/YWC41l/etdwZhl2RYQ94ji+1f0s=; h=Date:From:To:Subject; b=fc1j2FZL5TmUlbSGXKstbAxzKE1GqmXzzjCgb5VCwB0ycpESKOyIJtg9bHNQfNyBX ymbpmdIEOJrJC9OdvqOfoxZTArrXoWOrM45nOK4xbqhg/hEG4TrjwatJxQJbwvLDXJ SEirkTF8K2Qzba7f15kyscuk4U6mbavkyBel3Zsc= Received: from localhost (coyotlan [local]); by coyotlan (OpenSMTPD) with ESMTPA id d63e85e1; for ; Wed, 18 Feb 2015 19:13:45 +0000 (UTC) Date: Wed, 18 Feb 2015 11:13:45 -0800 From: =?utf-8?B?WMSrY8Oy?= To: freebsd-fs@freebsd.org Subject: ZFS root set to readonly=on temporary at boot Message-ID: <20150218191345.GA31812@coyotlan.Tlalpan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.23 (2014-03-12) 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: Wed, 18 Feb 2015 19:23:01 -0000 Dear freebsd-fs, As I am trying to install a new small server with a most partitions on ZFS, I am running into some little read-only troubles. At boot the root is always set to read-only. The rest of the system is fine though: # zfs get all | grep readonly zroot readonly on temporary zroot/tmp readonly off inherited from zroot zroot/usr readonly off inherited from zroot […] I cannot seem to understand what may cause this issue. The system is a typical manual [1] installation (used to work fine), on an empty system. Note that I can reset the root to readonly=off with: # zfs set readonly=off zroot but it is a pain to to it manually without understanding why. I also cannot seem to get much info from the log messages: ==> /var/log/messages <== Feb 18 18:56:24 kernel: Root mount waiting for: usbus4 Feb 18 18:56:24 last message repeated 2 times Feb 18 18:56:24 kernel: uhub4: 8 ports with 8 removable, self powered Feb 18 18:56:24 kernel: Root mount waiting for: usbus4 Feb 18 18:56:24 kernel: ugen4.2: at usbus4 Feb 18 18:56:24 kernel: uhub5: on usbus4 Feb 18 18:56:24 kernel: uhub5: 4 ports with 4 removable, self powered Feb 18 18:56:24 kernel: Trying to mount root from zfs:zroot [rw]... Feb 18 18:56:29 kernel: . Feb 18 18:56:30 kernel: . There are a couple of mentions to this same problem in 2012 on this mailing list [2] and on an unanswered forum message [3], but they did not solve the issue (setting vfs.root.mountfrom.options=rw only changes the log message). The machine starts its other services (such as SSH) correctly though. Hope someone will have an idea. Best, Xīcò [1] https://blog.gegeweb.org/article30/freebsd-9-2-en-full-zfs-sur-un-kimsufi-ps-4g [2] https://lists.freebsd.org/pipermail/freebsd-fs/2012-February/013654.html [3] https://forums.freebsd.org/threads/zfs-readonly-on-temporary-on-boot.28944/