10F569: backupd stuck in loop trying to free space unnecessarily

Originator:paulschreiber
Number:rdar://8396806 Date Originated:9/5/2010
Status:Closed Resolved:Duplicate (8396806)
Product:Mac OS X Product Version:10.6.4/10F569
Classification:Serious Bug Reproducible:Not Applicable
 
Summary:
I have a 500 GB Time Capsule. I have a 500 GB hard drive with 125 GB of free space (375 GB used).

backupd is stuck in loop trying to free space unnecessarily.  For a few days, it has been doing this
while ( 1 ) {
  mountTimeCapsule()
  calculateFreeSpaceNeeded()
  deleteOldestBackupSet()
  attemptBackup()
  error("Not enough disk space")
}

Each iteration takes an hour or so.  /Volumes/Time\ Machine\ Backups/Backups.backupdb/Paul’s\ MBP has gone from 48 items to 12 items.

Attached are system log excerpts containing "backupd" and system profile.

Steps to Reproduce:
1. Back up your hard drive with Time Capsule. Make many backups — usually daily — over 6 months, ending on July 2. Time Capsule backs up and prunes as normal

2. Have hard drive fail on August 17, not having backed up for six weeks.

3. Run Disk Warrior on your disk. Recover many contents to external HD.

4. Install new HD.

5. Install SnowLeopard on new HD.

6. Copy files (drag via Finder) from rescue HD in step (3). 

7. Copy remaining files (drag via Finder) from Time Capsule.

8. Attempt to backup to Time Capsule.

Expected Results:
Time Capsule backs up two months worth of changed files.


Actual Results:
Time Capsule spends 4 days erasing one backup set at at time, eventually backing up the entire HD from scratch.

Regression:
Ha! Not trying this again.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!