This task is to share Windows R2 's local hard drive via NFS to the HP- UX DB backup;
This simulation environment is A Windows R2 Server and a Centos 5.4 are installed on VMware Workstation, and the Next experiment begins:
Although the use of CentOS 5.4, but the Linux and HP-UX commands are the same, after I practice.
To install the NFS feature for Windows Server first , you can share the local file to CentOS via NFS, andthen add the file Services role and the Network File Service feature. No restart required;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/30/59/wKiom1OlUtSin-xNAAFPLp2quoc910.jpg "title=" 1.jpg " alt= "Wkiom1olutsin-xnaafplp2quoc910.jpg"/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/30/59/wKiom1OlU13yMpl_AAKNEfmjnOE193.jpg "style=" float: none; "title=" 2.jpg "alt=" Wkiom1olu13ympl_aaknefmjnoe193.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/30/58/wKioL1OlUzDj3bnrAAIPbjVhfmM014.jpg "style=" float: none; "title=" 3.jpg "alt=" Wkiol1oluzdj3bnraaipbjvhfmm014.jpg "/>
There is an alarm, because I turned off the automatic update function of the system, can be ignored.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/30/59/wKiom1OlU3fiByPOAAKVz04_6LI658.jpg "title=" 4.jpg " alt= "Wkiom1olu3fibypoaakvz04_6li658.jpg"/>
then we create a folder under any drive letter, if the English, because our CentOS does not install the Chinese package, will be garbled, we have created a "backup" directory under the d:/disk.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/30/58/wKioL1OlU3yg9FVAAAGk0-027S8210.jpg "title=" 5.jpg " alt= "Wkiol1olu3yg9fvaaagk0-027s8210.jpg"/>
Next is the key, right-click the "Backup" property, select "nfssharing" not "sharing", and then click "Manage NFS sharing ... "
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/30/58/wKioL1OlU7yA3OHtAAHc6VVdr8c628.jpg "title=" 6.jpg " alt= "Wkiol1olu7ya3ohtaahc6vvdr8c628.jpg"/>
tick "Share this folder", other default, and click "Permissions" to add permissions.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/30/58/wKioL1OlU-HhFACAAAH4eaf_c1U841.jpg "title=" 7.jpg " alt= "Wkiol1olu-hhfacaaah4eaf_c1u841.jpg"/>
in the dialog box that pops up, select Add.. "
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/30/59/wKiom1OlVCbjv1tNAAGiTkshDtw511.jpg "title=" 8.jpg " alt= "Wkiom1olvcbjv1tnaagitkshdtw511.jpg"/>
in the " Add Names "adds the IP address of the server thataccesses the folder , set the permissions my is RW, be sure to tick"allow root access"
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/30/59/wKioL1OlVCuBpRi0AAF9exEK230115.jpg "title=" 9.jpg " alt= "Wkiol1olvcubpri0aaf9exek230115.jpg"/>
View the centos IP address;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/30/59/wKioL1OlVEqDDrp7AAISdY_cOAg158.jpg "title=" 10.jpg "alt=" Wkiol1olveqddrp7aaisdy_coag158.jpg "/>
View The IP address of Windows Server ;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/30/59/wKiom1OlVLHw1CGhAAN1YdocuN8125.jpg "title=" 11.jpg "alt=" Wkiom1olvlhw1cghaan1ydocun8125.jpg "/>
settings under windows OK , first of all, let's verify that you can see the "Backup" folder in the shared place onwindows. It means that our setup is fine, and then we can do the Mount action.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/30/59/wKiom1OlVMrjFVc0AACzre61HSA898.jpg "title=" 12.jpg "alt=" Wkiom1olvmrjfvc0aaczre61hsa898.jpg "/>
first of all, in order to allow the device to restart after the installation of this folder, you must modify the "/etc/fstab" file, of course you can also use parameters to achieve this purpose, here to modify the fstab file;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/30/59/wKioL1OlVLbzxOKpAABN3bHQeaw906.jpg "title=" 13.jpg "alt=" Wkiol1olvlbzxokpaabn3bhqeaw906.jpg "/>
After entering fstab , add the following line in the last line, the first is the source file, the second column is the native mount point, the third column is the file type, the fourth column is the permission setting, the last two columns, do not need self-test,0 0 can be;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/30/59/wKioL1OlVMnBSCBXAAFSCCSIrOY008.jpg "title=" 14.jpg "alt=" Wkiol1olvmnbscbxaafsccsiroy008.jpg "/>
to start mounting , first of all to create a mount point, my is "/backup";
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/30/59/wKiom1OlVTuilTZVAADaLasV0Pk387.jpg "title=" 15.jpg "alt=" Wkiom1olvtuiltzvaadalasv0pk387.jpg "/>
After adding the fstab and creating the/backup mount point, you can use the Mount–a directly to mount it; now to test, create a "new.txt" file, Can be seen locally, then on Windows?
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/30/59/wKioL1OlVSHwo_yYAAGY3PDEf5k220.jpg "title=" 16.jpg "alt=" Wkiol1olvshwo_yyaagy3pdef5k220.jpg "/>
Witness the moment of miracles, there are wood, magical appearance, Haha, proved successful.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/30/59/wKioL1OlVVij9yPTAAFmWfKqOao560.jpg "title=" 17.jpg "alt=" Wkiol1olvvij9yptaafmwfkqoao560.jpg "/>
of course, you can also use DF to see if the mount is successful,and HP-UX is a BDF, slightly out of the way, and everywhere else.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/30/59/wKiom1OlVZugu0ZwAAJk3ODWnGo116.jpg "title=" 18.jpg "alt=" Wkiom1olvzugu0zwaajk3odwngo116.jpg "/>
Now the mount succeeds, want to take off what to do, or the last picture, the command is the first line,
The middle one is no need to modify the Fstab file can be directly Mount, but the server restart after the manual mount, so don't be lazy oh, Of course you can also use parameters to achieve this goal,Linux is -T,HP-UX is -f, self-experiment bar, I do not demonstrate, done.
This article is from the "Heavenly Soul Eternal" blog, please be sure to keep this source http://tianhunyongheng.blog.51cto.com/1446947/1429346