O backup do Time Machine no compartilhamento Samba falha com os erros 512, 20 e 14

O backup do Time Machine no compartilhamento Samba falha com os erros 512, 20 e 14

Eu configurei um compartilhamento Samba para backups do Time Machine de acordo comeste guia.

Meu Mac reconhece o compartilhamento corretamente, mas o backup inicial falha com a mensagem de erro genérica de que nenhum backup pôde ser criado no meu compartilhamento.

A execução log stream --style syslog --predicate 'senderImagePath contains[cd] "TimeMachine"' --infofornece o seguinte log:

MacBook-Air-2:~ xxx$ log stream --style syslog  --predicate 'senderImagePath contains[cd] "TimeMachine"' --info
Filtering the log data using "senderImagePath CONTAINS[cd] "TimeMachine""
Timestamp                       (process)[PID]    
2018-12-04 22:26:10.213195+0100  localhost backupd[34893]: (TimeMachine) [com.apple.TimeMachine:TMLogInfo] Starting manual backup
2018-12-04 22:26:10.338732+0100  localhost backupd[34893]: (TimeMachine) [com.apple.TimeMachine:TMLogInfo] Attempting to mount 'smb://pi@raspberrypi._smb._tcp.local./Time%20Machine%20Backups'
2018-12-04 22:26:10.897172+0100  localhost backupd[34893]: (TimeMachine) [com.apple.TimeMachine:TMLogInfo] Mounted 'smb://pi@raspberrypi._smb._tcp.local./Time%20Machine%20Backups' at '/Volumes/com.apple.TimeMachine.Time Machine Backups-74F8F302-361C-4490-9E35-1F2598F9D16E'
2018-12-04 22:26:11.816536+0100  localhost backupd[34893]: (TimeMachine) [com.apple.TimeMachine:TMLogInfo] Failed to find matching sparsebundle in directory '/Volumes/com.apple.TimeMachine.Time Machine Backups-74F8F302-361C-4490-9E35-1F2598F9D16E', directory contents: (
)
2018-12-04 22:26:11.845958+0100  localhost backupd[34893]: (TimeMachine) [com.apple.TimeMachine:TMLogInfo] Creating a sparsebundle using Case-sensitive Journaled HFS+ filesystem
2018-12-04 22:26:13.544412+0100  localhost backupd[34893]: (TimeMachine) [com.apple.TimeMachine:TMLogError] Failed to create '/Volumes/com.apple.TimeMachine.Time Machine Backups-74F8F302-361C-4490-9E35-1F2598F9D16E/A76BCEEB-A3BD-5D63-82F4-8AEBB2F5ACBA.sparsebundle', results: {
}, error: 512 Fehler 512
2018-12-04 22:26:13.548494+0100  localhost backupd[34893]: (TimeMachine) [com.apple.TimeMachine:TMLogError] Backup failed with error 20: 20
2018-12-04 22:26:13.621842+0100  localhost backupd[34893]: (TimeMachine) [com.apple.TimeMachine:TMLogInfo] Unmounted '/Volumes/com.apple.TimeMachine.Time Machine Backups-74F8F302-361C-4490-9E35-1F2598F9D16E'
2018-12-04 22:26:13.622367+0100  localhost backupd[34893]: (TimeMachine) [com.apple.TimeMachine:TMLogError] Failed to remove directory '(null)', error: 14 Bad address

O estranho é que, ao contrário do log, um pacote esparso chamado 74F8F302-361C-4490-9E35-1F2598F9D16E/A76BCEEB-A3BD-5D63-82F4-8AEBB2F5ACBA.sparsebundleé criado no meu compartilhamento. Portanto, as permissões de gravação definitivamente não são o problema.

MacOS 10.14.1 Samba 4.8.0

Responder1

Acontece que a configuração que tentei não funciona com unidades formatadas em HFS+. Reformatar a unidade com ext4 faz com que o erro desapareça e o backup seja realmente iniciado.

informação relacionada