LVM vs ZFS for a dedicated SSD for VM/CT disk images

logui

Member
Feb 22, 2024
84
15
8
This is for a home lab, I have a small boot SSD configured with ext4/LVM (proxmox, ISOs, CT Templates), I have a second SSD that will be used only for VM/CT disk images, I am not planning on adding/removing disks in the future, I want something simple, I am inclined to use LVM for the second SSD, any thoughts regarding pros/cons vs using ZFS? Many of the ZFS features I am not going to use.

Thank you
 
Many of the ZFS features I am not going to use.
May be you do not plan for it, but ZFS...:
  • ...assures to deliver the same data when you read it as was written: for this a checksum is calculated when you write the data and only if the same checksum is re-calculated on read the data is okay to deliver - most other filesystems just do not do this kind of check and do deliver damaged data without an error message (with a _very_ low rate like once every few years)
  • ... allows cheap snapshots while most other filesystems do not have this capability: LVM-thick does not have this capability and LVM-thin has other drawbacks as do directory storages for .qcow-files
  • ... allows for transparent and cheap compression - you just can store more data on the same disk :)
  • ... scales! You can add an additional vdev at any time in the future
  • ... can combine old rotating rust and speedy SSD/NVME by introducing a “Special Device”; this allows use cases which are impossible to create otherwise
  • ... ...
>>> ---------- inserted five weeks later:
---------- <<<

All of the above comes with a price tag: ZFS writes more data than other filesystems. For every single write-command extensive metadata and ZIL operations are required. This (and the slow-down for sync-writes) is the reason ZFS is not recommended to be used with cheap SSD (“consumer”-class vs. “Enterprise”-class with PLP).

Personally I prefer and do use ZFS wherever I can. Ymmv.

What feature will you not use that LVM hasn't?
You really don't like no double negative? ;-)
 
Last edited:
  • Like
Reactions: news