Time machine disk never stops indexing

Was working normally ever since I started using my new Mac Studio M1 Max 2022 (as in it indexed it once and then was mostly silent for months), but starting about a week ago, my Time Machine disk is constantly being indexed. LIke I mean constantly. I leave it on all night in hopes of it finishing but it never does. It's been going on for a week.


Monterey 12.6.2


The drive is going to fail much sooner than it should have I am sure. Some support threads indicate this is normal behavior but like I said, for the first several months of owenership this never happened.


It sounds like I am in the middle of a snare drum orchestra.


This can't possibly be normal behavior, right?



Mac Studio, macOS 12.6

Posted on Feb 15, 2023 11:22 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 16, 2023 4:08 PM

Since it is a Time Machine and since it is an APFS formatted drive, Disk Utility could not properly unmount it, returning an exit code 65. After a little research I found that this is apparently a known bug that has existed since Big Sur. Disk Utility cannot unmount an APFS Time Machine volume successfully, despite there being no obvious reason it should fail.


I did a little more research and found that Disk Utility can do this from within recovery (even though the startup volume is not involved at all).


So from Recovery, I ran the repair routine and Disk Utility has successfully unmounted the drive and is now checking all the Time Machine snaphots. All 49 of them. This will take some time....I will check back later.


(BTW while disk utility is checking all these snapshots, the drive is functioning normally, occasional pages as one might expect as opposed to the constant chatter it emits when it is in an endless indexing loop)

Similar questions

11 replies
Question marked as Top-ranking reply

Feb 16, 2023 4:08 PM in response to barberlives123

Since it is a Time Machine and since it is an APFS formatted drive, Disk Utility could not properly unmount it, returning an exit code 65. After a little research I found that this is apparently a known bug that has existed since Big Sur. Disk Utility cannot unmount an APFS Time Machine volume successfully, despite there being no obvious reason it should fail.


I did a little more research and found that Disk Utility can do this from within recovery (even though the startup volume is not involved at all).


So from Recovery, I ran the repair routine and Disk Utility has successfully unmounted the drive and is now checking all the Time Machine snaphots. All 49 of them. This will take some time....I will check back later.


(BTW while disk utility is checking all these snapshots, the drive is functioning normally, occasional pages as one might expect as opposed to the constant chatter it emits when it is in an endless indexing loop)

Feb 20, 2023 11:03 AM in response to BobWhitmore

How do you know that it is indexing, versus something else?


Does your computer do extensive cloud storage and syncing? If so, even if nothing on that drive is being synced, it might get spun up and searched by various cloud processes.


Do you have any anti-virus or third party "cleaner" tools installed? What type of drive is this? Do you have the drive manufacturer tools/utilities installed? [All of these third party tools/utilities of these sorts are not recommended.]


Before discarding the disk, I would check its hardware state with DriveDX. You can also remove it from Time Machine as a backup destination, erase/reformat the entire device, then try again. Make sure you have another reliable backup before doing that.


You can also download and run Etrecheck which is a free diagnostic tool that produces an anonymous report that provides insight into your computer and drive configuration, and software. People will inspect it here if you post it and may find something you can address or fix. Use the Additional Text button below to post the report.

Feb 16, 2023 3:42 PM in response to BobWhitmore

Hey there BobWhitmore,


Try running First Aid on the external drive. Disk Utility can find and repair errors related to the formatting and directory structure of a Mac disk. Open Disk Utility from the Utilities folder of your Applications folder. Choose View > Show All Devices (if available) from the menu bar or toolbar in Disk Utility. The sidebar in Disk Utility should now show each available disk or other storage device, beginning with your startup disk. Beneath each disk you should see any containers and volumes on that disk. Start by selecting the last volume on that disk, then click the First Aid button. You can find more details here:


How to repair a Mac disk with Disk Utility


Take care.

Feb 21, 2023 9:59 AM in response to BobWhitmore

