r/bcachefs • u/Jaska001 • 15h ago
Erasure-code
2
Upvotes
I've been searching up online for manuals and tutorials but bcachefs is not that user friendly and straightforward on that front.
So how would I setup RAID-5 type (1-parity) pool for bcache?
I've used google search ai (god forbid) to set it up.
Now here is the command to format the drives, (SSD 1x1TB 1x512GB HDD 6x8TB 3x3TB)
sudo bcachefs format \
--fs_label=pool \
--compression=lz4 \
--erasure_code \
--data_replicas=2 \
--metadata_replicas=2 \
--foreground_target=ssd \
--promote_target=ssd \
--background_target=hdd \
--metadata_target=ssd \
--label=ssd.ssd1 /dev/nvme0n1 \
--label=ssd.ssd2 /dev/nvme1n1 \
--label=hdd.hdd1 /dev/sda \
--label=hdd.hdd2 /dev/sdb \
--label=hdd.hdd3 /dev/sdc \
--label=hdd.hdd4 /dev/sdd \
--label=hdd.hdd5 /dev/sde \
--label=hdd.hdd6 /dev/sdf \
--label=hdd.hdd7 /dev/sdg \
--label=hdd.hdd8 /dev/sdh \
--label=hdd.hdd9 /dev/sdiNow it does mount and shows total space (df -h) as 49T, but free space is at 25T and used space as 1%(61G)
Is this pool mirrored with parity or why it shows 25T only free?
Do I need the replicas options?