DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#26 2011-07-20 21:56:02

Frans
Member
Registered: 2009-05-20
Posts: 28

Re: OSX Lion and netatalk

Any updates? Now that Lion is officially out I hope I can use my Timemachine again any time soon ...

Offline

 

#27 2011-07-22 22:43:53

mutantlog
New member
Registered: 2011-07-22
Posts: 3

Re: OSX Lion and netatalk

So after a lot of fighting with my DNS-323 (mainly because I went off and tried to compile 2.1.5 at one point, and didn't have a lot of the necessary packages installed), I finally got 2.2-beta4 installed and running; however, I still can't get Time Machine to work. I've seen comments on other threads that the Mac may have cached the capabilities of the network drive. Does anyone know if this is true, and if so, where they're stored?

While I'm posting, I wanted to share a couple of things that I overlooked during the process.

- I didn't have Berkeley 4.8 installed, but I believe it's required for builds of netatalk posted above. I found a package here: http://www.inreto.de/dns323/fun-plug/0. … 8.30-1.tgz

- I had followed these instructions when I first set up my 323. Uninstalling and reinstalling reset /ffp/start/afpd.sh and I had to re-modify it. I also found that I need to launch the cnid_server manually, which required adding "/ffp/sbin/cnid_metad" to the startup script as per the comments of that post.

I'm kind of hacking away via Google and trial and error, so if anyone has any tips or comments on what I've done, feel free to let me know if there's a way to improve my setup or knows how to get Time Machine running.

Offline

 

#28 2011-07-23 06:30:40

mutantlog
New member
Registered: 2011-07-22
Posts: 3

Re: OSX Lion and netatalk

I see that netatalk-2.2-0-p6 was released today. I managed to get it to compile, and install, and I'm still having problems with Time Machine. I also tried setting it up on a different computer, and I'm still getting "The network backup disk does not support the required AFP features."

I've got a sparsebundle set up on the DNS-323 as per these instructions that has been working fine with Snow Leopard. Are there any other netatalk settings I need to add that I'm overlooking? Are the options:usedots,upriv required in AppleVolumes.default? If anyone knows where to see detailed Time Machine logs, I'd be happy to dig into them and share anything I can find. Thanks in advance.

EDIT: Solved it! I needed to add "options:tm" to my AppleVolumes.default file in order to report that netatalk supports "TM Lock Stealing". I'm not going to make any promises, but this is the netatalk 2.2-1 pkg I built myself. I hope it works for you, but based on how it came from blindly stabbing around, I'm not making any promises.

Last edited by mutantlog (2011-07-23 07:49:50)

Offline

 

#29 2011-07-24 01:08:43

ZBB
Member
Registered: 2011-01-11
Posts: 11

Re: OSX Lion and netatalk

Frans wrote:

Any updates? Now that Lion is officially out I hope I can use my Timemachine again any time soon ...

The open letter linked above was updated this morning saying that netatalk 2.2.0 source will be posted shortly (it wasn't avail earlier today though... haven't checked since then though)...

Offline

 

#30 2011-07-25 16:42:52

njt1982
Member
From: UK
Registered: 2010-10-24
Posts: 7
Website

Re: OSX Lion and netatalk

Hi Mutantlog - just tried to install your package and I'm getting:

Code:

/ffp/sbin/afpd: can't load library 'libgcrypt.so.11'

It looks like FFP has an older version...

Code:

/ffp/lib/libcrypto.so.0.9.8

Did you compile your own version from source?

Offline

 

#31 2011-07-25 16:49:00

Shades
Member
Registered: 2009-02-23
Posts: 14

Re: OSX Lion and netatalk

Use the libcrypto from this post : http://dns323.kood.org/forum/viewtopic. … 298#p43298

Offline

 

#32 2011-07-25 17:22:10

njt1982
Member
From: UK
Registered: 2010-10-24
Posts: 7
Website

Re: OSX Lion and netatalk

Was juuuuuust about to reply back with that solution - needed ther gpg error one too...

libgpg-error-1.10-1.tgz (need for libgcrypt) — http://www.mediafire.com/?o563kdbuh76dwa2
libgcrypt-1.5.0-1.tgz (need for dhx2 suport) — http://www.mediafire.com/?7i4ksskeqqlmvpq

Also worth nothing - *VERY* important to backup your config first. That was a mildly frustrating moment wink I've been spoilt by Yum (CentOS/RHEL) backing up configs during upgrades wink

Offline

 

#33 2011-07-25 22:11:10

mutantlog
New member
Registered: 2011-07-22
Posts: 3

Re: OSX Lion and netatalk

Thanks for catching that. I had already installed rr-m's beta so I had his versions of libgpg and libgcrypt installed when I compiled 2.4.0. I did get it working, although it feels slow, at least for the first couple of backups. I know thebeck reported an issue earlier in this thread, but the link isn't working right now. The backup still completes, but it feels like it stalls at the end of the process. I'll have to double check later once I'm back at home, but how are people finding it on their setups?

Offline

 

#34 2011-07-25 22:52:52

Shades
Member
Registered: 2009-02-23
Posts: 14

Re: OSX Lion and netatalk

Yes, the Time Machine support seems to be really slow.

Offline

 

#35 2011-07-26 08:12:25

thebeck
Member
Registered: 2009-11-30
Posts: 54

Re: OSX Lion and netatalk

Just went to http://sourceforge.net/tracker/?func=de … tid=108642 and noticed that the nasty performance issue has been officially marked as fixed in 2.2.0.

For those who have tested, did you upgrade and attempt to run Time Machine against a sparsebundle from a previous backup (and previous netatalk version)?  Or did you start with a new empty AFP share?

If you used an existing sparsebundle, I am wondering if there are some CNID considerations at play, especially since AFP 3.3 supports longer paths than prior versions (i.e., a different database structure).  If there happens to be some churn with the CNID backend, does it make more sense to start from scratch with a blank AFP share and create a new Time Machine backup?  This way we guarantee the CNID backend is created correctly.

Thoughts?

Offline

 

#36 2011-07-26 10:54:52

Shades
Member
Registered: 2009-02-23
Posts: 14

Re: OSX Lion and netatalk

I did run Time Machine against an earlier sparsebundle. I removed it and started with a new one, it seems faster now. I didn't do any benchmarking, but it seems faster anyway.

Offline

 

#37 2011-07-26 15:03:31

thebeck
Member
Registered: 2009-11-30
Posts: 54

Re: OSX Lion and netatalk

Did you just remove the sparsebundle?  Or all the content in the respective AFP share (including the hidden . files/folders)?  Or start with a fresh new empty folder?

I have not had time to start testing yet on my side, but hope to get to it next week or so.  Starting with a fresh new folder allows netatalk to recreate all the CNID stuff from scratch (assuming you are not using the -dbpath option) whiling keeping your old sparsebundle just in case.  In my past experiments, I have done the following steps to start from scratch (assuming the AFP share name is called backup):

1)  Stop netatalk
2)  cd /mnt/HD_a2
3)  mv backup backup.bak
4)  mkdir backup
5)  chmod 777 backup
6)  Start netatalk
7)  Run a brand new Time Machine backup over wired gigabit ethernet (for the first time)
8)  Go back to running Time Machine backups however you did it before (wireless, wired, whatever)
===== Time delay to confirm Time Machine and netatalk is working (usually days)
9)  rm -rf backup.bak


