ZFS Mirror Setup

MH_MUC

Well-Known Member
May 24, 2019
67
6
48
37
Hi everyone. I want to switch to Proxmox and just tried the installation with the ZFS support of Proxmox as zfs-raid1in a virtual box before trying it on the real system.
I have two 2TB drives.

Here is my question:
I have a local storage with 1,8 TB
and a local-zfs with 1,8 TB now.

This can't be true. It must be some kind of a shared stroage or the mirror is not working. What is my mistake?

root@maxtest:~# zpool status
pool: rpool
state: ONLINE
scan: none requested
config:

NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ata-VBOX_HARDDISK_VB99a9d930-ad7e0611-part3 ONLINE 0 0 0
ata-VBOX_HARDDISK_VB1f33d794-221d15e9-part3 ONLINE 0 0 0

errors: No known data errors

root@maxtest:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1.8T 0 disk
├─sda1 8:1 0 1007K 0 part
├─sda2 8:2 0 512M 0 part
└─sda3 8:3 0 1.8T 0 part
sdb 8:16 0 1.8T 0 disk
├─sdb1 8:17 0 1007K 0 part
├─sdb2 8:18 0 512M 0 part
└─sdb3 8:19 0 1.8T 0 part
sr0 11:0 1 1024M 0 ro
 
The local storage is a default directory storage located in /var/lib/vz that can, for example, be used to store ISOs.

Everything is as it should be.
The local-zfs storage is using the ZFS pool directly and can be used for guest disks.
 
I understand it so far, but how can I have two storages which have 1,8 TB each on a raid with only 2TB total space?
 
That comes down to how ZFS counts the free space. Since your root volume is on the ZFS pool it does see the same amount of free space, which is the free space of the whole pool.

IF you start filling up either storage, the free space shown will go down for both.
 

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!