Mount.nfs4 Input/output Error
Contents |
after time Pages: 1 #1 2014-09-16 13:51:35 Carl Karl Member Registered: 2013-06-12 Posts: 225 [solved] NFS: "ls: reading directory mount.nfs input/output error rhel5 .: Input/output error" after time Hello,I got the following ls reading directory . input/output error in linux configuration:NFS-server: Always on, connected via LAN.NFS-clients: 2 computers, connected via LAN and WLAN. On standby: input/output error linux auto umount NFS-share via system-sleep-hook with systemd.This works flawlessly some hours or even days. But after some time, the following happens:1. mount nfs-share:
Ls: Reading Directory .: Input/output Error Nfs
no error message2a. trying to access that folder via filemanager, e.g. thunar: folder seems to be empty (it isn't on server!), but the correct freesize of the NFS-share on server is displayed in the statusbar.2b. trying to access that folder via commandline: $ ls ls: reading directory .: ls reading directory . input/output error centos Input/output errorThe very same worked just a few hours before, I haven't changed anything meanwhile. Apart from standby (--> auto umount NFS-share) and resume (manual mount NFS-share) on the clients which worked before, too.Any idea what's going wrong?additional info:server: /etc/exports _______________________ /srv/nfs/myshare 192.168.2.0/24(rw,all_squash,anonuid=33,anongid=33,no_subtree_check)(yes, the mapping is needed and right.)clients:/etc/fstab _______________________ servername:/srv/nfs/myshare /home/carl/nfs nfs4 noauto,soft,user,_netdev,timeo=14,rsize=8192,wsize=8192 0 0/usr/lib/systemd/system-sleep/umount-nfs _______________________ #!/bin/sh case $1 in pre) umount -f /home/carl/nfs ;; esac Last edited by Carl Karl (2014-09-21 17:07:47) Offline #2 2014-09-16 14:15:27 nomorewindows Member Registered: 2010-04-03 Posts: 3,015 Re: [solved] NFS: "ls: reading directory .: Input/output error" after time Somehow your nfs mounts have gone stale. You'd need to remount them or restart nfs related services. Dmesg or syslog output may help. I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...Look ma, no mouse. Offline #3 2014-09-16 14:29:10 Carl Karl Me
Red Hat Certificate System Red Hat Satellite Subscription Asset Manager Red Hat Update Infrastructure Red ls reading directory input output error ubuntu Hat Insights Ansible Tower by Red Hat Cloud Computing Back
Ls Reading Directory . Input/output Error Redhat
Red Hat CloudForms Red Hat OpenStack Platform Red Hat Cloud Infrastructure Red Hat Cloud Suite Red
Ls: Reading Directory .: Input/output Error Ext4
Hat OpenShift Container Platform Red Hat OpenShift Online Red Hat OpenShift Dedicated Storage Back Red Hat Gluster Storage Red Hat Ceph Storage JBoss Development and https://bbs.archlinux.org/viewtopic.php?id=187131 Management Back Red Hat JBoss Enterprise Application Platform Red Hat JBoss Data Grid Red Hat JBoss Web Server Red Hat JBoss Portal Red Hat JBoss Operations Network Red Hat JBoss Developer Studio JBoss Integration and Automation Back Red Hat JBoss Data Virtualization Red Hat JBoss Fuse Red Hat JBoss A-MQ https://access.redhat.com/solutions/48225 Red Hat JBoss BPM Suite Red Hat JBoss BRMS Mobile Back Red Hat Mobile Application Platform Services Back Consulting Technical Account Management Training & Certifications Red Hat Enterprise Linux Developer Program Support Get Support Production Support Development Support Product Life Cycle & Update Policies Knowledge Search Documentation Knowledgebase Videos Discussions Ecosystem Browse Certified Solutions Overview Partner Resources Tools Back Red Hat Insights Learn More Red Hat Access Labs Explore Labs Configuration Deployment Troubleshooting Security Additional Tools Red Hat Access plug-ins Red Hat Satellite Certificate Tool Security Back Product Security Center Security Updates Security Advisories Red Hat CVE Database Security Labs Resources Overview Security Blog Security Measurement Severity Ratings Backporting Policies Product Signing (GPG) Keys Community Back Discussions Red Hat Enterprise Linux Red Hat Virtualization Red Hat Satellite Customer Portal Private Groups All Discussions Start a Discussion Blogs Customer Portal Red Hat Product Security Red Hat Access Labs Red Hat Insight
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more http://serverfault.com/questions/761071/input-output-error-when-attempting-to-mount-a-windows-nfs-share about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered https://gerrydevstory.com/2013/11/12/mount-nfs-inputoutput-error-when-mounting-from-centos-5-9-to-6-4/ Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Input/output error when attempting to mount a Windows NFS share up vote 0 down vote output error favorite I created the Windows Server 2012 share using: PS C:\Windows\system32> nfsshare testshare2=C:\testshare2 -o anon=yes anonuid=0 anongid=0 rw=uuu.uuu.uuu.uuu testshare2 was shared successfully Where uuu.uuu.uuu.uuu is the IP of my Ubuntu system. Next, from the Ubuntu machine I mounted the Windows NFS share as follows: sudo mount -t nfs xxx.xxx.xxx.xxx:/testshare2 /mnt/testshare2 Where xxx.xxx.xxx.xxx is the IP of the Windows Server 2012 machine. No errors are shown when mounting, but when I ls the mounted directory, the following appears: ls: reading directory . cannot open directory /mnt/testshare2/: Input/output error I'm not showing any errors in Ubuntu's syslog. Here are properties of the share in Server 2012: Edit 1: I get the same input/output error when attempting to mount the Server 2012 NFS share from a RHEL7 machine. Mount works fine I just can't ls directory or touch files. Edit 2: In Server 2012, the NFS log shows a successful mount to both Ubuntu and RHEL machines. linux windows-server-2012 nfs network-share share|improve this question edited Mar 2 at 20:26 asked Mar 2 at 17:51 a coder 314320 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote This is solved. On Server 2012: Opened Server Manager -> Shares Removed the existing share Deleted the previously shared folder Started a new share using the New Share Wizard Selected NFS Share - Quick then clicked Next. Selected a new folder to share in Type a custom path then clicked Next. Confirmed Share name, local path and remote paths then clicked Next. On the Authentication window, I selected No server authentication (AUTH_SYS), then selected Enable unmapped user access by UID/GID and made sure the Allow unmapped user acess by UID/GID radio button was selected. Then clicked Next. On the Share Permissions window, I clicked Add. An Add Permissions window popped up. Here, next to Host, I entered the IP of the remote Linux computer that
trying to mount a NFS shared folder on CentOS 6.4 from CentOS 5.9 and found a really tricky problem. I've added the /etc/fstab entry, but once I ran mount /my/folder it stuck for 2-3 minutes and came back saying mount.nfs: Input/output error Things I've Tried This is all the things I've tried with no success: Ensured network connection was ok. I checked the firewall / iptables and made sure the client machine can connect to NFS server Checked my /etc/hosts file, ensured no dodgy entries Double checked /etc/exports and ran exportfs -r on the NFS server Ran showmount -e [host_ip] to check the NFS server really does advertise the shared folders Ran rpcinfo -p [host_ip] to check the version and supporting services are available Rebooting the server many times Solution Thanks to this post from linuxquestion.org forum, the solution was to add nolock option to the /etc/fstab file. 10.0.10.10:/my/folder /mnt/nfs/my/folder nfs nolock 0 0 CentOS manual is pretty vague as well on what this option really does, but oh well it seems to do the job for time being nolock — Disables file locking. This setting is occasionally required when connecting to older NFS servers. centosnfs Post navigation Previous PostCentOS / RHEL NFS Share Network Folder MountingNext PostBinding a List Request Parameter on Spring MVC Leave a Reply Cancel reply Gerry's software development journey of trial, errors and re-trials Sponsored Content Recent Posts Google Chrome Taking 16GB of my Macbook Air Managing Spring Security User Session Why You Should Use Java 8: NullPointerException Free Object Access Using Optional Using ZeroMQ Java Binding ZeroMQ Windows Java Binding: Building libzmq.dll, jzmq.dll and zmq.jar Using Visual Studio 2012 Archives Archives Select Month November 2015 August 2015 July 2015 April 2015 March 2015 February 2015 January 2015 December 2014 November 2014 October 2014 August 2014 June 2014 May 2014 April 2014 March 2014 February 2014 January 2014 December 2013 November 2013 September 2013 August 2013 July 2013 June 2013 May 2013 March 2013 September 2012 August 2012 July 2012 June 2012 May 2012 Sponsored Content Proudly powered by WordPress