Questions tagged [bcache]

Bcache is a Linux block layer cache that uses SSDs to cache other block devices.

37 questions
55
votes
4 answers

How do I install and use flashcache/bcache to cache HDD to SSD?

I want to know if there is anyone who has tried installing and running their kernel built with flashcache or bcache for SSD caching? How did you manage to do it?
kapad
  • 1,082
23
votes
2 answers

What are the advantages/disadvantages of different SSD to HDD cacheing options (dm-cache, flashcashe...)?

There appear to be various different technologies available to use an SSD to act as a cache for HHDs. The ones I know of: dm-cache (by Redhat - in the 3.9 Kernel, so it should be in ubuntu 13.10) Flashcache (developed and used by facebook) Bcache…
Uli
  • 5,196
14
votes
3 answers

How to setup bcache?

I've tried to set up bcache in Ubuntu 14.04 with a fresh install and an empty /home partition (/dev/sdb2) as a backing device. I have a running system on my SSD and I'd like to use its /dev/sda2 partition to cache my /home . I've always managed to…
11
votes
2 answers

How to install Ubuntu with both disk encryption AND SSD caching

I'm using Ubuntu in a corporate environment, and our security policy states that we have to use full disk encryption. I've also got a laptop with a 32GB mSATA SSD and 750GB of spinning rust. My current installation uses bcache to leverage this,…
Adrian
  • 5,256
9
votes
1 answer

Got a new SSD, don't want to wear it out but I still want to use some of it to store data files together with the old HDD

I bought a new 250GB Samsung 850 EVO SSD for my laptop that I want to use as primary storage device, together with the old but still functioning 250GB 7500 RPM HDD that I put in the former DVD bay with an adapter caddy. Right now the HDD has only…
Fabio A.
  • 201
6
votes
1 answer

bcache for Intel Optane on ubuntu

I would like to use the Intel Optane memory (16GB) with ubuntu 18.10. My Laptop has an HDD for the OS and i thought i can use bcache for this purpose to speed up the experience. Can someone help me how to set it up? The computer has only ubuntu…
Enjam
  • 131
4
votes
1 answer

Can I use bcache without losing any data first?

My Ubuntu 17.04 (64 bit) box has: 1 x SSD (used for the OS) 2 x HDD (used for data, such as /home and backups etc.) 8GB RAM If I shrink my SSD and create an empty partition for caching my HDD(s), is it possible to setup bcache without losing any…
3
votes
2 answers

Many "UBSAN: array-index-out-of-bounds" about bcache at boot time (kernel 6.5.0)

I installed a btrfs filesystem relying on two devices (for btrfs raid1) that are mappers (cryptsetup luksOpen) of bcache devices (NVME + HDD). This btrfs filesystem seems to work perfectly. However, at every boot, I have a lot of (section of)…
Fade
  • 31
3
votes
0 answers

I lost my data on bcache after setting the mode to writethrough

This is my first attempt to ask a question on StackExchange so please expect a not so well organized question. I had 1 512G SSD and 1 4T HDD set up with bcache on Ubuntu 20.4 to be used for nextcloud data directory storage, I was feeling like the io…
3
votes
0 answers

Fstrim ruins bcache's performance

Since Ubuntu 18.04 two machines I use, one desktop and one notebook, both started to present an occasional really slow boot and a really slow performance for everything after that boot. Both use a small SSD and a bigger HD through bcache. Except for…
2
votes
1 answer

What happens in bcache if the cache ssd dies?

I'm creating a NAS and I've been doing a lot of research on the different SSD caches. I have a 120gb ssd which is more than enough for the OS so I want to use most of it as a cache for the md raid5 array. Before I commit to this setup I want to know…
cowmix
  • 71
2
votes
2 answers

Recovering disk with corrupted superblock

I am trying to recover a disk that has corrupted superblock but I cant seem to unmount the disk at all. I used bcache for the three extra drive after a reboot one of the drive stopped working. so I removed the SSD cache drive and still cant seem to…
bran
  • 629
2
votes
1 answer

"Device not found or ignored" when creating physical volume with bcache

I'm attempting to create an LVM volume on a bcache device, but getting "device not found or recognized", despite lsblk clearly showing the device, and bcache state showing "clean". OS is Ubuntu 13.10 using a default kernel and bcache-tools come from…
2
votes
3 answers

Reccomended options for mounting /dev/bcache0 as /home

I have set up /dev/sda3 on my SSD to cache /dev/sdb3 on my HDD as /dev/bcache0 using bcache in Ubuntu 13.10 (kernel 3.11.0-14-generic). I have formatted it as ext4. I currently mount / (on my SSD) and /home (bcache) using these fstab options # /…
2
votes
3 answers

Does bcache require a fresh installation?

Because my notebook has a SSD and a HDD, I want use the SSD as cache just like Rapid Storage in windows. I find bcache offers this functionality so I decide to try it. I got bcache and bcache-tools via git then followed the guide…
user106561
  • 21
  • 1
  • 2
1
2 3