Centos configuration nfs and hangs on windows server 2008

  

Experimental purpose: my real machine is windows2008 (personal pc is not a server), the system space is not enough, I have a centos5.6 virtual machine space on the server is not enough , the server space is large, add a 20G hard disk to the virtual machine, let the virtual machine and my real machine use together, when a network disk;

first partition, in order to facilitate the division of a zone sdb1, formatted as Ext3

mounting mount /dev/sdb1 /home/disk

ok Configuring nfs first

system cenos 5.6

Because it is convenient to use, I configured The whole line is the largest, you can adjust it according to the actual situation

vim /etc/exports

/home/disk *(rw)

ok It is so simple to start the nfs service Service nfs start

Use the command to view the nfs case showmount -e ip //here can be 127.0.0.1

Next configure the client (nfs server ip 10.0.0.173)

View the nfs directory of the nfs server showmount -e 10.0.0.173

The client is linux

Direct command mount 10.0.0.173:/home/disk

windows 2008R2 first installation Server (nfs network file system role)

mounting nfs mount 10.0.0.173:/home/disk I: //here I is an unused disk number (equivalent to network mapping)

Put out the configuration parameters of the nfs exports file

Each line consists of the throw path, the list of client names, and the access options immediately following each client name: [shared directory] [hostname or IP (parameter, parameter)]


The parameter is optional. When no parameter is specified, nfs will use the default option. The default sharing options are sync,ro, root_squash, no_delay.

In the CentOS system, when the host name or IP address is empty, it provides services to any client on behalf of the share. When sharing the same directory to multiple clients, but the permissions provided for each client are different, you can do this: [shared directory] [hostname 1 or IP1 (parameter 1, parameter 2)] [hostname 2 or IP2 (parameter 3, parameter 4)]

The following are some common parameters for NFS shares:


eg:/home/share 192.168.102.15(rw,sync) *(ro)

Modify the exports file without restarting the nfs service

exportfs -r

exportfsoptions

Copyright © Windows knowledge All Rights Reserved