On this page you will find some useful commands to troubleshoot ESOS. This list is not complete and may become larger in the future.
Log management
Check the boot print (log)
# dmesg
Watch content of files with a refresh rate of 2 seconds
# watch cat /sys/block/bcache0/bcache/dirty_data
Performance management
Check load
# top
# iostat -x
System file checks and repairs
# fdisk -l | less
Check file systems
# e2fsck
# fsck.xfs /dev/bcache0
Repair file systems
# xfs_repair /dev/bcache0
Cache management
Bcache
Flush (dirty) cache of the caching device to the backing device:
# echo 0 > /sys/block/bcache0/bcache/writeback_percent
When cache is clean you may want to set writeback_percent back to its default value 10:
# echo 10 > /sys/block/bcache0/bcache/writeback_percent
Switch cache mode between writethrough and writeback:
# echo writethrough > /sys/block/bcache0/bcache/cache_mode
# echo writeback > /sys/block/bcache0/bcache/cache_mode
For SSD cache performance testing disable the default 4 MB sequential_cutoff by executing:
# echo 0 > /sys/block/bcache0/bcache/sequential_cutoff
After benchmarking set the value back to:
# echo 4M > /sys/block/bcache0/bcache/sequential_cutoff