bbgermany,
That works! Now I get my bcache0 device.
The thing that remains to be seen, is if it will persist through reboots. Getting somewhere though...It just seems odd that it didn't get created automatically like I'm used to, via the make-bcache command.
EDIT: It does not... The Arch wiki says "If the /dev/bcache0 device now exists, type exit and continue booting. You will need to fix your initcpio to ensure devices are registered before mounting the root device. " and I'm not sure what that entails yet. I'm sure I can hack around this but it would be nice to have it set up properly.
EDIT2: I finally found this in the official bcache docs (not that I've spent a ton of time on this):
To make bcache devices known to the kernel, echo them to /sys/fs/bcache/register:
echo /dev/sdb > /sys/fs/bcache/register
echo /dev/sdc > /sys/fs/bcache/register
To register your bcache devices automatically, you could add something like
this to an init script:
echo /dev/sd* > /sys/fs/bcache/register_quiet
The
Howto forum post mentions making an init script but I misread it and thought it was for when you want to use the bcache device as your root partition. So I overlooked it. I'm going to go with that solution for now to deal with reboots,
but would still love to know if something else is wrong with my system such that /dev/bcache0 wasn't created after running the initial setup commands (make-bcache), like all the tutorials/wikis I've read seem to suggest should have happened. The lack of an init script being generated is probably directly due to Gentoo not being a carebear distro
EDIT3: I think this will be my last edit for now... I made the following init script based on another one in my /etc/init.d:
Code: Select all
#!/sbin/openrc-run
depend() {
before checkfs fsck
after modules
}
start() {
echo /dev/sda1 > /sys/fs/bcache/register
echo /dev/md127 > /sys/fs/bcache/register
return 0
}
stop() {
return 0
}
I saved it to /etc/init.d/bcache and then ran:
Code: Select all
cd /etc/init.d/
chmod +x bcache
rc-update add bcache boot
Many huge thanks tor the replies!! <3