The bcache Device Is Abnormal After the Server Is Rebooted
Symptom
After the server is rebooted unexpectedly, the make-bcache command fails to be executed and the bcache.ko file fails to be uninstalled.
Handling Procedure
- Check whether bcache is occupied by applications.
lsmod | grep bcache
- If bcache is being used by applications, check for the following issues:
- Check whether a cache SSD exists.
If a bcache drive has been created, deregister it. For details, see Stopping the bcache SSD.
- Check whether a bcache device exists.
If a bcache device exists and you want to replace the bcache driver, stop the bcache device. For details, see Stopping the bcache Drive.
- Check whether the back-end drive directory /sys/block/sd[$i] contains the bcache directory.
If it contains the bcache directory, run the following command:
echo 1 > /sys/block/sd[$i]/bcache/stop
- Check whether the acache_client service program is running.
systemctl stop acache_client
- Check whether a cache SSD exists.
Parent topic: Troubleshooting