SMB Time Machine on 12.0-BETA

pitbullb

Cadet
Joined
Mar 25, 2020
Messages
7
It took me days to get it working again after updating from 11.3.
My config looks like ChrisChros one.

To speed up the TimeMachine backup (at least the first backup) I disable the throttling of TM on the Mac:
Code:
sudo sysctl debug.lowpri_throttle_enabled=0
 

andrema2

Explorer
Joined
Aug 3, 2011
Messages
83
What I'm seeing is TMs BKPs failing from time to time. Looks like the share is not found anymore. I have to stop and restart the service.

I haven't done any change on the parameters as you seem to be done.
Hi, I'm still seeing this behaviour. I didn't see any errors on the SMB service, other shares seems to be ok using SMB.
Looks like the mDNS is not properly advertising it.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,546
Hi, I'm still seeing this behaviour. I didn't see any errors on the SMB service, other shares seems to be ok using SMB.
Looks like the mDNS is not properly advertising it.
What's output of following commands:
Code:
midclt call smb.config | jq
midclt call sharing.smb.query | jq
testparm -s
 

andrema2

Explorer
Joined
Aug 3, 2011
Messages
83
What's output of following commands:
Code:
midclt call smb.config | jq
midclt call sharing.smb.query | jq
testparm -s

@anodos , here it is following the commands above

Code:
{
  "id": 1,
  "netbiosname": "freenas",
  "netbiosname_b": "truenas-b",
  "netbiosalias": [
    "freenas"
  ],
  "workgroup": "WORKGROUP",
  "description": "FreeNAS Server",
  "unixcharset": "UTF-8",
  "loglevel": "MINIMUM",
  "syslog": false,
  "aapl_extensions": true,
  "localmaster": true,
  "guest": "nobody",
  "filemask": "",
  "dirmask": "",
  "smb_options": "strict sync = No",
  "bindip": [
    "10.2.2.2"
  ],
  "cifs_SID": "S-1-5-21-4212168799-811064797-3220049273",
  "ntlmv1_auth": false,
  "enable_smb1": false,
  "admin_group": null,
  "next_rid": 1008,
  "netbiosname_local": "freenas"
}


Code:
[
  {
    "id": 2,
    "purpose": "ENHANCED_TIMEMACHINE",
    "path": "/mnt/TM",
    "path_suffix": "%U",
    "home": false,
    "name": "TMSMB",
    "comment": "",
    "ro": false,
    "browsable": true,
    "recyclebin": false,
    "guestok": false,
    "hostsallow": [],
    "hostsdeny": [],
    "auxsmbconf": "vfs objects = aio_fbsd tmprotect fruit streams_xattr shadow_copy_zfs ixnas",
    "aapl_name_mangling": false,
    "abe": false,
    "acl": true,
    "durablehandle": true,
    "streams": true,
    "timemachine": true,
    "vuid": "7fe675d1-d247-464e-91b0-925bb11b5d00",
    "shadowcopy": false,
    "fsrvp": false,
    "enabled": true
  },
  {
    "id": 3,
    "purpose": "DEFAULT_SHARE",
    "path": "/mnt/NAS",
    "path_suffix": "",
    "home": false,
    "name": "NAS",
    "comment": "",
    "ro": false,
    "browsable": true,
    "recyclebin": false,
    "guestok": false,
    "hostsallow": [],
    "hostsdeny": [],
    "auxsmbconf": "",
    "aapl_name_mangling": false,
    "abe": false,
    "acl": true,
    "durablehandle": true,
    "streams": true,
    "timemachine": false,
    "vuid": "",
    "shadowcopy": true,
    "fsrvp": false,
    "enabled": true
  }
]


Code:
Load smb config files from /usr/local/etc/smb4.conf
Loaded services file OK.
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
    interfaces = 127.0.0.1 10.2.2.2
    kernel change notify = No
    load printers = No
    logging = file
    max log size = 51200
    netbios aliases = freenas
    nsupdate command = /usr/local/bin/samba-nsupdate -g
    registry shares = Yes
    restrict anonymous = 2
    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
    strict sync = No


[TMSMB]
    ea support = No
    kernel share modes = No
    path = /mnt/TM/%U
    posix locking = No
    read only = No
    vfs objects = aio_fbsd tmprotect fruit streams_xattr shadow_copy_zfs ixnas
    fruit:resource = stream
    fruit:metadata = stream
    fruit:time machine = yes
    nfs4:chown = true


[NAS]
    ea support = No
    kernel share modes = No
    path = /mnt/NAS
    posix locking = No
    read only = No
    vfs objects = aio_fbsd fruit streams_xattr shadow_copy_zfs ixnas
    fruit:resource = stream
    fruit:metadata = stream
    nfs4:chown = true
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,546
@anodos , here it is following the commands above

Code:
{
  "id": 1,
  "netbiosname": "freenas",
  "netbiosname_b": "truenas-b",
  "netbiosalias": [
    "freenas"
  ],
  "workgroup": "WORKGROUP",
  "description": "FreeNAS Server",
  "unixcharset": "UTF-8",
  "loglevel": "MINIMUM",
  "syslog": false,
  "aapl_extensions": true,
  "localmaster": true,
  "guest": "nobody",
  "filemask": "",
  "dirmask": "",
  "smb_options": "strict sync = No",
  "bindip": [
    "10.2.2.2"
  ],
  "cifs_SID": "S-1-5-21-4212168799-811064797-3220049273",
  "ntlmv1_auth": false,
  "enable_smb1": false,
  "admin_group": null,
  "next_rid": 1008,
  "netbiosname_local": "freenas"
}


