LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-13-2007, 10:24 PM   #1
mokku
Member
 
Registered: Feb 2007
Posts: 197

Rep: Reputation: 30
Linux/Unix networking and NFS


Hi,

I have a linux and solaris box and I would like to mount few folders on from linux to solaris. Can I do that? How about the file system type?
 
Old 11-13-2007, 10:38 PM   #2
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
Quote:
Originally Posted by mokku View Post
Hi,

I have a linux and solaris box and I would like to mount few folders on from linux to solaris. Can I do that? How about the file system type?
I'm pretty positive that Solaris supports nfs. If it does, then certainly you can share folders. One machine will need to have an nfs deamon (and supporting deamons like portmap and nfslock) running & a properly setup exports file. The setup is fairly easy & docs are readily available - I don't remember the exact syntax for the exports file, but it's something like:

/path iprange (options)

.. again, check the docs.

The other machine will then need to mount the nfs share which is also pretty simple.. on the command line it's

mount -t nfs host:sharepoint /local/path

in fstab, it's:

host:share nfs /local/path defaults
 
Old 12-17-2007, 04:02 PM   #3
ageo
LQ Newbie
 
Registered: Oct 2007
Posts: 10

Rep: Reputation: 0
Hi!

On Solaris 10 I issue command...

# share -F nfs -o rw /opt/app/oracle/product/10.1.2.0.2

I can confirm that the share is there with

# share
- /opt/app/oracle/product/10.1.2.0.2 rw ""

I also ps -ef | grep nfs and get the following:
daemon 215 1 0 Dec 12 ? 0:00 /usr/lib/nfs/statd
daemon 234 1 0 Dec 12 ? 0:00 /usr/lib/nfs/lockd
root 2380 29838 0 14:52:36 pts/1 0:00 grep nfs
daemon 119 1 0 13:56:18 ? 0:01 /usr/lib/nfs/nfsmapid

So nfs server is running on Solaris 10.

On the client (Linux Fedora 7) I then try to mount the remote nfs share with:

$ sudo mount -t nfs remotehost:/opt/app/oracle/product/10.1.2.0.2 /mnt

and after the password the command completes succesfully.

Issuing the command

$ df -k

...shows...
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
31805296 21247216 8916404 71% /
/dev/sda2 101105 31199 64685 33% /boot
/dev/sda1 40957684 28442076 12515608 70% /u01
tmpfs 2069680 0 2069680 0% /dev/shm
remotehost:/opt/app/oracle/product/10.1.2.0.2
20389888 8220672 11965440 41% /mnt

So the mount is there.

However, trying to access the mount with...

$ ls /mnt

...gives me...

ls: cannot open directory /mnt: Permission denied

What am I missing in my nfs configuration to enable the account "oracle" on my linux client to access an nfs share on my Solaris 10 server?

Thx!
 
Old 12-17-2007, 04:13 PM   #4
ageo
LQ Newbie
 
Registered: Oct 2007
Posts: 10

Rep: Reputation: 0
More info...

/opt/app/oracle/product/10.1.2.0.2 on the remote server <remotehost> is owned by oracleninstall with 700 permissions.

If I create a test directory, say /opt/storage/test and assign it 777 permissions, then I can mount from the client with

$ sudo mount remotehost:/opt/storage/test /mnt

..and now I can read/write into /mnt.

Questions:
1) Who (username) is the mount command mounting the remote share as?
2) My linux box isn't connecting to a NIS domain; how can I make sure that the user info (username, password, group, etc) of the Linux client account are valid on the remote Solaris NFS server?

Thx!
 
  


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
NFS Mount Error Linux/Unix (AIX) Proxx Linux - General 2 09-29-2007 07:07 PM
Please Help, Linux mysql nfs : Bind on unix socket: Function not implemented nmotte Linux - Newbie 1 10-29-2005 12:52 PM
Please Help, Linux mysql nfs : Bind on unix socket: Function not implemented nmotte Linux - Networking 1 10-29-2005 07:58 AM
(C++) Unix/Linux Networking Socket tutorials ? Dark Carnival Programming 7 08-09-2004 05:43 PM
Free UNIX/Linux/OS X Networking Utility??? cmf5150 Linux - Networking 2 01-05-2004 02:22 PM


All times are GMT -5. The time now is 03:54 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration