Time Machine + My Book Live = COLD molasses

In my previous post I talk about how slow My Book Live is when backing up with Time Machine on Mac OSx.  I started my latest backup at about 11 PM, March 10.

It’s taken Time Machine about 46 hours to backup about 225 GB of data to My Book Live.

That’s so slow I could have worked enough to earn the money to buy a new Time Capsule by now.  Geez.

Time Machine + My Book Live = molasses

In today’s posting, I present some simple performance data for My Book Live when used to backup Mac OSX using Time Machine.  Spoiler alert: your initial backup might take a day or three – and that’s no exaggeration.

But if you have the patience to wait, I’ve found so far that it’s a good substitute for the $500 Time Capsule that comes with the same drive space (3 terabytes).

My Book Live (MBL) is a great product if you just backup files here and there.  But, power users need to have some patience.  While it’s reliable Network Attached Storage (NAS), it’s not made to chew on mounds of data quickly.  If you keep your data backups to under a couple gigabytes a day (max), you won’t be disappointed with its performance.  But any more than that and it might be worth looking around for a more enterprise NAS solution if you want to see your backups finish quickly.

Now if only Western Digital had a My Book Live version that came with 2GB (gigabytes) of memory, they’d have a sure fire winner of a product on their hands … I’m convinced.

I have been noticing my Time Machine backups for my Mac have gotten considerably slow when backing up to My Book Live (MBL).  I’m guessing … only guessing … that it’s because the MBL only comes with 256 megabytes of memory.  That makes the MBL a quite a bit underpowered for its advertised task.   Especially when you’re me and you need to backup several gigabytes a day.

At any rate I thought I would share some simple benchmarking results.  I calculated these numbers manually – by timing backup rates with a stopwatch.

The Time Machine backup is very slow.  I’ve isolated the problem to the Time Machine server running on the My Book Live.  Here’s how:

  1. My mac and the MBL NAS are connected to a switch using hardwire … no WiFi involved.
  2. I transferred a 1 gigabyte file manually from the Mac (Mountain Lion 10.8.2) to the Public shared drive on the MBL.  Took 54 seconds.  That’s pretty good.  That’s 8 billion bits in 54 seconds, or about 148 megabits per second.
  3. I can get similar rates when I transfer from the mac to a time machine that is hardwired to the same switch.
  4. I have the iTunes and the other media server off on the MBL.
  5. The MBL is set to not sleep.
  6. When backing up with Time Machine, the rates drop significantly:
    • took about 7.25 minutes for the drive to allow the mac to connect to it and prepare the backup.
    • The backup numbers in Time Machine seem to stall … just when you think the service on MBL has stalled, the numbers tick up rapidly for a time, then stall again.  When backing up to Time Capsule, the numbers don’t stall that much.
    • I timed a Time Machine backup and watched it for six minutes.  714 megabytes were backed up in 6 minutes.  That’s 5.7 gigabits in 360 seconds, or 16 megabits per second.

The overhead the Time Machine server gives us when running on My Book LIve is pretty big, 148 megabits straight file copy drops down to 16 megabits for Time Machine.  I haven’t run the same comparison for overhead for an Apple Time Capsule yet.

Running Hudson on My Book Live

The Western Digital My Book Live is a product that is optimized to do one thing: serve files.  And for that, I love it.  What it does, it does fairly well.  The setup is super easy too.  The best $150 I’ve spent on computer hardware in a long time.

When I realized the device was actually a simplified Linux server, I had to see if Hudson would run on My Book Live.  If Hudson ran well, I reasoned, I’d be able to use it as my build machine.  If not, then that’s O.K. too.  At least I found out.

So, I installed Hudson using apt-get, just like you would on a regular Linux server.

I even got the web page to come up:

Although My Book Live will run Hudson, the scaled down Linux server is best at serving up files.  Not much else.

Although My Book Live will run Hudson, the scaled down Linux server should be relegated to what it does best: serve up files.

That’s pretty cool.  The app ran, not surprisingly, very slow.  Apparently, running Hudson or any other Linux application not  installed on My Book Live at the factory runs the risk of interrupting your backup experience.  After all, the device is built just right for serving up files and its simple web interface. And for that Western Digital gets 10 awesomeness points.

And at that – it does it’s task very well.

Now if only Western Digital made a beefier machine – even if they just added 16GB of memory to the drive.  That would open up all kinds of possibilities for the My Book product line.

My Book Live : the $150 Linux Server ??

So, I perused the Western Digital community forum for information about my new My Book Live device that I just installed, and I noticed that some people were talking about enabling SSH logins:

Steps to enable SSH

So, naturally I got curious. Could I enable that, log in and look around.  I suspected Linux was under the hood.  So I did.  You have to log in as Root, and the password you need at first is right on the screen:

http://(YOUR.LIVEBOOK.ADDRESS)/UI/ssh

I was right about the device running on Linux. After logging in, I noticed I had a very current Linux Build on a Power PC processor:

# uname -a
Linux MyBookLive.local 2.6.32.11-svn70860 #1 Thu May 17 13:32:51 PDT 2012 ppc GNU/Linux

The first thing I did, of course was change the root password.  I’m sure if you forget your password you will need to perform a factory reset.  That might be bad so don’t loose that.  I did notice that the only user account that seems to be allowed to log in is root.  Here’s some additional specs:

