Date: Wed, 12 Jun 2019 12:10:33 +0700 From: Eugene Grosbein <eugen@grosbein.net> To: "O'Connor, Daniel" <darius@dons.net.au>, freebsd-stable <freebsd-stable@freebsd.org> Subject: Re: fsck vs zvol Message-ID: <ad9fc776-c567-fe34-44bd-0c6ab4e09d76@grosbein.net> In-Reply-To: <06546140-1B02-432D-8B7C-525AA1EA4FBA@dons.net.au> References: <06546140-1B02-432D-8B7C-525AA1EA4FBA@dons.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
12.06.2019 8:04, O'Connor, Daniel wrote: > 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..) Please show your /etc/fstab line for this UFS-inside-ZVOL and your changes to rc.d/fsck. Your logs do not show that fsck is started so I presume some mistake in the /etc/fstab. Maybe you forgot that it needs non-zero sixth field.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ad9fc776-c567-fe34-44bd-0c6ab4e09d76>