macOS Mojave – Time Machine – Do not disassemble your network drive

You have a problem with Time Machine that seems to be related to Spotlight.

Time Machine does not unmount / eject the network backup drive, which prevents me from doing things on the backup drive.

Time Machine Journal:

[com.apple.TimeMachine:TMLogInfo]    Disc 3 ejected from & # 39; /Volumes/com.apple.TimeMachine.TM_Prime-DA16D91F-3320-4834-91ED-2902CE57E46D/Graham' s_Mac.sparsebundle & # 39;
[com.apple.TimeMachine:TMLogInfo] Unable to disassemble & # 39; /Volumes/com.apple.TimeMachine.TM_Prime-DA16D91F-3320-4834-91ED-2902CE57E46D&#39 ;, error: 16 busy resource
[com.apple.TimeMachine:TMLogError] Unable to delete the directory & # 39; /Volumes/com.apple.TimeMachine.TM_Prime-DA16D91F-3320-4834-91ED-2902CE57E46D&#39 ;, error: 16 resources busy.

It's a metadata thing:

Grahams-Mac: Graham Volumes $ sudo lsof /Volumes/com.apple.TimeMachine.TM_Prime-DA16D91F-3320-4834-91ED-2902CE57E46D
USER PID COMMAND TYPE FD DEVICE SIZE / NAME OF NODES
mds 82 root 15r DIR 52,32 264 2 /Volumes/com.apple.TimeMachine.TM_Prime-DA16D91F-3320-4834-91ED-2902CE57E46D

Disable Spotlight for a range of drives.
Time Machine uses a different name each time.

Grahams-Mac: Graham Volumes $ sudo mdutil -i off /Volumes/com.apple.TimeMachine.TM_Prime*
/Volumes/com.apple.TimeMachine.TM_Prime-DA16D91F-3320-4834-91ED-2902CE57E46D:
2019-04-27 18: 22: 26.919 mdutil[2929:1075028] mdutil disabling Spotlight: /Volumes/com.apple.TimeMachine.TM_Prime-DA16D91F-3320-4834-91ED-2902CE57E46D -> kMDConfigSearchLevelFSSearchOnly
Indexing and search disabled.

Dismantled reader

Grahams-Mac: Graham volumes $ diskutil force umount force /Volumes/com.apple.TimeMachine.TM_Prime-DA16D91F-3320-4834-91ED-2902CE57E46D
Disassembling successfully for /Volumes/com.apple.TimeMachine.TM_Prime-DA16D91F-3320-4834-91ED-2902CE57E46D

Run a Time Machine backup. Same problem.

Any help would be appreciated.