Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Trying to set up SSD as cache drive to extern. HDD /w bcache

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
User avatar
s3a
Posts: 831
Joined: 2008-07-17 22:13
Has thanked: 6 times
Been thanked: 2 times

Trying to set up SSD as cache drive to extern. HDD /w bcache

#1 Post by s3a »

Hi, everyone.

I'm trying to set up an SSD as a cache to my external HDD (which is where my installation of Debian testing/stretch is installed). My installation is using LVM 2. I'm trying to have the SSD cache the entire external HDD, and not just one of the partitions (such as the root or home partitions).

Here are the relevant outputs.

uname -a: (Yes, I'm using the Debian stable kernel with Debian testing.)

Code: Select all

3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) x86_64 GNU/Linux
lsblk:

Code: Select all

NAME                              MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                                 8:0    0 149.1G  0 disk  
sdb                                 8:16   0 111.8G  0 disk  
sdc                                 8:32   0 298.1G  0 disk  
├─sdc1                              8:33   0   243M  0 part  /boot
└─sdc5                              8:37   0 297.8G  0 part  
  └─sdb5_crypt                    254:0    0 297.8G  0 crypt 
    ├─mydebianhostname--vg-root   254:1    0  14.3G  0 lvm   /
    ├─mydebianhostname--vg-swap_1 254:2    0  11.5G  0 lvm   [SWAP]
    └─mydebianhostname--vg-home   254:3    0   267G  0 lvm   /home
sr0                                11:0    1    25M  0 rom
make-bcache -B /dev/sdc:

Code: Select all

Can't open dev /dev/sdc: Device or resource busy
Must I "operate" on this drive via a live session or something, or is the problem something else?

Could someone help me get this to work please?

Any input would be greatly appreciated!
Use Mnemosyne to Study for School!

[-]
Posts: 1
Joined: 2020-01-07 08:08

Re: Trying to set up SSD as cache drive to extern. HDD /w bc

#2 Post by [-] »

https://wiki.archlinux.org/index.php/Bc ... ing_system seems to be relevant, but I couldn't get it to work on an active device.

https://youtu.be/pA4PiZpo6bk says it doesn't make sense to cache the root. Instead just use half of the ssd for root and the other for the cache.

https://youtu.be/iyYoybW4RfI shows how to setup just that on debian based systems.

Post Reply