Skip to content
Snippets Groups Projects
Commit 131d433d authored by Eric Cano's avatar Eric Cano
Browse files

Fixed test script: removed initial installation of config files.

Made pre-run cleanup more drastic
Synthax fix
parent d4d08a70
Branches
Tags
No related merge requests found
......@@ -2,21 +2,21 @@
echo "## Attempting to stop mhvtl"
service mhvtl stop
echo "### Waiting 5 seconds to let the durst settle"
echo "### Waiting 5 seconds to let the dust settle"
sleep 5
echo "## Remonving old mhvtl configuration"
rm -rf /etc/mhvtl
echo "### Stopping leftover processes"
killall vtltape
killall vtllibrary
rmmod mhvtl
echo "## Removing old mhvtl tapes"
rm -rf /opt/mhvtl
echo "## Re-creting /opt/mhvtl"
mkdir /opt/mhvtl
chown vtl.vtl /opt/mhvtl
echo "## Populating mhvtl configuration"
mkdir /etc/mhvtl
cp /root/etc-mhvtl/{mhvtl.conf,library_contents.10,library_contents.30,device.conf} /etc/mhvtl
echo "## Starting mhvtl."
service mhvtl start
......@@ -32,7 +32,7 @@ MC_DEVS=`for i in ${SCSI_DEVS}; do if [ -e $i/type ] && grep -q 8 $i/type; then
echo ${MC_DEVS}
for i in $MC_DEVS; do
for t in `seq \`mtx -f /dev/$i status | grep Transfer | wc -l\` `
for t in `seq \`mtx -f /dev/$i status | grep Transfer | wc -l\` `; do
mtx -f /dev/$i load $(($t + 1)) $t
done
mtx -f /dev/$i status | grep Transfer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment