Re: [OpenAFS] Changing host- and domainname

2024-01-22 Thread Harald Barth


> Yes, that helped, see also my previous message. Our problem was, that
> we didn't look for the NetInfo file in /var/lib/openafs/local/, but
> only in /etc/openafs.

Hint from the trenches: If you want different services to bind to
different interfaces (for example fileserver to one IP and database
servers to other interface) that can be done by having the binaries
looking for differently named NetInfo files containing different IP
numbers and using -rxbind. For examle NetI.db and NetI.fs. These file
name examples happen to have the same length as NetInfo. Btw, it is
bad practice to patch binaries without documenting it and I would be
happier if there would be another way to do it, but I never came
around to write a patch for that. Just saying ;-)

Harald.
___
OpenAFS-info mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] Changing host- and domainname

2024-01-22 Thread Sebix

Hi Harald,

On 1/22/24 10:26, Harald Barth wrote:

Does it help to add the IP addr you want to the NetInfo file (creating
on at the right place if it does not exist?)


Yes, that helped, see also my previous message. Our problem was, that we 
didn't look for the NetInfo file in /var/lib/openafs/local/, but only in 
/etc/openafs.


Sebastian
___
OpenAFS-info mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] Changing host- and domainname

2024-01-22 Thread Harald Barth


Does it help to add the IP addr you want to the NetInfo file (creating
on at the right place if it does not exist?)

Harald.
___
OpenAFS-info mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] Changing host- and domainname

2024-01-22 Thread Sebix

Hi,

On 1/21/24 23:39, Jeffrey E Altman wrote:
What files are present in the /var/lib/openafs/local/ directory?   The 
NetInfo and NetRestrict files will be located there on Debian instead 
of /etc/openafs/server/.


That was it, thank you very much.

/var/lib/openafs/local/NetInfo contained the old IP address. After 
replacing that one, the openafs server started.


Thank you for your assistance!

best regards
Sebastian

--
Institute for Common Good Technology
gemeinnütziger Kulturverein - nonprofit cultural society
https://commongoodtechnology.org/
ZVR 1510673578


Re: [OpenAFS] Changing host- and domainname

2024-01-21 Thread Jeffrey E Altman

Reading the 1.6.24 code more carefully these messages

>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..

are produced from the following actions.

1. 192.168.1.43 is the result of evaluating the local hostname and 
resolving that name.


2. The primary address does not exist is the result of 192.168.1.43 not 
being present in the list of addresses returned from parseNetFiles().   
parseNetFiles() will filter the list of addresses returned by 
rx_getAllAddr() by the contents of the NetRestrict file and add the 
addresses included in the NetInfo file.


3. The no network addresses message is the result of rx_getAllAddr() 
returning either an error or an empty address list.  If the address list 
is empty, it means that all of the host's addresses are either 
considered to be loopback or are thought to be something other than an 
IPv4 address.


The failure occurs before the contents of the CellServDB file are examined.

What files are present in the /var/lib/openafs/local/ directory?   The 
NetInfo and NetRestrict files will be located there on Debian instead of 
/etc/openafs/server/.





smime.p7s
Description: S/MIME Cryptographic Signature


Re: [OpenAFS] Changing host- and domainname

2024-01-20 Thread Sebix

On 1/20/24 22:26, Jeffrey Altman wrote:

What files are present in /etc/openafs/server and what are the contents of 
CellServDB in that directory?

/etc/openafs/server/CellServDB:
>fstph.at                # Cell
192.168.1.43 #afs1208

/etc/openafs/server/CellServDB.old:
>fstph.at
192.168.1.43            #afs1208.fstph.at

/etc/openafs/server/ThisCell:
fstph.at

as well as /etc/openafs/server/KeyFile and /etc/openafs/server/UserList

___
OpenAFS-info mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] Changing host- and domainname

2024-01-20 Thread Jeffrey Altman
What files are present in /etc/openafs/server and what are the contents of 
CellServDB in that directory?

> On Jan 20, 2024, at 4:01 PM, Sebix  wrote:
> 
> On 1/20/24 21:58, Jeffrey E Altman wrote:
>>> On 1/20/2024 3:49 PM, Sebix wrote:
>>> Hi,
>>> 
 On 1/20/24 21:46, Jeffrey E Altman wrote:
>>> 
 On 1/20/2024 3:32 PM, Sebix wrote:
> We already replaced the IP address in /etc/openafs/CellServDB and 
> restarted the server.
> 
 Did you update /etc/openafs/server/CellServDB as well?
