Version
Cb Response 4.2.1, 5.x
Topic
How to run FIOs (Flexible Input/Output benchmarking tool) to test disk performance
Steps
Follow these steps on the requested nodes or run the attached script:
Install FIOs:
Note: If CbISO is used FIOs is included in the install
Determine the Datastore Root Directory in your environment:
grep DatastoreRootDir /etc/cb/cb.conf | awk -F'=' '{print $2}' |
Note: The Default Directory is /var/cb/data
Edit FIO config file
Open FIO config file:
vi /usr/share/cb/diag/basic_rw_randseq_tests.fio |
Modify to use the directory you would like to test:
[global] directory= DatastoreRootDir |
Note: Replace DatastoreRootDir with location found in step 2
Example:
[global] directory=/var/cb/data |
Verify there is enough disk space available (At Least 16GB) in the specified directory to perform test:
Warning: At least 16 GB of disk space must be free to run the test
- Stop Services
Warning: If services are not stopped when running the test, the results will not be accurate since Cb Response will also be using the disk
- Standalone:
service cb-enterprise stop |
- Cluster (Run on Master Only):
/usr/share/cb/cbcluster stop |
- Run FIOs:
fio /usr/share/cb/diag/basic_rw_randseq_tests.fio --output fio_results_<NodeID>_<Date>.txt |
Warning: If you abort the run using Ctrl-C or FIO fails during the run you will need to ensure you remove all FIOs files from DatastoreRootDir:
random-reads.1.0
sequential-reads.2.0
random-writes.3.0
sequential-writes.4.0
Remove FIO’s read and write files:
rm -f DatastoreRootDir/random-* rm -f DatastoreRootDir/sequential-* |
Note: Replace DatastoreRootDir with with location found in step 2
Start services
Standalone:
service cb-enterprise start |
Cluster (Run on Master Only):
/usr/share/cb/cbcluster start |
Upload fio_results.txt to Alliance:
/usr/share/cb/cbpost fio_results_<NodeID>_<Date>.txt |