Configuring an NFS cluster under Windows Server 2016
When it comes to Windows, we all think of the failover Cluster service that comes with Windows systems, and we don't have much to say, today we're going to focus on configuring the NFS service cluster under Windows Server 2016, why do we build today's service? There is a certain reason, here we say the reason it ~ from last year began the company has been on-line OA system, OA system has an attachment server, through the way of mount to do the sharing data, because the previous do is a single point, the supplier does not have a good method, so I think of the Windows NFS cluster , after trying to really good results, so share to the needs of the students reference.
Environment Introduction:
Hostname:dc
ip:192.168.5.10
ROLE:DC, DNS
Domain Name:ixmsoft.com
Hostname:iscsi-server
ip:192.168.5.65
ROLE:ISCSI Server
Hostname:nfs2016-01
ip:192.168.2.42
Role:nfs+cluster
hostname:nfs2016-02
ip:192.168.2.43
Role:nfs+cluster
Then we start our environment.
Our DC Environment
Ixmsoft.com
650) this.width=650; "title=" clipboard "style=" Border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "Clipboard" src= "Http://s3.51cto.com/wyfs02/M00/8E/1B/wKiom1i1jHDBOcI4AAEaEWDuYg0342.png" height= "375"/>
We mount a 40G disk on the iSCSI server and we need to allocate that 40G of disk space to two NFS servers
650) this.width=650; "title=" clipboard[1] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "Clipboard[1]" src= "Http://s3.51cto.com/wyfs02/M02/8E/1B/wKiom1i1jHmwZc89AAFWG6qxtk0227.png" height= "415"/>
We open the iSCSI server and create a new iSCSI disk
650) this.width=650; "title=" clipboard[2] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "Clipboard[2]" src= "http://s3.51cto.com/wyfs02/M01/8E/1B/wKiom1i1jHvivATBAAGOamKCII8011.png" height= "438"/>
Define Name
650) this.width=650; "title=" clipboard[3] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "Clipboard[3]" src= "http://s3.51cto.com/wyfs02/M00/8E/1B/wKiom1i1jH2DU_S1AAE4qfm8yDY662.png" height= "438"/>
Defining servers
650) this.width=650; "title=" clipboard[4] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "Clipboard[4]" src= "http://s3.51cto.com/wyfs02/M00/8E/19/wKioL1i1jH7QtgHPAAE_6eMvbYw541.png" height= "427"/>
Confirmation information
650) this.width=650; "title=" clipboard[5] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "Clipboard[5]" src= "http://s3.51cto.com/wyfs02/M01/8E/19/wKioL1i1jIGSh-gQAAF4lyVUhvE208.png" height= "424"/>
Create complete
650) this.width=650; "title=" clipboard[6] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "Clipboard[6]" src= "http://s3.51cto.com/wyfs02/M02/8E/19/wKioL1i1jIPjph9ZAAE_5-5AbjU762.png" height= "423"/>
We then open the iSCSI initiator on the NFS2016 server, then enter the iSCSI server, and then quickly link
650) this.width=650; "title=" clipboard[7] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "Clipboard[7]" src= "Http://s3.51cto.com/wyfs02/M02/8E/1B/wKiom1i1jIzyg78DAAM_meSKAsA048.png" height= "484"/>
We open Disk Management, then go online, initialize, and then assign the drive letter
650) this.width=650; "title=" clipboard[8] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "Clipboard[8]" src= "Http://s3.51cto.com/wyfs02/M00/8E/1B/wKiom1i1jI7C_bEhAADhLQoGcdA035.png" height= "484"/>
Assign Drive letter 0 disk
650) this.width=650; "title=" clipboard[9] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "Clipboard[9]" src= "http://s3.51cto.com/wyfs02/M00/8E/19/wKioL1i1jJbjelU_AADV1wVKhJ4408.png" height= "368"/>
We also launched the iSCSI initiator on the second server, the same as above
650) this.width=650; "title=" clipboard[10] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[10]" src= "Http://s3.51cto.com/wyfs02/M01/8E/1B/wKiom1i1jJqhclfJAAKonkYm5Bs183.png" height= "484"/>
650) this.width=650; "title=" clipboard[11] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[11]" src= "Http://s3.51cto.com/wyfs02/M01/8E/19/wKioL1i1jJ_BUDzwAAKyS5kpAsg199.png" height= "484"/>
After the disk is ready, we are next to install and install the NFS service and failover
First install on the first Server, NFS service
650) this.width=650; "title=" clipboard[12] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[12]" src= "Http://s3.51cto.com/wyfs02/M02/8E/1B/wKiom1i1jKqQlZkMAAFoaAvvzjo843.png" height= "484"/>
Also tick install failover
650) this.width=650; "title=" clipboard[13] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[13]" src= "Http://s3.51cto.com/wyfs02/M02/8E/19/wKioL1i1jK6zfwDmAAFteeGTzUY160.png" height= "484"/>
Installation Complete
650) this.width=650; "title=" clipboard[14] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[14]" src= "Http://s3.51cto.com/wyfs02/M00/8E/19/wKioL1i1jLHiyEfRAAFOS-EX8a0555.png" height= "484"/>
We also install NFS and failover on the second server
650) this.width=650; "title=" clipboard[15] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[15]" src= "Http://s3.51cto.com/wyfs02/M01/8E/1B/wKiom1i1jLPzeBA7AAFpnTTPWjQ389.png" height= "484"/>
650) this.width=650; "title=" clipboard[16] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[16]" src= "Http://s3.51cto.com/wyfs02/M01/8E/19/wKioL1i1jLajRv3zAAFbLaQhU_s255.png" height= "484"/>
Installation is also completed
650) this.width=650; "title=" clipboard[17] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[17]" src= "Http://s3.51cto.com/wyfs02/M02/8E/1B/wKiom1i1jLexg4L2AAFKe3dBoro647.png" height= "484"/>
Next we create the failover cluster
650) this.width=650; "title=" clipboard[18] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[18]" src= "Http://s3.51cto.com/wyfs02/M02/8E/19/wKioL1i1jLmCZuB7AAEEvwHkWZo809.png" height= "484"/>
We had better verify the configuration before creating
650) this.width=650; "title=" clipboard[19] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[19]" src= "Http://s3.51cto.com/wyfs02/M02/8E/1B/wKiom1i1jLvxThi9AAEWScIUGyU362.png" height= "484"/>
Start validation
650) this.width=650; "title=" clipboard[20] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[20]" src= "http://s3.51cto.com/wyfs02/M00/8E/1B/wKiom1i1jL3zjc2dAAETxGCkwvU558.png" height= "470"/>
650) this.width=650; "title=" clipboard[21] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[21]" src= "http://s3.51cto.com/wyfs02/M01/8E/1B/wKiom1i1jL_hEHvWAAEvK62lX9A432.png" height= "470"/>
Once the validation is passed, we can start creating the cluster
It is important to note that there is a warning---network warning because the cluster recommends configuring the heartbeat line, ignoring the
650) this.width=650; "title=" clipboard[22] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[22]" src= "http://s3.51cto.com/wyfs02/M01/8E/19/wKioL1i1jMGy9U9oAAElyb8dH6s203.png" height= "464"/>
Start creating a cluster
650) this.width=650; "title=" clipboard[23] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[23]" src= "Http://s3.51cto.com/wyfs02/M02/8E/1B/wKiom1i1jMSCUAxlAAFcIUn0xrQ771.png" height= "472"/>
Define the cluster name and address
Nfs2016-cl
192.168.2.44
650) this.width=650; "title=" clipboard[24] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[24]" src= "Http://s3.51cto.com/wyfs02/M02/8E/1B/wKiom1i1jMXhitVyAAEzwNcPfKE866.png" height= "480"/>
Confirmation information
650) this.width=650; "title=" clipboard[25] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[25]" src= "Http://s3.51cto.com/wyfs02/M02/8E/19/wKioL1i1jMySOygjAAEmWHvSeSM833.png" height= "484"/>
Create complete
650) this.width=650; "title=" clipboard[26] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[26]" src= "Http://s3.51cto.com/wyfs02/M00/8E/19/wKioL1i1jM7AjofTAAEbp-R9Yh0268.png" height= "484"/>
Next we start configuring the NFS Cluster
We start by adding a disk that is used primarily for data sharing
650) this.width=650; "title=" clipboard[27] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[27]" src= "Http://s3.51cto.com/wyfs02/M01/8E/1B/wKiom1i1jNGRb5aQAADZ02Xfn3k056.png" height= "474"/>
650) this.width=650; "title=" clipboard[28] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[28]" src= "Http://s3.51cto.com/wyfs02/M01/8E/19/wKioL1i1jNPRB5xMAAC8wrxsAIQ854.png" height= "484"/>
Configuring roles
650) this.width=650; "title=" clipboard[29] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[29]" src= "Http://s3.51cto.com/wyfs02/M02/8E/1B/wKiom1i1jNiQf72PAAEwXFFKa5c349.png" height= "484"/>
Start configuring roles
650) this.width=650; "title=" clipboard[30] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[30]" src= "http://s3.51cto.com/wyfs02/M02/8E/19/wKioL1i1jN_BChHNAAFbVzs_Bm4105.png" height= "481"/>
Select--File server
650) this.width=650; "title=" clipboard[31] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[31]" src= "Http://s3.51cto.com/wyfs02/M00/8E/19/wKioL1i1jOHjPXuvAAFVXwer-Rg557.png" height= "462"/>
We choose the general use of the file service, the specific information can be referred to the hint
650) this.width=650; "title=" clipboard[32] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[32]" src= "Http://s3.51cto.com/wyfs02/M01/8E/1B/wKiom1i1jOSC65KiAAGP_P_LXTY277.png" height= "484"/>
Define client access points, define name and IP
Nfs2016-cls
192.168.4.45
650) this.width=650; "title=" clipboard[33] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[33]" src= "http://s3.51cto.com/wyfs02/M00/8E/19/wKioL1i1jObDSCWcAAFIJhaU6_Q836.png" height= "455"/>
Select storage
650) this.width=650; "title=" clipboard[34] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[34]" src= "http://s3.51cto.com/wyfs02/M02/8E/1B/wKiom1i1jOjC6fCjAAFVtvhg99s721.png" height= "478"/>
Confirmation information
650) this.width=650; "title=" clipboard[35] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[35]" src= "http://s3.51cto.com/wyfs02/M00/8E/1B/wKiom1i1jOnQi19DAAE6V95IKg8949.png" height= "463"/>
Create complete
650) this.width=650; "title=" clipboard[36] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[36]" src= "http://s3.51cto.com/wyfs02/M02/8E/1B/wKiom1i1jOugS8TSAAFM4RzscZo713.png" height= "479"/>
Create complete
650) this.width=650; "title=" clipboard[37] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[37]" src= "Http://s3.51cto.com/wyfs02/M02/8E/19/wKioL1i1jO2zgTfoAADFp7N0z1Q630.png" height= "484"/>
We can view the disk status
650) this.width=650; "title=" clipboard[38] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[38]" src= "http://s3.51cto.com/wyfs02/M01/8E/1B/wKiom1i1jO7jog5xAAEoCI8mhd0109.png" height= "481"/>
We click into the arbitration disc and then we can see that there is a cluster file
650) this.width=650; "title=" clipboard[39] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[39]" src= "http://s3.51cto.com/wyfs02/M01/8E/19/wKioL1i1jO_B-xFdAABp4L3F07I787.png" height= "343"/>
We open the cluster file to see some shared files
650) this.width=650; "title=" clipboard[40] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[40]" src= "http://s3.51cto.com/wyfs02/M02/8E/19/wKioL1i1jPGzFLiJAACTsTc3QyE004.png" height= "298"/>
Next we test the cluster, we create a folder--sharedir on the cluster storage disk, and then we create the test file
650) this.width=650; "title=" clipboard[41] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[41]" src= "http://s3.51cto.com/wyfs02/M00/8E/19/wKioL1i1jPPA_iYPAAC5EAmAn7A979.png" height= "364"/>
650) this.width=650; "title=" clipboard[42] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[42]" src= "http://s3.51cto.com/wyfs02/M01/8E/19/wKioL1i1jPTSaVwtAACxgnJhz8w539.png" height= "367"/>
We create a test file
650) this.width=650; "title=" clipboard[43] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[43]" src= "http://s3.51cto.com/wyfs02/M02/8E/1B/wKiom1i1jPbxZAg5AABgx71KLDQ834.png" height= "/>"
Then we access the client access address of the cluster
650) this.width=650; "title=" clipboard[44] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[44]" src= "Http://s3.51cto.com/wyfs02/M02/8E/19/wKioL1i1jPeDmRz9AAEzBWRCmQg890.png" height= "339"/>
Then we click into the folder to see if it can be displayed
650) this.width=650; "title=" clipboard[45] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[45]" src= "Http://s3.51cto.com/wyfs02/M00/8E/1B/wKiom1i1jPiQTBbQAADe7dC9_oM823.png" height= "329"/>
Next we switch nodes
Before we switch, let's ping the Client access address and look at the network status when switching
650) this.width=650; "title=" clipboard[46] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[46]" src= "Http://s3.51cto.com/wyfs02/M00/8E/1B/wKiom1i1jPrDWyMzAACpM6Pxa-M777.png" height= "317"/>
Start switching
650) this.width=650; "title=" clipboard[47] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[47]" src= "http://s3.51cto.com/wyfs02/M01/8E/1B/wKiom1i1jPvi_2xWAAEV2uWiGBM776.png" height= "453"/>
Start switching
650) this.width=650; "title=" clipboard[48] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[48]" src= "http://s3.51cto.com/wyfs02/M01/8E/1B/wKiom1i1jQOQHOdIAAEJ9Q8R_f0082.png" height= "482"/>
Toggle Complete
650) this.width=650; "title=" clipboard[49] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clipboard[49]" src= "Http://s3.51cto.com/wyfs02/M01/8E/19/wKioL1i1jQTw8YCaAADBDi4W86s720.png" height= "456"/>
We found that when we switched, we lost a bag, so it was normal.
650) this.width=650; "title=" clipboard[50] "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "Clipboard[50]" src= "Http://s3.51cto.com/wyfs02/M02/8E/1B/wKiom1i1jQeAOQlYAAFmCv_DhHA009.png" height= "351"/>
This article from "Gao Wenrong" blog, declined reprint!
Configuring an NFS cluster under Windows Server 2016