Problem Description: a production environment requires frequent use NFS to mount it in a test environment to test the server 192.168.1.4 /u01/app/oracle/product/11.2.0/dbhome_1/dbs mounted to the 192.168.1.3 / nfs / nfs_orcl,
The 192.168.1.5/u01/app/oracle/product/11.2.0/dbhome_1/dbs 192.168.1.3 to mount the / nfs / nfs_orclstd
1. create 192.168.1.3 mount point / nfs / nfs_orcl / nfs / nfs_orclstd
mkdir -p /nfs/nfs_orcl
mkdir -p /nfs/nfs_orclstd
Operation 2.192.168.1.4
[Root @ orcl /] # rpm -qa | grep nfs first check whether the machine is installed nfs package
[Root @ orcl /] # vi / etc / exports and the need to mount the directory server writes exports inside, there must be written to the server address, otherwise always reported Permission denied
[Root @ orcl /] # exportfs -rv the write command to take effect
Operating on 3.192.168.1.5, are the same, only the pre-performance network can ping, as long as the latter would have no problems carefully point
[root@orcl /]# rpm -qa | grep nfs
[Root @ orclstd dbhome_1] # vi / etc / exports back here to pay attention to the rights of the mount point here is to read and write permissions, if it is root access would pose a risk file permissions too, is here to no_root
[root@orclstd dbhome_1]# exportfs -rv
4. mount directory server 1.4 and 1.5
[root@localhost nfs_orcl]# mount -t nfs -o vers=3 192.168.1.4:/u01/app/oracle/product/11.2.0/dbhome_1/dbs /nfs/nfs_orcl 挂载192.168.1.4
[Root @ localhost nfs] # df nfs_orcl view the directory mount points, mount the directory is 192.168.1.4
[Root @ localhost nfs_orclstd] # mount -t nfs -o vers = 3 192.168.1.5:/u01/app/oracle/product/11.2.0/dbhome_1/dbs / nfs / nfs_orclstd mount 192.168.1.5
[Root @ localhost nfs] # df nfs_orclstd / view directory mount point,
5. unmounting umount + filename
[root@localhost nfs_orclstd]# umount /nfs/nfs_orcl
6. I encountered was not enough Permission denied fundamental rights problem, here need to see / etc / exports / set mount server IP address and the correct path is incorrect, you can get.
[root@localhost nfs_orclstd]# mount -t nfs -o vers=3 192.168.1.5:/u01/app/oracle/product/11.2.0/dbhome_1/dbs /nfs/nfs_orclstd
mount: mount to NFS server '192.168.1.5' failed: RPC Error: Program not registered.
7.nfs restart, sometimes need to restart the service is ok
[root@orclstd dbs]# /etc/init.d/nfs restart
Relevant command
Add Mount Path: [root @ orclstd dbs] # vi / etc / exports
Mount path into force: [root @ orclstd dbs] # exportfs -rv
Unmounted path: [root @ localhost nfs_orclstd] # umount / mount point file
Sink mount directory: [root @ localhost nfs_orcl] # mount -t nfs -o vers = 3 192.168.1.4:/u01/app/oracle/product/11.2.0/dbhome_1/dbs / nfs / nfs_orcl
Modify the permissions: chown -R oracle: oinstall / filename
Nfs restart service: [root @ orclstd dbs] # /etc/init.d/nfs restart
Checks the local nfs shared directory: showmount -e localhost
Checks the local shared directory connection: showmount -a localhost
View occupation command: fuser -mv / mount point
Kill occupation command: fuser -kv / mount point