Re: Limiting mount point to known cells

Jeffrey E Altman <[email protected]> Fri, 26 Aug 2022 22:13:53 -0400
Newsgroups gmane.comp.file-systems.openafs.general
Organization AuriStor, Inc.
Message-ID <[email protected]>
On 8/26/2022 5:13 PM, Ingo van Lil ([email protected]) wrote:
> Hello OpenAFS experts,
>
> is there any way to run an AFS client with both the -dynroot and -afsdb
> options, but still limit the /afs mount point to known cells
> (specifically: only my home cell)?

There is no explicit support for this behavior in OpenAFS but you might be
able to approximate it by

  * enabling -dynroot
  * disabling -afsdb
  * removing the OpenAFS distributed CellServDB file
  * creating a CellServDB file contain only one line for the cell and no
    servers
     >my.cell # My personal cell

A cell entry with no servers is an implicit request to lookup the 
servers via DNS.
I do not remember if this works with -afsdb disabled but it might.

>
> Longer explanation of my problem:
>
> When I run "git status" somewhere inside the AFS hierarchy it freezes
> for a minute or two. git tries to access the directory /afs/.git, and I
> see that afsd sends multiple DNS requests to the loopback address
> 127.0.0.53. Not sure why it does that, it seems to be somehow related to
> systemd-resolved in Fedora Linux.
>
> Running without -dynroot solves the issue, but according to the manual
> it will keep my machine from booting in case my home cell can't be
> contacted. Not very attractive.
>
> Running without -afsdb solves the issue. That's what I do now, but it
> requires to manually specify the servers for my home cell in CellServDB.
> Ideally I'd like to get that info from DNS.
>
> Thanks in advance for any advice you can give!
>
> Regards,
> Ingo
>
> _______________________________________________
> OpenAFS-info mailing list
> [email protected]
> https://lists.openafs.org/mailman/listinfo/openafs-info
smime.p7s (application/pkcs7-signature, 3.9 KB) - not displayed