Mounting an external Time Machine disk takes more than three minutes and locks up apps
Mounting an external Time Machine disk takes more than three minutes, and while it's mounting, apps that try to access files on Macintosh HD (internal SSD) block with the spinning wheel. This makes docking my Macbook Pro annoyingly tedious -- I can't use it for several minutes until the mounting completes.
Current configuration: Macbook Pro 2023; Macos 15.5; 3 external 16 TB Seagate drives, 2 configured as Time Machine drives, all APFS; Plugable Thunderbolt 4 hub.
The two Time Machine disks experience the problem, and each has about a TB free, is dedicated to Time Machine only, and each was formatted by Time Machine:
Before you start guessing, please read on:
- The drives are always cleanly ejected using Finder.
- This has been occurring for at least two years.
- It happened also with older Western Digital drives (so not the drive model or manufacturer or a "corrupted" drive).
- The current drives were acquired at different times, the most recent about six months ago.
- The drives use the cables they shipped with (so not the cable).
- The non-Time Machine drive mounts within a few seconds (so it's directly related to Time Machine).
- The delay occurs when Time Machine backups are disabled entirely at the time of mounting.
- The delay occurs when plugging a drive directly into the Macbook, bypassing the hub (so not the hub).
- The delay occurs when the computer has just finished rebooting, when it's just woken up after a long sleep, and when it's been running for hours or days.
- Disk Utility > First Aid shows no errors.
I used "fs_usage" to trace the I/Os during mounting, and the culprit is "kernel_task" issuing over a hundred thousand calls to read volume metadata in small 4096-byte chunks for about 200 seconds.
This graph shows the I/Os performed by programs/processes for 4.5 minutes after plugging in the drive:
"kernel_task" accounts for nearly all of the I/O up until the mount completes. ("md" includes mdworker, mdworker_shared, mdsync, and mds.)
The table shows the operations performed by "kernel_task" during mounting -- nearly all are RdMeta of 4096 bytes each:
This smells like an implementation defect of APFS or the way Time Machine uses APFS on spinning-disk drives. (Time Machine requires APFS on new drives.)
I found a handful of others who have experienced the same symptoms, with guesses but no confirmed solutions posted:
5/6/22: Mounting External HD for time machine bac… - Apple Community
5/26/22: Time Machine Backups - Why does it take s… - Apple Community
12/30/22: why does it take a long time for Time Mac… - Apple Community
2/22/24: https://www.bleepingcomputer.com/forums/t/794795/time-machine-drive-mounting-delay/
[Edited by Moderator]
MacBook Pro 16″, macOS 15.5