I have a load of disks to check for bad sectors and intend on using badblocks.
I have a server with 12 drive slots and would like to test all 12 at the same time.
I have a script but it is running through them one at a time, I'd like all 12 to run in parallel.
Here's the script at present:
Code: Select all
#!/bin/bash
if [ -f badblocks.out ];
then
rm -f badblocks.out
fi
touch badblocks.out
for drv in {b..k};
do
echo "SCANNING /dev/sd$drv">> badblocks.out
badblocks -v /dev/sd$drv >> badblocks.out
done
Thanks in advance.