Proposed road map for 1 SSD & 2 HDDs set up in btrfs as RAID1

Hi All Now it is time to see if I have learned anything. 1Tb SSD and 2 x 2Tb SATA HDDs, motherboard is a UEFI board but I have never used UEFI with this board. Ubuntu desktop obviously ignored it. Using Gparted partition the SSD thus: 512MB EFI Partition /dev//sda1, formatted FAT32, primary (boot?) 8 Gb allocated to SWAP rest of the disk _*/*__dev/_sda2, primary, formatted btrfs mounted as / Partition the first HDD /dev/sdb1primary, formatted btrfs , mounted as /data Second HDD same size leave completely blank Remove the gparted disk and insert the Ubuntu Server disk commence the install Install the system and add the GUI using tasksel After the system is installed add the second HDD withtwo lines in the terminal sudo btrfs device add -f /dev/sdc1 /data sudo btrfs balance start -dconvert=raid1 -mconvert=raid1 /data Enjoy the set up. Please add any corrections. The reason I choose to use the g-parted step is because the ubuntu partitioner was difficult to use.

On Mon, Feb 25, 2019 at 06:44:57AM +1100, Andrew Greig wrote:
Now it is time to see if I have learned anything.
1Tb SSD and 2 x 2Tb SATA HDDs, motherboard is a UEFI board but I have never used UEFI with this board.
Ubuntu desktop obviously ignored it.
Using Gparted partition the SSD thus:
512MB EFI Partition /dev//sda1, formatted FAT32, primary (boot?) 8 Gb allocated to SWAP
rest of the disk _*/*__dev/_sda2, primary, formatted btrfs mounted as /
Looks good except that if you have an EFI partition (sda1) and a swap partition (sda2) then the btrfs root partition will be sda3, not sda2.
Partition the first HDD /dev/sdb1primary, formatted btrfs , mounted as /data
Second HDD same size leave completely blank
The second 2TB HDD (sdc) needs to be partitioned exactly the same as the first (sdb). I don't think gparted will let you create a partition without formatting it (as a filesystem or as swap or whatever), so just let it format the partition and then run the btrfs commands as below.
After the system is installed add the second HDD withtwo lines in the terminal
sudo btrfs device add -f /dev/sdc1 /data sudo btrfs balance start -dconvert=raid1 -mconvert=raid1 /data
You can do this after the system is installed, or from a root shell while booted on gparted. It doesn't matter either way, although it's probably better/easier to do it from gparted (there'll only be the one /data fs for the ubuntu installer to detect so you won't end up with /data0 and /data1 again) craig -- craig sanders <cas@taz.net.au>
participants (2)
-
Andrew Greig
-
Craig Sanders