Nfs Windows Input/output Error
Contents |
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 mount windows nfs share on linux permission denied site About Us Learn more about Stack Overflow the company Business Learn more
Mount.nfs Input/output Error Rhel5
about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server
Mount Windows Nfs Share On Linux Input Output Error
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
Ls: Reading Directory .: Input/output Error Nfs
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 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 access windows nfs share from linux 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: 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
NFS client ★★★★★★★★★★★★★★★ ashisaApril 19, 200720 Share 0 0 Mounting NFS share on NFS client Now click on OK twice and come out of the folder properties nolock nfs saving the changes you've made, open a command prompt and run – input/output error linux showmount –e.This should return the exports list for this system and should list the folder you just shared – Next mount windows share on linux step is to check the NTFS permission on this folder. Windows Server 2003 systems do not include anonymous users in the Everyone group and you need to manually add the Anonymous Logons http://serverfault.com/questions/761071/input-output-error-when-attempting-to-mount-a-windows-nfs-share group to the access list (I have done that before going any further). This KB article talks more about it. We are now ready to go to the NFS client and mount this share.Run the showmount command from your client – Now, you can mount it on a Linux host using the following command –mount –t nfs NFSSRV:/nfsshare /mnt/nfs Let’s go ahead and run some https://blogs.msdn.microsoft.com/sfu/2007/04/19/mounting-nfs-share-on-nfs-client/ of our favorite commands – I have mounted the share on /mnt/nfs on this box and what I did was go to /mnt directory and see what are the ownerships and permissions shown for this mount (remember after you mount a NFS share on a directory the permissions shown are that of the NFS share mounted and not of the directory which is the mount point). Then I switched to that mount point and then created myfile1 using touch command. Next thing I did was to list everything there. << Sharing folders over NFS Back to post Who's 4294967294? >>
Tags Pages Server for NFS SFU Windows Server 2003 R2 Comments (20) Cancel reply Name * Email * Website Dan Summers says: August 24, 2007 at 9:29 am Excellent. Vital information simply presented. Thank you. Reply S. Karthikeyan says: November 23, 2007 at 7:02 am I have been trying to configure microsoft SFU NFS server on my system. I get an input output/error even after i follow your steps exactly. 1) started the nfs server 2) shared a folder as told here 3) mounted it from linux 4) doing an lsafter time Pages: 1 #1 2014-09-16 13:51:35 Carl Karl Member Registered: 2013-06-12 Posts: 225 [solved] NFS: "ls: reading directory .: Input/output error" after time Hello,I got the following configuration:NFS-server: Always on, connected via LAN.NFS-clients: https://bbs.archlinux.org/viewtopic.php?id=187131 2 computers, connected via LAN and WLAN. On standby: 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: https://gerrydevstory.com/2013/11/12/mount-nfs-inputoutput-error-when-mounting-from-centos-5-9-to-6-4/ 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 output error displayed in the statusbar.2b. trying to access that folder via commandline: $ ls ls: reading directory .: 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 windows nfs share 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 Member Registered: 2013-06-12 Posts: 225 Re: [solved] NFS: "ls: reading directory .: Input/output error" after time Indeed, there could be something interesting in dmesg on the server:[ 4.190117] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory [ 4.190596] NFSD: starting 90-second grace period (net ffffffff818a9540) [ 5.445237] [drm] Enabling RC6 states: RC6 on, RC6p on, RC6pp off [ 5.895519] r8169 0000:04:00.0 enp4s0: link up [ 5.895529] IPv6: ADDRCONF(NETDEV_CHANGE): enp4s0: link becomes ready [72346.265850] usb 3-1: USB disconnect, device number 2 [72346.670926] usb 3-1: new SuperSpeed USB device number 3 using xhci_hcd
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 Dece