From owner-freebsd-stable@freebsd.org Wed Jun 12 01:37:27 2019 Return-Path: Delivered-To: freebsd-stable@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 737A115CBF30 for ; Wed, 12 Jun 2019 01:37:27 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from ipmail03.adl2.internode.on.net (ipmail03.adl2.internode.on.net [150.101.137.141]) by mx1.freebsd.org (Postfix) with ESMTP id 0F1A5887EB for ; Wed, 12 Jun 2019 01:37:18 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from ppp14-2-76-179.adl-apt-pir-bras31.tpg.internode.on.net (HELO midget.dons.net.au) ([14.2.76.179]) by ipmail03.adl2.internode.on.net with ESMTP; 12 Jun 2019 11:01:35 +0930 Received: from midget.dons.net.au (localhost [127.0.0.1]) by midget.dons.net.au (8.15.2/8.15.2) with ESMTPS id x5C1VGD2000825 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 12 Jun 2019 11:01:26 +0930 (ACST) (envelope-from darius@dons.net.au) Received: (from mailnull@localhost) by midget.dons.net.au (8.15.2/8.15.2/Submit) id x5C14L6u079512 for ; Wed, 12 Jun 2019 10:34:21 +0930 (ACST) (envelope-from darius@dons.net.au) X-Authentication-Warning: midget.dons.net.au: mailnull set sender to using -f Received: from maelstrom.gsoft.com.au (Maelstrom.gsoft.com.au [203.31.81.59]) by ppp14-2-76-179.adl-apt-pir-bras31.tpg.internode.on.net (envelope-sender ) (MIMEDefang) with ESMTP id x5C14GtJ079510; Wed, 12 Jun 2019 10:34:21 +0930 From: "O'Connor, Daniel" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Date: Wed, 12 Jun 2019 10:34:15 +0930 Subject: fsck vs zvol Message-Id: <06546140-1B02-432D-8B7C-525AA1EA4FBA@dons.net.au> To: freebsd-stable X-Mailer: Apple Mail (2.3445.104.8) X-Spam-Score: 0 () No, score=0.0 required=5.0 tests=SPF_HELO_NONE, SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.1 X-Scanned-By: MIMEDefang 2.83 on 10.0.2.1 X-Rspamd-Queue-Id: 0F1A5887EB X-Spamd-Bar: +++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [5.73 / 15.00]; MV_CASE(0.50)[]; HAS_XAW(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[midget.dons.net.au]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:4739, ipnet:150.101.0.0/16, country:AU]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.97)[0.974,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(1.00)[0.996,0]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[dons.net.au]; NEURAL_SPAM_LONG(1.00)[1.000,0]; RCVD_IN_DNSWL_NONE(0.00)[141.137.101.150.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[141.137.101.150.rep.mailspike.net : 127.0.0.17]; IP_SCORE(1.26)[ipnet: 150.101.0.0/16(4.35), asn: 4739(1.96), country: AU(0.01)] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jun 2019 01:37:27 -0000 Hi, I have a small UFS partition that is the sysvol for Samba 4 (otherwise = it doesn't work due to ACL issues). I found that I usually have to manually fsck it on a bad reboot, even if = I have fsck_y_enable so I added a hack to /etc/rc.d/fsck to fsck -y that = FS before the normal fsck runs. Logging looks like.. Jun 12 09:45:41 moo kernel: Setting hostuuid: = 00000000-0000-0000-0000-ac1f6b01103a. Jun 12 09:45:41 moo kernel: Setting hostid: 0x6cbfec5d. Jun 12 09:45:41 moo kernel: Starting file system checks: Jun 12 09:45:41 moo kernel: Mounting local filesystems:mount: = /dev/zvol/zroot/samba4sysvol: R/W mount of /var/db/samba4/sysvol denied. = Filesystem is not clean - run fsck.: Operation not permitted Jun 12 09:45:41 moo kernel: Mounting /etc/fstab filesystems failed, will = retry after root mount hold release Jun 12 09:45:41 moo kernel: mount: /dev/zvol/zroot/samba4sysvol: R/W = mount of /var/db/samba4/sysvol denied. Filesystem is not clean - run = fsck.: Operation not permitted Jun 12 09:45:41 moo kernel: . Jun 12 09:45:41 moo kernel: Mounting /etc/fstab filesystems failed, = startup aborted Jun 12 09:45:41 moo kernel: ERROR: ABORTING BOOT (sending SIGTERM to = parent)! I'm not sure if marking this FS as 'late' would help (and/or break = something else..) Has anyone else tried something like this? The Samba 4 ZFS is from https://wiki.freebsd.org/Samba4ZFS (which I = wrote..) Thanks. -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum