ktsaou Tux's lil' helper
Joined: 10 Jul 2003 Posts: 80
|
Posted: Sun Jun 17, 2018 8:26 pm Post subject: how to load bcache over raid before fsck? |
|
|
Hi all,
I have a non-system filesystem that is:
BTRFS
-> on a BCACHE (with 512GB SSD for caching - though this is irrelevant)
-> on a MD RAID-1
-> on 2x 8TB HDDs
The problem is that the boot process does not "see this filesystem". So the system boots with this disk unmounted. fsck fails with unknown UUID.
So, I have added an rc.local script to mount it, but this is very annoying since several services that depend on this filesystem fail to start too.
I understand that somehow the boot process is not loading the bcache module on time.
This is an openrc system and I used genkernel to generate initramfs (yes, the bcache module is in initramfs - though I don't know how to force loading it before calling openrc).
Any ideas how to fix?
btw, netdata (https://my-netdata.io) monitors bcache (it provides statistics of bcache hit ratio, cache disk utilization, writeback, etc). |
|