自宅サーバの netatalk を2.2.0に更新
TimeMachine 用の領域を自宅サーバ(Ubuntu)に切ってバックアップに使っていたのが、OS X Lion を導入したとたんに使えなくなりました。
netatalk 2.2.0 からAFP3.x supportというのがあって、これが必須ということなので更新することに。
今まで
root@wo:~# afpd -V afpd 2.1.5 - Apple Filing Protocol (AFP) daemon of Netatalk This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Please see the file COPYING for further information and details. afpd has been compiled with support for these features: AFP3.x support: Yes Transport layers: TCP/IP DDP CNID backends: dbd last tdb SLP support: No TCP wrappers support: No Quota support: Yes Admin group support: Yes Valid shell checks: Yes cracklib support: No Dropbox kludge: No Force volume uid/gid: No afpd.conf: /usr/local/etc/netatalk/afpd.conf afp_signature.conf: /usr/local/etc/netatalk/afp_signature.conf AppleVolumes.system: /usr/local/etc/netatalk/AppleVolumes.system AppleVolumes.default: /usr/local/etc/netatalk/AppleVolumes.default UAM search path: /usr/local/etc/netatalk/uams/ Server messages path: /usr/local/etc/netatalk/msg/
導入
http://nekokamuri.exblog.jp/16626141/
を見て、 libavahi-client-dev をいれた。
libslp-dev もいれた。
他は前回導入のときにいれてたっぽい。
./configure --enable-debian --enable-srvloc make sudo make install masawo@wo:~/src/netatalk-2.2.0$ which afpd /usr/local/sbin/afpd masawo@wo:~/src/netatalk-2.2.0$ afpd -V afpd 2.2.0 - Apple Filing Protocol (AFP) daemon of Netatalk This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Please see the file COPYING for further information and details. afpd has been compiled with support for these features: AFP3.x support: Yes TCP/IP Support: Yes DDP(AppleTalk) Support: No CNID backends: dbd last tdb SLP support: Yes Zeroconf support: Yes TCP wrappers support: No Quota support: Yes Admin group support: Yes Valid shell checks: Yes cracklib support: No Dropbox kludge: No Force volume uid/gid: No ACL support: Yes EA support: ad | sys LDAP support: Yes afpd.conf: /usr/local/etc/netatalk/afpd.conf AppleVolumes.system: /usr/local/etc/netatalk/AppleVolumes.system AppleVolumes.default: /usr/local/etc/netatalk/AppleVolumes.default afp_signature.conf: /usr/local/etc/netatalk/afp_signature.conf afp_voluuid.conf: /usr/local/etc/netatalk/afp_voluuid.conf afp_ldap.conf: /usr/local/etc/netatalk/afp_ldap.conf UAM search path: /usr/local/etc/netatalk/uams/ Server messages path: /usr/local/etc/netatalk/msg/ lockfile: /var/lock/afpd
設定はこのあたりを見つつ↓。
http://www003.upp.so-net.ne.jp/hat/netatalk/andsamba.html
/etc/default/netatalk の ATALK_NAME に、afp接続名を書く。
clientのFinderでつなげるようになるのを確認。
TimeMachineにボリューム設定し直してもバックアップに失敗したりしましたが、netatalkの再起動とかMac側の接続しなおしとかして何度かやったら無事にバックアップが始まりました。
ちなみに以下にならって、区切りも良いので新規バックアップを切り直しました。
404 Blog Not Found:tips - Lionの唸り声がしばらくやかましい理由