ZFS and containers vs VMs

bruceg

Member
Aug 29, 2018
13
0
6
70
I have used ZFS on spinners for several years and we strictly run VMs. We are deploying some new servers using SSDs for the first time, using raidz. I was told by someone that containers are the better choice. He posited that a VM is essentially a BLOB that sits in the same spot and it constantly being written to and thereby shortening the lifespan of the SSD because of the inordinate number of writes in that spot. He suggests that a container allows ZFS to allocate/manage storage and avoids this situation. Can someone confirm if this is so? I'm not opposed to using containers but want to know if I should.
 
Last edited:
All SSDs got wear leveling and there is nothing like fixed positions inside the SSDs. It will shuffle all data across the disk so every NAND cell should have the same amount of wear. And even if there would be no wear leveling shuffeling the data around, like with HDDs, because of ZFS there is no fixed place for a filesystem or virtual block device, because ZFS is a copy-on-write filesystem. Because it is CoW nothing will be overwritten, but added at the end of the journal. So every edit of a file will cause a write somewhere else.
 
All SSDs got wear leveling and there is nothing like fixed positions inside the SSDs. It will shuffle all data across the disk so every NAND cell should have the same amount of wear. And even if there would be no wear leveling shuffeling the data around, like with HDDs, because of ZFS there is no fixed place for a filesystem or virtual block device, because ZFS is a copy-on-write filesystem. Because it is CoW nothing will be overwritten, but added at the end of the journal. So every edit of a file will cause a write somewhere else.
Thank you for replying. I guess I'll stay with VMs
 

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!