Bcache is a caching method which can be used to utilize the power and speed of SSDs to speed up HDDs.
Backingdevice has to be a block device (no nfs or other networkfs)
raid is possible
There are multiple methods how the cache is populated:
wirte to disk and cache
write to disk only (writearound)
write only to cache
bcache needs to be enabled because its not a default setting.
zypper in bcache-tools
now there are two files in
to circumvent the process of matching the backing device with the caching device manually its recommended to create them simultaniously.
also make sure you unmounted the partitions you want to associate
now we are ready for creation
make-bache -C /dev/sdXn -B /dev/sdXn
-C is caching device
-B is backingdevice obv..
i case theres an error use
wipefs -a /dev/sdXn (the caching device) to clear the remaining filesystem
now there is a UUID in
/sys/fs/bcache which represents the caching device by its UUID
you can also check in
/proc/partitions if you find your bcache device(its a file => cat)
now you can set a filesystem for your newly created bcache device
mkfs -t btrfs -f /dev/bcache0
you can also use ext4 or xfs etc..
to make changes persistent put
/dev/bcache0 /home fstype defaults 1 2
in your fstab
remount your destination e.g
aaand you are DONE