Hi!
I'm planning an installation of a Proxmox VE node for some testing.
I want to use two NVMe drives for the boot/OS and I would also like to put swap on them.
(VMs will be placed on other disks using ZFS)
Since placing the swap on a ZFS pools seems to be not a great idea, I'm looking for the best possibile solution.
I tried to search for documentation on this topic on the forum, but I mainly found posts relating to a complete installation of lab nodes on a single disk or a mirror (including VM image storage), but not on an installation with dedicated disks and these consideration on swap partition/file.
There will be 2 drives for the purpose and I have to make a software mirror.
The system must be able to boot even without one of the drives.
If it's worth it, I want to use ZFS for the boot/OS (excluding swap).
So I see these possibilities:
- ext4 (or xfs) and a separate swap partition on top of mdraid SW raid1 (taking the whole drives)
- ext4 (or xfs) and a swap file on top of mdraid SW raid1 (taking the whole drives)
- ZFS mirror on top of a partition on both drives (instead of the whole drive) + a swap partition on top of mdraid SW raid1 (built on top of another partition created per-drive on the free space)
- More suggestions…
A more detailed explanation of the last possibilities:
/dev/sda and /dev/sda: NVMe drives on which I'll create two partitions
- /dev/sda1 + /dev/sdb1 > ZFS mirror with boot/OS
- /dev/sda2 + /dev/sdb2 > mdadm software raid 1 > single mirrored swap partition
For all choices I have to go for a debian base installation + PVE, since none of the possibilities are supported by the default installer.
What about GRUB for booting on these setups? (assuming a failed drive)
Thanks in advance!
Edoardo
I'm planning an installation of a Proxmox VE node for some testing.
I want to use two NVMe drives for the boot/OS and I would also like to put swap on them.
(VMs will be placed on other disks using ZFS)
Since placing the swap on a ZFS pools seems to be not a great idea, I'm looking for the best possibile solution.
I tried to search for documentation on this topic on the forum, but I mainly found posts relating to a complete installation of lab nodes on a single disk or a mirror (including VM image storage), but not on an installation with dedicated disks and these consideration on swap partition/file.
There will be 2 drives for the purpose and I have to make a software mirror.
The system must be able to boot even without one of the drives.
If it's worth it, I want to use ZFS for the boot/OS (excluding swap).
So I see these possibilities:
- ext4 (or xfs) and a separate swap partition on top of mdraid SW raid1 (taking the whole drives)
- ext4 (or xfs) and a swap file on top of mdraid SW raid1 (taking the whole drives)
- ZFS mirror on top of a partition on both drives (instead of the whole drive) + a swap partition on top of mdraid SW raid1 (built on top of another partition created per-drive on the free space)
- More suggestions…
A more detailed explanation of the last possibilities:
/dev/sda and /dev/sda: NVMe drives on which I'll create two partitions
- /dev/sda1 + /dev/sdb1 > ZFS mirror with boot/OS
- /dev/sda2 + /dev/sdb2 > mdadm software raid 1 > single mirrored swap partition
For all choices I have to go for a debian base installation + PVE, since none of the possibilities are supported by the default installer.
What about GRUB for booting on these setups? (assuming a failed drive)
Thanks in advance!
Edoardo