Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BTRFS RAID1C34 Support #726

Closed
gabotronix opened this issue May 27, 2020 · 2 comments
Closed

BTRFS RAID1C34 Support #726

gabotronix opened this issue May 27, 2020 · 2 comments

Comments

@gabotronix
Copy link

Description of issue/question

I'm using BTRFS RAID1 on both of my secondary disks. I recently learned that newer versions of BTRFS now support RAID1c3 and RAID1c4. I would like to take advantage of this in the near future, when I add a 3rd disk.

If I understand it correctly, this is not yet supported in the latest OMV 5. Can support for BTRFS RAID1c3 and c4 be added in a future OMV 5 update?

Here are some references on it:

Debian Wiki - BTRFS

Linux ≥ 5.5 and btrfs-progs ≥ 5.4 finally bring support for checksum algorithms that are stronger than CRC32C. xxHash, SHA256, and BLAKE2 are supported with kernel+btrfs-progs newer than these. Additionally, with these releases raid1c3 and raid1c4 profiles have finally been introduced. These new profiles have enhanced data redundancy. Where the well-tested raid1 profile supports two copies on N devices, raid1c3 supports three copies, and raid1c4 supports four. When a failing disk needs to be replaced it is now possible to add a third disk, rebalance to raid1c3, then drop the failing disk from the array. As the degraded chunk problem has not yet been solved in linux-5.5 (AFAICT, please feel free to update this page when it's fixed) an additional rebalance to raid1 is necessary, which rewrites all data and metadata a second time.

BTRFS Wiki

  • btrfs-progs v5.4 (Dec 2019)
  • support new hash algorithms (kernel 5.5):
  • mkfs.btrfs and btrfs-convert with --csum, crc32c, xxhash, sha256, blake2
  • mkfs: support new raid1c3 and raid1c4 block group profiles (kernel 5.5)

Versions report

OMV: 5.5.0-1 (Usul)
uname -mrs : Linux 5.5.0-0.bpo.2-amd64 x86_64
btrfs --version : btrfs-progs: v4.20.1

@ryecoaaron
Copy link
Contributor

ryecoaaron commented May 27, 2020

This would require btrfs-progs 5.4+ to at least be in buster-backports and it is not (5.2 is). So, this will have to wait for Debian to put it there.

@votdev
Copy link
Member

votdev commented May 27, 2020

You'll get the features if Debian will make this package version available in Debian 10 (stable). Note, OMV does not support backports. You can try to install the package manually, but without warranty. Using backports in OMV may result in unexpected behavior of the system.

Due the fact that Debian never updates a package to a new major version you will see this feature officially starting with Debian 11 (OMV6).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants