fsck vs zvol
Eugene Grosbein
eugen at grosbein.net
Wed Jun 12 06:22:02 UTC 2019
12.06.2019 12:17, O'Connor, Daniel 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.
>
> The fsck line is..
> /dev/zvol/zroot/samba4sysvol /var/db/samba4/sysvol ufs rw,acls 0 0
>
> The diff is just..
> --- fsck.orig 2019-06-12 14:43:03.279407000 +0930
> +++ fsck 2019-06-12 14:42:51.094142000 +0930
> @@ -24,6 +24,10 @@
> # During fsck ignore SIGQUIT
> trap : 3
>
> + echo "Samba FS hack"
> + fsck -y /dev/zvol/zroot/samba4sysvol
> + err=$?
> +
> check_startmsgs && echo "Starting file system checks:"
> if checkyesno background_fsck; then
> fsck -F -p
>
> Oh I see for the passno field.. It must be non-zero it fsck won't check it at all!
And you don't need to change /etc/rc.d/fsck script at all.
More information about the freebsd-stable
mailing list