2 drives btrfs raid1 with one ssd
Hi all,
I would like to use a bcache for btrfs filesystem residing on two identical disk as raid1 using btrfs' raid (without soft/hard raid).
Is it possible? I am migrating from a different mirror setup and have to create btrfs in "degraded" mode and then add the second drive/bcache.
I would like to use the same ssd/ssd partition for caching both drives/mirror. Is this doable?
Did someone encounter problems with bcache build as module? I can not stop the current caching device.
Thank you
pavol
Quoted 3 lines · Pavol Cupka
I would like to use a bcache for btrfs filesystem residing on two identical disk as raid1 using btrfs' raid (without soft/hard raid).
Is it possible?
if I understood you correctly, no.
Quoted 1 line
I would like to use the same ssd/ssd partition for caching both drives/mirror. Is this doable?
You will have to build the btrfs 'raid' on top of two bcache devices. If the caching device for both devices in the same SSD (partitioned) what's the point? Assuming Btrfs has a similar feature set to MD's Raid1 write-mostly, you could accelerate the one side, and run the other half of the mirror without acceleration. Otherwise I would just use MD's Raid1 and be done with it. Put btrfs/ext4/xfs on top as you like.
Does your intended workload really benefit from putting an SSD into the mix?
I was thinking of simulating L2ARC like design from ZFS for btrfs. that's why I wanted one ssd partition taking care of both mirrored drives, mostly for read cache.
thanks for your reply.
pavol
Quoted 24 lines · Matthew Patton
Quoted 4 lines · Pavol Cupka
I would like to use a bcache for btrfs filesystem residing on two identical disk as raid1 using btrfs' raid (without soft/hard raid).
Is it possible?
if I understood you correctly, no.
Quoted 2 lines
I would like to use the same ssd/ssd partition for caching both drives/mirror. Is this doable?
You will have to build the btrfs 'raid' on top of two bcache devices. If the caching device for both devices in the same SSD (partitioned) what's the point? Assuming Btrfs has a similar feature set to MD's Raid1 write-mostly, you could accelerate the one side, and run the other half of the mirror without acceleration. Otherwise I would just use MD's Raid1 and be done with it. Put btrfs/ext4/xfs on top as you like.
Does your intended workload really benefit from putting an SSD into the mix?
A message that is not in the archive (sent off-list or not yet received): [email protected]
could you do it without mdraid? directly using the btrfs raid1 settings?
thanks
Quoted 4 lines · matthew patton
Quoted 1 line
I was thinking of simulating L2ARC like design from ZFS for btrfs.
construct one leg of the MD Raid1 from a bCache device. Construct the other leg from regular disk and put it into write-mostly. Put BTRfs on top. Now you have L2ARC.