FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
But I am not able to mount from another machine (RHEL):
[root@localhost ~]# mount -t nfs 10.10.2.185:/home/lid2/workspace /mnt
mount.nfs: access denied by server while mounting 10.10.2.185:/home/lid2/workspace
I turn on the /var/log/messages on 10.10.2.185 but can't see any requests though I can ping the IP address.
So you are trying to mount NFS share that you have configured on F16 machine on RHEL machine. Is that right? If yes, did you check if your RHEL machine is able to telnet Fedora 16 machine on port 2049. If not then there could be 2 reasons:
1. Services on F16 machines are not running. But you said that they are running then lets move on to next;
2. Firewall is blocking the traffic on port 2049.
Did you try disabling firewall on F16 and see if you are able to mount NFS share? Remember that F16 does not use iptables it use firewalld instead. So if you want to turn off firewall in F16 you have to use the following command:
So you are trying to mount NFS share that you have configured on F16 machine on RHEL machine. Is that right? If yes, did you check if your RHEL machine is able to telnet Fedora 16 machine on port 2049. If not then there could be 2 reasons:
1. Services on F16 machines are not running. But you said that they are running then lets move on to next;
2. Firewall is blocking the traffic on port 2049.
Did you try disabling firewall on F16 and see if you are able to mount NFS share? Remember that F16 does not use iptables it use firewalld instead. So if you want to turn off firewall in F16 you have to use the following command:
Code:
system-config-firewall
Hi,
I disabled the iptables (systemctl stop iptables.service) and firewalld (in system-config-firewall) but still couldn't mount. Telnet to port 2049 also failed. I did fair amount googling but didn't find anything useful. Strangely this only happnes to F16. It's ok if I mount from another RHEL5.4. Any more thoughts?
Are you trying to mount NFS share running on RHEL box to F16 or you are trying to mount export configured on F16 to RHEL box. Below statement from you sounds confusing:
Quote:
Strangely this only happnes to F16. It's ok if I mount from another RHEL5.4. Any more thoughts?
When you said telnet failed what was the message that you got? Did you check selinux status on machine? Is selinux enabled and running in targeted mode. You can check selinux status using the following command:
Are you trying to mount NFS share running on RHEL box to F16 or you are trying to mount export configured on F16 to RHEL box. Below statement from you sounds confusing:
When you said telnet failed what was the message that you got? Did you check selinux status on machine? Is selinux enabled and running in targeted mode. You can check selinux status using the following command:
Code:
sestatus
sorry, exported NFS dirs are on the FC16 andon RHEL5.4 too. In other words, both FC16 and RHEL 5.4 are running NFS servers. The client is another RHEL5.4 machine which mounts ok from the NFS server on RHEL5.4 but not on FC16.
on FC16, yes SELinux seems to be enabled:
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
Current mode: enforcing
Mode from config file: enforcing
Policy version: 26
Policy from config file: targeted
Are you trying to mount NFS share running on RHEL box to F16 or you are trying to mount export configured on F16 to RHEL box. Below statement from you sounds confusing:
When you said telnet failed what was the message that you got? Did you check selinux status on machine? Is selinux enabled and running in targeted mode. You can check selinux status using the following command:
Run the following command on F16 and paste the output:
Code:
getsebool -a | grep nfs
You didn't tell what was the message that you get when you try to telnet.
[lid2@fc16-lid sysconfig]$ getsebool -a | grep nfs
allow_ftpd_use_nfs --> off
allow_nfsd_anon_write --> off
cobbler_use_nfs --> off
git_system_use_nfs --> off
httpd_use_nfs --> off
nfs_export_all_ro --> on
nfs_export_all_rw --> on
polipo_use_nfs --> off
qemu_use_nfs --> on
samba_share_nfs --> off
sanlock_use_nfs --> off
use_nfs_home_dirs --> off
virt_use_nfs --> on
xen_use_nfs --> off
[lid2@fc16-lid sysconfig]$
If the above file does not exist (or even exist) continue with the following:
1. Restart F16 machine
2. Make sure that nfs services start at the time of boot.
3. Make sure that firewall is down.
Run the same mount command which I mentioned in my previous post and let me know the result.
This is the output from the NFS client (RHEL5.4):
Quote:
#
# /etc/nfsmount.conf - see nfsmount.conf(5) for details
#
# This is an NFS mount configuration file. This file can be broken
# up into three different sections: Mount, Server and Global
#
# [ MountPoint "Mount_point" ]
# This section defines all the mount options that
# should be used on a particular mount point. The '<Mount_Point>'
# string need to be an exact match of the path in the mount
# command. Example:
# [ MountPoint "/export/home" ]
# background=True
# Would cause all mount to /export/home would be done in
# the background
#
# [ Server "Server_Name" ]
# This section defines all the mount options that
# should be used on mounts to a particular NFS server.
# Example:
# [ Server "nfsserver.foo.com" ]
# rsize=32k
# wsize=32k
# All reads and writes to the 'nfsserver.foo.com' server
# will be done with 32k (32768 bytes) block sizes.
#
[ NFSMount_Global_Options ]
# This statically named section defines global mount
# options that can be applied on all NFS mount.
#
# Protocol Version [2,3,4]
# This defines the default protocol version which will
# be used to start the negotiation with the server.
# Defaultvers=4
#
# Setting this option makes it mandatory the server supports the
# given version. The mount will fail if the given version is
# not support by the server.
# Nfsvers=4
#
# Network Protocol [udp,tcp,rdma] (Note: values are case sensitive)
# This defines the default network protocol which will
# be used to start the negotiation with the server.
# Defaultproto=tcp
#
# Setting this option makes it mandatory the server supports the
# given network protocol. The mount will fail if the given network
# protocol is not supported by the server.
# Proto=tcp
#
# The number of times a request will be retired before
# generating a timeout
# Retrans=2
#
# The number of minutes that will retry mount
# Retry=2
#
# The minimum time (in seconds) file attributes are cached
# acregmin=30
#
# The Maximum time (in seconds) file attributes are cached
# acregmin=60
#
# The minimum time (in seconds) directory attributes are cached
# acregmin=30
#
# The Maximum time (in seconds) directory attributes are cached
# acregmin=60
#
# Enable Access Control Lists
# Acl=False
#
# Enable Attribute Caching
# Ac=True
#
# Do mounts in background (i.e. asynchronously)
# Background=False
#
# Close-To-Open cache coherence
# Cto=True
#
# Do mounts in foreground (i.e. synchronously)
# Foreground=True
#
# How to handle times out from servers (Hard is STRONGLY suggested)
# Hard=True
# Soft=False
#
# Enable File Locking
# Lock=True
#
# Enable READDIRPLUS on NFS version 3 mounts
# Rdirplus=True
#
# Maximum Read Size (in Bytes)
# Rsize=8k
#
# Maximum Write Size (in Bytes)
# Wsize=8k
#
# Maximum Server Block Size (in Bytes)
# Bsize=8k
#
# Ignore unknown mount options
# Sloppy=False
#
# Share Data and Attribute Caches
# Sharecache=True
#
# The amount of time, in tenths of a seconds, the client
# will wait for a response from the server before retransmitting
# the request.
# Timeo=600
#
# Sets all attributes times to the same time (in seconds)
# actimeo=30
#
# Server Mountd port mountport
# mountport=4001
#
# Server Mountd Protocol
# mountproto=tcp
#
# Server Mountd Version
# mounvers=3
#
# Server Mountd Host
# mounthost=hostname
#
# Server Port
# Port=2049
#
# RPCGSS security flavors
# [none, sys, krb5, krb5i, krb5p ]
# Sec=sys
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.