[OpenAFS] Changing host- and domainname

Sebix sebix@sebix.at
Sat, 20 Jan 2024 21:32:22 +0100


Dear AFS users,

We had to migrate our openAFS server to a different infrastructure 
because of hardware failures and thus adapt the IP address of the 
virtual machine. Now, we have troubles starting openafs-server again. 
It's only one server, no AFS network in place.

A useful error message is in /var/log/openafs/PtLog:
Sat Jan 20 16:47:37 2024 ubik: primary address 192.168.1.43 does not exist
Sat Jan 20 16:47:37 2024 ubik: No network addresses found, 
aborting..ptserver: problems with host name Ubik init failed

and in /var/log/openafs/VLLog:
Sat Jan 20 16:47:37 2024 ubik: primary address 192.168.1.43 does not exist
Sat Jan 20 16:47:37 2024 ubik: No network addresses found, 
aborting..vlserver: Ubik init failed: problems with host name

192.168.1.43 is the new internal IP address (10.20.30.12 was the 
previous one).

We already replaced the IP address in /etc/openafs/CellServDB and 
restarted the server.

I have found some older threads on the mailinglist about similar issues 
which point to the content of /etc/hosts as a potential culprit, as well 
as bogus "localhost" entries? I also tried to remove localhost from 
/etc/hosts (which seems a bad idea), but that didn't resolve the error 
either. What order of entries does openafs expect in /etc/hosts? 
Currently we are at

127.0.0.1    localhost localhost.localdomain
192.168.1.43    afs1208 afs1208.example.com

Any help is appreciated.

Thank you in advance

Sebastian