Drive tester utility.
- debian stretch
- PHP >=7.2
- puppet 4.8
apt-get install git
git clone https://github.com/serverzone/drive-tester.git
./drive-tester/bin/setup.sh
git pull origin master
bin/setup.sh
Utility use configuration from file src/config.local.neon
.
- Copy
src/config.local.neon.template
tosrc/config.local.neon
. - Set up configuration parameters.
- logFilename - Log file name with path.
To enable/disable store processs ouptut to file uncomment/comment FileStorage service and specify store directory.
- App\Event\Subscriber\StoreProcessOutput\FileStorage('%appDir%/../data')
To enable/disable send notification to Mattermost uncomment/comment MattermostWebHook service and specify url value.
- App\Event\Subscriber\SendNotification\MattermostWebHook('https://mattermost.my-company.net/hooks/xxx')
Run with drive autodetection:
bin/console.php drive:test -a
Run for specified drive(s):
bin/console.php drive:test /dev/sdb /dev/sdc
Note: Not run for system drive!