# 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=permissive
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted NTP
1、
yum -y install ntp
2、
# chkconfig ntpd on
# service ntpd start
4、CentOS 6.x releases use NFSv4 by default. NFSv4 requires that domain setting matches on all clients. In our case, thedomain is cloud.priv, so ensure that the domain setting in /etc/idmapd.conf is uncommented and set as follows:Domain = cloud.priv
5、vi /etc/sysconfig/nfs
# service rpcbind start
# service nfs start
# chkconfig rpcbind on
# chkconfig nfs on
为了验证nfs server 部署成功,可以在hypersior host 进行测试,测试方法:
Log in to the hypervisor host.
Be sure NFS and rpcbind are running. The commands might be different depending on your OS. For example:
# service rpcbind start
# service nfs start
# chkconfig nfs on
# chkconfig rpcbind on
# reboot
Log back in to the hypervisor host and try to mount the /export directories. For example (substitute your own management server name):
# mkdir /primarymount
# mount -t nfs <management-server-name>:/export/primary /primarymount
# umount /primarymount
# mkdir /secondarymount
# mount -t nfs <management-server-name>:/export/secondary /secondarymount
# umount /secondarymount