× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Making Time Machine work with the ReadyNAS

Meob1
Aspirant

Re: Making Time Machine work with the ReadyNAS

turns out my sparsebundle / backup size limit was too small i think.

I set it to 140g, just checked its current size on the nas = 138gig

what was weird was that the time machien error said it needed a extra 40 gig and there was only 60 gig left???
(there is over 200 gig free??? weird...)

re-did all the steps in the how-to and set it to 180 gig

looks like I am backing up from scratch again now tho ;-(

ah well - live & learn!
Message 51 of 172
des1
Aspirant

Re: Making Time Machine work with the ReadyNAS

So I faithfully followed the step by step instructions but...every time I get the same error:

Time Machine Error

The time machine image could not be created.


Help! Any thoughts?
Message 52 of 172
yoh-dah
Guide

Re: Making Time Machine work with the ReadyNAS

des wrote:
So I faithfully followed the step by step instructions but...every time I get the same error:

Time Machine Error

The time machine image could not be created.


Help! Any thoughts?

Are you creating the image on your Mac or on the network volume?
Message 53 of 172
des1
Aspirant

Re: Making Time Machine work with the ReadyNAS

On my mac and then rsyncing it over to the NAS volume.
Message 54 of 172
Meob1
Aspirant

Re: Making Time Machine work with the ReadyNAS

its werid, my backup aint working at all anymore ;-(

- created new share on nas
- followed guide step - by step
- backup starts
- goes as far as 12.77 gb
- does not go any further.

weird.

anyway, I am using Super Duper now with no issues.

would liek to use Time machine as well tho.....
Message 55 of 172
yachtman
Aspirant

Re: Making Time Machine work with the ReadyNAS

Time Machine on the Readynas is sweet!

Did a totally new clean install of Leopard--erased the disk--and it was so simple to restore files. Restoring apps is a little more difficult, since you have to restore both the app file as well as any other related--preference files etc. For most apps, I just reinstalled them, then just restored the settings file.

Two issues I came across: After I installed leopard, I tried connecting to my TM share on the ReadyNAS, but TM couldn't see or connect to the sparsebundle. Then it occurred to me that my new computer name was not the same as I had previously--now it was "Yachtmans Power PC G5". I changed it back to my previous name "Power PC G5" and woila!--TM connected to the bundle and my old files were visible.

The other issue was that my previous leopard install was just "HFS+ Journaled". So when I went to turn on TM to start adding to the backups, I got an error saying that my machine was "Case sensitive" while my backup bundle was not. Okay. So after getting all of the files I needed, I started over and created a new TM bundle that is now "HFS+ Journaled Case-sensitive".

Time Machine is in my opinion, leagues above any other backup solution in simplicity and features.... Go Apple!
Message 56 of 172
rpsfigueira
Aspirant

Re: Making Time Machine work with the ReadyNAS

hey,

I've followed the step by step on Making Time Machine work with the ReadyNAS religiously... everything went smoothly untill the actual backup... time machine schedules the backup for the next two minutes and when it gets there starts "preparing..." but this only lasts for less than five seconds... after that, time machine just stops without giving any error message, without starting the backup and scheduling a new backup for approximately one hour from then.

Any ideas? Thanks.
Message 57 of 172
teeruku
Aspirant

Re: Making Time Machine work with the ReadyNAS

btaroli wrote:
sphardy wrote:
teeruku,

By default TM will not show network volumes for selection when specifying the backup volume - this setting enables that feature so that TM can back up to a NAS device rather than just an external drive / Time Capsule etc

It is disabled by default as Apple do not support this functionality

///P

This is no longer true with later 10.5.x releases. I haven't had this option set in my installation since 10.5.3, and i'm on 10.5.4 now. TM is working like a champ.



I am not so sure about this ? I now don't have this set and my backup volume on my NAS doesn't show up in the time machine preference panel
Message 58 of 172
Vatoe
Aspirant

Re: Making Time Machine work with the ReadyNAS

des wrote:
So I faithfully followed the step by step instructions but...every time I get the same error:

Time Machine Error

The time machine image could not be created.


Help! Any thoughts?

Maybe this helps, as it sounds like the problem I was running into. 😐

I thought I followed the instructions to the letter, then after several hours of frustration, I worked out that I wasn't naming the sparse bundle with the computer name, ie the one used to identify it over the network. One way you can find the name to identify the Mac, is in settings>network>highlight ethernet>click on advanced>WINS (its the netbios name).

So in the instructions where it says you can name the 'volume' anything it's not actually referring to the naming of the sparsebundle itself. The naming of the sparsebundle is the product of 'networkcomputername'+'ethernetmac address'.sparsebundle). After I made this change to the naming of the sparsebundle, it all works very well.
Message 59 of 172
mcgroarty1
Aspirant

Re: Making Time Machine work with the ReadyNAS

yoh-dah wrote:
The step-by-step how-to can be found here.


I believe that's going to default to 1 meg span sizes, or 1024 files per gig of backup.

Try adding this:
-imagekey sparse-band-size=131072

That makes it allocate 64 meg blocks (131072 * 512 byte sectors = 64m), for 16 files per gig of backup. This saves space and helps performance.

Edit: btw, the Time Capsule defaults to 8 meg blocks. I suspect it would use larger if the thing weren't so tight on RAM.
Message 60 of 172
myuill
Aspirant

Re: Making Time Machine work with the ReadyNAS

Just an FYI in case anyone runs into the same problem I did. TM backups were working for a few months then started failing.

Turns out the sparesbundle I created was too small. Even though my hard drive is 185 GB, it was "full" even though my hard drive wasn't (it was about 179 GB). I made a sparesbundle that was 200GB in size, still wasn't good enough so I went up to 220 GB and now it works like a charm.

So if you get failures ... try making your sparesbunldle bigger.
Message 61 of 172
sirozha
Aspirant

Re: Making Time Machine work with the ReadyNAS

My TM quit working a few months ago, I never got it working again. It was actually breaking down every few weeks, so I got tired of it. Since then, we got a few Leopard upgrades, so I wonder if we should put together a new How-To on TM.

One question is about the command

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1


Does it need to be entered or not?

Another question is, Does TM mount the share on its own or should the share be mounted manually first?

Then, the creation of the backup volume. What bug exactly was introduced there? What needs to be done?

Finally, allocating blocks of 64 MB. Does this really help? What exactly does this do?

Anyone volunteers for writing up a new How-To?

I will be getting a new Mac when Apple releases a new update to its Macbooks or Macbook Pros later this month or in September, and I would like to get TM working again on my Macbook Air. I've been out of it for several months now, so you guys have a better sense of what has changed since we wrote up the first one.
Message 62 of 172
wwalkersd
Aspirant

Re: Making Time Machine work with the ReadyNAS

Add me to the list of those who've been successfully using Time Machine to back up to the NAS for quite some time, but have recently had it fail. I now get the error "Time Machine Error - the backup directory could not be created". I don't think size is the issue, because I've got 200 GB used on my hard drive and the sparseimage was 320 GB. My NAS is currently showing 63% of 1.5 TB used, so there's plenty of room there, too.

I've tried deleting the existing sparseimage and creating a new one from the directions here, but I get the same error on the initial backup. I wonder whether some Apple software update has broken this? I was running 10.5.3 when the problem first occurred. I'm now on 10.5.4, which hasn't changed anything. I don't actually recall any updates around the time the error started.
Message 63 of 172
levi1
Aspirant

Re: Making Time Machine work with the ReadyNAS

Hi all,

I've been banging my head against this for a while now and could use some help.

I've followed the instructions and essentially:

1. Created the sparceimage.
Using the instructions mentioned, and some other comments, I created this shell script to create the target sparceimage file:
# The maximum size the image can expand to, in gigabytes.
SIZE_G="300"
# This band size makes it allocate 64 meg blocks (131072 * 512 byte sectors = 64m),
# for 16 files per gig of backup. This saves space and helps performance.
BAND_SIZE="131072"

GREP_B="/usr/bin/grep"
HDIUTIL_B="/usr/bin/hdiutil"
IFCONFIG_B="/sbin/ifconfig"
HOSTNAME_B="/bin/hostname"
RSYNC_B="/usr/bin/rsync"
SED_B="/usr/bin/sed"
AWK_B="/usr/bin/awk"
DEFAULTS_B="/usr/bin/defaults"

HOSTNAME=`${HOSTNAME_B} | ${SED_B} -e 's/.local//g'`
echo "Hostname: \"${HOSTNAME}\""

MAC=`${IFCONFIG_B} en0 | ${GREP_B} ether | ${AWK_B} '{print $2}'`
echo "en0 MAC address: \"${MAC}\""

BUNDLE_NAME="${HOSTNAME}_`echo ${MAC} | ${SED_B} -e 's/://g'`.sparsebundle"
echo "Derrived sparsebundle name: \"${BUNDLE_NAME}\""

VOL_NAME="Backup of ${HOSTNAME}"
echo "Derrived volume name: \"${VOL_NAME}\""

${HDIUTIL_B} create -size ${SIZE_G}g -imagekey sparse-band-size=${BAND_SIZE} -type SPARSEBUNDLE -fs "Case-sensitive Journaled HFS+" -volname "${VOL_NAME}" -nospotlight -verbose "${BUNDLE_NAME}"


which was created as "Aleph_001ec2074404.sparsebundle" since my "Computer Name" appears to be "Aleph" (this value was a little unclear to me as to where it actually comes from) if one looks in the "Sharing" preference pane:



2. Uploaded the empty sparceimage to my user share on my NAS at the root directory.

3. Updated my "defaults" so Time Machine (TM) sees the network volume.
It seems it was necessary for me to update the setting in order for TM to see my NAS mounted network volume (I tried without setting this first and the volume did not show up in TM). So, I executed this on the command line:
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

4. Configured Time Machine
I opened the TM preference pane, selected "Choose Backup Disk..." and selected my user share volume.

5. Unmount my user share...
I found I had to unmount my user share before TM tried to perform a backup because it would fail to unmount/remount the volume with backupd as the owner, giving an error block like this in the console:
8/11/08 16:39:37 /System/Library/CoreServices/backupd[43513] Starting standard backup 
8/11/08 16:39:37 /System/Library/CoreServices/backupd[43513] Network mountpoint /Volumes/labrown not owned by backupd... remounting
8/11/08 16:39:38 /System/Library/CoreServices/backupd[43513] [SnapshotUtilities remountVolumeRef] url could not be resolved via BonJour
8/11/08 16:39:38 /System/Library/CoreServices/backupd[43513] Failed to remount network volume.
8/11/08 16:39:43 /System/Library/CoreServices/backupd[43513] Backup failed with error: 19

6. Let Time Machine try to backup
So, either by the 120 second countdown or by manually kicking it off from the TM menu, TM starts to perform a backup and almost immediately throws up an error dialog saying "The backup volume could not be mounted." and spits this out in the console:
8/11/08 16:55:38 /System/Library/CoreServices/backupd[43695] Starting standard backup 
8/11/08 16:55:40 /System/Library/CoreServices/backupd[43695] FSMatchAliasBulk returned -5023 while resolving alias to backup target
8/11/08 16:55:45 /System/Library/CoreServices/backupd[43695] Backup failed with error: 19

Stuck
Error -5023 is:
  afpUserNotAuth                = -5023, /* No AFPLogin call has successfully been made for this session */

Which suggests to me that TM was unable to mount my user share volume in order to get access to the sparceimage and proceed. I have tried various Mac keychain tricks and have deleted the password entry for the nas in my keychain, gone through the TM setup again and had it ask me for the username/password, etc. all with the same results. I have mounted the share via the Finder, saved the password in the keychain, tried again, and same error.

Some googling yielded this discussion which mentions error -5023, and perhaps other places in my travels I ran into someone with a similar error trying to backup to a Linux box who suggested that re-compiling his implementation of APF with "the latest version" seemed to fix it. Of course, I can't quite to that, but I have installed the AFP addon before trying all this.

So, is this a known AFP issue on the ReadyNAS NV+, or other ideas?

Thanks,

Levi
Message 64 of 172
billin
Aspirant

Re: Making Time Machine work with the ReadyNAS

gman wrote:
I've done a fair amount of searching but haven't found anything that details the process for restoring from the ReadyNAS when your hard disk dies. As far as I know, the Mac OS disc can't "restore system" from a network drive. Anybody know?


Has anyone figured this out? I set my wife's MacBook to back up to my ReadyNAS Duo a couple of weeks ago, and tested it out successfully by wiping and restoring a few files. Last night her hard drive died. Apple put in a new one, but when I try to restore from Time Machine by booting from the Leopard install CD, it doesn't see the ReadyNAS. I set the computer's name to match what it was before, so it allows me to select the ReadyNAS as a backup source when I'm booted up normally and go to Time Machine preferences. When I'm booted from CD, it sees the hard disk attached to my Airport Base Station that I'd been using to back her up months ago, but in the Select a Backup Source screen, there is no ReadyNAS listed.

How do I overcome this? Anyway workarounds that people have found would be greatly, greatly appreciated!

EDIT: Okay, so these are the steps to restore from the ReadyNAS via Time Machine in case of hard drive failure, in case anyone in interested. I don't know if this is the best way, but this worked for me.
1) Install Mac OS X 10.5 on the new hard drive and boot up the computer normally
2) When prompted to set up an account, make sure to create an account whose name and shortname are different than the one you'll be restoring - if you create an account with the same name+shortname as the one you'll be restoring, you won't be able to proceed later.
3) Once the initial setup of Mac OS X is complete, connect to your ReadyNAS via a Finder window and double-click on the sparsebundle of the backup you want to restore. This will mount the sparsebundle as a disk on your desktop. It will take a long time to do this (~15 minutes for me), so set it going and come back later.
4) Once the backup sparsebundle is mounted on your desktop, open up Migration Assistant, which is in your Applications -> Utilities folder.
5) In Migration Assistant, choose "From a Time Machine backup or other disk" and click Continue
6) "Select the System to Transfer": You should see your mounted sparsebundle appear on this screen. Select it and click Continue
7) "Select User Accounts to Transfer": This will take a while to figure out what user account(s) are store in the backup. Time for another cup of coffee (~5 minutes for me)...
😎 Select the user account to restore and click Continue. If you disregarded step #2, this is where it will complain and say a user account by that name already exists, at which point you have to either a) enter a different name + shortname or b) quit, create a new Administrator account, log out, log in with the Administrator account, delete your other account, and start over from step #3.
9) Select the various things you want to restore and click Continue until the last screen, when you'll click Transfer
10) Wait a very long while (~1 hr and 45 minutes for me) while the restoration procedure continues
11) Voila! Time Machine restore from ReadyNAS complete!

