OpenSolaris + netatalk

PointandClick

Limp Gawd
Joined
Dec 6, 2008
Messages
383
Not sure where to put this, but seems like good a place as any.

I plan on my next NAS to run OpenSolaris + zfs. It will replace my Ubuntu install that I planned on doing raid 5 with.
Before I got too far along I loaded up OS on my old Celeron D box to make sure I could get everything working.
I managed to get netatalk to compile and install, but when I try to start the service I get the error:
Code:
starting appletalk daemons: can't establish STREAMS plumbing, exiting.
atalkd nbprgstrpapd: can't open lock file, "/var/spool/locks/papd"
papd cnid_metadafpd: can't open lock file, "/var/spool/locks/afpd"
afpd.

Is this because of the Solaris' directory structure, similar to the discrepancy between with the /usr/ucbinclude and /usr/include folders? If so I could create a symbolic link.
The directory /var/spool/locks exists, but has no contents.

Any ideas?
Thanks
 
I don't know anything about netatalk, but I know Solaris. So, here are some thoughts...

You can probably get rid of the lockfile error messages simply by touching them:
touch /var/spool/locks/papd
touch /var/spool/locks/afpd

The STREAMS error probably has little to do with the lock file messages. It's a SysV net api. Since you appear to be doing something with enabling appletalk protocol capability, I'd check to see if there's any info regarding netatalk's kernel interface; maybe a module?
 
Thanks for the reply.

I tried what you suggested, but the actual files, papd and afpd, don't even exist in the directory.
Out of curiosity, what does the touch command do? Is it like repairing permissions?

Both guides I used covered netatalk version 2.0.3 but I went ahead and used 2.0.4beta2 since it's newer (December 08 instead of 05). I may play around some in a VM and try the older version. My Ubuntu install is running 2.0.3 and it works fine as far as I can tell.

Where would you suggest starting to learn a little about Solaris? I've used Debian/Ubuntu enough to get around, but I'm sure the similarities only go so far. Diversity is always a good thing. ;)

Thanks again.
 
Check the permissions on the /var/spool/locks folder. Does the user netatalk runs as have permission?

Are you trying to share files with a relatively recent Mac? You may have better luck using CIFS; see the genunix wiki for more details.
 
Never thought of that since I issued the command as root.

I made a little progress in a VM on my macbook pro. Using this guide I managed to get the service running. When I try to start the service using /etc/init.d/atalk start I still get a similar error. The file exists now though so it says something along the lines of 'the service is already running or something referring to that file'. This is after I (supposedly) stopped the service.
After issuing # svcadm enable netatalk I can connect to though, although only by ip.

I am planning on running samba too since it's supported by pretty much everything. Since my mbp is my main machine though I'd rather be running over afp.
 
Back
Top