資源描述:
《CentOS6多路徑配置》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫(kù)。
1、配置環(huán)境:存儲(chǔ)廠家:Infortrend主機(jī)系統(tǒng):CentOS6.0目錄1、關(guān)閉防火墻步12、徹底關(guān)閉SELinux23、開機(jī)網(wǎng)卡啟動(dòng),設(shè)置固定IP34、開啟SSh45、device-mapper-multipath安裝與配置45.1掛載光驅(qū)45.2多路徑安裝:45.3檢查安裝情況55.5創(chuàng)建多路徑文件55.6將多路徑軟件multipath設(shè)置為開機(jī)啟動(dòng)65.7修改多路徑配置文件:65.8格式化mpathap1和mpathap285.9掛在分區(qū):86、DD測(cè)試91、關(guān)閉防火墻步關(guān)閉命令:serviceiptablesstop永久關(guān)閉防火墻:chkconfigiptabl
2、esoff兩個(gè)命令同時(shí)運(yùn)行,運(yùn)行完成后查看防火墻關(guān)閉狀態(tài):serviceiptablesstatus[root@localhost~]#serviceiptablesstopiptables:清除防火墻規(guī)則:[確定]iptables:將鏈設(shè)置為政策ACCEPT:filter[確定]iptables:正在卸載模塊:[確定][root@localhost~]#chkconfigiptablesoff[root@localhost~]#serviceiptablesstatusiptables:未運(yùn)行防火墻。[root@localhost~]#2、徹底關(guān)閉SELinux[ro
3、ot@localhostetc]#vi/etc/selinux/config#ThisfilecontrolsthestateofSELinuxonthesystem.#SELINUX=cantakeoneofthesethreevalues:#enforcing-SELinuxsecuritypolicyisenforced.#permissive-SELinuxprintswarningsinsteadofenforcing.#disabled-NoSELinuxpolicyisloaded.#SELINUX=enforcing-------------------
4、----------------------------------------------------前面加個(gè)#號(hào)注釋掉它#SELINUXTYPE=cantakeoneofthesetwovalues:#targeted-Targetedprocessesareprotected,#mls-MultiLevelSecurityprotection.SELINUXTYPE=disabled------------------------------------------------------------------------修改為disabled"selinux/
5、config"13L,458Cwritten[root@localhostetc]#保存,退出,重啟系統(tǒng),搞定。3、開機(jī)網(wǎng)卡啟動(dòng),設(shè)置固定IP[root@localhost~]#vi/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE="eth0"HWADDR="00:25:90:DA:9C:2F"NM_CONTROLLED="yes"ONBOOT="yes"------------------------------------------修改如下內(nèi)容為yes就可以開機(jī)自動(dòng)啟動(dòng)了.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####設(shè)置臨時(shí)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