My wife's MacBook had only 30 GB of stuff backed up, so when I note above that things will take a long time, your mileage may vary depending on the size of your backup. But as long it looks like the computer is still thinking, don't get discouraged at those steps and think it's frozen forever. It's not - just let it continue and come back later.
Message 65 of 172
Avi_Drissman
Aspirant

Re: Making Time Machine work with the ReadyNAS

I've had to do it, and what you do is boot from the install DVD and pop a terminal window. Then you get to mount your backup drive from the command line:

$ mkdir /Volumes/backup
$ mount_afp afp://username:password@nasaddr/backupvolname /Volumes/backup

or so (I'm typing this straight from memory). Then quit the terminal, go back to disk restore, and pick the drive.

Avi
Message 66 of 172
miltreeder
Aspirant

Re: Making Time Machine work with the ReadyNAS

yoh-dah wrote:
The step-by-step how-to can be found here.


I keep getting the error message "The Backup disk image could not be created." I thought I carried out your instructions carefully, but I must've missed something? My NAS system is mounted and the sparesbundle is copied in there. I did make it's size 2T since that is the size of my NAS.

Thanks,
Milt
Message 67 of 172
eponymous
Aspirant

Re: Making Time Machine work with the ReadyNAS

I recently purchased a ReadyNAS Duo for use on my home network (we have some PC laptops and a MacBook Air; everything is connected by a WRT310N wireless router).

One of my goals for the NAS was to use it for Time Machine backups of the MacBook Air. I followed the directions at http://www.readynas.com/?p=253 (which I thought were quite good, though Spotlight seems to "forget" that I've asked it not to index the Time Machine share). I think I got exactly one good backup.

After that, things became a real mess. The backup would start, but performance during the backup was extremely sluggish culminating in a never ending "pinwheel of death." This forum among others mentioned using the Console to track the progress of Time Machine backups, and this proved to be the key. After letting Time Machine run overnight and then doing a forced (hold the power button down) restart in the morning, I checked the "system.log" and found a whole lot of messages like this:

Sep 18 06:41:01 eponymous-2 kernel[0]: Virex Kext: "monitorActivity(/private/var/log/system.log) for action open file for write failed"
Sep 18 06:41:01 eponymous-2 kernel[0]: Virex Kext: "monitorActivity(/Volumes/TMeponymous/eponymous_XXXXXXXXXXXX.sparsebundle/bands/20) for action close file after modify failed"


I'm a mechanical engineer, and still have only the vaguest notion of what these messages mean, but Google identified "Virex" as my virus scanner, McAfee 8.6 (I think that's the correct version number, but am not sure. if you read on you'll see why I don't know for sure anymore).

