How to install Proxmox VE 4 as mirrored ZFS ?

bitblue.lab

Member
Oct 7, 2015
75
0
6
How to install Proxmox VE 4 as mirrored ZFS ? I have two 2x2TB drives and 2x300GB SSD Drives, I want to install the proxmox on mirrored 20GB space in SSD as ZFS then leave other part of drives to create them later as storage in ZFS with 50GB Zil from Mirrored partition from SSD drives then other part of ssd une small partition for read and other part to use for personal things.
 
during the install, you can select ZFS pool type RAID1. and for the SSD using as cache or zil are added later via command line. You can gpt your ssd into different partition sda1 sda2 sda3... example are below

Code:
NAME                                            STATE     READ WRITE CKSUM
       rpool                                         ONLINE       0     0     0
          mirror-0                                   ONLINE       0     0     0
            /dev/sdc                                   ONLINE       0     0     0
            /dev/sdd                                  ONLINE       0     0     0
       logs
          mirror-1                                      ONLINE       0     0     0
            /dev/sda1                                 ONLINE       0     0     0
            /dev/sdb1                                 ONLINE       0     0     0
        cache
          /dev/sda2                                   ONLINE       0     0     0
          /dev/sdb2                                   ONLINE       0     0     0
 
Last edited:
during the install, you can select ZFS pool type RAID1. and for the SSD using as cache or zil are added later via command line. You can gpt your ssd into different partition sda1 sda2 sda3... example are below

Code:
NAME                                            STATE     READ WRITE CKSUM
       rpool                                         ONLINE       0     0     0
          mirror-0                                   ONLINE       0     0     0
            /dev/sdc                                   ONLINE       0     0     0
            /dev/sdd                                  ONLINE       0     0     0
       logs
          mirror-1                                      ONLINE       0     0     0
            /dev/sda1                                 ONLINE       0     0     0
            /dev/sdb1                                 ONLINE       0     0     0
        cache
          /dev/sda2                                   ONLINE       0     0     0
          /dev/sdb2                                   ONLINE       0     0     0

So its possible to put specific partitions as ZIL and Read cache ?
 
zpool add rpool cache /dev/sda3
zpool add rpool cache /dev/sdb3
then your cache will be in a raid0 mode but please make sure both partition are the same size

zpool add rpool log mirror /dev/sda4/ /dev/sdb4
then your log will be in raid1 mode but please make sure both partition are the same size

zpool add rpool log /dev/sda5
then you are just using one of the partition on ssd for log

Please keep in mind, log device is for write and cache is for read. so you really should allocate an entire drive for log or otherwise you are destroy the purpose of add ssd to get better performance. Still many people use /dev/sda1 for zil and /dev/sda2 for cache
 
Thank you for making clear everything...

Is there any dissadvantage if Proxmox root file system is in ext4 format raid 1 ? Because I cannot access server remotely with proxmox v4 iso so the only option that I can choose for root file system is ext3 ext4 and xfs.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!