pvesm displaying strange size of storage

Dec 12, 2024
39
0
6
Hello I noticed a strange thing.
I have a cluster with Proxmox Ve 8.3 .
On one node I have a disk of 1TB /edv/sdb and I partitioned it in 2
/dev/sdb1 563 GB
/dev/sdb2 536 GB

I created a zfs pool and then a zfs filesystem but size is not correct.
I execute the following :
zpool create backup_pool /dev/sdb2 ==> this created zfs pool : backup_pool
zfs create backup_pool/vm_backups ==> this created a dir here : /backup_pool/vm_backups

I am not yet using neither backup_pool nor /backup_pool/vm_backups

When I execute pvesm to see the state of my storage I find something strange.
pvesm
==>
Name Type Status Total Used Available %
back_store_pv01 dir active 100614144 75372060 25242084 74.91%
backup_pool zfspool active 434896896 660 434896236 0.00%

While excuting comand df -h
==>
Filesystem Size Used Avail Use% Mounted on
backup_pool 415G 128K 415G 1% /backup_pool
backup_pool/vm_backups 415G 128K 415G 1% /backup_pool/vm_backups

Well df -h displays correct info pvesm is diplaying some info I am not understanding.
Someone can help me understand.
Is pvesm command wrong ?

Thanks a lot
/Franco
 
I created a zfs pool and then a zfs filesystem but size is not correct.
Probably completely as expected; zpool / zfs overhead - check the web for more info., maybe start here.

pvesm
==>
Name Type Status Total Used Available %
back_store_pv01 dir active 100614144 75372060 25242084 74.91%
backup_pool zfspool active 434896896 660 434896236 0.00%
The backup_pool zfspool that you just created has a Kibibyte size of 434896896 which equals in Gibibytes to 414.75 or when rounded up; 415G
So this is the same as your df -h output:
backup_pool 415G 128K 415G 1% /backup_pool
backup_pool/vm_backups 415G 128K 415G 1% /backup_pool/vm_backups

Good luck.
 
I wasvexpecting that back_store_pv01 had the same size of backup_pool.
I don't see why.

Your post here, concerns the creation of the zpool backup_pool which you made on sdb2 with the above command zpool create backup_pool /dev/sdb2 .

This is no way related to the directory storage (already previously) created by the name of back_store_pv01

You can check for all ZFS storage pools with the zpool list command.