Para escaneos del 2021-07-05
This commit is contained in:
parent
006c207454
commit
b7ed4d40e4
2 changed files with 115 additions and 34 deletions
|
@ -7,44 +7,53 @@ echo $$ > /run/test.pid
|
||||||
|
|
||||||
TEST_CONTAINER=1
|
TEST_CONTAINER=1
|
||||||
export TEST_CONTAINER
|
export TEST_CONTAINER
|
||||||
#scan-netdev
|
|
||||||
#test-memtester
|
# Escaneos iniciales. Solo esc aneo
|
||||||
#if [[ -f $OUTPUT_DIR/memtester.fail ]] ; then
|
scan-netdev
|
||||||
# mkdir -p $SNAPSHOT_D
|
scan-hdd
|
||||||
# cp -af $OUTPUT_DIR/* $SNAPSHOT_D/
|
scan-meminfo
|
||||||
# FAILED_PROCS=`head -1 $OUTPUT_DIR/memtester.fail | sed 's/[^0-9]//g'`
|
lspci > $OUTPUT_DIR/lspci
|
||||||
# echo "${BLD}$FAILED_PROCS${OFF} have ${RED}FAILED${OFF} the memtester test."
|
|
||||||
# echo "All tests have been stopped..."
|
# De aquí en adelante lo dejo comentado para los siguientes escaneos
|
||||||
# echo "${BLD}Please replace the failing memory and run this tests again.${OFF}"
|
##scan-netdev
|
||||||
|
##test-memtester
|
||||||
|
##if [[ -f $OUTPUT_DIR/memtester.fail ]] ; then
|
||||||
|
## mkdir -p $SNAPSHOT_D
|
||||||
|
## cp -af $OUTPUT_DIR/* $SNAPSHOT_D/
|
||||||
|
## FAILED_PROCS=`head -1 $OUTPUT_DIR/memtester.fail | sed 's/[^0-9]//g'`
|
||||||
|
## echo "${BLD}$FAILED_PROCS${OFF} have ${RED}FAILED${OFF} the memtester test."
|
||||||
|
## echo "All tests have been stopped..."
|
||||||
|
## echo "${BLD}Please replace the failing memory and run this tests again.${OFF}"
|
||||||
|
## rm -f /run/test.pid
|
||||||
|
## while [[ 1 ]] ; do
|
||||||
|
## sleep 3600
|
||||||
|
## done
|
||||||
|
##fi
|
||||||
|
#test-badblocks
|
||||||
|
#if [[ -f $OUTPUT_DIR/badblocks.fail ]] ; then
|
||||||
|
# echo "One or more disks have ${RED}FAILED${OFF} the badblocks test."
|
||||||
|
# echo "${BLD}Please replace the failing disks and restart this tests again.{OFF}"
|
||||||
# rm -f /run/test.pid
|
# rm -f /run/test.pid
|
||||||
# while [[ 1 ]] ; do
|
# while [[ 1 ]] ; do
|
||||||
# sleep 3600
|
# sleep 3600
|
||||||
# done
|
# done
|
||||||
#fi
|
#fi
|
||||||
test-badblocks
|
#
|
||||||
if [[ -f $OUTPUT_DIR/badblocks.fail ]] ; then
|
##test-memtester summary
|
||||||
echo "One or more disks have ${RED}FAILED${OFF} the badblocks test."
|
#test-badblocks summary
|
||||||
echo "${BLD}Please replace the failing disks and restart this tests again.{OFF}"
|
#
|
||||||
rm -f /run/test.pid
|
##test-fio
|
||||||
while [[ 1 ]] ; do
|
##test-pmbw
|
||||||
sleep 3600
|
##test-linpack
|
||||||
done
|
#
|
||||||
fi
|
## Take snapshot
|
||||||
|
#mkdir -p $SNAPSHOT_D
|
||||||
|
#cp -af $OUTPUT_DIR/* $SNAPSHOT_D/
|
||||||
|
#
|
||||||
|
#rm -f /run/test.pid
|
||||||
|
#while [[ 1 ]] ; do
|
||||||
|
# sleep 3600
|
||||||
|
#done
|
||||||
|
|
||||||
#test-memtester summary
|
poweroff
|
||||||
test-badblocks summary
|
|
||||||
|
|
||||||
#test-fio
|
|
||||||
#test-pmbw
|
|
||||||
#test-linpack
|
|
||||||
|
|
||||||
# Take snapshot
|
|
||||||
mkdir -p $SNAPSHOT_D
|
|
||||||
cp -af $OUTPUT_DIR/* $SNAPSHOT_D/
|
|
||||||
|
|
||||||
rm -f /run/test.pid
|
|
||||||
while [[ 1 ]] ; do
|
|
||||||
sleep 3600
|
|
||||||
done
|
|
||||||
halt
|
|
||||||
|
|
||||||
|
|
|
@ -24,5 +24,77 @@ echo $$ > /run/batch.pid
|
||||||
#mkdir -p $SNAPSHOT_D
|
#mkdir -p $SNAPSHOT_D
|
||||||
#cp -af $OUTPUT_DIR/* $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
|
rm -f /run/batch.pid
|
||||||
#echo '--'
|
#echo '--'
|
||||||
|
|
Loading…
Reference in a new issue