Is the computer a managed device by your employer? I have two MacBook Pros, one an employer device, the other my personal device. Both are set up much the same except the employer one is "managed" which means it can be accessed remotely, configured by employer, etc. Both do Time Machine backups but the employer one often takes notably longer to complete and also has more noticeable disk activity of the sort you mention. Hence my question about managed devices.


I believe indexing shows up as disk activity (especially disk reads) in Activity Monitor, it is reading from the disk, and would be associated with mds processes. However, mds is almost always active in one form or another. Also, I believe you can exclude an external Time Machine backup drive from Spotlight via the Spotlight system settings/preferences. This will not prevent you from restoring from backups.


Disk Utility only reports on the integrity of the file system, not the hardware. You are hearing hardware noises, hence my suggestion to run DriveDX.


Have you tried completely disconnecting from the internet and any local network as well, to see if the noise continues, goes away, changes, etc. Indexing is a local activity and hence would continue if that is what is going on.


I use several mechanical and solid state drives for Time Machine and the mechanical ones are noticeable noisier and have such activity that lasts much longer. You might consider replacing it with an SSD if the noise bothers you.

Feb 21, 2023 9:12 AM in response to steve626

Thanks for responding.


My conclusion was indexing because despite the constant activity, no significant disk activity was showing in the activity monitor. I beleive I read that spotlight activity is excluded from this. Also at the request of my IT director, I excluded all external volumes from indexing (they were all overly active), using the sudo mdutil -i off command for all. This silenced everything except my time machine drive which I am aware needs to be indexed to function correctly. This also caused no change in the activity monitor report.


There is cloud storage and syncing with dropbox but this has always been the case without it causing a 2 week long indexing of my backup drive. My dropbox main folder is on an SSD and normal operation has been mostly silent for the several months leading up to this.


Drive in question is a Seagate Expansion 12 TB HDD. Formatted as case sensitive APFS. Time machine is the only use for this drive. It currently has 4.2 TB free. There is no manufacturer software present on it or in my system. There are no 3rd party disk management tools on the system as it is a work computer and property of my employer, thus our IT depratment demands we run a pretty clean system.


As such I am asked not to run third party diagnostic tools etc etc.


Disk utility (run through recovery since it is a time machine drive) reports it as in good working order.


Despite the excess activity, time machine backups are conituning as normal, thus no action has been recommended from my IT department.


But it sure is noisy in here. Considering a pillow...

Feb 16, 2023 2:57 PM in response to BobWhitmore

Hello BobWhitmore,


Welcome to Apple Support Communities!

We want to help ensure the Time Machine backup is complete for you.

See here for why it might take longer than expected:

"If Time Machine takes a long time to back up

Time Machine is designed to work in the background, without interfering with the regular operation of your computer. Time Machine backs up only the changes since your last backup, so after your first backup, future backups should be faster."


This Apple Support page has the full details and more steps to take: If Time Machine takes a long time to back up - Apple Support

If the issue continues, where do you see the messing that it is indexing? What does the specific error message say?

We hope this helps to isolate and resolve the issue causing the drive to continue to index.

Cheers!


Feb 16, 2023 3:23 PM in response to justin_900

Thanks for replying but I think you are misunderstanding. It's not the backups that are taking forever, it's the indexing. It is literally constantly indexing every second the computer is on. For a solid week.


As for the actual backups, they are normal, occuring on schedule, complete, usable, and taking a fairly short amount of time.


In short, it's not the backups. It's the indexing of the backup drive. The drive is constantly being read.


Feb 21, 2023 11:23 AM in response to steve626

Thanks.


As of Monterey (or maybe Big Sur?) you can no longer exclude time machine volumes from indexing.


It is not regularly remotely managed as such, though the IT person does have the ability to remote in if I should require it or to update licensing. I do have admin provileges though. I am careful not to overstep.


I have done the internet disconnect and yes it does continue.


However....


In the last hour it just flat out stopped again, responding to no particular input I can tell. After about a week of constant activity. Hallelujah! Let's see if it lasts. Thanks for your time and consideration. nRight now I am holding my breath and enjoying the silence.


Backups appear to be continuing normally.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Time machine disk never stops indexing

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.