Sponsored Content
Operating Systems Linux Red Hat Not able to mount NFS share on client side Post 302596958 by pseudocoder on Wednesday 8th of February 2012 07:52:16 PM
Old 02-08-2012
Looks like your host-side (your server) exports a nfs share and allows the host-side (your server) to mount it.
Did you try to mount this share on the server? Probably you just need to run your command with root user or sudo?
Also check directory permissions!

---------- Post updated at 01:51 ---------- Previous update was at 01:48 ----------

The one line you posted (/etc/exports) may not be sufficient enough!
You may need to adjust the directory access permissions on server (/remote/proj1) as well as on the client side (/nfsmount).
 

10 More Discussions You Might Find Interesting

1. AIX

Unable to mount NFS share during boot

Hello Everyone, I have a pseries machine running AIX 4.3.3 that has an invalid IP in /etc/hosts. During a boot the system hangs because it's trying to mount an NFS share to this invalid IP. I've tried to boot the system from a mksysb (not sure if the device was defined as rmt0) and AIX CD... (0 Replies)
Discussion started by: jlslhills
0 Replies

2. UNIX for Advanced & Expert Users

can i mount nfs share on windows 2003 server

this is probably a bit dumb ...but i read somewhere that one of the nfs versions can be mounted on a windows 2003 server ..if yes ..does anyone know how this can be achieved (1 Reply)
Discussion started by: tarunicon
1 Replies

3. Solaris

how to mount Windows NFS share on solaris

Hi, How can i mount an NFS share on a solaris machine a filesystem ? I have enabled nfs on a windows server and the shares has given read/write access to it to all the users. I would like to mount it on around 10 different solaris boxes with different versions of solaris. Thanks in advance. (2 Replies)
Discussion started by: uxadmin007
2 Replies

4. IP Networking

Can't see home folder on one NFS mount but can in another mount on another share

Hello, I have a few Ubuntu 9.10 laptops I'm trying to learn NFS sharing with. I am just experimenting on this right now, so no harsh words about the security of what I'm playing with, please ;) Below are the configs /etc/exports on host /home/woodnt/Homeschool... (2 Replies)
Discussion started by: Narnie
2 Replies

5. Web Development

NFS Share & Mount problem

Hi, I want to mount an NFS Shared folder on Windows XP to vxWorks. There doesnt seem to be a problem with the sharing. Now, when i try to mount the directory onto vxWorks (it runs on a Tumbleweed card), using a mount script (.sh), the following is the print i see on Tera Term: hostAdd... (0 Replies)
Discussion started by: chinmayzen
0 Replies

6. UNIX for Advanced & Expert Users

NFS client-side userid mapping

Folks, I am trying to solve the following problem. I have a process on machine A running as root that needs to mount and access an NFS partition being exported from machine B. However, I cannot have 'no_root_squash' option given on B, hence I see NFS requests from machine A end up as 'nobody'... (1 Reply)
Discussion started by: helpmelearn
1 Replies

7. Solaris

Can't access NFS Share on Solaris Server from a Linux Client

Hi, I am trying to access a NFS shared directory on Solaris 10 Server from a client which is RHEL 4 Server. On the NFS Server, in /etc/dfs/, I added following line to dfstab file. & then ran the following On the client machine, while running the mount command, I am... (0 Replies)
Discussion started by: SunilB2011
0 Replies

8. SCO

Cannot mount NFS share (FreeNAS) onto SCO OpenServer 5.0.6

Hi! All, I am trying to mount a NFS share on my FreeNAS system onto my SCO OpenServer 5.0.6. I get the following error: mount: cannot mount /: Connection Refused (error 115) Has anyone been able to do this? (3 Replies)
Discussion started by: trolley
3 Replies

9. 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

10. Solaris

Solaris 10 NFS client cannot mount a share from a Windows server

I have a Solaris 10 server, I'm trying to mount a share from a Windows nfs server. If I add this entry (tst-walnut:/test_sap_nfs - /majid nfs - yes rw,soft) to my /etc/vfstab, then I can mount, but when I create a file by root:root, the file owner changes to... (1 Reply)
Discussion started by: Hiroshi
1 Replies
nfs_manual_setup(7)					 Miscellaneous Information Manual				       nfs_manual_setup(7)

