How to use QCOW2 & ZVOL vs RAW Images??

modem

New Member
May 15, 2023
6
0
1
I'm sure this has been answered somewhere on the forums, but after much digging I've yet to find the exact "how" to answer this question.

All of my developmental / sandboxing of ProxMox up to this point has been using the native RAW images on my ProxMox (using ZFS RAIDz2) server. I do know that RAW is only available because that's a block level image that runs on top of ZFS natively. However, in my reading, it appears the consensus is that QCOW2 is better than RAW feature wise, and some also throw ZVOLS into the mix as well.

How do I successfully create QCOW2 or ZVOLS on ZFS RaidZ2 servers? My best understanding seems to create a dataset on the ZFS drives which is block level, then within the dataset, create QCOW2 images there for the VM's. Is that correct? Performance hits seem to be minimal at best.

What about ZVOLS? I've yet to figure out how to create and use those on my server.

FYI, this is still a sandbox server and NOT a live deployment. I'm using this to learn before doing a live deployment.
 
My best understanding seems to create a dataset on the ZFS drives which is block level, then within the dataset, create QCOW2 images there for the VM's. Is that correct?
What you describe is a ZFS dataset and therefore a filesystem, which needs to be added as a directory to PVE in order to create QCOW2 on top of it. QCOW2 has only ONE advantage over a ZFS volume, which is a block device and that is the tree-like snapshot support. ZFS does only support linear snapshot support. You can mimmik the tree-like behaviour manually, yet that is a lot of manual work.

If you already have ZFS, you normally don't need qcow2, which is a cow (copy-on-write) filesystem on top of another cow filesystem, which has a lot of performance penalties.

All of my developmental / sandboxing of ProxMox up to this point has been using the native RAW images on my ProxMox (using ZFS RAIDz2) server. I do know that RAW is only available because that's a block level image that runs on top of ZFS natively.
So, you already have the optimal way with ZFS volumes. This is the default is you install PVE with ZFS.
 
  • Like
Reactions: Johannes S

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!