Re: [OpenIndiana-discuss] Proper invocation for zfs sharenfs

2023-04-12 Thread Udo Grabowski (IMK)

On 12/04/2023 17:07, Till Wegmüller wrote:

On 12.04.23 16:02, Udo Grabowski (IMK) wrote:



,anon=abuild  is not a valid sharenfs option.


Hi Udo

I also simply tried rw as option with the same result. If you see the Mail from
Marcel, that was the issue. service/file-system/nfs was not installed in the
zone. With the package installed it worked.

anon is infact an option documented in 'man share_nfs' it maps all non user
accesses to the user given. In my case the common build user delivered via
developer/abuild-common and thus guaranteed to have the same UID on all systems.



On my older system the anon= option is only accepted when using a uid,
not a name.

--
Dr.Udo Grabowski   Inst.f.Meteorology & Climate Research IMK-ASF-SAT
http://www.imk-asf.kit.edu/english/sat.php
KIT - Karlsruhe Institute of Technology   http://www.kit.edu
Postfach 3640,76021 Karlsruhe,Germany T:(+49)721 608-26026 F:-926026

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Proper invocation for zfs sharenfs

2023-04-12 Thread Till Wegmüller

On 12.04.23 16:02, Udo Grabowski (IMK) wrote:



,anon=abuild  is not a valid sharenfs option.


Hi Udo

I also simply tried rw as option with the same result. If you see the 
Mail from Marcel, that was the issue. service/file-system/nfs was not 
installed in the zone. With the package installed it worked.


anon is infact an option documented in 'man share_nfs' it maps all non 
user accesses to the user given. In my case the common build user 
delivered via developer/abuild-common and thus guaranteed to have the 
same UID on all systems.


Greetings
Till

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Proper invocation for zfs sharenfs

2023-04-12 Thread Till Wegmüller

Thank you Marcel that was it!

On 12.04.23 15:57, Marcel Telka wrote:

On Wed, Apr 12, 2023 at 03:19:04PM +0200, Till Wegmüller wrote:

I am currently trying to configure an NFS server but I seem to fail to
correctly invoke zfs sharenfs properly.

zfs keeps complaining with 'cannot set property for 'rpool/data/oirepo':
'sharenfs' cannot be set to invalid options'

And a manual invokation of share keeps complaining with: 'Invalid protocol
specified: nfs'

My command is:
~# zfs set 
sharenfs='rw=@10.1.0.70:@10.1.0.71:@10.1.0.72,ro=@10.1.0,root=@10.1.0.70:@10.1.0.71:@10.1.0.72,anon=abuild'
rpool/data/oirepo

Does anybody know the correct invokation? Manpages etc. show that this
should be correct but I can't make it work.


Do you have the service/file-system/nfs package installed?



___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Proper invocation for zfs sharenfs

2023-04-12 Thread Udo Grabowski (IMK)

On 12/04/2023 15:19, Till Wegmüller wrote:

Hello everyone

I am currently trying to configure an NFS server but I seem to fail to correctly
invoke zfs sharenfs properly.

zfs keeps complaining with 'cannot set property for 'rpool/data/oirepo':
'sharenfs' cannot be set to invalid options'

And a manual invokation of share keeps complaining with: 'Invalid protocol
specified: nfs'

My command is:
~# zfs set
sharenfs='rw=@10.1.0.70:@10.1.0.71:@10.1.0.72,ro=@10.1.0,root=@10.1.0.70:@10.1.0.71:@10.1.0.72,anon=abuild'
rpool/data/oirepo

Does anybody know the correct invokation? Manpages etc. show that this should be
correct but I can't make it work.

Thanks
Till

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


,anon=abuild  is not a valid sharenfs option.

--
Dr.Udo Grabowski   Inst.f.Meteorology & Climate Research IMK-ASF-SAT
http://www.imk-asf.kit.edu/english/sat.php
KIT - Karlsruhe Institute of Technology   http://www.kit.edu
Postfach 3640,76021 Karlsruhe,Germany T:(+49)721 608-26026 F:-926026

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Proper invocation for zfs sharenfs

2023-04-12 Thread Marcel Telka
On Wed, Apr 12, 2023 at 03:19:04PM +0200, Till Wegmüller wrote:
> I am currently trying to configure an NFS server but I seem to fail to
> correctly invoke zfs sharenfs properly.
> 
> zfs keeps complaining with 'cannot set property for 'rpool/data/oirepo':
> 'sharenfs' cannot be set to invalid options'
> 
> And a manual invokation of share keeps complaining with: 'Invalid protocol
> specified: nfs'
> 
> My command is:
> ~# zfs set 
> sharenfs='rw=@10.1.0.70:@10.1.0.71:@10.1.0.72,ro=@10.1.0,root=@10.1.0.70:@10.1.0.71:@10.1.0.72,anon=abuild'
> rpool/data/oirepo
> 
> Does anybody know the correct invokation? Manpages etc. show that this
> should be correct but I can't make it work.

Do you have the service/file-system/nfs package installed?

-- 
+---+
| Marcel Telka   e-mail:   mar...@telka.sk  |
|homepage: http://telka.sk/ |
+---+

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss