摘要: #!/bin/bash ip=$1 if [ -f "/etc/sysconfig/network-scripts/ifcfg-bond1" ] then break else #ip=`ip a | grep -E "192.|10." | grep -v ":" | awk '{ print $2 }' | awk -F'/' '{ print $1 }'` gw=`echo $ip | ... 阅读全文
posted @ 2017-09-14 11:41 BigZero 阅读(1197) 评论(0) 推荐(0) 编辑
摘要: #!bin/bash #mkfs.ext4 mkdir /data/disk{1,2,3,4,5,6} yes | mkfs.ext4 /dev/sdb yes | mkfs.ext4 /dev/sdc yes | mkfs.ext4 /dev/sdd yes | mkfs.ext4 /dev/sde yes | mkfs.ext4 /dev/sdf yes | mkfs.ext4 /dev/s... 阅读全文
posted @ 2017-09-14 11:38 BigZero 阅读(865) 评论(0) 推荐(0) 编辑