Time Machine issue on 11.3

Joined
Apr 2, 2018
Messages
6
I'm also affected by https://jira.ixsystems.com/browse/NAS-105911
as I have fruit enabled on all my shares and I have a time machine quota set in the share parameters (on top of a ZFS dataset quota), which seems to be what's triggering the issue as described in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238958

SMB works perfectly with every other share but whenever I try to connect to the timemachine SMB share, the system console gets flooded by "nas kernel: pid 49133 (smbd), jid 0, uid 1000: exited on signal 8"

Seems that it will be fixed in 11.3 U3, let's hope it gets released in the coming days
 

pjc

Contributor
Joined
Aug 26, 2014
Messages
187
Uh-oh. It looks like the merged fix has a bug. It replaced:

Code:
if (bandsize > SIZE_MAX/nbands)


with

Code:
if (nbands > SIZE_MAX/nbands) {


I think that second condition will never be true, so it won't catch the error condition.
 

rumbeard

Dabbler
Joined
Sep 10, 2018
Messages
17
Is the SMB share also an NFS export? When an SMB share is also an NFS export we automatically configure the share to be as safe as possible in a mixed-protocol environment. These changes disable features that Time Machine relies on, hence "the selected network backup disk does not support the required capabilities".

How do I override this behavior. The share must be available for both NFS (Crashplan) and SMB TimeMachine. I have no worry of corruption since the NFS share is read-only unless I need to do a restore from the cloud.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
How do I override this behavior. The share must be available for both NFS (Crashplan) and SMB TimeMachine. I have no worry of corruption since the NFS share is read-only unless I need to do a restore from the cloud.
We set the following and so you'll need to unset via auxiliary parameters on the share in question:
Code:
                    pc[share["name"]].update({
                        "strict locking": "yes",
                        "level2 oplocks": "no",
                        "oplocks": "no"
                    })


strict locking = no
level2 oplocks = yes
oplocks = yes
 

AVSION

Contributor
Joined
Dec 28, 2016
Messages
128
Hi @anodos I am also getting this error "The network backup disk does not support the required capabilities." i use two iMac Mojave 10.14.6 and High Sierra 10.13.6 i created a dedicated dataset for each one for SMB share to connect. the Mojave works fine however the High Sierra get this error. i have tried to delete the dataset, user, group, recreate, restart smb service and update FN to 11.3 U5 but still the same error. before i update the FN 11.2 i also had this issue it would run for a week and then stop. hope you can help.

testparm -s

Code:
user@freenas[~]# testparm -s
Load smb config files from /usr/local/etc/smb4.conf
Loaded services file OK.
Server role: ROLE_STANDALONE

smb4conf file

# Global parameters
[global]
    aio max threads = 2
    bind interfaces only = Yes
    client NTLMv2 auth = No
    disable spoolss = Yes
    dns proxy = No
    enable web service discovery = Yes
    kernel change notify = No
    load printers = No
    logging = file
    max log size = 51200
    nsupdate command = /usr/local/bin/samba-nsupdate -g
    ntlm auth = ntlmv1-permitted
    restrict anonymous = 2
    server min protocol = NT1
    server role = standalone server
    server string = FreeNAS Server
    unix extensions = No
    idmap config *: range = 90000001-100000000
    fruit:nfs_aces = No
    idmap config * : backend = tdb
    allocation roundup size = 0
    directory name cache size = 0
    dos filemode = Yes
    include = /usr/local/etc/smb4_share.conf


[Storage]
    aio write size = 0
    comment = smb Share
    ea support = No
    mangled names = illegal
    path = /mnt/Tank/SMB
    read only = No
    vfs objects = fruit streams_xattr ixnas
    nfs4:acedup = merge
    nfs4:chown = true
    fruit:resource = stream
    fruit:metadata = stream


[timemachine_user1 Mojave]
    aio write size = 0
    comment = TM Backup Rachel
    ea support = No
    mangled names = illegal
    path = /mnt/Tank/timemachine_rachel
    read only = No
    vfs objects = fruit streams_xattr shadow_copy_zfs ixnas
    nfs4:acedup = merge
    nfs4:chown = true
    fruit:volume_uuid = 96a9f83f-ec1a-408f-abe5-5e510d73934b
    fruit:time machine = yes
    fruit:resource = stream
    fruit:metadata = stream


[timemachine_user2 High Sierra]
    aio write size = 0
    ea support = No
    mangled names = illegal
    path = /mnt/Tank/timemachine_yariv
    read only = No
    vfs objects = fruit streams_xattr shadow_copy_zfs ixnas
    nfs4:acedup = merge
    nfs4:chown = true
    fruit:volume_uuid = a2402b1d-eb9b-4f79-8b8f-d25bc12da0ed
    fruit:time machine = yes
    fruit:resource = stream
    fruit:metadata = stream


Code:
[global]
        dns proxy = No
        aio max threads = 2
        max log size = 51200
        allocation roundup size = 0
        load printers = No
        printing = bsd
        disable spoolss = Yes
        dos filemode = Yes
        kernel change notify = No
        directory name cache size = 0
        nsupdate command = /usr/local/bin/samba-nsupdate -g
        unix charset = UTF-8
        log level = 1
        obey pam restrictions = False
        enable web service discovery = True
        logging = file
        server min protocol =  NT1
        unix extensions = No
        restrict anonymous = 2
        ntlm auth = Yes
        client ntlmv2 auth = No
        server string = FreeNAS Server
        fruit:nfs_aces = No
        bind interfaces only = Yes
        netbios name = freenas
        netbios aliases =
        server role = standalone
        workgroup = WORKGROUP
        idmap config *: backend = tdb
        idmap config *: range = 90000001-100000000

        include = /usr/local/etc/smb4_share.conf
 
Last edited:

GBaughma

Cadet
Joined
Nov 6, 2021
Messages
2
Since updating from 11.2 to 11.3 my mac (latest Catalina release) isn't able to backup to the time machine share anymore. The backup dialogue shows the following error: "the network backup disk does not support the required capabilities". I've already tried several things like deleting and recreating the share. The smb4.conf file does not contain a "fruit:time machine = yes" line. As soon as i reboot with the 11.2 version, time machine backups works like a charm. Does anyone have an idea what is going wrong here?
I was having this issue on 12... and enabling the "Export recycle bin" setting seems to have resolved it.
 

Littlejd97

Cadet
Joined
Dec 10, 2021
Messages
6
I was having this issue on 12... and enabling the "Export recycle bin" setting seems to have resolved it.
1639208453283.png

This appears to have also been the solution for me
 

dabrahams

Dabbler
Joined
Jan 1, 2022
Messages
12
This is so weird! For what it's worth, this worked for me without enabling "export recycle bin":

  1. Enable "Guest Access" in Sharing > SMB > Edit > Advanced Options.
  2. Begin a time machine backup from any Mac to the share.
  3. Once a little data has been copied, stop the backup, (optionally) delete the created sparse bundle
  4. Disable "Guest Access."
  5. Set up as many macs/users as you like connecting to the share. Everything just works.
Since everything is working for me now with "Export recycle bin" off as well, I wonder if @Das_Schaf or @GBaughma are able to turn that option off now with no ill effects?
 

Tyler73

Cadet
Joined
Oct 23, 2021
Messages
2
This is driving me nuts!

I have tried all the above solutions, thanks to you all btw, but none are working.

test-parm -s:


root@TrueNAS[~]# testparm -s
Load smb config files from /usr/local/etc/smb4.conf
Loaded services file OK.
Weak crypto is allowed
Server role: ROLE_STANDALONE

# Global parameters
[global]
aio max threads = 2
bind interfaces only = Yes
disable spoolss = Yes
dns proxy = No
enable web service discovery = Yes
kernel change notify = No
load printers = No
logging = file
map to guest = Bad User
max log size = 5120
netbios name = FREENAS
nsupdate command = /usr/local/bin/samba-nsupdate -g
registry shares = Yes
server role = standalone server
server string = FreeNAS Server
unix extensions = No
idmap config *: range = 90000001-100000000
fruit:nfs_aces = No
idmap config * : backend = tdb
directory name cache size = 0
dos filemode = Yes


[iMac]
ea support = No
guest ok = Yes
kernel share modes = No
mangled names = no
path = /mnt/Tank/TimeMachine/iMac/%U
posix locking = No
read only = No
vfs objects = fruit streams_xattr
recycle:repository = .recycle/%U
recycle:directory_mode = 0777
recycle:keeptree = yes
recycle:subdir_mode = 0700
recycle:touch = yes
recycle:versions = yes
ixnas:zfs_auto_homedir = true
ixnas:default_user_quota = 1T

I have followed this tutorial: https://youtu.be/iMHa35fA_9k
 

dabrahams

Dabbler
Joined
Jan 1, 2022
Messages
12
This is driving me nuts!

I have tried all the above solutions, thanks to you all btw, but none are working.
If it helps, here's the relevant part of my testparm -s output:

Code:
~ sudo testparm -s
Load smb config files from /usr/local/etc/smb4.conf
Loaded services file OK.
Weak crypto is allowed
Server role: ROLE_STANDALONE

# Global parameters
[global]
    aio max threads = 2
    bind interfaces only = Yes
    disable spoolss = Yes
    dns proxy = No
    enable web service discovery = Yes
    kernel change notify = No
    load printers = No
    logging = file
    max log size = 5120
    nsupdate command = /usr/local/bin/samba-nsupdate -g
    registry shares = Yes
    restrict anonymous = 2
    server role = standalone server
    server string = TrueNAS Server
    unix extensions = No
    idmap config *: range = 90000001-100000000
    fruit:nfs_aces = No
    idmap config * : backend = tdb
    directory name cache size = 0
    dos filemode = Yes


[TimeMachine]
    comment = Time Machine SMB Volume
    ea support = No
    kernel share modes = No
    path = /mnt/tanka/TimeMachine/%U
    posix locking = No
    read only = No
    vfs objects = tmprotect fruit streams_xattr shadow_copy_zfs ixnas aio_fbsd
    ixnas:default_user_quota = 1T
    ixnas:zfs_auto_homedir = true
    fruit:locking = none
    fruit:time machine = yes
    fruit:resource = stream
    fruit:metadata = stream
    nfs4:chown = true
 
Last edited:

Tyler73

Cadet
Joined
Oct 23, 2021
Messages
2
If it helps, here's the relevant part of my testparm -s output:

Code:
~ sudo testparm -s
Load smb config files from /usr/local/etc/smb4.conf
Loaded services file OK.
Weak crypto is allowed
Server role: ROLE_STANDALONE

# Global parameters
[global]
    aio max threads = 2
    bind interfaces only = Yes
    disable spoolss = Yes
    dns proxy = No
    enable web service discovery = Yes
    kernel change notify = No
    load printers = No
    logging = file
    max log size = 5120
    nsupdate command = /usr/local/bin/samba-nsupdate -g
    registry shares = Yes
    restrict anonymous = 2
    server role = standalone server
    server string = TrueNAS Server
    unix extensions = No
    idmap config *: range = 90000001-100000000
    fruit:nfs_aces = No
    idmap config * : backend = tdb
    directory name cache size = 0
    dos filemode = Yes


[TimeMachine]
    comment = Time Machine NFS Volume
    ea support = No
    kernel share modes = No
    path = /mnt/tanka/TimeMachine/%U
    posix locking = No
    read only = No
    vfs objects = tmprotect fruit streams_xattr shadow_copy_zfs ixnas aio_fbsd
    ixnas:default_user_quota = 1T
    ixnas:zfs_auto_homedir = true
    fruit:locking = none
    fruit:time machine = yes
    fruit:resource = stream
    fruit:metadata = stream
    nfs4:chown = true
Hi and thank you for the reply,

I see that you are using NFS for this share, I have been following a tutorial advising to use SMB. I might give NFS a try and report.
 
Top