Hi,
I'm having some issues with Netatalk and AFP lately. Users complain about slow performance and weird things happen to files. Like filenames that suddenly change to some random garbage (1).
According to this guy, upgrading to Netatalk-3 greatly improved performance. So that's what I did. I finally bit the bullet and upgraded Netatalk-2.x to Netatalk3-3.1.8.
That seemed to work fine, but resulted in other problems and errors. Which in turn resulted in more complaints. So, I did more digging and discovered that the system is littered with lots and lots of Orphaned AppleDoubles, Bad AppleDoubles and corrupt AppleDoubles.
I got rid of most of these, by running dbd -r and dbd -rf. But when I ran dbd -s, to see if things are fine, I still get lots of Bad AppleDoubles.
So, my first question is: Is it safe to just remove these Bad AppleDoubles? Right now they seem to do more harm than good. So I figured deleting them would be the obvious action. But I'm nog sure about the consequences.
And my second question is: What is the best course of action to run and maintain a fileserver, running Netatalk and lots of Macs? (Well, lots is a bit of a stretch. About 15 Macs). I've been doing some research on AFP and it's a.... weird... protocol. I mean, keeping a database with CNID's? What is that all about? And storing all this metadata in hidden dot-underscore files? How do I make sure things keep running smooth? How do I prevent getting these Bad AppleDoubles? And where did they get bad in the first place?
(1) Apparently this was caused by some people mounting shares as SMB, while others had them mounted as AFP. But still wierd that it happened.
Thanks in advance!
I'm having some issues with Netatalk and AFP lately. Users complain about slow performance and weird things happen to files. Like filenames that suddenly change to some random garbage (1).
According to this guy, upgrading to Netatalk-3 greatly improved performance. So that's what I did. I finally bit the bullet and upgraded Netatalk-2.x to Netatalk3-3.1.8.
That seemed to work fine, but resulted in other problems and errors. Which in turn resulted in more complaints. So, I did more digging and discovered that the system is littered with lots and lots of Orphaned AppleDoubles, Bad AppleDoubles and corrupt AppleDoubles.
Code:
Bad AppleDouble "/Path/To/.__SomeFile.psd"
{ad_open.c:547} (warn:ad): ad_valid_header_osx("/Path/To/.__AnotherFile.psd"): not an adouble:osx file
I got rid of most of these, by running dbd -r and dbd -rf. But when I ran dbd -s, to see if things are fine, I still get lots of Bad AppleDoubles.
So, my first question is: Is it safe to just remove these Bad AppleDoubles? Right now they seem to do more harm than good. So I figured deleting them would be the obvious action. But I'm nog sure about the consequences.
And my second question is: What is the best course of action to run and maintain a fileserver, running Netatalk and lots of Macs? (Well, lots is a bit of a stretch. About 15 Macs). I've been doing some research on AFP and it's a.... weird... protocol. I mean, keeping a database with CNID's? What is that all about? And storing all this metadata in hidden dot-underscore files? How do I make sure things keep running smooth? How do I prevent getting these Bad AppleDoubles? And where did they get bad in the first place?
(1) Apparently this was caused by some people mounting shares as SMB, while others had them mounted as AFP. But still wierd that it happened.
Thanks in advance!
