Input/output error when attempting to mount a Windows NFS share
Solution 1:
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
andremote paths
then clicked Next. - On the Authentication window, I selected
No server authentication (AUTH_SYS)
, then selectedEnable unmapped user access by UID/GID
and made sure theAllow 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 toHost
, I entered the IP of the remote Linux computer that would be mounting, leftLanguage encoding
toANSI
, and setShare permissions
toRead/Write
. I then clickedAdd
at the bottom which closed theAdd Permissions
window.- On the Share Permissions window I confirmed settings entered in the previous step, then clicked Next.
- On the Specify Permissions window, I clicked Next without making changes.
- I confirmed settings on the
Confirm selections
window then clicked theCreate
button.
Then from my RHEL7 system I issued:
mount -t nfs sss.sss.sss.sss:/somedata /mnt/somedata/
Where sss.sss.sss.sss
is the IP of the Server 2012 system.
From the RHEL7 machine, I confirmed write access by issuing
date >> /mnt/somedata/date.txt
Then checked that the file existed from Server 2012.
Solution 2:
When creating an NFS share from Windows Server 2016, the above instructions helped alot. One important piece is to also install the File Server Resource Manager role. Prior to that I only got input/output error and linux reported mount as nfs version 3. Afterward, linux reported nfs version 4.1 and the mount worked.