I fiddled around with the virus scanner settings, adding all the shares on the NAS to an exclude list and tried to run a Time Machine backup. No luck; I got the same sort of messages.

Fortunately, uninstalling the virus scanner completely seems to have solved the problem. I've now done a pleasantly uneventful backup.

Now I just have to find a new virus scanner.
Message 68 of 172
ericdano
Aspirant

Re: Making Time Machine work with the ReadyNAS

eponymous wrote:
Fortunately, uninstalling the virus scanner completely seems to have solved the problem. I've now done a pleasantly uneventful backup.

Now I just have to find a new virus scanner.


Why do you have a virus scanner on a Mac? Macs do not have viruses. It would be like having two firewalls installed on your network. Or maybe a better analogy would be wearing two rain coats? Have 2 spare tires in your trunk? Gosh, I could keep going for days.......
Message 69 of 172
hknas1
Aspirant

Re: Making Time Machine work with the ReadyNAS

Has anyone figured out Levi's problem. I'm a newbie and trying to get TM to work with ReadyNAS via airport extreme. I've followed Levi's (and the original instructions) and am getting the error message that the "backup volume could not be mounted".

Thanks
(mac OS X 10.5.5, PowerPC G5, ReadyNas Duo )
Message 70 of 172
sphardy1
Apprentice

Re: Making Time Machine work with the ReadyNAS

RE: Backup Volume Could not be Mounted

Not being able to mount the volume usually (not always) refers to the sparseimage not being mountable rather than the NAS share. Please can you try the following:

Mount the share that you've configured to be used by timemachine
Open a finder window showing the share & the created sparsebundle
Force TM to start and watch to see if another sparsebundle is created then deleted on the share (will appear & disappear in finder)

If you do see the creation & deletion of a sparsebundle, then it means you have somehow got the name of your original manually create sparsebundle incorrect.

///P
Message 71 of 172
hknas1
Aspirant

Re: Making Time Machine work with the ReadyNAS

sphardy wrote:
RE: Backup Volume Could not be Mounted

Not being able to mount the volume usually (not always) refers to the sparseimage not being mountable rather than the NAS share. Please can you try the following:

Mount the share that you've configured to be used by timemachine
Open a finder window showing the share & the created sparsebundle
Force TM to start and watch to see if another sparsebundle is created then deleted on the share (will appear & disappear in finder)

If you do see the creation & deletion of a sparsebundle, then it means you have somehow got the name of your original manually create sparsebundle incorrect.

///P


thanks, before your post, i unmounted the shares and remounted. Seems to be working now but I'll know for sure in a few hours of copying. Perhaps I mounted the wrong disk (1 is labelled AFP on NAS-02-... and the other NAS-02-..? On my desktop I now see a "backup of xxx" being created. I am backing up to NAS-02... ) or they just needed to be reset somehow.
Message 72 of 172
fearless_fool
Aspirant

Re: Making Time Machine work with the ReadyNAS

Hi -- I have also followed the excellent recipe for making Time Machine work with ReadyNAS. The mounted sparsebundle is recognized by Time Machine, but Time Machine quits immediately with the following in the log file:

Sep 30 20:36:59 PoorBook /System/Library/CoreServices/backupd[8283]: Backup requested by user
Sep 30 20:36:59 PoorBook /System/Library/CoreServices/backupd[8283]: Starting standard backup
Sep 30 20:36:59 PoorBook /System/Library/CoreServices/backupd[8283]: Network mountpoint /Volumes/TMPoorBook not owned by backupd... remounting
Sep 30 20:37:00 PoorBook /System/Library/CoreServices/backupd[8283]: Failed to remount network volume.
Sep 30 20:37:05 PoorBook /System/Library/CoreServices/backupd[8283]: Backup failed with error: 19

I'm 90% sure this is a permissions problem, so I started a new thread here with more details rather than add to this already long thread.

Any guidance is appreciated. Thanks in advance.
Message 73 of 172
Meob1
Aspirant

Re: Making Time Machine work with the ReadyNAS

wwalkersd wrote:
Add me to the list of those who've been successfully using Time Machine to back up to the NAS for quite some time, but have recently had it fail. I now get the error "Time Machine Error - the backup directory could not be created". I don't think size is the issue, because I've got 200 GB used on my hard drive and the sparseimage was 320 GB. My NAS is currently showing 63% of 1.5 TB used, so there's plenty of room there, too.

I've tried deleting the existing sparseimage and creating a new one from the directions here, but I get the same error on the initial backup. I wonder whether some Apple software update has broken this? I was running 10.5.3 when the problem first occurred. I'm now on 10.5.4, which hasn't changed anything. I don't actually recall any updates around the time the error started.



this has happened to me for the 4th time now ;-(

I recently wiped the macbook pro just to make sure, all backups were running smoothly, has the settings locked so they could not be changed, worked again for another month (200gb sparsebundle) then - "Time Machine Error - the backup directory could not be created" I have given up at this stage and am backing up to a fire wire drive during office hours.
Message 74 of 172
gman1
Aspirant

Re: Making Time Machine work with the ReadyNAS

Well, I also got to try out restoring from backups! I pretty much did the same as 'billin' to restore. Have to say I think I'll be looking into something else other than Time Machine for backups; problems I've had:

- Last month, for some unknown reason, Time Machine simply started stalling forever when starting backups. After much searching, deleting Spotlight indices on the backup volume seemed to be the recommended remedy, which I did, and something else I think, plus some voodoo thrown in too to get TM working again.
- Restoring from a TM backup is a rather long ordeal. Install Mac OS, which took almost an hour; searching user accounts to restore, which took a while too and a lot longer than you'd expect; then the final restore took about 8 hours (about 70 GB of data).
- Restore didn't copy anything from /Applications, so I had to find the latest backup folder that had that then copy everything over manually.
- I suspect some other things may not have gotten restored either (some of my system settings are now different).

CCC doesn't work with ReadyNAS, but it appears SuperDuper or Chronosync may. Or maybe I'll just try 'ol rsync. Last drive that went out before this one I just had a CCC clone on a spare HDD in a USB enclosure--restoring was a simple, speedy (well, fairly, since Macs are a bit tedious to take apart) affair.
Message 75 of 172
Top Contributors
Announcements