LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 03-02-2005, 04:26 AM   #1
soumyadeep
LQ Newbie
 
Registered: Mar 2005
Posts: 15

Rep: Reputation: 0
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
 
Old 03-02-2005, 11:16 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,499

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
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" ?
 
Old 03-02-2005, 09:31 PM   #3
]un]ie
Member
 
Registered: Jul 2004
Location: Singapore
Posts: 61

Rep: Reputation: 16
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 ?
 
Old 03-02-2005, 11:18 PM   #4
soumyadeep
LQ Newbie
 
Registered: Mar 2005
Posts: 15

Original Poster
Rep: Reputation: 0
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)
 
Old 03-03-2005, 12:36 AM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,499

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
So it is mounted read-write, what is the problem ?
 
Old 03-03-2005, 01:42 AM   #6
soumyadeep
LQ Newbie
 
Registered: Mar 2005
Posts: 15

Original Poster
Rep: Reputation: 0
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
 
Old 03-03-2005, 02:09 AM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,499

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
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 ?
 
Old 03-03-2005, 02:47 AM   #8
soumyadeep
LQ Newbie
 
Registered: Mar 2005
Posts: 15

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How-to manage a Sun Solaris Server remotely with a Linux W Laoch Solaris / OpenSolaris 2 09-15-2005 02:15 AM
Setting up the NFS server on Solaris Box suresheva31 Linux - Networking 1 04-01-2005 12:51 PM
How can I setting up the events alarm beep on a Sun fire v240 with Solaris 9 ? Puerc0 Solaris / OpenSolaris 0 04-23-2004 05:51 PM
Connect Sun Solaris Ultra5 workstation to Linux server? EnderEd Linux - Networking 1 04-20-2004 09:53 AM
Solaris install for sun server 'Ulra Enterprise 150' jfschutte Solaris / OpenSolaris 1 01-06-2004 11:58 AM


All times are GMT -5. The time now is 09:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration