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

Kernels & Hardware, configuring network, installing services

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

Postby s3a » 2015-09-22 23:10

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!
User avatar
s3a
 
Posts: 800
Joined: 2008-07-17 22:13

Return to System configuration

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable