Rate This Document
Findability
Accuracy
Completeness
Readability

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

  1. Check whether bcache is occupied by applications.
    lsmod | grep bcache
  2. If bcache is being used by applications, check for the following issues:
    1. Check whether a cache SSD exists.

      If a bcache drive has been created, deregister it. For details, see Stopping the bcache SSD.

    2. 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.

    3. 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
    4. Check whether the acache_client service program is running.

      If it is running, stop it.

      systemctl stop acache_client