By moving the backup folder and recreating with the exact same name, your netatalk config will just work as-is when you restart netatalk.  And since we are running with the newer netatalk, you should not have to pre-create the sparsebundle as Time Machine should be able to create the sparsebundle directly.

Last edited by thebeck (2011-07-26 15:15:12)

Offline

 

#38 2011-07-27 00:41:56

sushu
Member
Registered: 2011-07-03
Posts: 6

Re: OSX Lion and netatalk

I managed to install the netatalk package by mutantlog (thanks!) and have two remaining issues:

- AFP fast search is not working (I'm using the CNID DBD backend) and provided the searchdb option in my Volumes definition (inside AppleVolumes.default)
- Automatic Avahi registration ist not working. From the logfile it seems as if afpd is not even trying to publish over avahi

@mutantlog: Did you compile the netatalk package with avahi support or would it be possible to create such a package?

I'm using avahi version 0.6.24, which seems to be the newest available version for fun_plug currently.

Thanks!

Offline

 

#39 2011-07-27 09:57:00

thebeck
Member
Registered: 2009-11-30
Posts: 54

Re: OSX Lion and netatalk

We'll need a newer version of avahi for the publish to work.  The version of avahi (0.6.24) that currently comes with ffp is a little buggy.  The latest avahi 0.6.30 (http://www.avahi.org/) has all the support for a process to publish to it.  Perhaps fonz can compile 0.6.30 for us?

With that being said, you can manually configure avahi 0.6.24 to expose the netatalk server over zeroconf.  It may be a bit old, but check out this post for more information:  http://dns323.kood.org/forum/viewtopic.php?id=5735

Offline

 

#40 2011-07-27 13:06:11

sushu
Member
Registered: 2011-07-03
Posts: 6

Re: OSX Lion and netatalk

thebeck wrote:

We'll need a newer version of avahi for the publish to work.  The version of avahi (0.6.24) that currently comes with ffp is a little buggy.  The latest avahi 0.6.30 (http://www.avahi.org/) has all the support for a process to publish to it.  Perhaps fonz can compile 0.6.30 for us?

That would be great!

thebeck wrote:

With that being said, you can manually configure avahi 0.6.24 to expose the netatalk server over zeroconf.  It may be a bit old, but check out this post for more information:  http://dns323.kood.org/forum/viewtopic.php?id=5735

Yeah I already have it running this way and just thought it would be nicer to use the builtin avahi support.

Maybe of interest: If you announce your Time Machine with avahi as Time Machine compliant, you can even restore from a Time Machine Backup when starting from the Recovery Partition included in Lion: http://www.bootc.net/archives/2010/11/0 … -netatalk/

Last edited by sushu (2011-07-27 13:07:07)

Offline

 

#41 2011-07-29 01:22:32

ZBB
Member
Registered: 2011-01-11
Posts: 11

Re: OSX Lion and netatalk

Looks like 2.2.0 was released to sourceforge yesterday...
http://sourceforge.net/projects/netatal … atalk/2.2/

Release notes are here:
http://netatalk.sourceforge.net/2.2/Rel … 2.2.0.html

Perhaps Fonz can compile and add to the FFP repository?

Offline

 

#42 2011-07-29 17:21:00

thebeck
Member
Registered: 2009-11-30
Posts: 54

Re: OSX Lion and netatalk

Hi Fonz,

With Apple recently releasing Mac OS X 10.7 (aka. Lion), it seems that for Time Machine to continue working with our DNS-323 (and other compatible NAS'es), we need to upgrade our NAS'es to support Apple Filing Protocol 3.3 (AFP 3.3).  The newly released version of netatalk (2.2.0) supports AFP 3.3, and based on various user's comments, those users have stated that netatalk 2.2.0 works (using home builds) with Time Machine.

Looking to the future and so that we can take advantage of all that netatalk has to offer, would it be possible to incorporate the following into ffp 0.5 (and possibly other newer ffp versions, too)?
1)  netatalk 2.2.0     (http://netatalk.sourceforge.net/)   <-- compiled with DHX2 support
2)  avahi 0.6.30     (http://www.avahi.org/)
3)  berkeley db 5.1.25     (http://www.oracle.com/technetwork/datab … 82944.html)
4)  libgcrypt 1.5     (http://www.gnu.org/software/libgcrypt/    and    http://www.gnupg.org/download/index.en.html#libgcrypt)
5)  libpg-error 1.10     (http://www.gnupg.org/download/index.en. … bgpg-error)

Thank you very much for all of your help on this!!!

thebeck

Last edited by thebeck (2011-07-29 17:45:26)

Offline

 

#43 2011-07-30 17:00:46

abe_hottie
New member
Registered: 2011-07-30
Posts: 1

Re: OSX Lion and netatalk

I am a newbie to this, how do I go about compiling the newly released netatalk 2.2. Is there is place where this is documented for compiling the binaries to run on dns-323

Thanks

Offline

 

#44 2011-08-01 11:19:01

sushu
Member
Registered: 2011-07-03
Posts: 6

Re: OSX Lion and netatalk

abe_hottie wrote:

I am a newbie to this, how do I go about compiling the newly released netatalk 2.2. Is there is place where this is documented for compiling the binaries to run on dns-323

Read the rest of this thread. Instructions have been posted on how to do this. It works pretty well.

Offline

 

#45 2011-08-02 17:12:54

techsmith
Member
Registered: 2011-08-02
Posts: 6

Re: OSX Lion and netatalk

About the compiling, Fonz's package for compiling packages already contains the configuration to compile netatalk 2.1.3, and all I had to do is change the text in the version file to 2.2.0 and it worked!  It downloaded the source from Source Forge and all.  As rr-m mentioned, instructions on compiling fun_plug software are here:
http://nas-tweaks.net/106/compiling-sof … -fun_plug/
Since libcrypt and Berkeley DB48 are also a part of Fonz's build environment, everything builds fine without extra configuration.
I do get extremely slow connect times (about a minute or two), and during this time the DNS-323 CPU usage is at 100%.  The slow connect times seem to throw off Time Machine sometimes because it thinks the drive is unavailable.
P.S. amazing work Fonz!  Really appreciate it.

Last edited by techsmith (2011-08-02 17:15:09)

Offline

 

#46 2011-08-04 12:46:47

oldfeeling
New member
Registered: 2011-08-04
Posts: 3

Re: OSX Lion and netatalk

Hi,
I followed all the instructions posted, but trying to mount my afp share on nas I get the error attached.
Tried to delete all .* folders on share, with no success.

Any idea?

Thanks,
O

Last edited by oldfeeling (2011-08-04 12:47:18)


Attachments:
Attachment Icon err.png, Size: 30,379 bytes, Downloads: 272

Offline

 

#47 2011-08-04 12:57:22

sushu
Member
Registered: 2011-07-03
Posts: 6

Re: OSX Lion and netatalk

oldfeeling wrote:

Hi,
I followed all the instructions posted, but trying to mount my afp share on nas I get the error attached.
Tried to delete all .* folders on share, with no success.

Try rebuilding the whole DB for the affected share. You can do so issuing the command dbd -r -f volumepath. If you want to check the volume before, use dbd -s to see which errors come up.

The complete documentation for dbd can be found here: http://netatalk.sourceforge.net/2.2/htmldocs/dbd.1.html

Offline

 

#48 2011-08-04 13:26:59

oldfeeling
New member
Registered: 2011-08-04
Posts: 3

Re: OSX Lion and netatalk

Thank you sushu.
I tried to rebuild the DB with no success.
So I stopped afpd, moved the old volume path, created a new empty dir with same name and permissions and restarted afpd, but OS gave me the same error...

Offline

 

#49 2011-08-04 16:43:10

techsmith
Member
Registered: 2011-08-02
Posts: 6

Re: OSX Lion and netatalk

oldfeeling wrote:

Hi,
I followed all the instructions posted, but trying to mount my afp share on nas I get the error attached.
Tried to delete all .* folders on share, with no success.

Any idea?

Thanks,
O

This error occurs because for some reason cnid_metad is not started automatically by 2.2.0 (at least for a lot of us that might be missing the same thing).  See post #27.

Offline

 

#50 2011-08-04 17:08:09

oldfeeling
New member
Registered: 2011-08-04
Posts: 3

Re: OSX Lion and netatalk

Ok techsmith,
issue solved!

Thank you very much,
O

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB