Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The host that serves AFP and boot service for old devil hosts is vldafneafp.lnf.infn.it (192.168.198.53 - 192.168.196.12). This host is a VM inside DA-Dell2 Cluster and is a Debian 9.12 13 (stretch) because the service was not available under CentOS.

The system images and data are stored in /srv folder:

  • /srv/data 
    contains bible, dfmd and hammer AFP shares
  • /srv/tftp 
    contains system images

Installation History

This is the service installation history. It will be used to document the service installation in a better way.

...

Sometimes, the DEVILs are not able to mount "Bible" and "DFMD" disks, asking for a password (that will not work). This symptom can be solved only by restarting the netatalk service, and then ALL the old DEVILs.

To restart the service, launch these commands:

...

After launching the start command, the netatalk service needs some time to initialize the network. So be patient (sometimes it takes a minute).

How to disconnect a client ("Sganciare un Devil")

To disconnect a client, we need the process id of his connection and then we have to kill it. We can obtain all process ids with the following command:

Code Block
languagetext
root@vldafneafp:~# ps -fe | grep devil | grep afpd
devil204 12132 22674  0 nov22 ?        00:00:02 /usr/sbin/afpd -U uams_dhx2.so,uams_clrtxt.so -g nobody -c 50 -n console100
devil364 12138 22674  0 nov22 ?        00:00:06 /usr/sbin/afpd -U uams_dhx2.so,uams_clrtxt.so -g nobody -c 50 -n console100
devil367 12139 22674  0 nov22 ?        00:00:00 /usr/sbin/afpd -U uams_dhx2.so,uams_clrtxt.so -g nobody -c 50 -n console100
devil366 12140 22674  0 nov22 ?        00:00:00 /usr/sbin/afpd -U uams_dhx2.so,uams_clrtxt.so -g nobody -c 50 -n console100
devil365 12142 22674  0 nov22 ?        00:00:00 /usr/sbin/afpd -U uams_dhx2.so,uams_clrtxt.so -g nobody -c 50 -n console100
devil386 12519 22674  0 nov22 ?        00:00:17 /usr/sbin/afpd -U uams_dhx2.so,uams_clrtxt.so -g nobody -c 50 -n console100
devil391 23568 22674  0 nov16 ?        00:00:39 /usr/sbin/afpd -U uams_dhx2.so,uams_clrtxt.so -g nobody -c 50 -n console100
devil385 23574 22674  0 nov16 ?        00:00:07 /usr/sbin/afpd -U uams_dhx2.so,uams_clrtxt.so -g nobody -c 50 -n console100

The first number after the devil number is the process id to kill to disconnect that devil from AFP shares. In this example, if I want to disconnect the devil391, I have to kill the process id 23568 with the following command:

Code Block
languagetext
root@vldafneafp:~# kill -9 23568

Replace a DEVIL

to replace a devil, change the mac address of the old ones with the new mac address in /etc/dhcp/dhcpd.conf and restart the service with:

Code Block
root@vldafneafp:~# systemctl restart isc-dhcp-server