其他分享
首页 > 其他分享> > Exadata 上部署 nfs服务

Exadata 上部署 nfs服务

作者:互联网

 

[root@node8 onecommand]# rpm -qa rpcbind*
rpcbind-0.2.0-13.el6.x86_64
[root@node8 onecommand]# rpm -qa nfs*
nfs-utils-1.2.3-75.0.3.el6.x86_64
nfs-utils-lib-1.1.5-13.el6.x86_64
[root@node8 onecommand]#
[root@node8 onecommand]#
[root@node8 onecommand]# ls
ExadataConfigurations image lost+found patch rdbms utl
ExadataConfigurations.tar linux-x64 p27179375_181200_Linux-x86-64.zip preconf.csv System.first.boot.12.2.1.1.2.170714.img
[root@node8 onecommand]# cd
[root@node8 ~]#
[root@node8 ~]# ls
[root@node8 ~]# pwd
/root
[root@node8 ~]#
[root@node8 ~]# mkdir /nfsshare
[root@node8 ~]# chmod 755 /nfsshare
[root@node8 ~]# echo "/nfsshare *(rw,sync,no_root_squash)" >> /etc/exports
[root@node8 ~]# chmod +r /etc/hosts.allow /etc/hosts.deny
[root@node8 ~]#
[root@node8 ~]#
[root@node8 ~]#
[root@node8 ~]# echo "rpcbind : ALL" >> /etc/hosts.allow
[root@node8 ~]# echo "mountd : ALL" >> /etc/hosts.allow
[root@node8 ~]# echo "lockd : ALL" >> /etc/hosts.allow
[root@node8 ~]# echo "rquotad : ALL" >> /etc/hosts.allow
[root@node8 ~]# echo "statd : ALL" >> /etc/hosts.allow
[root@node8 ~]# cat /etc/hosts.allow
sshd : ALL
snmpd : ALL
ALL : localhost
rpcbind : ALL
mountd : ALL
lockd : ALL
rquotad : ALL
statd : ALL


[root@node8 ~]# service rpcbind restart
Stopping rpcbind: [FAILED]
Starting rpcbind: [ OK ]
[root@node8 ~]# service nfs restart
Shutting down NFS daemon: [FAILED]
Shutting down NFS mountd: [FAILED]
Shutting down NFS quotas: [FAILED]
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS mountd: [ OK ]
Starting NFS daemon: [ OK ]
Starting RPC idmapd: [ OK ]
[root@node8 ~]# service nfslock restart
Stopping NFS locking: [ OK ]
Stopping NFS statd: [FAILED]
Starting NFS statd: [ OK ]
##############################]

[root@node8 ~]# showmount -e
clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
[root@node8 ~]# service iptables status
iptables: Firewall is not running.
[root@node8 ~]# showmount -e^C
[root@node8 ~]#
[root@node8 ~]#
[root@node8 ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.135.29.1 0.0.0.0 UG 0 0 0 eth0
10.135.29.0 * 255.255.255.0 U 0 0 0 eth0
[root@node8 ~]# ping 10.135.29.1
PING 10.135.29.1 (10.135.29.1) 56(84) bytes of data.
64 bytes from 10.135.29.1: icmp_seq=1 ttl=255 time=0.642 ms
64 bytes from 10.135.29.1: icmp_seq=2 ttl=255 time=0.681 ms
^C
--- 10.135.29.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1013ms
rtt min/avg/max/mdev = 0.642/0.661/0.681/0.032 ms
[root@node8 ~]#
[root@node8 ~]# showmount -e
clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
[root@node8 ~]#
[root@node8 ~]# cat /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted


#################################################


[root@node8 ~]# vi /etc/hosts
#### BEGIN Generated by Exadata. DO NOT MODIFY ####
127.0.0.1 localhost.localdomain localhost
::1 ip6-localhost.localdomain ip6-localhost

#172.16.10.52 node8ib0.my.company.com node8ib0
#172.16.10.53 node8ib1.my.company.com node8ib1
#172.16.2.44 node8.my.company.com node8
10.135.29.10 node8.my.company.com node8
#### END Generated by Exadata ####
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
~

"/etc/hosts" 13L, 445C written
[root@node8 ~]# showmount -e
Export list for node8.my.company.com:
/nfsshare *

 

Mount nfs:
172.16.102.101:/export/Projects/GCAGENT /home/Projects/gcagent nfs rw,bg,hard,nointr,tcp,vers=3,rsize=131072,wsize=131072

 

标签:NFS,etc,部署,OK,node8,nfs,hosts,Exadata,root
来源: https://www.cnblogs.com/lizhao01/p/16184317.html