The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Rebooting Fun

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Rebooting Fun Posted: Dec 15, 2008 11:16 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Rebooting Fun
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

Yes Virginia, the Mac sometimes needs a reboot. The problem I just had was bizarre. I use a network drive as the Time Machine target for my MBP, and it stopped working yesterday after we had a brief (seconds long) power blink. It was enough to reset the router though, and that took out my network for a brief period. When it came back, the MBP couldn't see the remote drive, even though it could see the Mac that the drive is attached to, and said Mac had the drive mounted, and claimed to be sharing it.

Now, maybe there's something I could have done short of rebooting, but I figured a clean reset would fix the problem - and it did. Having said that, there was something I had to deal with manually in order to get Time Machine to function again.

When you use a remote drive for Time Machine, backups are stored in what the mac calls a "sparse bundle" file. On the outside, it looks like one file, but it's basically a disk image of a file system. When Time Machine starts a backup, it mounts it, creates a new backup directory in the mounted image, and gets to work. It calls the new directory "...InProgress", where the "..." is a timestamp. After it finishes, it renames the directory without the "inProgress", and unmounts the image. Here's the upshot: if Time Machine gets interrupted by a network outage, that "InProgress" directory stays there under that name - and any new backup attempt will fail, as it thinks a backup is already in progress.

Fixing this was harder than I thought it should be - here's what I did:

  • Using DiskUtility, I mounted the sparse bundle on the host Mac. To make this not take forever, I had it skip the validation
  • Moved the "InProgress" directories to Trash - backups could proceed after that
  • I couldn't seem to empty the trash with the Finder, so I opened a shell, did a "sudo sh", and then went into the .Trash directory in the disk image, and executed an "rm -rf". That did the trick. I think the Finder would have done the job, I just lost patience with how much time it was taking. The "rm -rf" took awhile.

It occurred to me afterwards that I probably should have tried simply renaming the "InProgress" directory to match the pattern Time Machine uses - I'll give that a go next time it happens.

Now Listening to: Darkness On The Edge Of Town by Bruce Springsteen from: Live 1975-85 [Disc 2]

Technorati Tags: , ,

Read: Rebooting Fun

Topic: The Joys of Hollywood Previous Topic   Next Topic Topic: Upstream Matters

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use