how to get the current active exports configuration?
Hello, Is there a way to get nfs-ganesha's current active exports configuration as it is in use by the running instance? Something like 'exportfs -v' in kernel-nfs. I did set parameters on default, export and client level and want to make sure that things work as I expect. Especially access and squash settings per client and export would be good to know. Testing from client side seem excessively tedious if you want to test no-access for a large group of clients. I did increase the log level but didn't see the access options or other beside pseudo_path and tag. I did not see any clients mentioned at all. But maybe I missed it? The Dbus interface seems to provide just a very basic set of export parameters(?) If this is documented somewhere please excuse the noise - a pointer to the answer will be welcome, too. We run 2.5.3 on RHEL7 (as part of Spectrum Scale) Thank you and kind regards, Heiner -- Paul Scherrer Institut Science IT Heiner Billich WHGA 106 CH 5232 Villigen PSI 056 310 36 02 https://www.psi.ch
showmount -e x.x.x.x ? -----Original Message----- From: Billich Heinrich Rainer (PSI) [mailto:heiner.billich@psi.ch] Sent: maandag 6 augustus 2018 18:57 To: support@lists.nfs-ganesha.org Subject: [Nfs-Ganesha-Support] how to get the current active exports configuration? Hello, Is there a way to get nfs-ganesha's current active exports configuration as it is in use by the running instance? Something like 'exportfs -v' in kernel-nfs. I did set parameters on default, export and client level and want to make sure that things work as I expect. Especially access and squash settings per client and export would be good to know. Testing from client side seem excessively tedious if you want to test no-access for a large group of clients. I did increase the log level but didn't see the access options or other beside pseudo_path and tag. I did not see any clients mentioned at all. But maybe I missed it? The Dbus interface seems to provide just a very basic set of export parameters(?) If this is documented somewhere please excuse the noise - a pointer to the answer will be welcome, too. We run 2.5.3 on RHEL7 (as part of Spectrum Scale) Thank you and kind regards, Heiner -- Paul Scherrer Institut Science IT Heiner Billich WHGA 106 CH 5232 Villigen PSI 056 310 36 02 https://www.psi.ch _______________________________________________ Support mailing list -- support@lists.nfs-ganesha.org To unsubscribe send an email to support-leave@lists.nfs-ganesha.org
Yes, I tried ' showmount -e', but I did get just 6 exports listed of the 44 configured - this is not a client restriction, with a kernel nfs server I get all exports listed. I don't get any export options like RW/RO, squash, vers 3 or 4, ... this probably is a limitation in the rpc call? With the possibility to incrementally change the export settings at runtime it would be very desirable to be able to dump the current active export configuration. Cheers, Heiner -- Paul Scherrer Institut Science IT Heiner Billich WHGA 106 CH 5232 Villigen PSI 056 310 36 02 https://www.psi.ch On 06/08/18 22:00, "Marc Roos" <M.Roos@f1-outsourcing.eu> wrote: showmount -e x.x.x.x ?
I did get just 6 exports listed of the 44 configured - this is not a client restriction, with a kernel nfs server I get all exports lis
showmount is supposed to give all exports at the server that are NFSv3 mountable by the calling host. If you got 6 exports, then only those 6 are NFSv3 mountable. If kNFS gives more than mountable, then it is a privacy issue, correct? Regards, Malahal. On Tue, Aug 7, 2018 at 2:50 PM, Billich Heinrich Rainer (PSI) < heiner.billich@psi.ch> wrote:
Yes, I tried ' showmount -e', but
I did get just 6 exports listed of the 44 configured - this is not a client restriction, with a kernel nfs server I get all exports listed.
I don't get any export options like RW/RO, squash, vers 3 or 4, ... this probably is a limitation in the rpc call?
With the possibility to incrementally change the export settings at runtime it would be very desirable to be able to dump the current active export configuration.
Cheers,
Heiner
-- Paul Scherrer Institut Science IT Heiner Billich WHGA 106 CH 5232 Villigen PSI 056 310 36 02 https://www.psi.ch
On 06/08/18 22:00, "Marc Roos" <M.Roos@f1-outsourcing.eu> wrote:
showmount -e x.x.x.x ?
_______________________________________________ Support mailing list -- support@lists.nfs-ganesha.org To unsubscribe send an email to support-leave@lists.nfs-ganesha.org
Thank you, this is a very nice feature I wasn’t aware of. Kind regards, Heiner -- Paul Scherrer Institut Science IT Heiner Billich WHGA 106 CH 5232 Villigen PSI 056 310 36 02 https://www.psi.ch From: Malahal Naineni <malahal@gmail.com> Date: Friday 10 August 2018 at 08:49 To: "Billich Heinrich Rainer (PSI)" <heiner.billich@psi.ch> Cc: Marc Roos <M.Roos@f1-outsourcing.eu>, support <support@lists.nfs-ganesha.org> Subject: Re: [Nfs-Ganesha-Support] Re: how to get the current active exports configuration?
I did get just 6 exports listed of the 44 configured - this is not a client restriction, with a kernel nfs server I get all exports lis
showmount is supposed to give all exports at the server that are NFSv3 mountable by the calling host. If you got 6 exports, then only those 6 are NFSv3 mountable. If kNFS gives more than mountable, then it is a privacy issue, correct? Regards, Malahal.
Billich, as you noticed "ganesh_mgr show_exports" gives some data but not all the data you want. I think if you enable FULL_DEBUG tracing, it would give some parameters (may not be extensive) but it is only available at export creation time or access time, I guess. Maybe we need an enhancement for show_exports dbus method. On Mon, Aug 6, 2018 at 10:27 PM, Billich Heinrich Rainer (PSI) < heiner.billich@psi.ch> wrote:
Hello,
Is there a way to get nfs-ganesha's current active exports configuration as it is in use by the running instance? Something like 'exportfs -v' in kernel-nfs. I did set parameters on default, export and client level and want to make sure that things work as I expect. Especially access and squash settings per client and export would be good to know.
Testing from client side seem excessively tedious if you want to test no-access for a large group of clients.
I did increase the log level but didn't see the access options or other beside pseudo_path and tag. I did not see any clients mentioned at all. But maybe I missed it?
The Dbus interface seems to provide just a very basic set of export parameters(?)
If this is documented somewhere please excuse the noise - a pointer to the answer will be welcome, too.
We run 2.5.3 on RHEL7 (as part of Spectrum Scale)
Thank you and kind regards,
Heiner
-- Paul Scherrer Institut Science IT Heiner Billich WHGA 106 CH 5232 Villigen PSI 056 310 36 02 https://www.psi.ch
_______________________________________________ Support mailing list -- support@lists.nfs-ganesha.org To unsubscribe send an email to support-leave@lists.nfs-ganesha.org
On 08/06/2018 12:57 PM, Billich Heinrich Rainer (PSI) wrote:
Hello,
Is there a way to get nfs-ganesha's current active exports configuration as it is in use by the running instance? Something like 'exportfs -v' in kernel-nfs. I did set parameters on default, export and client level and want to make sure that things work as I expect. Especially access and squash settings per client and export would be good to know.
Testing from client side seem excessively tedious if you want to test no-access for a large group of clients.
I did increase the log level but didn't see the access options or other beside pseudo_path and tag. I did not see any clients mentioned at all. But maybe I missed it?
The Dbus interface seems to provide just a very basic set of export parameters(?)
If this is documented somewhere please excuse the noise - a pointer to the answer will be welcome, too.
We run 2.5.3 on RHEL7 (as part of Spectrum Scale)
Thank you and kind regards,
In 2.7, the dbus DisplayExport output was extended to show client information on each export, so it shows more of what you want. This has been backported and will be in 2.6.3. Daniel
Is there a way to get nfs-ganesha's current active exports configuration as it is in use by the running instance? Something like 'exportfs -v' in kernel-nfs. I did set parameters on default, export and client level and want to make sure that things work as I expect. Especially access and squash settings per client and export would be good to know.
One thing that will be somewhat a factor for you is that the export defaults, export options, and client options are not resolved into an effective set until an actual client connects. As far as keeping track of exports as they are updated, one thing I actually suggest is that since the dBus commands don't actually send export options, rather, they tell Ganesha to re-read portions of the config, it's actually possible to keep all your updates in your primary config file and thus that file is always authoritative.
Testing from client side seem excessively tedious if you want to test no-access for a large group of clients.
I did increase the log level but didn't see the access options or other beside pseudo_path and tag. I did not see any clients mentioned at all. But maybe I missed it?
If you have the EXPORT log component at FULL_DEBUG when a client accesses an export you will see how it uses each level of export config to determine the final export options for the given client.
The Dbus interface seems to provide just a very basic set of export parameters(?)
If this is documented somewhere please excuse the noise - a pointer to the answer will be welcome, too.
We run 2.5.3 on RHEL7 (as part of Spectrum Scale)
Thank you and kind regards,
In 2.7, the dbus DisplayExport output was extended to show client information on each export, so it shows more of what you want. This has been backported and will be in 2.6.3.
Frank
participants (5)
-
Billich Heinrich Rainer (PSI) -
Daniel Gryniewicz -
Frank Filz -
Malahal Naineni -
Marc Roos