Contents
Can you install Btrfs without RAID1 in Debian?
All commands need root permissions. Installing RAID1 for BTRFS Debian does not support Btrfs RAID out of the box, so the way to go is to start to install BTRFS without RAID on one of the disk drives, leave the same space on a partition on the other drive(s), and then do
How to enable Btrfs to boot in degraded mode?
To enable btrfs to boot in degraded mode we need to add the ‘ degraded ‘ mount option to two locations. First we need to make sure that Grub can mount the root filesystem and access the kernel.
Why does Btrfs hang in a Linux server?
By default the Linux system boot will hang if any of the devices used by the Btrfs root filesystem is missing. This is not the ideal behavior in a server environment, as we rather have the system boot and continue to operate in a degraded mode, so that services continue to work and admins can access remotely and assess the next steps.
Do you need a boot partition for Btrfs?
During the partitioning phase, create one big partition that fills all of the disk. There is no need to create a /boot partition nor a swap disk. For Grub compatibility reasons we need to create a real partition (eg. sda1, sdb1..) on every disk and not assign the whole disk to Btrfs, even though Btrfs would support that too.
Why does Btrfs degrade on the first boot?
Due to a bug in BTRFS, it degrades nicely on the first boot, but then becomes irreversibly read-only on the second boot. If you get there, the best option seems to be to copy the read-only file system to a fresh and writable file system (with e.g., tar or cpio).
Do you need Btrfs for a serverfirst?
You might want to read The perfect Btrfs setup for a serverfirst, and maybe also Using RAID with btrfs and recovering from broken disksand Using Btrfs with Multiple Devices, and Restoring UEFI Boot Entry after Ubuntu Update. What this page offers over the others is a little better coverage of EFI issues, and how to deal with a failed disk.
Can you run multiple devices with Btrfs at the same time?
Over the last day I switched to multiple devices and threw in a RAID1 level at the same time. For the last years, I have been using btrfs in a completely naive way, simply creating new filesystems, mounting them, moving data over, linking the directories into my home dir, etc etc. It all became a huge mess over time.