Stopping bcache
Before disabling intelligent prefetch, stop the cluster service program.
Stopping the bcache RAM Drive
- Unmount the cache drive.
echo 1 > /sys/block/[bcache]/bcache/detach
- Deregister the cache drive.
echo 1 > /sys/fs/bcache/[uuid]/unregister
- Delete the RAM drive.
modprobe -r brd
In the previous command, note the following for [bcache] and [uuid]:
- [bcache] is subject to the content of the /sys/block/ directory. All [bcache] devices in the directory must be processed in the same way.
- Set the [uuid] value in the command based on the content in the /sys/fs/bcache directory. All [uuid] devices in the directory must be processed in the same way.
Stopping the bcache SSD
- Unmount the cache drive.
echo 1 > /sys/block/[bcache]/bcache/detach
- Deregister the cache drive.
echo 1 > /sys/fs/bcache/[uuid]/unregister
In the previous command, note the following for [bcache] and [uuid]:
- [bcache] is subject to the content of the /sys/block/ directory. All [bcache] devices in the directory must be processed in the same way.
- Set the [uuid] value in the command based on the content in the /sys/fs/bcache directory. All [uuid] devices in the directory must be processed in the same way.
Unmounting the Data Drive That Needs to Be Formatted as a bcache Drive
- Unmount the data drive that needs to be formatted as a bcache drive.
umount /data/[data]
Replace the unmount directory [data] with the actual name.
Parent topic: Disabling the Big Data Smart Prefetch