top - 22:57:44 up 4:05, 1 user, load average: 4.86, 4.28, 3.53
Tasks: 100 total, 1 running, 99 sleeping, 0 stopped, 0 zombie
Cpu(s): 1.7%us, 53.8%sy, 23.8%ni, 0.0%id, 3.6%wa, 2.0%hi, 15.2%si, 0.0%st
Mem: 253632k total, 250944k used, 2688k free, 10816k buffers
Swap: 500608k total, 64768k used, 435840k free, 97728k cached

Not bad.  And, of course, Internet ports that are being listened to:

# netstat -an | head -n2 & netstat -an | grep LISTEN
[1] 6171
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State 
tcp 0 0 0.0.0.0:49152 0.0.0.0:* LISTEN 
tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN 
tcp 0 0 0.0.0.0:548 0.0.0.0:* LISTEN 
tcp 0 0 0.0.0.0:12548 0.0.0.0:* LISTEN 
tcp 0 0 0.0.0.0:3689 0.0.0.0:* LISTEN 
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 
tcp 0 0 0.0.0.0:59607 0.0.0.0:* LISTEN 
tcp 0 0 0.0.0.0:46647 0.0.0.0:* LISTEN 
tcp 0 0 0.0.0.0:38234 0.0.0.0:* LISTEN 
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 
tcp6 0 0 :::3689 :::* LISTEN 
tcp6 0 0 :::139 :::* LISTEN 
tcp6 0 0 :::80 :::* LISTEN 
tcp6 0 0 :::22 :::* LISTEN 
tcp6 0 0 :::443 :::* LISTEN 
tcp6 0 0 ::1:4700 :::* LISTEN 
tcp6 0 0 :::445 :::* LISTEN

So, depending on what this machine is able to do, it may be possible to use it as a simple server for routine tasks.  More later as I find out what this box can do …

Migrating Mac OSX Time Machine Backups to My Book Live

I have been looking for a simple, cost effective, network backup solution.  I have OSx 10.8.2 Mountain Lion.  All the solutions available are way over priced, considering the cost of hard drives these days.

I had given up, until today, when I was at Best Buy.  I was just going to get a USB cradle that would take an internal hard drive and connect it to my Mac over USB.  I already have one and it’s worked very well.  But that wasn’t what I wanted.  I wanted more of a low end SAN solution so that I didn’t have to have my computer on just to access the hard drive.

Then, while looking through the shelves at the USB 2.0 and 3.0, I noticed one external drive with a network connector on the back:

20130302-MyBookLiveFront

Front of the My Book Live small Network Access Storage (NAS) device. The network router shown is not included in the package of course.

Back of the My Book Live

Back of the My Book Live

The device seemed to work well right out of the box, and I’m sure you can use it without much configuration work.  It’s obvious Western Digital set it up to be as ready to go out of the box as possible. Which is a rare thing for non-Apple products.  So, I was impressed.

I did however have some non-standard setup tasks to do.  One of those setup tasks for me was to copy my existing Time Machine backup archives to the new drive.  Necessary because the drive was now going to serve as my primary backup drive.  So I made sure that the Time Machine server was active using the web interface of the device itself (which is actually pretty nice).  Then I followed the instructions on this Apple knowledge base article:

Time Machine: How to transfer backups from the current backup drive to a new backup drive

There’s a step in those instructions where you copy Backups.backupdb to the top level directory of the Time Machine partition on the drive (which for My Book Live is created automatically – there’s no formatting the drive necessary or allowed, only a factory reset).  So, I tried that and up popped this error message on my Mac:

20130302-OSx-TimeCapsuleError

error: The volume is the wrong format for a backup.

I panicked.  I really needed my NAS drive to function well as a Time Machine backup.  Queue the suspense music.

So, I perused the Interweb forums for an answer, and eventually just decided that I would have to simple let the Time Machine backup create a new backup.  Sigh.  Dreck.  So, I clicked “OK” here to close the error dialog, and nothing was copied.  I then started Time Machine preferences, and selected the new partition on the My Book Live as the new disk.  But, I also happened to have my existing Time Machine backup drive connected to the computer at the same time.

Low and behold, a window pops up, asking me if  I want to replace the old Time Machine backup drive with the new one.

With two Time Machine drives present, you can choose how you want to backup.

With two Time Machine drives present, you can choose how you want to backup.

The “Use Both” button was highlighted.  But I clicked the “Replace Behemoth” button cause I only wanted one backup drive active.  Queue the “we might be out of the dark woods” music.

The other choice I had was to use both drives at the same time and let Time Machine to alternate drives.  I thought that was interesting, because it suggested that my existing backup files might be copied over to the new drive if I chose to replace the old one.  So, I clicked the “Replace” button.

As Time Machine got to work on the backup, I noticed that the size of the backup was several times larger than the amount of data on my hard drive.  That suggested that the old backup was being copied.  A quick check of file system in Time Machine confirmed that my old backup data was in fact being transferred to the new drive.

For all the complaining I’ve done on Apple’s support forums, bad language and all, I can honestly say this feature compensates for a handful of times I’ve been frustrated by my Mac or external hard drives for one reason or another.

Nice Job Apple!  Queue your favorite Wagner symphony.

You’re still the king of the farm when it comes to features that keep my data safe.  This makes the high prices of Macs … well … a about 2% more bearable.