public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
From: James Pearson <jcpearson@gmail.com>
To: Daire Byrne <daire@dneg.com>
Cc: Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Subject: Re: Re-exporting NFS shares with a generated fsid as a UUID?
Date: Tue, 22 Jul 2025 15:57:47 +0100	[thread overview]
Message-ID: <b75f957f-84d2-4be0-83ea-7100823c56da@gmail.com> (raw)
In-Reply-To: <CAPt2mGOZ2ehyUMb2m6TgDr2Y2ghRozmamxwtjd8NwAAKGBuPDw@mail.gmail.com>

I'm using the reexport=auto-fsidnum option with crossmnt (as Netapp is 
involved) and using fsidd - as there could potentially be hundreds of 
child volumes - which all works well, but I was just wondering if 
instead of using an external service/database to map an export path to a 
fsid, would it be 'better' if that mapping could be done internally by 
creating a UUID hash of the export path?

Thanks

James Pearson

On 22/07/2025 12:36, Daire Byrne wrote:
> We just hard code "fsid=12345" into the /etc/exports for each
> mountpoint on the "re-export" server. We use config management on our
> servers to maintain consistency.
>
> We also mostly use NFSv3 re-exports but that shouldn't matter much.
>
> Things get a bit trickier in the case of something like a Netapp that
> might have multiple "volumes" appear as a single namespace (you have
> to fsid each one in the tree).
>
> Daire
>
>
> On Tue, 22 Jul 2025 at 09:49, James Pearson <jcpearson@gmail.com> wrote:
>> I've been experimenting with re-exporting NFS shares and using the
>> external fsidd service via the 'reexport' option - which all seems to
>> work OK
>>
>> As it is possible to use a UUID as a fsid for an export, would it
>> possible to allow an automatically generated fsid as a UUID - i.e.
>> instead of talking to an external service to provide a fsid, just
>> generate a UUID which would be a hash (of some kind) of the exported
>> path ? i.e. no need to use an external database to supply a consistent
>> fsid ?
>>
>> Thanks
>>
>> James Pearson
>>
>>

      reply	other threads:[~2025-07-22 14:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-22  8:49 Re-exporting NFS shares with a generated fsid as a UUID? James Pearson
2025-07-22 11:36 ` Daire Byrne
2025-07-22 14:57   ` James Pearson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b75f957f-84d2-4be0-83ea-7100823c56da@gmail.com \
    --to=jcpearson@gmail.com \
    --cc=daire@dneg.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox