Hi folks,
I'm running a PVE server for several years now w/o any problems.
Now the disk space for my LVM is running out and the HDDs are running for nearly 5 years now so I decided to replace them by bigger once and simultaneously switch to ZFS because of its advantages.
Because I want to keep the downtime as short as possible I'm looking forward for answers to my three questions about a ZFS related installation, especially the PVE installer before I start the rebuild of the system.
So far I read a couple of sources:
https://pve.proxmox.com/wiki/Storage:_ZFS
https://pve.proxmox.com/wiki/ZFS_on_Linux
https://pve.proxmox.com/wiki/ZFS:_Tips_and_Tricks
https://pve.proxmox.com/wiki/Installation
and these two boooks:
FreeBSD Mastery: ZFS
FreeBSD Mastery: Advanced ZFS
My thre questions are all concerned to the installation of ZFS using the PVE installer.
First let me explain what I want to do:
I have as system with one SSD and three HDDs. I'd like to install PVE in a way that it uses the SDD for root and swap and the HDDs as ZFS RAID-Z1 pool used for the VM disks only.
Have a nice weekend, guys!
Greetinx
moose
I'm running a PVE server for several years now w/o any problems.
Now the disk space for my LVM is running out and the HDDs are running for nearly 5 years now so I decided to replace them by bigger once and simultaneously switch to ZFS because of its advantages.
Because I want to keep the downtime as short as possible I'm looking forward for answers to my three questions about a ZFS related installation, especially the PVE installer before I start the rebuild of the system.
So far I read a couple of sources:
https://pve.proxmox.com/wiki/Storage:_ZFS
https://pve.proxmox.com/wiki/ZFS_on_Linux
https://pve.proxmox.com/wiki/ZFS:_Tips_and_Tricks
https://pve.proxmox.com/wiki/Installation
and these two boooks:
FreeBSD Mastery: ZFS
FreeBSD Mastery: Advanced ZFS
My thre questions are all concerned to the installation of ZFS using the PVE installer.
First let me explain what I want to do:
I have as system with one SSD and three HDDs. I'd like to install PVE in a way that it uses the SDD for root and swap and the HDDs as ZFS RAID-Z1 pool used for the VM disks only.
- My 1st questions is if this can all be done from within the PVE installer or if I do have to install PVE first completely to the SSD with the PVE installer and later then can add the HDDs from PVE GUI as ZFS RAID-Z1 (or by cmd line). But, in this case I think I'd have to remove the data part on my SSD (LVM) created by the PVE installer manually afterwards. I know it's possible to installl root and data on the same ZFS pool but that isn't what I want to do. I want to perform a 'splitted' installation as desribed above.
And in https://pve.proxmox.com/wiki/System_Requirements I read
OS storage: Use ... RAID ... or non-RAID with ZFS
VM storage: For local storage, use ... ZFS and Ceph.
So I think it should be possible to split the OS part and the VM storage part of PVE. But, how to perform this during the installation with PVE installer?
- My second question is related to the calculation of RAM used for/by ZFS.
In https://pve.proxmox.com/wiki/ZFS_on_Linux I read:
ZFS uses 50 % of the host memory for ARC by default. Allocating enough memory for the ARC is crucial for IO performance, so reduce it with caution. As a general rule of thumb, allocate at least 2 GiB Base + 1 GiB/TiB-Storage.
At another place (sadly currently don't know the exact location) I read about 4 GiB Base + 1 GiB/TiB-Storage.
Sadly, I didn't find how the 1 GiB/TiB-Storage were calculated. Let's have an example: 3 disk with 4 TB will give 12 TB. But, if format as RADI-Z1 only 8 TB are available for storing data. And there is a recommendation not to fill it above 80%, i.e. 6.4 TB.
So my question is if the 1 GiB/TiB-Storage are related to the 12 TB, 8 TB or 6.4 TB in this example.
- My third question is related to storing VM's disks on ZFS: is there an additional LVM (layer) build on top of a (one single) ZFS dataset or does PVE use a unique ZFS datasets for each VM disk?
Have a nice weekend, guys!
Greetinx
moose