One, install NFS service on Windows Server
First, open the Service Manager and select Add roles;
Select File Services, next;
A hint appears, regardless of it, to proceed to the next step;
In the next page, select "Network File system service" (NFS), next;
Click Install;
The system starts to install and takes about a few minutes;
Installation complete, click Close;
This creates an NFS service in Windows Server 2008r2, then selects a partition and creates a new folder, such as NFS;
On the folder right-click Properties, you can see the list of attributes more than one NFS share;
Click Manage NFS Share, select Share this folder, the following authentication default is good;
Click "Permissions", the default shows that all computers have read-only permissions, do not allow root access, do not have to control it, select "Add";
In Add name here Enter the IP address of the XenServer host, access type select "Read and write", and check "Allow root access", if you do not select this, in XencenterYou cannot create a new store, and then "OK"
Because my 2 hosts are installed XenServer, so here Add 2 host IP address;
Ii. Linux Setup Method # Install the NFS protocol client
Yum install-y nfs-utils Portmap # Show on authorized machines if you can see the NFS service provided by this Windows
SHOWMOUNT-E 10.10.14.227 # Mapping NFS to Local Disk directory
Mkdir/usr/local/test-p
Mount-t Nfs-o Ro,bg,soft,nolock 10.10.14.227:/down/usr/local/test
# Other machines can see this mapping, but cannot complete mount
[Email protected] ~]# mount-t nfs-o ro,bg,soft,nolock 10.10.14.227:/down/usr/local/test
Mount.nfs:access denied by server while mounting 10.10.14.227:/down three, about the Port this NFS is not the use of 445 ports, but other ports, so that the eternal blue on our say good by E!16851093https://www.centos.bz/2017/12/nfs set a fixed port and add firewall rules/http://blog.itpub.net/29820633/viewspace-2140692/tested , WINDOWS NFS shares only need to open port 2049. Iv. ways to Mount Linux on-board
Finally, you can edit/etc/exports to add additional Mount directories
V. Other
You also need to check the current mount method of samba removed, timed disk check shell modification, installation package transformation, etc., please continue to modify the operation of colleagues.
Resolve issues with Windows and Linux shared files by using the NFS replacement Samba protocol in Windows 2008r2