I tried following a bunch of guides, they work as far as that i can get a paired raid 1 system, i get a uuid of that and put it into fstab. but there’s nothing for me to mount after that, tried with gnome disks but nothing, just says unknown. but the guide says it should fine and usable…
i do not understand. is there a idiotproof way of doing raid 1 with btrfs disks? what has worked for you?
To add further, i www.axllent.org/docs/btrfs-raid1/#disqus_thread used this, and the drive i get is only the size of one drive but not both combined drives. I’m not sure what to do. And for that matter it doesn’t copy to the other, because the other isn’t even visible.
when you use something like sudo mkfs.btrfs -m raid1 -d raid1 -L "BTRFS_RAID1" /dev/sda /dev/sdb to create a raid1 in btrfs, then you can just mount sda OR sdb like a normal disk and btrfs will automatically detect the raid and behave like it should.
and the reason you only have the capacity of one disk in your raid1 is that raid1 is a mirror, if you want the capacity of both disks you need to create a raid0.
Oh, so what i put on one disk does get copied to the other? But how do i know that the other has a copy of it?
correct, in raid1 data gets copied to all disks, so that if one disk dies (in a two disk raid1) you still have all of your data. in a raid0, if one disk dies, all data is lost. with btrfs, you’d preferably create a raid10, but you need at least 4 disks to do that.
you can check raid status with btrfs filesystem usage , btrfs scrub status and btrfs device stats . but if you let it scrub once a month then you should be good.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.