centos6.7 mutlipath install script
#!/bin/bash
if [ `id -g` != 0 ] ;then
echo -e "\033[31m Please use root user\033[0m"
exit 1
fi
rpm -qa |grep multipath >/var/log/mapper.log 2>&1
if [ $? = 0 ];then
echo -e "\033[31mERROR : Please check multipath is already installed \033[0m "
exit 7
fi
rpm -ivh --test device-mapper-multipath-0.4.9-87.el6.x86_64.rpm device-mapper-multipath-libs-0.4.9-87.el6.x86_64.rpm >>/var/log/mapper.log 2>&1
if [ $? = 0 ];then
rpm -ivh device-mapper-multipath-0.4.9-87.el6.x86_64.rpm device-mapper-multipath-libs-0.4.9-87.el6.x86_64.rpm >>/var/log/mapper.log 2>&1
else
echo -e "\033[31m ERROR : Test install is not successful , Please view the mapper log /var/log/mapper.log \033[0m"
exit 8
fi
if [ $? = 0 ];then
chkconfig multipathd on &&
service multipathd start >>/var/log/mapper.log 2>&1 &&
cp /usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf /etc/multipath.conf >>/var/log/mapper.log 2>&1
multipath -F >>/var/log/mapper.log 2>&1 && multipath -v2 >>/var/log/mapper.log 2>&1 && multipath -ll >>/var/log/mapper.log 2>&1
else
echo -e "\n \033[31m ERROR : Install Error,Please Check!! or view the mapper.log /var/log/mapper.log \033[0m \n"
exit 9
fi
centos6.7 mutlipath install script的更多相关文章
- Cloudinsight Agent install script
#!/bin/bash # Cloudinsight Agent install script. set -e logfile="ci-agent-install.log" gis ...
- webpacke install vue application 报错 Failed at the phantomjs-prebuilt@2.1.14 install script
刚刚在网上下了个开源的项目: https://github.com/ing670/webappkiller 执行npm install 报错:npm ERR! Failed at the phanto ...
- centos6 pxe minimal install
# 01-78-2b-cb-69-10-f3 default menu.c32 prompt 0 timeout 100 LABEL centos-6 MENU DEFAULT MENU LABEL ...
- php7 install script
./configure --prefix=/home/admin/local/php7 --with-gd=/home/admin/local/libgd-2.1.1/ --with-jpeg-dir ...
- centos6 yum 安装 install c++4.8 gcc4.8
cd /etc/yum.repos.d wget http://people.centos.org/tru/devtools-1.1/devtools-1.1.repo yum --enablerep ...
- ! Failed at the chromedriver@2.35.0 install script.
npm install 过程中报错 解决方法 运行 npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/d ...
- Centos7 PXE Server Install Script
#安装前配置好centos和epel yum源 #网卡ip和localip一致 localip="192.168.88.200" eth_name='eth0' dnsmasq_i ...
- npm 安装vue 报错Failed at the chromedriver@2.46.0 install script 'node install.js'
原因一般是下载源被封了,我们连接淘宝的下载源下载: npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/d ...
- npm 安装vue 报错Failed at the chromedriver@2.34.0 install script 'node install.js'
提示版本不够,后来百度到,在你的vue项目包下执行: npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/ ...
随机推荐
- linux运维自动化shell脚本小工具
linux运维shell 脚本小工具,如要分享此文章,请注明文章出处,以下脚本仅供参考,若放置在服务器上出错,后果请自负 1.检测cpu剩余百分比 #!/bin/bash #Inspect CPU # ...
- SSO
- Hiho 1232 北京网络赛 F Couple Trees
给两颗标号从1...n的树,保证标号小的点一定在上面.每次询问A树上的x点,和B树上的y点同时向上走,最近的相遇点和x,y到这个点的距离. 比赛的时候想用倍增LCA做,但写渣了....后来看到题解是主 ...
- Java数据结构与算法之---求两个数的最大公约数(欧几里得算法)
一个简单的小算法来获取两个数的最大公约数, public class Test { public static void main(String[] args) { long result = gcd ...
- iOS的生命周期
iOS应用程序一般都是由自己编写的代码和系统框架组成.系统框架提供了一些基本的infrastructure给APP来运行,而开发者则自己编写代码定制APP的外观和行为,了解iOS infrastruc ...
- c++中的<<函义
1.一个是左移运算:x = 4<< 2; 2.输出流运算:cout <<x;//X的值输出流到设备中.
- FileItem类的常用方法
FileItem类的常用方法: 1. boolean isFormField() isFormField方法用于判断FileItem类对象封装的数据是一个普通文本表单字段,还是一个文件表单字段,如果 ...
- java读取输入流
java读取输入流两种 private static byte[] readStream(InputStream in){ if(in==null){ return null; } byte[] bu ...
- Python安装时报缺少DLL的解决办法
准备开始学习Python,但是刚准备环境搭建时就遇到了下面的错误: 仔细的看了看,说是缺少DLL. 对于这个问题的解决办法: 方法一: 1. 在安装包上点右键以管理员身份运行2. C:\Users\用 ...
- 28-React state提升、组件组合或继承
Lifting State Up state提升 对于在React应用程序中更改的任何数据,应该有一个单一的数据源.通常,都是将state添加到需要渲染的组件.如果其他组件也需要它,您可以将其提升到最 ...