Code:
[
  {
    "id": 2,
    "purpose": "ENHANCED_TIMEMACHINE",
    "path": "/mnt/TM",
    "path_suffix": "%U",
    "home": false,
    "name": "TMSMB",
    "comment": "",
    "ro": false,
    "browsable": true,
    "recyclebin": false,
    "guestok": false,
    "hostsallow": [],
    "hostsdeny": [],
    "auxsmbconf": "vfs objects = aio_fbsd tmprotect fruit streams_xattr shadow_copy_zfs ixnas",
    "aapl_name_mangling": false,
    "abe": false,
    "acl": true,
    "durablehandle": true,
    "streams": true,
    "timemachine": true,
    "vuid": "7fe675d1-d247-464e-91b0-925bb11b5d00",
    "shadowcopy": false,
    "fsrvp": false,
    "enabled": true
  },
  {
    "id": 3,
    "purpose": "DEFAULT_SHARE",
    "path": "/mnt/NAS",
    "path_suffix": "",
    "home": false,
    "name": "NAS",
    "comment": "",
    "ro": false,
    "browsable": true,
    "recyclebin": false,
    "guestok": false,
    "hostsallow": [],
    "hostsdeny": [],
    "auxsmbconf": "",
    "aapl_name_mangling": false,
    "abe": false,
    "acl": true,
    "durablehandle": true,
    "streams": true,
    "timemachine": false,
    "vuid": "",
    "shadowcopy": true,
    "fsrvp": false,
    "enabled": true
  }
]


Code:
Load smb config files from /usr/local/etc/smb4.conf
Loaded services file OK.
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
    interfaces = 127.0.0.1 10.2.2.2
    kernel change notify = No
    load printers = No
    logging = file
    max log size = 51200
    netbios aliases = freenas
    nsupdate command = /usr/local/bin/samba-nsupdate -g
    registry shares = Yes
    restrict anonymous = 2
    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
    strict sync = No


[TMSMB]
    ea support = No
    kernel share modes = No
    path = /mnt/TM/%U
    posix locking = No
    read only = No
    vfs objects = aio_fbsd tmprotect fruit streams_xattr shadow_copy_zfs ixnas
    fruit:resource = stream
    fruit:metadata = stream
    fruit:time machine = yes
    nfs4:chown = true


[NAS]
    ea support = No
    kernel share modes = No
    path = /mnt/NAS
    posix locking = No
    read only = No
    vfs objects = aio_fbsd fruit streams_xattr shadow_copy_zfs ixnas
    fruit:resource = stream
    fruit:metadata = stream
    nfs4:chown = true
From your macos client, run command dns-sd -B _adisk._tcp. Is your server visible?
 

andrema2

Explorer
Joined
Aug 3, 2011
Messages
83
Now it is.
I have restarted the server and it started working again.
I'll wait next time and run the commands again.
I'll post the results here.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,546
Now it is.
I have restarted the server and it started working again.
I'll wait next time and run the commands again.
I'll post the results here.
Is FreeNAS virtualized or on physical hardware? Any log messages in /var/log/messages that correspond to the service becoming unavailable?
 

GBaughma

Cadet
Joined
Nov 6, 2021
Messages
2
I'm getting:

The network backup disk does not support the required capabilities.

when I try to use time machine to back up to my SMB share that was working fine on 11.3U3.2.

What piece(s) am I missing?

freenas# testparm -s
Load smb config files from /usr/local/etc/smb4.conf
Loaded services file OK.
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
interfaces = 127.0.0.1 192.168.200.2 2600:1700:210:b180:230:48ff:fecf:2b1c
kernel change notify = No
load printers = No
logging = file
max log size = 51200
nsupdate command = /usr/local/bin/samba-nsupdate -g
registry shares = Yes
restrict anonymous = 2
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


[smb-tm]
ea support = No
path = /mnt/data/smb-tm
read only = No
vfs objects = zfs_space zfsacl streams_xattr
fruit:resource = stream
fruit:metadata = stream
fruit:time machine = yes
nfs4:chown = true
freenas# smbstatus -b

Samba version 4.12.3
PID Username Group Machine Protocol Version Encryption Signing
----------------------------------------------------------------------------------------------------------------------------------------
freenas# smbstatus -b

Samba version 4.12.3
PID Username Group Machine Protocol Version Encryption Signing
----------------------------------------------------------------------------------------------------------------------------------------
freenas# smbstatus -b

Samba version 4.12.3
PID Username Group Machine Protocol Version Encryption Signing
----------------------------------------------------------------------------------------------------------------------------------------
3800 ler ler 2600:1700:210:b180:c14a:dd5f:ad59:7491 (ipv6:2600:1700:210:b180:c14a:dd5f:ad59:7491:55856) SMB3_02 - partial(AES-128-CMAC)
freenas#

I was having this issue, and checking "Export recycle bin" seems to have resolved it.
 

majorgear

Dabbler
Joined
Mar 13, 2012
Messages
36
I was having this issue, and checking "Export recycle bin" seems to have resolved it.
That worked for me as well. Your post saved my life...or at least it saved my TM backups as I'm migrating them from Synology to TrueNAS Scale v22.
 
Top