Help with NFS public


 
Thread Tools Search this Thread
Operating Systems Solaris Help with NFS public
# 1  
Old 05-17-2016
Help with NFS public

Hi,

Please help.

I created a ZFS pool on Solaris 11.3 (thunder) and shared it using NFS (storage).

But when I connect from my Mac without credentials I can't write to the share,I assume I have to make the share public but can't figure out the syntax,please help.

Also the pool is for media I don't need synchronous writes (or ZIL) can I disable sync writes?

Thanks.

Richard
# 2  
Old 05-17-2016
NFS is (almost..) just like any other file system from a user point of vue, so unix perms apply,
From your mac without credentials works the same as anyone arriving being anonimous:anonimous ... unless the perms are read-write to all ( taht means other...) then at the best you can read only, of course that is if you havent exported your file system as read-only...
This User Gave Thanks to vbe For This Post:
# 3  
Old 05-18-2016
Thanks. I used chmod to enable permissions and inheritance for everyone but now when I mount on Mac OS 10.11.5 and try to copy a file to the NFS share,it puts an empty file there and locks up the computer...

Please assist.

Richard
# 4  
Old 05-18-2016
Have you looked in the logs? Remember also even with directory set to 777 external privileged account are nor admitted to write unless you have configured so... Only I have no solaris just now to see...
When you say connect without credentials what do you mean?
On my mac when I needed copies and transfer scripts to a HP-UX server I created an account the unix traditional way - not using Mac GUI interface, and so that user is not seen as so when booting or from the GUI login screen, but works when I open a terminal and do a su - then I configured my mac to have a fix address on that lan and updated both boxes /etc/hosts, the user I created on my mac I gave the same UID I use on the HP.... ( only that HP is no more here so could see its config either...)
All worked well after... but from that terminal... I have no idea what would happen using GUI...
This User Gave Thanks to vbe For This Post:
# 5  
Old 05-18-2016
I know little about Mac but I suggest that you open up security to force it to work and then tighten things up security wise afterwards.

So, as vbe has already said, setting access rights to 777 is a good start to see if that works. Also, ensure zfs is set to share the pool read-write to the host(s) you require. You can explicitly give any host read-write, read-only, or root access like these examples:

Code:
# zfs set sharenfs=rw=host1:host2,ro=host3 pool

Code:
# zfs set sharenfs=rw=host1:host2,root=host1,ro=host3 pool

The latter gives host1 explicit root access (which will override most security and therefore could be deadly in the wrong hands) but you could turn that on just to see if it makes it work.

Another thought is to research what nfs version each machine is using. nfs can be version 2, 3 or 4 and a mismatch across a link can cause strange results. If one machine has a version higher than the other then be specific on the nfs mount command line which version to use. Search these forums for plenty of examples on how to do that.

Last edited by hicksd8; 05-18-2016 at 08:56 AM..
These 2 Users Gave Thanks to hicksd8 For This Post:
# 6  
Old 05-19-2016
Thanks everyone!

OK, I have the NFS connection stable, I used NFSManager app on Mac to mount NFSv4 - IPv4 - TCP.

BUT... when I create directories through NFS I get the expected (inheritance) result but files don't:

Code:
root@solaris:/# ls -V /storage
total 17
drwxrwxrwx+  3 501      games          5 May 19 12:50 test1
                 owner@:rwxpdDaARWcCos:fd----I:allow
                 group@:rwxpdDaARWcCos:fd----I:allow
              everyone@:rwxpdDaARWcCos:fd----I:allow

root@solaris:/# ls -V /storage/test1/
total 26
drwxrwxrwx+  2 501      games          2 May 19 12:50 testy
                 owner@:rwxpdDaARWcCos:fd----I:allow
                 group@:rwxpdDaARWcCos:fd----I:allow
              everyone@:rwxpdDaARWcCos:fd----I:allow
-rw-r--r--   1 501      games         10 May 19 11:31 Untitled.txt
                 owner@:rw-p--aARWcCos:-------:allow
                 group@:r-----a-R-c--s:-------:allow
              everyone@:r-----a-R-c--s:-------:allow

root@solaris:/# ls -V /storage/test1/testy/
total 9
-rw-r--r--   1 501      games         35 May 19  2016 Untitled 3.txt
                 owner@:rw-p--aARWcCos:-------:allow
                 group@:r-----a-R-c--s:-------:allow
              everyone@:r-----a-R-c--s:-------:allow

Any ideas?

---------- Post updated at 03:49 PM ---------- Previous update was at 01:05 PM ----------

I can see whats going on, if I "touch" a file in Solaris, I get the ACL's I want:

Code:
-rwxrwxrwx+  1 root     root           0 May 19 15:14 me
                 owner@:rwxpdDaARWcCos:------I:allow
                 group@:rwxpdDaARWcCos:------I:allow
              everyone@:rwxpdDaARWcCos:------I:allow

But the Mac NFS client is not supporting ACL's:

Code:
root@solaris:/storage/test1/testy# ls -l
total 131
-rwxrwxrwx+  1 root     root           0 May 19 15:14 me
-rw-r--r--   1 501      games         35 May 19 13:00 Untitled 3.txt

I set "Enable ACL's" in NFSManager but it doesn't seem to make any difference.

Please help.

---------- Post updated at 03:55 PM ---------- Previous update was at 03:49 PM ----------

Actually, I think I have fixed it, enabling (and enforcing) ACL's and ignoring mode attributes seems to have done the trick.
These 2 Users Gave Thanks to rthorntn For This Post:
# 7  
Old 05-19-2016
@rthorntn.........thank you for the update/solution and welcome to the forum. It's great when members can take the pointers we give and do their own investigation instead of just expecting answers on a plate. Do please add any further information/questions on this issue as it helps future readability and usefulness for others.
This User Gave Thanks to hicksd8 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

NFS write error on host xyz: Stale NFS file handle - Solaris 10

Oct 13 12:19:15 xyz nfs: NFS write error on host xyz: Stale NFS file handle. Oct 13 12:19:15 xyz nfs: (file handle: 68000000 1bc5492e 20000000 377c5e 1ce9395c 720a6203 40000000 bdfb0400) Oct 13 12:19:15 xyz nfs: NFS write error on host zyz: Stale NFS file handle. Oct 13 12:19:15 xyz nfs: ... (5 Replies)
Discussion started by: psychocandy
5 Replies

2. Shell Programming and Scripting

Mount NFS Share On NFS Client via bash script.

I need a help of good people with effective bash script to mount nfs shared, By the way I did the searches, since i haven't found that someone wrote a script like this in the past, I'm sure it will serve more people. The scenario as follow: An NFS Client with Daily CRON , running bash script... (4 Replies)
Discussion started by: Brian.t
4 Replies

3. AIX

AIX NFS Server and NFS Client

Hi 2 ALL, try to run NFS Server in AIX 7.1 : 1. Step by step on NFS Server node mkdir /tmp/test chgrp staff /tmp/test chmod 775 /tmp/test-- create export directory (fs) mknfsexp -d /tmp/test -t ro exportfs -va show mount -e :/# exportfs -av exports: 1831-187 re-exported /tmp/test... (4 Replies)
Discussion started by: penchev
4 Replies

4. Shell Programming and Scripting

What are public keys in ssh and how do we create the public keys??

Hi All, I am having knowledge on some basics of ssh and wanted to know what are the public keys and how can we create and implement it in connecting server. Please provide the information for the above, it would be helpful for me. Thanks, Ravindra (1 Reply)
Discussion started by: ravi3cha
1 Replies

5. Solaris

Window NFS VS Solaris NFS

Hi all, currently i wish to build a NFS server (windows based), is it the I/O speed will slower than the NFS server in Solaris? any impact, i using the NFS in windows? (2 Replies)
Discussion started by: SmartAntz
2 Replies

6. Solaris

Solaris 9 as a nfs client -- centos as a nfs server.

Hello, I have a centos as nfs server, its name is centos_A. After I finish the setup of the nfs server, the other linux can access this nfs server immediately via /net/centos_A/* But, My solaris 9 can not access /net/centos_A/* immediately. I have to leave /net/centos_A, and wait for about... (1 Reply)
Discussion started by: bruceharbin
1 Replies

7. Solaris

All dependicies of nfs service is online but nfs is offline

Hi all in my server all nfs dependices are online but nfs client is offline root@BIWAPP1 # svcs -a|grep nfs disabled Sep_05 svc:/network/nfs/server:default online Sep_05 svc:/network/nfs/rquota:default online Sep_05 svc:/network/nfs/mapid:default online ... (9 Replies)
Discussion started by: spandhan
9 Replies

8. Solaris

NFS write error on host : Stale NFS file handle

:confused:Hi all When i see in the /var/adm/messages, i saw the following error unix: NFS write error on host : Stale NFS file handle. unix: (file handle: 45ca415 3e7 a0000 2c7f6 3ebfc25f a0000 2 3e49) It is using sunOS 5.7. Is anybody know what is this error? Is is related to any network... (2 Replies)
Discussion started by: AirWalker83
2 Replies
Login or Register to Ask a Question