Time Machine on Lion with DNS-320 (84)


    August 8th, 2011 | Tags: , , , , , , , | Posted in Guides, Life, Tech

    The Apple File Protocol (AFP) stopped working the day I upgraded to OS X Lion. Network shares on the NAS (DNS-320, ReadyNAS Duo) can no longer be browsed through AFP because none of them supports AFP 3.X calls and the authentication standards required by Lion.

    I need a fix fast! Why? My iMac’s 1TB Seagate HDD got recalled and I needed Time Machine (TM) to work before the tech guy replace it on site.

    (Re)setup my compiling environment, this time for the DNS-320. Did some compiling, wrote some shell scripts and Time Machine (on OS X Lion) is working with my D-Link DNS-320 once again. Well, it still throws some CNIB warning messages when accessing the share but at least it works now. The CNIB issue is fixed with help from Ben Archer.

    Prerequisites

    1. funplug-ed D-Link DNS-320
    2. telnet running on the DNS-320
    3. Mac running OS X Lion (10.7)
    4. Intermediate knowledge of Linux commands (ls, dir, cd, vi)

     

    Packages to be downloaded

    The following packages have been self-compiled or sourced from forums (credits: rr-m, hcdwoo).

    1. netatalk-2.2.0-1.tgz
    2. avahi-0.6.30-1.tgz
    3. db51-5.1.25.tgz
    4. libdaemon-0.14-1.tgz
    5. libgcrypt-1.5.0-1.tgz
    6. libgpg-error-1.10-1.tgz

     

    Disabling the built-in AFP support on the DNS-320

    If you have enabled AFP on the DNS-320,  disable it through the web administration page on the DNS-320.

    1. Using a web browser, navigate to your DNS-320 web administration page
    2. Login to the web administration
    3. Navigate to Application Management –> AFP Service
    4. Select the Disable radio button
    5. Click on the Save Settings button to save

     

    Downloading the packages to your NAS

    Download the six packages to the NAS’s Volume_1 (/mnt/HD/HD_a2). You can download them using your web browser or using wget.

    If you intend to use wget, use the following:

    1. Telnet to the DNS-320′s IP address
    2. Navigate to Volume_1 by typing “cd /mnt/HD/HD_a2” without the quotes
    3. Download the six files by typing:
      wget http://www.shadowandy.net/wp/wp-content/uploads/netatalk-2.2.0-1.tgz
      wget http://www.shadowandy.net/wp/wp-content/uploads/avahi-0.6.30-1.tgz
      wget http://www.shadowandy.net/wp/wp-content/uploads/db51-5.1.25-1.tgz
      wget http://www.shadowandy.net/wp/wp-content/uploads/libdaemon-0.14-1.tgz
      wget http://www.shadowandy.net/wp/wp-content/uploads/libgcrypt-1.5.0-1.tgz
      wget http://www.shadowandy.net/wp/wp-content/uploads/libgpg-error-1.10-1.tgz

     

    Installing the packages

    1. Telnet to the DNS-320
    2. Navigate to Volume_1 by typing “cd /mnt/HD/HD_a2
    3. Install the six packages by typing “funpkg -i libgpg-error-1.10-1.tgz libgcrypt-1.5.0-1.tgz db51-5.1.25-1.tgz libdaemon-0.14-1.tgz avahi-0.6.30-1.tgz netatalk-2.2.0-1.tgz

     

    Setting up the AppleVolumes.default and afpd.conf

    The AppleVolumes.default specifies the volumes to be accessed and by which user though AFP. All these are done automatically when you are using the built-in AFP Service. But now, you are on your own. What we will do here is to use back the last known copy of AppleVolumes.default generated by the built-in AFP service.

    1. Telnet to the DNS-320
    2. Backup the current ffp’s AppleVolumes.default by typing “mv /ffp/etc/netatalk/AppleVolumes.default /ffp/etc/netatalk/AppleVolumes.default.orig
    3. Set the tm options for Time Machine to work by typing “echo “:DEFAULT: options:usedots,upriv,tm” > /ffp/etc/netatalk/AppleVolumes.default
      Note: There is a space between :DEFAULT: and options:
    4. Copy the last known copy of AppleVolumes.default and replace the cnidscheme to dbd by typing “cat /etc/netatalk/AppleVolumes.default | sed -e ‘s/\”cdb\”/\”dbd\”/’ >> /ffp/etc/netatalk/AppleVolumes.default
    5. Update the afpd.conf by typing “echo “- -tcp -noddp -uamlist uams_dhx2.so -nosavepassword” >> /ffp/etc/netatalk/afpd.conf

     

     

    Upgrading the afpd.sh shell script

     

    1. Telnet to the DNS-320
    2. Navigate to the shell script directory by typing “cd /ffp/start
    3. Backup the current afpd.sh by typing “mv afpd.sh afpd.orig
    4. Download the updated copy by typing “wget http://www.shadowandy.net/wp/wp-content/uploads/afpd_netatalk220.sh
    5. Rename the updated copy to afpd.sh by typing “mv afpd_netatalk220.sh afpd.sh

    Starting the upgraded AFP service

    1. Telnet to the DNS-320
    2. Start the upgraded AFP service by typing “sh /ffp/start/afpd.sh start
      Note: if you want to make it start automatically every time, do a “chmod a+x /ffp/start/afpd.sh”

     

    Accessing network shares using the upgraded AFP service

    Try accessing your network shares on the DNS-320 using Finder (afp://<IP Address>/<Share name>). It should be working. If you have previously set up Time Machine backup to DNS-320. Try doing a backup to check if it works.

    Notes: You might get an warning on CNIB error. I am still trying to figure out the cause so try to live with it for now. If you know what is causing it and know how to solve it, please share with me. Thanks! Ben Archer to the rescue! I have updated the guide based on his findings. It works fine now. :)

    If you are using DNS-323, ensure that your AppleVolumes.default is not blank. Populate it with the correct entries, restart the afpd (sh /ffp/start/afpd.sh restart) and it should work. :)

    Like to buy shadowandy a cup of Starbucks for his work?

     

     

    Treat shadowandy!


    If these step-by-step guides have been very helpful to you and saved you a lot of time, please consider treating shadowandy to a cup of Starbucks.  
     






    84 responses

    1. Hi, thank you for great workaround.
      Is it possible to cancel this changes and uninstall the packages, after D-Link has fixed the issue with AFP-protocol?
      Can new firmware do this?

       
    2. Alex,

      Yes, you can easily reverse the workaround by uninstalling the six packages (funpkg -u ).

      I am also hoping that D-Link release a new firmware that supports OS X Lion soon.

       
    3. I can connect to an afp share on de DNS-320 and get the CNIB error but TimeMachine still says it doesn’t support its AFP version.

       
    4. Pieter,

      Check if your /ffp/etc/netatalk/afpd.conf is updated correctly to have the following line at the end.

      - -tcp -noddp -uamlist uams_dhx2.so -nosavepassword

       
    5. The afpd.conf contains the correct line. So does the AppleVolumes.default. Any idea what else could be wrong?

       
    6. I’m having the exact same problem Pieter. I’m on a DNS-321.

       
    7. having a couple problems …

      first, I can’t seem to download the db51-5.1.25-1.tgz file. It gets anywhere between 50 and 75% and then fails using wget. I did all the other files in your how to and am getting ‘some’ success with connecting.

      second, when I start the afpd it starts fine, then when I try to connect using finder it spins and tries to connect … if I run ps on the dns-323 it shows a second afpd process. if I kill that second one (higher pid) then I get the login prompt to which I can enter my creds and after about 20-30 seconds then it mounts and I get the CNID error.

      Any thoughts on the second problem? I understand you’re still trying to work out the CNID thing, but I’m hoping you have some insight into the double process thing.

      Also note that I did the chmod a+x thing … maybe that is causing it? don’t know enough about linux to know otherwise.

      thanks in advance for any help you can provide.

       
    8. Hi Pieter, Ragelic,

      Can paste me the results of the following command without the quotes?

      “ps | grep afpd”

      Need to check if it is running the afpd from the installed packages (/ffp/sbin/afpd)

      Another thing to check is on /ffp/etc/netatalk/AppleVolumes.default . Check if it starts with the line.

      :DEFAULT: options:usedots,upriv,tm

      We need the “tm” option for Time Machine to work.

       
    9. Darryl,

      The DNS-323 has a slower processor than the DNS-320. The newer netatalk package with components supporting OS X Lion actually consumes more CPU power hence it might take some time for the authentication and connection to establish.

      Maybe you can paste me the result of “ps | grep afpd” when you are hitting the problem. :)

       
    10. Hi,

      The ps | grep afpd returns:

      4029 root /ffp/sbin/afpd
      4031 root grep afpd

      The AppleVolumes.default is as follows:

      :DEFAULT:options:usedots,upriv,tm
      “/mnt/HD/HD_a2/TimeMachine” “TimeMachine” rwlist:”nobody”,”@allaccount” allow:”nobody”,”@allaccount” dbpath:”/mnt/HD_a4/.AppleDB/TimeMachine” cnidscheme:”cdb” volcharset:”UTF8″ options:”usedots”,”upriv” veto:”/Network Trash Folder/recycle/.systemfile/lost+found/Nas_Prog/”

       
    11. Pieter,

      Try leaving a space between the :DEFAULT: and options.

      You can just repeat step 2 and 3 of “Setting up the AppleVolumes.default and afpd.conf”

       
    12. That was it. It now works. Thanks for your input. I’ll keep monitoring this website in case you find a solution to the CNIB error. :D

       
    13. Hi,

      Just wanted to say thanks for the guide. Although I hope D Link fix this your workaround is excellent. It worked first time.

      Ta

      Paul

       
    14. Hi Pieter, Paul,

      Glad that it works. If you manage to find the solution to the CNIB issue, do share. :)

       
    15. shadowandy,

      thanks for the response. tried waiting longer and you’re right, it connected fine.

      now it’s just the CNID error. I’ve been continuing to read up on it and it appears to have something to do with the db51. if you run dbd -s what does yours tell you? mine said “dbd: can’t load library ‘libdb-4.8.so’”.

      does this mean anything to you? I also read that if you use did -r -f [volumepath] that it should fix it but it won’t work for me. I’ve been digging around and I can’t find libdb-4.8.so so I’m thinking it’s missing? maybe there’s someone out there that can supply me/us with a copy of theirs?

      Hope this helps some,
      Darryl

       
    16. Darryl,

      I think your base system might be missing a package. Try doing the following three commands in your telnet session with the DNS-320:

      1) cd /mnt/HD/HD_a2
      2) wget http://www.inreto.de/dns323/fun-plug/0.5/extra-packages/db/db48-4.8.30-1.tgz
      3) funpkg -i db48-4.8.30-1.tgz

      I think we need to rebuild the CNID database.

       
    17. you were right, was missing that package.
      rebuilding now … hope this works.

       
    18. Shadowandy,

      I still can’t get it working. The below error messages from the console.

      13/8/11 8:00:19.470 PM com.apple.backupd: Starting standard backup
      13/8/11 8:00:19.553 PM com.apple.backupd: Network destination already mounted at: /Volumes/Time Machine
      13/8/11 8:00:34.806 PM com.apple.backupd: afpfs fsctl failed to read settings: 45 Operation not supported
      13/8/11 8:00:44.815 PM com.apple.backupd: Backup failed with error: 45

      Any ideas?

       
    19. Edward,

      Paste me the results of “ps | grep afpd”.

      It seems like either you are not using the new netatalk or tm options is not set in AppleVolumes.default

       
    20. Shadowandy,

      “ps | grep afpd” got be the below:

      4030 root /ffp/sbin/afpd

      In “/mnt/HD/HD_a2/ffp/etc/netatalk/AppleVolumes.default”, I have the following:

      :DEFAULT: options:usedots,upriv,tm

      Not sure what I did incorrectly.

      Thanks in advance.

       
    21. Alright, I have resolved my CNID error, and backups are now working perfectly.

      Apparently my issue was that “/ffp/sbin/cnid_metad” wasn’t running. It was launched automatically on older netatalk versions, but not with the new version.

      I added a reference to it in my afpd.sh, so it is now launched on startup.

      For more details, refer to Ivan’s comment at this site:
      http://www.noulakaz.net/weblog/2009/11/02/installing-avahi-and-afp-on-the-dns-323/

       
    22. Shadowandy,

      Got it working by re-building the CNID database’s using dbd -r and then just restarted afpd.

      Thanks for your contributions in this article and in comment replies!

      Darryl

       
    23. Shadowandy,
      I tried reinstalling, doing all the steps again with no improvements.

      Darryl,
      Where did you run your dbd -r? When I run this command it just give me a help menu on dbd?

      Edward

       
    24. Hi Edward,

      Was your time machine backup working with the DNS-320 prior to Lion? How did you set up in the past?

      Or is this is the first time you are setting it up?

       
    25. Hi Ragelic, Darryl,

      Glad that you got the CNID DB issue resolved. Gotta try it out myself one of these days when I am free. Thanks for sharing!

       
    26. Shadowandy,

      Yes, it was working before I installed Lion.

      I followed your guide athttp://www.shadowandy.net/2011/06/enabling-time-machine-on-d-link-dns-320.htm

      I can connect using Finder. I can select the Time Machine backup disk but when i run “Backup Now” I got those messages in the console.

       
    27. Hi Shadowandy,

      First of all thanks for collating all the various information and posting this thread! The pre-compiled archives saved me a lot of time.

      With regard to the CNID Warning, as some people have posted above there is a fix which I can confirm works.

      So here we go: CNID FIX in simple step by step terms.

      First of all follow all of Andy’s instructions and ensure that AFP/TM is working (but you will get the CNID warnings when mounting any drives)

      1. Now, you need to kill the afpd and cnid_metab services (if it is running)

      Execute the following commands via SSH:

      killall afpd
      killall cnid_metab

      2. One of the problems is that apparently in the new version of netatalk, cnid_metab may not automatically start, so we need to modify the /ffp/start/afpd.sh file.

      Use your favourite command line editor (vi, nano) to edit the file and replace with this:

      http://pastebin.com/qkKgC6By

      Then save the file and overwrite. This will ensure that cnid_metab is started when you start the service (you may need to chmod +ax the file again as per shadowandy’s instructions)

      3. Now we need to double check we’re using the dbd cnidscheme. So open the /ffp/etc/netatalk/AppleVolumes.default file, again in your favourite text editor.

      Check that on EACH line (for each volume) the cnidscheme:”” is set to cnidscheme:”dbd”

      Save the file and overwrite.

      4. Now at this point, I’m not sure if the following steps are optional (because I performed them in my testing and don’t know if it will work without – let me know!)

      The best thing to do at this point, is to test if the warning has gone.

      So, start up afpd with sh /ffp/start/afpd.sh

      Try TM or mounting your volumes: see if the message still occurs. If not, fixed!

      Otherwise continue on:

      5. If you did start afpd to test, make sure to kill it and cnid_metad first as in step 1.

      6. The next step involves rebuilding the dbd database. First of all (again this part may not be neccessary), delete the .AppleDB file in each of your volumes:

      e.g.
      rm -rf /mnt/HD/HD_a2/.AppleDB
      (repeat for each volume)
      7. Now rebuild each volume

      dbd -r /mnt/HD/HD_a2
      (repeat for each volume)

      8. Restart afpd, (sh /ffp/start/afpd.sh start) and it should be fixed. Mine now works perfectly!

      Good luck!

       
    28. Hi shadowandy,

      Interestingly, I uninstall netatalk by using funpkg -u and then install netatalk 2.2 using funpkg -i and go through the steps all over again and this time round, Time Machine seems to working.

      So this is good news.

      I will be trying out remove the CNIB error messages next.

      Thanks for your help!

       
    29. Edward : I’ve already posted steps for removing CNIB error, see my above post.

       
    30. Ben, It works. Thanks.

       
    31. Hi All,
      I’m trying to set this up for the first time using DNS-320 and Lion.

      I’ve done most of the steps, however when I try to connect to the afp in Finder I’m getting a username and password request. I’ve tried a few things (root/password, admin/password) nothing seems to work. Any idea what to do here or am I doing something horribly wrong?

      Thanks

       
    32. Ben Archer,

      Thanks! Your solution works perfectly. I have inserted into the guide and using sed to do the text replacement. :)

       
    33. Hi shadowandy,

      Glad to be of help. Hopefully this guide will help a few people, and make the transition to Lion a bit smoother!

      Regards,
      Ben

       
    34. Adam Leclerc,

      Have you tried adding a user (with password) on the DNS-320′s web administration page?

      You should try to get the basic functionality up before attempting to set up time machine.

       
    35. Hallo shadowandy,

      could it be, that the
      db51-5.1.25.tgz is damaged? What should be the right size? 6.1MB?

      because telnet says: Faild to unpack package.

      Regards,
      Michael

       
    36. Michael,

      The db51-5.1.25.tgz is roughly 19.6M and the md5sum is d29a8c306f1a15ac2422748788406ca9

      After you download just do a md5sum

       
    37. Michael: I had this issue with shadowandy’s linked archive as well, I found the original compiled archive courtesy of hcdwoo and used his:

      http://www.filesonic.com/file/1610449981/db51-5.1.25-1.tgz

      Good luck,
      Ben

       
    38. Thanks for the informations…. I’ve just a clue… how is started Avahi ?

      I cannot see something firing it up….

      Thanks

       
    39. To me seems that the avahi is started up by the box itself but, the one started is that in /usr/local/modules/bin/ and not the one in /ffp/sbin/.

      Btw seems that when restarting he NAS the ./etc/avahi/avahi-daemon.conf is overwritten (i’ve changed the server name line but on restart i’ve found it changed to default) and the one in ./mnt/HD/HD_a2/ffp/etc/avahi/avahi-daemon.conf is not used at all…

      I’m really new to DNS-320, coming from another NAS since 2 days :)… thanks again expecially for your patience…

       
    40. Hi,

      I can’t manage the step 4 in “Setting up the AppleVolumes.default and afpd.conf”, here is the response : can’t find label for jump to ‘s/b’.

      I’m a complete novice with telnet and this stuff..

      Thanks

       
    41. Hi Ben,

      Try to check if you have typed the command properly

      cat /etc/netatalk/AppleVolumes.default | sed -e ‘s/\”cdb\”/\”dbd\”/’ >> /ffp/etc/netatalk/AppleVolumes.default

      There are a combination of single quote (‘) and double quotes (“)

       
    42. Hi,

      Thank you, I tried again and I can indeed go to the end of the thing. But.. as described by Edward (http://www.shadowandy.net/2011/08/time-machine-on-lion-with-dns-320.htm#comment-20081) I can’t make the Time Machine save (it was set up before installing Lion). But I can access by AFP.

      Quite lost.. do you have any idea, or do you think I should try the whole thing again?

       
    43. Wonderful guide. Which version of the firmware should I be using in order for this work? 1.00 or 2.00?

       
    44. Hi Andy,

      I am on 2.00. I think it is better to be on 2.00 before you attempt this guide.

       
    45. Thanks so much for the directions! Now I’ve got my DNS-323 running as a TimeMachine network host, and without all of the hacks that were necessary pre-Lion!!

       
    46. I was trying this on my DNS-343 but got this error when I typed the command.

      /mnt/HD_a2 # cat /etc/netatalk/AppleVolumes.default | sed -e ‘s/\”cdb\”/\”dbd\”/
      ‘ >> /ffp/etc/netatalk/AppleVolumes.default

      cat: can’t open ‘/etc/netatalk/AppleVolumes.default’: No such file or directory

      Would you be able to advise? Thanks.

       
    47. fareez: I can’t comment too much on the 343 as I’ve never used it. But the error suggests that the file doesn’t exist. Are you sure you have Netatalk installed? AppleVolumes.default is a standard configuration file that comes with Netatalk.

       
    48. Hi fareez,

      This is because DNS-343 doesn’t support AFP out of the box hence the missing file (/etc/netatalk/AppleVolumes.default).

      Instead, type the following commands for step 4:

      echo “/mnt/HD_a2″ “Volume_1″ cnidscheme:”dbd” volcharset:”UTF8″ >> /ffp/etc/netatalk/AppleVolumes.default

      echo echo “/mnt/HD_b2″ “Volume_2″ cnidscheme:”dbd” volcharset:”UTF8″ >> /ffp/etc/netatalk/AppleVolumes.default

       
    49. Thanks Ben and Andy.

      I’ll give it a shot.

       
    50. I was trying this on my DNS-320 but got this error:

      This error after this command:

      root@dlink-C92D29:/mnt/HD/HD_a2/ffp/home/root# cat /etc/netatalk/AppleVolumes.de
      fault | sed -e .s/\.cdb\./\.dbd\./. >> /ffp/etc/netatalk/AppleVolumes.default

      sed: unsupported command .

      Would you be able to advise? Thanks.

       
    51. This command: cat /etc/netatalk/AppleVolumes.de
      fault | sed -e s/\cdb\/\dbd\/ >> /ffp/etc/netatalk/AppleVolumes.default

      need typing without ” and . (dots)

       
    52. Hi Kirill,

      There is a reason why I put double quotes. Without the double quotes it will replace all instances of cdb with dbd. Hence I did a specific match for “cdb”

       
    53. Hi all,

      Just an update. D-Link released 2.02 Beta 01 firmware for DNS-320. Time Machine and AFP with OS X Lion is now fixed.

      Check out the thread here (http://forums.dlink.com/index.php?topic=38853.0).

       
    54. If it helps anyone, I found a fully compiled (for fun_plug on most platforms) version of Netatalk 2.2.1 final.

      http://download1011.mediafire.com/75jfd85p7b2g/7lc5v7xc9xonzdd/netatalk-2.2-1.tgz

       
    55. First time setting up TM on Lion for me. When I get to step #4 under “Setting up the AppleVolumes.default and afpd.conf” I get the following error.

      “sed: unsupported command ?”

      I’m installing on a DNS-323. TM is able to recognize the disk and I can start a back-up, but it errors out with “The network backup disk does not support the required AFP features.”

       
    56. Barron L,

      Make sure you are typing the correct command and not simply copying-and-pasting. I think you hit the same type of problem as Kirill.

      This guide is for DNS-320 and not for DNS-323 so paths to the file might be different. You will need to amend the codes accordingly.

       
    57. Baught a new DNS320 and tried to set up TM with Lion 10.7.2 and these instructions here, but TM doesnt recognize the NAS as a backup source anymore. Accessing the NAS via finder is no problem. Ideas?

       
    58. I have the same issue as Adam had above:

      I have a DNS-323 and Lion.

      I’ve done most of the steps, however when I try to connect to the device using finder (afp) I’m getting a username and password request.

      I have usernames/passwords set up on the device, but the login credentials set on the 323 doesnt work with this password prompt.

      Funny thing, is that when I try to connect using SMB, it works just fine.

      For example: smb://10.0.1.2 works well
      afp://10.0.1.2 presents a username/password screen that I can’t seem to get past.

      One more wrinkle:

      While following the installation instructions, I get the following error when I tried to execute teh CAT command:

      cat: can’t open ‘/etc/netatalk/AppleVolumes.default’: No such file or directory

      I navigated to the /etc/netatalk/ directory and confirmed that the file was there (as well as the one that we backed up in the prior step). I even went so far as to chmod 777 the AppleVolumes.default file to ensure that it was writeable.

      I think that I’m 99% there, just need a little help getting over the finish line.

      Also – I tried to install the latest (2.x beta) firmware but it failed on the 323. Has anyone successfully installed it on their 323?

      Thanks!

      Thanks

       
    59. I can’t get it to work. I bought a DNS-320 and want to set up the Time Machine on it…. I followed the instruction and now can access my NAS through AFP, thanks fot that!

      I also can find the network volume in my Time Machine options and can select it. I login with my created user name (alex) and password….

      When Time Machine makes the backup, I get an error. It’s Dutch but the translation is something likes this:
      The network backup disk does not support the required AFP features.

      What am I doing wrong or what can I do?

       
    60. Brian M,

      The DNS-323 do not come with AFP support out of the box hence the missing AppleVolumes.default.

      If you see AppleVolumes.default, can you list the contents? The 2.x beta firmware is only for DNS-320 and not the DNS-323.

       
    61. Alex,

      Did you disable the native AFP support? Do paste me the results of “ps | grep afpd” without the quotes.

       
    62. Hi Shadowandy,

      Thanks for your reply. I indeed disabled AFP support. I know what I did wrong, due to my lack of Linux knowledge I simply did copy/paste on the commands.

      Especially the commands:
      echo “:DEFAULT: options:usedots,upriv,tm” > /ffp/etc/netatalk/AppleVolumes.default

      cat /etc/netatalk/AppleVolumes.default | sed -e ‘s/\”cdb\”/\”dbd\”/’ >> /ffp/etc/netatalk/AppleVolumes.default

      and

      echo “- -tcp -noddp -uamlist uams_dhx2.so -nosavepassword” >> /ffp/etc/netatalk/afpd.conf

      Gave problems when viewing the files on the NAS. This was because of the ” and ´….. I did it over again without copy/paste and now it works! Thanks a lot for the nice guide.

       
    63. Alex,

      Glad that you figured it out! Yeap, that is what happened to some earlier on. :)

       
    64. Hi Shadowandy

      The steps should work for dns323 that has tm working before on snow leopard right? Like Adam and Brian, i couldnt get past the password/username field when trying to do AFP mount on finder. No problem with SMB though.

       
    65. Hi CK,

      So far those who did not get it to work are all DNS-323 users. I suppose the AppleVolumes.default is blank or incorrectly fill. Do explore it. :)

       
    66. I got tm working again, thanks for the guide.

       
    67. hi shadowandy,

      thanks for the great guide. i got the afp to work on my dns 323 so that i can see all my files but i can’t write anything. my mac says i don’t have the permission. any idea how i can fix this?

      thanks

       
    68. p.s. i can only mount it by using my ftp user/password combination. is this correct?

       
    69. I am trying to set this up on a 323 and it does seem that the AppleVolumes.default isn’t set up correctly because there was no native AFP support and therefore no file to copy. Can anyone help with how that file should look?

       
    70. If you wish to have Time Machine automatically find your NAS as a valid backup target, add the following avahi service:

      (adisk.service)

      %h

      _adisk._tcp
      9
      sys=waMA=0,adVF=0×100
      dk0=adVF=0xa1,adVN=Share Name

      (Replace ‘Share Name’ with whatever you’ve named your share in AppleVolumes.default)

      With this, you will not have to create the sparsebundle or anything else to get backups running. Time Machine will simply think your NAS is an actual apple product.

       
    71. Bleah, the comment system mangled that. Not sure if I can do a code block, either.

       
    72. Seems the process was completed fine as I do not get errors after starting a backup on a 323 But, after about 15 minutes of backing up could be more, and after 3 retries I’m convinced somethings wrong.

      Get the following message: The backup disk may have been ejected or disconnected from your computer.

      Checked console for details a little much to post here I supposed but a caption is as follows:

      11-12-03 3:30:06.000 PM kernel: ASP_TCP Disconnect: triggering reconnect by bumping reconnTrigger from curr value 0 on so 0xffffff800eb29c48
      11-12-03 3:30:06.000 PM kernel: AFP_VFS afpfs_DoReconnect started /Volumes/TimeMachine prevTrigger 0 currTrigger 1
      11-12-03 3:30:06.000 PM kernel: AFP_VFS afpfs_DoReconnect: doing reconnect on /Volumes/TimeMachine
      11-12-03 3:30:06.000 PM kernel: AFP_VFS afpfs_DoReconnect: soft mounted and hidden volume so do not notify KEA for /Volumes/TimeMachine
      11-12-03 3:30:06.000 PM kernel: AFP_VFS afpfs_DoReconnect: Max reconnect time: 30 secs, Connect timeout: 15 secs for /Volumes/TimeMachine
      11-12-03 3:30:06.000 PM kernel: AFP_VFS afpfs_DoReconnect: connect to the server /Volumes/TimeMachine
      11-12-03 3:30:06.000 PM kernel: ASP_TCP asp_SetTCPQoS: sock_settclassopt got error 57
      11-12-03 3:30:06.000 PM kernel: AFP_VFS afpfs_DoReconnect: Logging in with uam 8 /Volumes/TimeMachine
      11-12-03 3:30:12.492 PM diskarbitrationd: mds [36]:22787 not responding.
      11-12-03 3:30:12.822 PM com.apple.launchd: (org.postfix.master) Failed to count the number of files in “/Library/Server/Mail/Data/spool/maildrop”: No such file or directory
      11-12-03 3:30:12.822 PM com.apple.launchd: (org.postfix.master) Failed to count the number of files in “/Library/Server/Mail/Data/spool/maildrop”: No such file or directory
      11-12-03 3:30:12.861 PM diskmanagementd: DM ..T-[DMToolBootPreference recoveryPartitionInfoForVolume:what:dict:]: did if-needed-best-effort unmount
      11-12-03 3:30:12.861 PM diskmanagementd: DM <-T-[DMToolBootPreference recoveryPartitionInfoForVolume:what:dict:]: retErr=0 outInfoDict={
      ProductBuildVersion = 11C74;
      ProductCopyright = "1983-2011 Apple Inc.";
      ProductName = "Mac OS X";
      ProductUserVisibleVersion = "10.7.2";
      ProductVersion = "10.7.2";
      }
      11-12-03 3:30:39.000 PM kernel: AFP_VFS afpfs_DoReconnect: Restoring session /Volumes/TimeMachine
      11-12-03 3:30:43.976 PM KernelEventAgent: tid 00000000 received event(s) VQ_DEAD (32)
      11-12-03 3:30:43.976 PM KernelEventAgent: tid 00000000 type 'afpfs', mounted on '/Volumes/TimeMachine', from 'afp_14jwY206uBXG2m8SnV1eJ6N8-2.2e000016', dead
      11-12-03 3:30:43.976 PM KernelEventAgent: tid 00000000 force unmount afp_14jwY206uBXG2m8SnV1eJ6N8-2.2e000016 from /Volumes/TimeMachine
      11-12-03 3:30:43.000 PM kernel: AFP_VFS afpfs_DoReconnect: Primary Reconnect failed 22 on /Volumes/TimeMachine
      11-12-03 3:30:43.000 PM kernel: AFP_VFS afpfs_DoReconnect: Secondary Reconnect disabled on /Volumes/TimeMachine
      11-12-03 3:30:43.000 PM kernel: ]
      11-12-03 3:30:43.000 PM kernel: AFP_VFS afpfs_DoReconnect: posting to KEA to unmount /Volumes/TimeMachine
      11-12-03 3:30:43.000 PM kernel: ASP_TCP Disconnect: triggering reconnect by bumping reconnTrigger from curr value 1 on so 0xffffff800eb29c48
      11-12-03 3:30:43.000 PM kernel: AFP_VFS afpfs_DoReconnect started /Volumes/TimeMachine prevTrigger 1 currTrigger 2
      11-12-03 3:30:43.000 PM kernel: AFP_VFS afpfs_DoReconnect: already in unmount /Volumes/TimeMachine
      11-12-03 3:30:43.000 PM kernel: sparsebundle/bands/12ee] [FSLogMsgID 1738080729] [FSLogMsgOrder Last]
      11-12-03 3:30:43.988 PM KernelEventAgent: tid 00000000 found 1 filesystem(s) with problem(s)

      Perhaps I should delete the current sparse on the 323 and let it recreate…

       
    73. Resolved, simply deleted the incomplete and corrupt sparse bundle through ssh…

      Restart backup…

      Cheers :)

       
    74. Thanks, this also works on the DNS-321 with some slight modifications.

       
    75. Thanks for all the contributions, it helped me to get TimeMachine working with a DNS-323.

       
    76. Yes – just wanted to second Mark’s comment, I used this site (after many other) to compile enough data and knowledge of the components needed to get my newly purchased DNS-323 performing as a Time Machine disk for my Lion-based Macs.

       
    77. Getting it to work is one thing – Getting it to perform a complete restore from recovery is another thing…

      What’s the point of having a backup solution that you can’t restore in case you need to?????

      This isn’t a sacrifice worth making for most people.

       
    78. hi i have a fonera 2.0n with firmware 2.3.6.1
      can i use this on my fonera?

      thanks

       
    79. Appreciate it for all your efforts that you have put in this. Very interesting information.

       
      Letisha Stritzinger March 1st, 2012 at 12:20 pm
    80. Thanks for this great post! Sadly it didn’t work completely for me. After several days trying I reach the point where I need some help.

      I’m setting a DNS-323, FMW 1.10, my Mac OSX 10.7.3 Lion
      I followed all instructions just with the difference that I’ve used funplug 0.7 packages.

      I am able to connect using AFP (Read/write from Finder) but Time Machine fail to backup with the message “The network backup disk doesn’t support the required AFP features.”.
      Time Machine does find the NAS volume.
      I’ve created the sparse bundle disk and moved it to the root of the disk’s volume (properly named as mymacname_MAC)

      afpd.sh:
      I’ve used /ffp/afpd_netatalk220.sh (renamed as afpd.sh) to start/stop the services

      #ps -ef shows
      root 9411 1 0 17:35 ? 00:00:00 /ffp/sbin/afpd
      root 9414 1 0 17:35 ? 00:00:00 /ffp/sbin/cnid_metad

      /ffp/netatalk
      AppleVolumes.default (recreated from scratch, there is nothing else than this)
      ————————–

      :DEFAULT: options:usedots,upriv,tm

      /mnt/HD_a2 Volume_1 cnidscheme:”dbd”
      /mnt/HD_b2 Volume_2 cnidscheme:”dbd”

      and
      afpd.conf (recreated from scratch, there is nothing else than this)
      ———–
      - -tcp -noddp -uamlist uams_dhx2.so -setuplog “default log_info /ffp/var/log/afp.log” -cnidserver localhost -nosavepassword

      Packages Installed:
      ————————-

      avahi-0.6.30-oarm-1
      db5-5.2.36-oarm-1
      funpkg-0.6.3-oarm-1
      libdaemon-0.14-oarm-1
      libgcrypt-1.5.0-oarm-1
      libgpg-error-1.10-oarm-1
      netatalk-2.2.2-oarm-1

      I’ve tried also with avahi started, but with same results, so the deamon isn’t started at this time.

      AFP.LOG
      ——
      Mar 01 17:35:58.418989 afpd[9411] {status.c:740} (I:AFPDaemon): “NAS”‘s signature is 8E1B91BD1312790471078392619D3450
      Mar 01 17:35:58.425676 afpd[9411] {dsi_tcp.c:318} (I:DSI): dsi_tcp_init: socket: Address family not supported by protocol
      Mar 01 17:35:58.427012 afpd[9411] {afp_config.c:372} (N:AFPDaemon): AFP/TCP started, advertising 192.168.0.4:548 (2.2.2)
      Mar 01 17:35:58.439061 afpd[9411] {auth.c:136} (I:AFPDaemon): uam: “DHX2″ available
      Mar 01 17:35:58.597084 afpd[9411] {volume.c:2221} (W:AFPDaemon): volume “Volume_1″ does not support Extended Attributes, using ea:ad instead
      Mar 01 17:35:58.602327 afpd[9411] {volume.c:2221} (W:AFPDaemon): volume “Volume_2″ does not support Extended Attributes, using ea:ad instead
      Mar 01 17:35:58.602957 afpd[9411] {cnid.c:53} (I:AFPDaemon): Registering CNID module [last]
      Mar 01 17:35:58.603266 afpd[9411] {cnid.c:53} (I:AFPDaemon): Registering CNID module [dbd]
      Mar 01 17:35:58.603553 afpd[9411] {cnid.c:53} (I:AFPDaemon): Registering CNID module [tdb]

      SYSTEM.log (filtered by backups, shows:
      ————————————–

      3/1/12 5:36:56.769 PM System Preferences: TMShowUnsupportedNetworkVolumes is set to TRUE. Use of an unsupported Time Machine destination may result in loss of backup data!!!
      3/1/12 5:37:19.661 PM com.apple.backupd: Starting standard backup
      3/1/12 5:37:19.927 PM com.apple.backupd: Network destination already mounted at: /Volumes/Volume_2
      3/1/12 5:37:35.183 PM com.apple.backupd: afpfs fsctl failed to read settings: 45 Operation not supported
      3/1/12 5:37:45.200 PM com.apple.backupd: Backup failed with error: 45

      BTW, long time ago before Lion I have TM working fine, but this machine has been rebuild since then.

      I’m really stacked and any help would be greatly appreciated.

      Flijfi

       
    81. Hi Flijfi,

      Does the oarm version of netatalk support AFP 3.x calls?

      Another way to test whether is the netatalk issue is to set your Lion to support AFP 2.x calls (those supported in SL). If it works then the AFP 3.x calls has not been enabled in netatalk (oarm).

       
    82. shadowandy,

      I’ve used the OARM version because it was required by funplug 0.7.
      Should I can use the other one? I think I’ve tried but didn’t install…

      How may set up Lion to support AFP 2 calls?
      Will this make TM to work?

      tx

      Flijfi

       
    83. … [Trackback]…

      [...] Read More: shadowandy.net/2011/08/time-machine-on-lion-with-dns-320.htm [...]…

       
    84. I’ve got a DNS-323 and followed your tutorial.

      Everything works in OS X Lion…

      … but: my backup gets corrupted every single time. I’ve re-done the full backup for the third time now. Every time it works for a day or two and then tells me that my backup is corrupted and has to be done from scratch.

      Any ideas? I’d really appreciate any help.

       

    Advertisements



    Treat shadowandy!


    If these step-by-step guides have been very helpful to you and saved you a lot of time, please consider treating shadowandy to a cup of Starbucks.  


    Categories



    Recent Comments



    Friend's Blog



    Interesting Links



    Previous Postings