>>> 
>>> yes, the two files are identical.
>>> 
>> Do you have NetInfo and/or NetRestrict files in /etc/openafs/server/?
> 
> No:
> 
> # grep -cr Net /etc/openafs/server/ :(
> /etc/openafs/server/UserList:0
> /etc/openafs/server/KeyFile:0
> /etc/openafs/server/CellServDB.old:0
> 
>> Does the output of "ip addr" or "ifconfig -a" list the address 192.168.1.43?
> 
> Yes:
> 
> 2: eth0:  mtu 1500 qdisc pfifo_fast state UP 
> qlen 1000
> link/ether 9e:41:32:2b:59:b0 brd ff:ff:ff:ff:ff:ff
> inet 192.168.1.43/24 brd 192.168.1.255 scope global eth0
> inet6 fe80::9c41:32ff:fe2b:59b0/64 scope link
>valid_lft forever preferred_lft forever
> 
>> The error is being generated from verifyInterfaceAddress() in 
>> src/ubik/beacon.c.

___
OpenAFS-info mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] Changing host- and domainname

2024-01-20 Thread Sebix

On 1/20/24 21:58, Jeffrey E Altman wrote:

On 1/20/2024 3:49 PM, Sebix wrote:

Hi,

On 1/20/24 21:46, Jeffrey E Altman wrote:


On 1/20/2024 3:32 PM, Sebix wrote:
We already replaced the IP address in /etc/openafs/CellServDB and 
restarted the server.



Did you update /etc/openafs/server/CellServDB as well?


yes, the two files are identical.


Do you have NetInfo and/or NetRestrict files in /etc/openafs/server/?


No:

# grep -cr Net /etc/openafs/server/ :(
/etc/openafs/server/UserList:0
/etc/openafs/server/KeyFile:0
/etc/openafs/server/CellServDB.old:0

Does the output of "ip addr" or "ifconfig -a" list the address 
192.168.1.43?


Yes:

2: eth0:  mtu 1500 qdisc pfifo_fast 
state UP qlen 1000

    link/ether 9e:41:32:2b:59:b0 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.43/24 brd 192.168.1.255 scope global eth0
    inet6 fe80::9c41:32ff:fe2b:59b0/64 scope link
   valid_lft forever preferred_lft forever

The error is being generated from verifyInterfaceAddress() in 
src/ubik/beacon.c.

___
OpenAFS-info mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] Changing host- and domainname

2024-01-20 Thread Jeffrey E Altman

On 1/20/2024 3:49 PM, Sebix wrote:

Hi,

On 1/20/24 21:46, Jeffrey E Altman wrote:


On 1/20/2024 3:32 PM, Sebix wrote:
We already replaced the IP address in /etc/openafs/CellServDB and 
restarted the server.



Did you update /etc/openafs/server/CellServDB as well?


yes, the two files are identical.


Do you have NetInfo and/or NetRestrict files in /etc/openafs/server/?

Does the output of "ip addr" or "ifconfig -a" list the address 192.168.1.43?

The error is being generated from verifyInterfaceAddress() in 
src/ubik/beacon.c.






smime.p7s
Description: S/MIME Cryptographic Signature


Re: [OpenAFS] Changing host- and domainname

2024-01-20 Thread Sebix

On 1/20/24 21:53, Jeffrey E Altman wrote:

On 1/20/2024 3:49 PM, Sebix wrote:

Hi,

On 1/20/24 21:46, Jeffrey E Altman wrote:


On 1/20/2024 3:32 PM, Sebix wrote:
We already replaced the IP address in /etc/openafs/CellServDB and 
restarted the server.



Did you update /etc/openafs/server/CellServDB as well?


yes, the two files are identical.


What version of OpenAFS?


1.6.1-3+deb7u8 (on an ancient Debian wheezy). The only reason to bring 
it up is to start from scratch :)


___
OpenAFS-info mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] Changing host- and domainname

2024-01-20 Thread Jeffrey E Altman

On 1/20/2024 3:49 PM, Sebix wrote:

Hi,

On 1/20/24 21:46, Jeffrey E Altman wrote:


On 1/20/2024 3:32 PM, Sebix wrote:
We already replaced the IP address in /etc/openafs/CellServDB and 
restarted the server.



Did you update /etc/openafs/server/CellServDB as well?


yes, the two files are identical.


What version of OpenAFS?


smime.p7s
Description: S/MIME Cryptographic Signature


Re: [OpenAFS] Changing host- and domainname

2024-01-20 Thread Sebix

Hi,

On 1/20/24 21:46, Jeffrey E Altman wrote:


On 1/20/2024 3:32 PM, Sebix wrote:
We already replaced the IP address in /etc/openafs/CellServDB and 
restarted the server.



Did you update /etc/openafs/server/CellServDB as well?


yes, the two files are identical.

___
OpenAFS-info mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] Changing host- and domainname

2024-01-20 Thread Jeffrey E Altman

On 1/20/2024 3:32 PM, Sebix wrote:
We already replaced the IP address in /etc/openafs/CellServDB and 
restarted the server.



Did you update /etc/openafs/server/CellServDB as well?




smime.p7s
Description: S/MIME Cryptographic Signature