NAME
nfs_manual_setup - Describes how to manually set up the Network File System (NFS) DESCRIPTION
This reference page describes how to manually set up the Network File System (NFS). Setting up NFS includes configuring the following: Servers Clients, using /etc/fstab Clients, using Automount or AutoFS Setting Up Servers Use the following procedure to set up an NFS server: Create the /etc/exports file and add the appropriate entries to it. The entries that you add are site-specific but their syntax should be as follows: pathname [-root=0] [-root=hostlist [-anon=uid] [-rw=hostlist [-ro] identifier_1 ... identifier_n You can use the number sign (#) as a delimiter to add comments. For more informa- tion, see the exports(4) reference page and the Network Administration manual. Add the following information to the /etc/rc.con- fig.common file by using the /usr/sbin/rcmgr command, which has the following syntax: /usr/sbin/rcmgr set variable value Indicate that this system is a server, by entering the following command: # /usr/sbin/rcmgr set NFSSERVING 1 (A zero (0) in place of the 1 indicates that this system is not a server.) Specify the number of nfsd server threads you want to run on the system. Separate symbols are used for UDP threads and TCP threads. For example, to run 8 TCP threads and 4 UDP threads, enter the following commands: # /usr/sbin/rcmgr set NUM_TCPD 8 # /usr/sbin/rcmgr set NUM_UDPD 4 You can run up to 128 server threads for both transports combined. Although 8 server threads for each transport is usually adequate, if NFS client performance is slow, a possible solution is to increase the number of server threads. Set the NONROOTMOUNTS parameter. Setting this parameter to 0 specifies that only root users on the client systems can mount file systems. Setting it to 1 specifies that anyone on the client systems can mount file systems. The following command specifies that users must be running as root to mount file systems from the server: # /usr/sbin/rcmgr set NONROOTMOUNTS 0 Specify whether you want to run the PC-NFS daemon. PC-NFS software provides personal computers on your network with the same capabilities as NFS. PC-NFS is based on the client/server model. The client software runs on the per- sonal computer. The server software runs on the Tru64 UNIX server. Instructions for setting up the PC-NFS client software is pro- vided with the PC-NFS software documentation. To specify that you want to run the PC-NFS daemon, enter the following command: # /usr/sbin/rcmgr set PCNFSD 1 You must then export the directories you want to mount on the PC client to the client. Also, you must export the /usr/spool/pcnfs directory to the PC client for the client to be able to utilize network printing. For information on exporting directories, see the Network Administration manual. Specify whether you want to run the NFS locking service to allow clients to set advisory record locks on files exported to them. To specify that you want to run the NFS locking service, enter the following command: # /usr/sbin/rcmgr set NFSLOCKING 1 Note, by default, 7 nfsiod daemons are run on all NFS systems. To turn this client service off, enter the following command: # /usr/sbin/rcmgr set NUM_NFSIOD 0 The /usr/sbin/rcmgr command appends the information to the end of the /etc/rc.config.common file. For more information on the rcmgr utility, see the rcmgr(8) reference page. Make sure that one of the following is true for client systems to which you are exporting file systems: They have an entry in the /etc/hosts file of the server. Their host information is in the hosts database, if the network is serving host information with NIS or DNS. The server specifies the client's Internet address instead of its host name in its /etc/exports file and the mountd daemon is not configured to run with Internet address checking turned on. Start the NFS daemons by entering the following command: # /sbin/init.d/nfs start # /sbin/init.d/nfsmount start To stop the NFS daemons, enter the following command: # /sbin/init.d/nfs stop Using the /etc/fstab File to Set Up Clients Use the following procedure to set up an NFS client, using the /etc/fstab file: Edit the /etc/fstab file. Unless you are using an automatic mounting service, such as Automount or AutoFS, edit the /etc/fstab file to contain an entry for each file system that you want to mount on your system if you want it mounted automatically. Specify the file system you are mount- ing, the server you are mounting it from, the permissions with which it is mounted, and the local mount point for it. The syntax for entries in the /etc/fstab file is as follows: fs_spec@server fs_file fs_vfstype fs_mntopts fs_freq fs_passno For more information, see fstab(4). The following is a sample /etc/fstab file: /usr/dist@host1 /usr/dist nfs ro,bg 0 0 share/man@host2 /usr/share/man nfs ro,bg 0 /usr/staff/h0@host3 /nfs/host3/usr/staff/h rw,bg 0 /usr/staff/h1@host3 /nfs/host3/usr/staff/h1 nfs rw,bg 0 0 Create a local mount point for each remote file system that you specified in the /etc/fstab file. The local mount points must correspond exactly to the fs_file field in the /etc/fstab file. In the preceding example, the client system uses the /etc/fstab file to mount the remote file system /usr/share/man from host2. The /etc/fstab entry specifies that the local mount point is also called /usr/share/man on the client system. While this is the easiest way to name the local mount point, it can have any name. To create the /usr/share/man mount point, enter the following command: # mkdir /usr/share/man Make sure that one of the following is true for server systems from which you are importing file systems: They have an entry in the /etc/hosts file of the client. Their host information is in the hosts database, if the network is serving host information with NIS or DNS. Edit the /etc/rc.config.common file by using the /usr/sbin/rcmgr utility. Add the following information to the /etc/rc.config.common file: Whether this system is an NFS server (a system can be both a client and a server). The number of nfsiod daemons that you want the system to run. To specify that you want this system to run 7 nfsiod daemons, enter the following command: # /usr/sbin/rcmgr set NUM_NFSIOD 7 You can run up to 64 nfsiod daemons. Although 7 nfsiod daemons is usually adequate, if NFS read and write performance is slow, you can increase the number of nfsiod daemons. Optionally, you can turn on the NFS locking service, if you want to be able to set advi- sory record locks on NFS-mounted files. To do this, enter the following command: # /usr/sbin/rcmgr set NFSLOCKING 1 Note that the NFS locking service must also be running on the server. The /usr/sbin/rcmgr command appends the information to the end of the /etc/rc.config.common file. For more information on the rcmgr utility, see rcmgr(8). Start the NFS daemons by entering the following command: # /sbin/init.d/nfs start # /sbin/init.d/nfsmount start If you are using Automount or AutoFS on this system, you should complete the steps in the Network Administration manual before starting the NFS daemons. If you need to stop the NFS daemons, enter the following command: # /sbin/init.d/nfs stop Administering Automount and AutoFS Maps You can customize Automount and AutoFS maps to suit your environment and either administer them locally, distribute them using NIS, or both. For information on creating and administering Automount and AutoFS maps, see the Network Administration manual. RELATED INFORMATION
Commands: autofsd(8), automount(8), mountd(8), nfsconfig(8), nfsd(8), nfsiod(8), rpc.lockd(8), rpc.statd(8) Files: advfs(4), cdfs(4), fstab(4) Network Information: nfs_intro(4) Network Administration, Technical Overview delim off nfs_manual_setup(7)
All times are GMT -4. The time now is 07:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy