LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   trouble in setting up NFS server in Sun Solaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/trouble-in-setting-up-nfs-server-in-sun-solaris-296627/)

soumyadeep 03-02-2005 04:26 AM

trouble in setting up NFS server in Sun Solaris
 
Hi Everybody,
I am stuck with the problem of setting up NFS server in SunOS, for which I seek your kind help.
We have some machines in sun and some machines on linux, and we want to make one of the sun machine as NFS server.The problem that we are stuck with is, after setting up the NFS server I can mount from other linux as well as sun machines as readonly mode but I need it to have read-write permission.
I made the changes in /etc/dfs/dfstab as bellow:
share -F nfs -o rw /data04/download
Here "/data04" is the partition and "download" is the directory which I need to mount on other machines. After which I have rebooted the system also.
The System I am using has
SunOS bioinfo 5.7 Generic_106541-19 sun4u sparc SUNW,Ultra-80
and the client systems are Solaris 8, Linux( Redhat-7.3/8/9, fedora core 2/3).
I tried to setup the server by using using the command:
share -F nfs -o rw /data04/download
But ending up with no success.
The output of the command "showmount -e" is as below:
/data04/download (everyone)
Moreover, I have modified the /etc/exports file as below:
/data04/download rw
and started the "/etc/init.d/nfs.server" also.
But nothing helped me.
I am mounting with the following command in linux:
mount 172.16.4.4:/data04/download /sun (/sun is the mount point)
Moreover, we have many users can I mount the NFS partition accross all users.
Could you please suggest me where I am wrong. Any suggestions would be highly appreciated.

Regards,
Soumyadeep

jlliagre 03-02-2005 11:16 AM

I'm not aware of a /etc/exports file with Solaris, you need to use the /etc/dfs/dfstab, as you already do.
The command you give looks good, there's not even a need to specify "-o rw" as it is the default.

From a Solaris machine, you can also automatically mount by using the path
/net/172.16.4.4/data04/download .

What output gives "mount | grep data04" ?

]un]ie 03-02-2005 09:31 PM

not sure if this help,

i notice u did not mention if u start nfs.client on your client side ?

on my solaris client side, when i do a mount, i get something like

/sharedir on myserver:/shared remote/read/write/setuid/xattr/dev=4b80003 on Tue Feb 22 10:49:43 2005

notice it's remote/read/write.

Wat does the output from your solaris client "mount" shows ?

soumyadeep 03-02-2005 11:18 PM

Thanks jlliagre and ]un]ie,

The output of "mount | grep data04" in solaris client as below
/sun on 172.16.4.4:/data04/download remote/read/write/setuid/dev=3e00003 on Thu Mar 3 00:08:44 2005
And the output of "mount | grep data04" in linux client
172.16.4.4:/data04/download on /sun type nfs (rw,addr=172.16.4.4)

jlliagre 03-03-2005 12:36 AM

So it is mounted read-write, what is the problem ?

soumyadeep 03-03-2005 01:42 AM

The problem is that neither I cant modify any file nor I can create any new file in that directory(/sun which is the mount point for /data04/download). I tried to create and modify files being as root user in the client machine as well as andrew (the normal user). The user andrew is present in either machines (server and client).

Regards,
Soumyadeep

jlliagre 03-03-2005 02:09 AM

Both root, mapped to nobody, and andrew are likely to have no right to modify/create any file on the remote nfs mounted directory, even mounted R/W.
Did you "chmod 0777" the shared directory on the server side to check that ?

soumyadeep 03-03-2005 02:47 AM

Thanks jlliagre,
It is working now after changing mode to 777 of the shared directory.
Now I would have to make users having same UIDs in all machine so that it match with the server machine.
Thank you so much for your kind help and suggestions.
With best of my regards,
Soumyadeep


All times are GMT -5. The time now is 06:56 AM.