Jump to content
  • 0

Apple TimeMachine на SMB share - надо добавить в прошивку SMB_VFS_OBJECTS="fruit streams_xattr"


Alexandre Bougakov

Question

Добрый день!

столкнулся с невозможностью сделать бэкап на диск по протоколу SMB (доступ к папке не анонимный, а по паролю). Если расшарить диск по древнему протоколу AFP, то проблем нет.

Симптомы - на диске создаётся первоначальный "скелет" директорий для бэкапа, затем макбук задумывается и сообщает об ошибке "could'n backup". В логах макбука следующее (ключевое слово "Failed to read capabilities" )

2024-07-12 08:02:06  Backup requested to destination with ID 2AACC547-1010-40FB-BA50-F1B650EB7DA7. specifiedOptions: TMBackupOptions(rawValue: 1042)
2024-07-12 08:02:06  Starting backup with mode "manual backup"
2024-07-12 08:02:06  Rejecting candidate mount point: /Volumes/TimeMachine, not owned by root
2024-07-12 08:02:06  Attempting to mount 'smb://sanja@Keenetic%20CIFS._smb._tcp.local./TimeMachine'
2024-07-12 08:02:08  Failed to read capabilities for '/Volumes/TimeMachine', error: Operation not permitted
2024-07-12 08:02:08  Initial network volume options for 'TimeMachine' {disablePrimaryReconnect: 0, disableSecondaryReconnect: 0, reconnectTimeOut: 0, QoS: 0x0, attributes: 0x1C}
2024-07-12 08:02:08  Failed to read capabilities for '/Volumes/.timemachine/Keenetic CIFS._smb._tcp.local./F9C7BBE3-C862-42F5-A21C-5BDB224FB5DB/TimeMachine', error: Operation not permitted
2024-07-12 08:02:08  Configured network volume options for 'TimeMachine' {disablePrimaryReconnect: 0, disableSecondaryReconnect: 0, reconnectTimeOut: 30, QoS: 0x20, attributes: 0x1C}
2024-07-12 08:02:08  Mounted 'smb://sanja@Keenetic%20CIFS._smb._tcp.local./TimeMachine' at '/Volumes/.timemachine/Keenetic CIFS._smb._tcp.local./F9C7BBE3-C862-42F5-A21C-5BDB224FB5DB/TimeMachine' (1.01 TB of 1.01 TB available)
2024-07-12 08:02:08  Mountpoint '/Volumes/.timemachine/Keenetic CIFS._smb._tcp.local./F9C7BBE3-C862-42F5-A21C-5BDB224FB5DB/TimeMachine' is still valid
2024-07-12 08:02:08  Creating an encrypted diskimage
2024-07-12 08:02:08  Mountpoint '/Volumes/.timemachine/Keenetic CIFS._smb._tcp.local./F9C7BBE3-C862-42F5-A21C-5BDB224FB5DB/TimeMachine' is still valid
2024-07-12 08:02:08  Using a band size of 245.8 MB (on a volume with size of 1.01 TB)
2024-07-12 08:02:12  Mountpoint '/Volumes/.timemachine/Keenetic CIFS._smb._tcp.local./F9C7BBE3-C862-42F5-A21C-5BDB224FB5DB/TimeMachine' is still valid
2024-07-12 08:02:12  Successfully attached using DiskImages2 as 'disk4' from URL '/Volumes/.timemachine/Keenetic CIFS._smb._tcp.local./F9C7BBE3-C862-42F5-A21C-5BDB224FB5DB/TimeMachine/CF188161-89B3-5A01-87CB-C7F035BE8EC0_2024-07-12-080208.sparsebundle'
2024-07-12 08:02:14  Failed to get resource value 'NSURLVolumeURLForRemountingKey' for '/Volumes/.timemachine/Keenetic CIFS._smb._tcp.local./F9C7BBE3-C862-42F5-A21C-5BDB224FB5DB/TimeMachine', error: Error Domain=NSCocoaErrorDomain Code=257 "The file “TimeMachine” couldn’t be opened because you don’t have permission to view it." UserInfo={NSURL=file:///Volumes/.timemachine/Keenetic%20CIFS._smb._tcp.local./F9C7BBE3-C862-42F5-A21C-5BDB224FB5DB/TimeMachine/, NSFilePath=/Volumes/.timemachine/Keenetic CIFS._smb._tcp.local./F9C7BBE3-C862-42F5-A21C-5BDB224FB5DB/TimeMachine, NSUnderlyingError=0x60000236d7a0 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
2024-07-12 08:02:14  Failed to create volume info from disk '<TMDisk: 0x60000236e460> '/Volumes/.timemachine/Keenetic CIFS._smb._tcp.local./F9C7BBE3-C862-42F5-A21C-5BDB224FB5DB/TimeMachine'', error: missingURLForRemounting
2024-07-12 08:02:56  Failed to read capabilities for '/Volumes/TimeMachine', error: Operation not permitted
2024-07-12 08:04:00  Failed to read capabilities for '/Volumes/TimeMachine', error: Operation not permitted
2024-07-12 08:05:04  Failed to read capabilities for '/Volumes/TimeMachine', error: Operation not permitted

Чтение документации привело к тому, что в прошивке при установке галочки "TimeMachine" напротив шары должно быть прописано в Samba

SMB_VFS_OBJECTS="fruit streams_xattr"

Подробнее - https://wiki.samba.org/index.php/Configure_Samba_to_Work_Better_with_Mac_OS_X , https://github.com/mbentley/docker-timemachine/discussions/174#discussioncomment-8118176 

 

 

 

self-test_KN-1010_stable_4.01.C.7.0-1_router_2024-07-12T09-01-35.074Z.txt

Edited by Alexandre Bougakov
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Samba не является компонентом KeeneticOS, поэтому проблема не в недостаточности настроек.

Действительно мы знаем о существовании проблемы совместимости с последними версиями MacOS, однако поставщик решения пока не предоставил исправление.

  • Upvote 1
  • Y'r wrong 2
Link to comment
Share on other sites

  • 0

Вы не задумывались, что раз проблема существует, неплохо было бы добавить плашку "There are known issues with TimeMachine on the latest MacOS versions, please stay tuned"? А то я часа два угробил...

Скажите, а поддержку файловой системы HFS+ на внешних накопителях тот же "поставщик решения" принёс? А то Keenetic стал раздалбывать диски так, что если их потом воткнуть в макбук, DiskAid долго думает, потом говорит "это не лечится, я перевёл диск в read only, вытаскивай данные". 

 

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...