Software RAID (mdadm) Qubes Installation Procedure (WIP)

good point. I should mention mdadm vs btrfs vs zfs options at the begining of the procedure.

Unfortunately, I do not know the answer as I have not tried using two thin partitions.

What would the advantage of making two thin pools be as opposed to having just one thin pool?
(and what does having a thin pool with just one volume (the root volume) in it accomplish beyond making it just a static (non-thin) root partition?)

Separate pools are to still have bootable dom0 even if you run out of space in the vm-pool. And root-pool being a thin pool is to allow thin snapshots there (something that wyng-backup and similar tools can utilize).
This is what installer does by default nowadays if you select LVM (default) partitioning.

1 Like

First of all thank you for the guide, it worked well for me!

I’ve tested the idea of not creating the thinpool, the result ist that further on the installation steps you get the error:
[‘/usr/sbin/vcreate’, ‘-l’, ‘90%FREE’, ‘–thinpool’, ‘luks-…’] failed¨
stdout: “”
stderr: “Volume group luks-…” not found Cannot process group luks-…"

Has anybody managed to do it on latest 4.3?

I was able to install 4.3 completely with LVM raid5, no separate mdadm needed. LVM uses mdraid under the hood.

I did the whole configuration within the blivet-gui.

The correct names for the different lvm objects are mandatory. After using them, it worked without any warnings or errrors.

1 Like

This worked for me, using 4.3.2 installer iso, using auto vm-pool creation, with following details:

  • 2 disks with existing GPT partition tables. If full disk is used, then there is surely no problem. For my partitions:
    • 3 unused partition numbers at the beginning of both disks (e.g sda[1-3] not present - not sure if important, needs test/verify if partition numbers are important. I had already sda[4…] partitions)
    • All free space for installation was contiguous at start of disk (not sure if important - needs test/verify if out-of-order partitions is a problem)
  • Follow guide exactly, except:
    • I used existing partition tables. Not important I think but my exact configuration is above.
    • the dom0 thin pool must be named ‘root-pool’, same as with default install. This seems important, because (I think) the post-reboot installer will look for ‘root-pool’ and then try to create vm-pool in the same VG. It does not work with ‘pool00’
    • For default 4.3.2 installer options, the dom0 thin pool must be made limited size, not full size (20 GiB to match current defaults of 4.3.2 installer. More if you want extra space, but normally it will be used only by dom0. 100 GiB for me, for my reasons). There must remain space in qubes_dom0 VG for creation of vm-pool - it will hold templates and qubes after reboot.
  • Do not create vm-pool in Blivet gui
  • This guide creates partitions 1-3 on each disk.
  • The default post-reboot Qubes setup creates thin ‘vm-pool’ with all default qubes.

If anyone can confirm quickly the same success?

If yes, then I think it is useful to add to the guide the method to allow vm-pool creation. It protects from dom0 disk-full problems, and also advantage mentioned by Marmarek above. I will add already the ‘root-pool’ change of name to the main guide.