public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* Re-exporting NFS shares with a generated fsid as a UUID?
@ 2025-07-22  8:49 James Pearson
  2025-07-22 11:36 ` Daire Byrne
  0 siblings, 1 reply; 3+ messages in thread
From: James Pearson @ 2025-07-22  8:49 UTC (permalink / raw)
  To: Linux NFS Mailing List

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Re-exporting NFS shares with a generated fsid as a UUID?
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Daire Byrne @ 2025-07-22 11:36 UTC (permalink / raw)
  To: James Pearson; +Cc: Linux NFS Mailing List

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Re-exporting NFS shares with a generated fsid as a UUID?
  2025-07-22 11:36 ` Daire Byrne
@ 2025-07-22 14:57   ` James Pearson
  0 siblings, 0 replies; 3+ messages in thread
From: James Pearson @ 2025-07-22 14:57 UTC (permalink / raw)
  To: Daire Byrne; +Cc: Linux NFS Mailing List

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-07-22 14:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox