欢迎来到天天文库
浏览记录
ID:42623547
大小:892.03 KB
页数:9页
时间:2019-09-19
《CentOS6多路径配置》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、配置环境:存储厂家:Infortrend主机系统:CentOS6.0目录1、关闭防火墙步12、彻底关闭SELinux23、开机网卡启动,设置固定IP34、开启SSh45、device-mapper-multipath安装与配置45.1挂载光驱45.2多路径安装:45.3检查安装情况55.5创建多路径文件55.6将多路径软件multipath设置为开机启动65.7修改多路径配置文件:65.8格式化mpathap1和mpathap285.9挂在分区:86、DD测试91、关闭防火墙步关闭命令:serviceiptablesstop永久关闭防火墙:chkconfigiptabl
2、esoff两个命令同时运行,运行完成后查看防火墙关闭状态:serviceiptablesstatus[root@localhost~]#serviceiptablesstopiptables:清除防火墙规则:[确定]iptables:将链设置为政策ACCEPT:filter[确定]iptables:正在卸载模块:[确定][root@localhost~]#chkconfigiptablesoff[root@localhost~]#serviceiptablesstatusiptables:未运行防火墙。[root@localhost~]#2、彻底关闭SELinux[ro
3、ot@localhostetc]#vi/etc/selinux/config#ThisfilecontrolsthestateofSELinuxonthesystem.#SELINUX=cantakeoneofthesethreevalues:#enforcing-SELinuxsecuritypolicyisenforced.#permissive-SELinuxprintswarningsinsteadofenforcing.#disabled-NoSELinuxpolicyisloaded.#SELINUX=enforcing-------------------
4、----------------------------------------------------前面加个#号注释掉它#SELINUXTYPE=cantakeoneofthesetwovalues:#targeted-Targetedprocessesareprotected,#mls-MultiLevelSecurityprotection.SELINUXTYPE=disabled------------------------------------------------------------------------修改为disabled"selinux/
5、config"13L,458Cwritten[root@localhostetc]#保存,退出,重启系统,搞定。3、开机网卡启动,设置固定IP[root@localhost~]#vi/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE="eth0"HWADDR="00:25:90:DA:9C:2F"NM_CONTROLLED="yes"ONBOOT="yes"------------------------------------------修改如下内容为yes就可以开机自动启动了.IPADDR=192.168.1.237PRE
6、FIX=24GETWAY=192.168.1.1DNS1=192.168.1.1DNS2=8.8.8.8~~"/etc/sysconfig/network-scripts/ifcfg-eth0"9L,154Cwritten####设置临时IP[root@localhost~]#ifconfigeth0192.168.1.237broadcast192.168.1.1netmask255.255.255.0[root@localhost~]#ifconfigeth0Linkencap:EthernetHWaddr00:25:90:DA:9C:2Finetaddr:192.
7、168.1.237Bcast:192.168.1.1Mask:255.255.255.0inet6addr:fe80::225:90ff:feda:9c2f/64Scope:LinkUPBROADCASTRUNNINGMULTICASTMTU:1500Metric:1RXpackets:14762errors:0dropped:0overruns:0frame:0TXpackets:1564errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:1000RXbytes:4076
此文档下载收益归作者所有