#!/bin/bash source scan-dmidecode source test-variables #rm -f /output/hwtests/*/netdev/*.ethtool #source scan-netdev echo $$ > /run/batch.pid #scan-bonding #echo -n "setup-netdev... " #setup-netdev #sleep 1 #jobs #disown #stat-bonding out > $OUTPUT_DIR/stat-bonding.pre.1.out #test-bonding #stat-bonding out > $OUTPUT_DIR/stat-bonding.post.1.out #screen -dmS test-fio test-fio-sequential # Take snapshot #mkdir -p $SNAPSHOT_D #cp -af $OUTPUT_DIR/* $SNAPSHOT_D/ # 2017-02-23 migracion de espacio de direcciones #vgscan #vgchange -ay rhel #mkdir /mnt/sysimage #mount /dev/rhel/root /mnt/sysimage #touch /mnt/sysimage/.autorelabel #mkdir /mnt/sysimage/bak #cp -avf /mnt/sysimage/etc/hosts /mnt/sysimage/bak/ #cp -avf /mnt/sysimage/etc/sysconfig/network-scripts /mnt/sysimage/bak/ #cd /mnt/sysimage/etc/sysconfig/network-scripts #cp -af /mnt/sysimage/bak/network-scripts/ifcfg-* ./ # #cat > ifcfg-bond0 << EOF #DEVICE=bond0 #BONDING_OPTS='mode=1 miimon=100' #PREFIX=22 #GATEWAY=172.30.75.254 #ONBOOT=yes #MTU=1500 #NM_CONTROLLED=no #IPV6INIT=no #EOF # #cat ifcfg-enp2s0f1 \ # | grep IPADDR >> ifcfg-bond0 # #cat > ifcfg-enp2s0f0 << EOF #DEVICE=enp2s0f0 #Type=Ethernet #BOOTPROTO=none #ONBOOT=yes #MASTER=bond0 #SLAVE=yes #NM_CONTROLLED=no #ETHTOOL_OPTS="autoneg off speed 1000 duplex full" #EOF # #cat > ifcfg-enp2s0f1 << EOF #DEVICE=enp2s0f1 #MASTER=bond0 #SLAVE=yes #ONBOOT=yes #MTU=1500 #NM_CONTROLLED=no #IPV6INIT=no #ETHTOOL_OPTS="autoneg off speed 1000 duplex full" #EOF # #for CFG in ifcfg-* ; do # sed -i 's/PREFIX=24/PREFIX=22/' $CFG # sed -i 's/PREFIX=.24./PREFIX=22/' $CFG # sed -i 's/255.255.255.0/255.255.252.0/' $CFG # sed -i 's/10.129.146.254/10.129.159.254/' $CFG # sed -i 's/10.129.146/10.129.156/' $CFG # sed -i 's/10.129.145.254/10.129.155.254/' $CFG # sed -i 's/10.129.145/10.129.152/' $CFG # sed -i 's/10.129.144.254/10.129.147.254/' $CFG # sed -i 's/10.129.144/10.129.144/' $CFG # sed -i 's/172.30.73.254/172.30.83.254/' $CFG # sed -i 's/172.30.73/172.30.80/' $CFG # sed -i 's/172.30.72.254/172.30.79.254/' $CFG # sed -i 's/172.30.72/172.30.76/' $CFG # sed -i 's/172.30.71.254/172.30.75.254/' $CFG # sed -i 's/172.30.71/172.30.72/' $CFG # sed -i '/IPADDR/ s/\.64/\.151/' $CFG # sed -i '/IPADDR/ s/\.65/\.152/' $CFG # sed -i '/IPADDR/ s/\.66/\.153/' $CFG # sed -i '/IPADDR/ s/\.67/\.154/' $CFG # #done rm -f /run/batch.pid #echo '--'