ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Oracle Linux 6.4配置NFS

Oracle Linux 6.4配置NFS

原创 Linux操作系统 作者:chncaesar 时间:2013-12-02 10:15:31 0 删除 编辑
1. Install
su - root
yum install nfs-utils
service nfs start
chkconfig --list nfs
chkconfig nfs on

2. Turn off your firewall and SELinux
/etc/selinux/config and change the SELINUX line to SELINUX=disabled:

3. Config NFS

vi /etc/exports
-- Add the following line.
/u01/app/oracle/oradata/orcl 10.28.121.0/24(ro)
--10.28.121.0/24(ro) indicates what subnet has access to this shared resource, and read-only.

service nfs restart
showmount -e

NFS config file: /etc/sysconfig/nfs

4. Check your portmap config
rpcinfo -p
The rpcinfo command shows each RPC-based service (for instance NFS) with port numbers, an RPC program number, a version number, and an IP protocol type (TCP or UDP). the nfs service should show up in the list.

5. Mount from another machine
mkdir /home/oracle/online_log
mount -t nfs -o rw odilab:/u01/app/oracle/oradata/orcl /home/oracle/online_log

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/638844/viewspace-1061814/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2013-07-30

  • 博文量
    102
  • 访问量
    926324