配置环境:存储厂家:Infortrend主机系统:CentOS6.0目录1、关闭防火墙步.............................................................................................22、彻底关闭SELinux.......................................................................................23、开机网卡启动,设置固定IP......................................................................34、开启SSh......................................................................................................45、device-mapper-multipath安装与配置.......................................................45.1挂载光驱.............................................................................................................................................................45.2多路径安装:.....................................................................................................................................................45.3检查安装情况.....................................................................................................................................................55.5创建多路径文件.................................................................................................................................................55.6将多路径软件multipath设置为开机启动.......................................................................................................65.7修改多路径配置文件:.....................................................................................................................................65.8格式化mpathap1和mpathap2........................................................................................................................85.9挂在分区:.........................................................................................................................................................96、DD测试......................................................................................................91、关闭防火墙步关闭命令:serviceiptablesstop永久关闭防火墙:chkconfigiptablesoff两个命令同时运行,运行完成后查看防火墙关闭状态:serviceiptablesstatus[root@localhost~]#serviceiptablesstopiptables:清除防火墙规则:[确定]iptables:将链设置为政策ACCEPT:filter[确定]iptables:正在卸载模块:[确定][root@localhost~]#chkconfigiptablesoff[root@localhost~]#serviceiptablesstatusiptables:未运行防火墙。[root@localhost~]#2、彻底关闭SELinux[root@localhostetc]#vi/etc/selinux/config#ThisfilecontrolsthestateofSELinuxonthesystem.#SELINUX=cantakeoneofthesethreevalues:#enforcing-SELinuxsecuritypolicyisenforced.#permissive-SELinuxprintswarningsinsteadofenforcing.#disabled-NoSELinuxpolicyisloaded.#SELINUX=enforcing-----------------------------------------------------------------------前面加个#号注释掉它#SELINUXTYPE=cantakeoneofthesetwovalues:#targeted-Targetedprocessesareprotected,#mls-MultiLevelSecurityprotection.SELINUXTYPE=disabled------------------------------------------------------------------------修改为disabledselinux/config13L,458Cwritten[root@localhostetc]#保存,退出,重启系统,搞定。3、开机网卡启动,设置固定IP[root@localhost~]#vi/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0HWADDR=00:25:90:DA:9C:2FNM_CONTROLLED=yesONBOOT=yes------------------------------------------修改如下内容为yes就可以开机自动启动了.IPADDR=192.168.1.237PREFIX=24GETWAY=192.168.1.1DNS1=192.168.1.1DNS2=8.8.8.8~~/etc/sysconfig/network-scripts/ifcfg-eth09L,154Cwritten####设置临时IP[root@localhost~]#ifconfigeth0192.168.1.237broadcast192.168.1.1netmask255.255.255.0[root@localhost~]#ifconfigeth0Linkencap:EthernetHWaddr00:25:90:DA:9C:2Finetaddr:192.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:4076998(3.8MiB)TXbytes:166320(162.4KiB)Memory:dfb00000-dfb20000loLinkencap:LocalLoopbackinetaddr:127.0.0.1Mask:255.0.0.0inet6addr:::1/128Scope:HostUPLOOPBACKRUNNINGMTU:16436Metric:1RXpackets:48errors:0dropped:0overruns:0frame:0TXpackets:48errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:0RXbytes:3968(3.8KiB)TXbytes:3968(3.8KiB)4、开启SSh打开终端命令。输入rpm-qa|grepssh查找当前系统是否已经安装安装好了之后,就开启ssh服务。Ssh服务一般叫做SSHD命令行输入servicesshdstart可以启动5、device-mapper-multipath安装与配置5.1挂载光驱:mount/dev/cdrom/media5.2多路径安装:[root@localhostCentOS_6.0_Final]#lsdevice-mapper-1.02.53-8.el6.x86_64.rpmdevice-mapper-event-1.02.53-8.el6.x86_64.rpmdevice-mapper-event-libs-1.02.53-8.el6.x86_64.rpmdevice-mapper-libs-1.02.53-8.el6.x86_64.rpmdevice-mapper-multipath-0.4.9-31.el6.x86_64.rpmdevice-mapper-multipath-libs-0.4.9-31.el6.x86_64.rpmkpartx-0.4.9-31.el6.x86_64.rpm[root@localhostCentOS_6.0_Final]#rpm-ivhkpartx-0.4.9-31.el6.x86_64.rpmwarning:kpartx-0.4.9-31.el6.x86_64.rpm:HeaderV3RSA/SHA256Signature,keyIDc105b9de:NOKEYPreparing...(###########################################[100%]packagekpartx-0.4.9-31.el6.x86_64isalreadyinstalled[root@localhostCentOS_6.0_Final]#rpm-ivhdevice-mapper-1.02.53-8.el6.x86_64.rpmwarning:device-mapper-1.02.53-8.el6.x86_64.rpm:HeaderV3RSA/SHA256Signature,keyIDc105b9de:NOKEYPreparing...(###########################################[100%]packagedevice-mapper-1.02.53-8.el6.x86_64isalreadyinst