ZFS pool on mdadm raid0

lucad

New Member
Jan 25, 2022
14
1
3
35
I am wondering if it is possible to create a zfs pool on a raid0 mdadm, I love the performance of the latter and the functionality of the former with proxmox.
 

Dunuin

Famous Member
Jun 30, 2020
8,080
2,017
149
Germany
Makes no sense. First ZFS needs direct access to the disk without any abstraction layer in between for data integrity (see the OpenZFS documentation on HW raid...with SW raid ontop it should be the same). Secondly adding more unneccessary storage/filesystem/virtualization layers adds more overhead. So a ZFS ontop of a mdadm would be slower than just a plain ZFS. So you should get a slower and less reliable storage.
 
Last edited:

lucad

New Member
Jan 25, 2022
14
1
3
35
Ok.. Does the following command works like a raid0 using ZFS with two drives ?
Code:
zpool create -f -o ashift=12 <pool-name> <device1> <device2>
 

Dunuin

Famous Member
Jun 30, 2020
8,080
2,017
149
Germany
Its not all about performance. I for example would never use any kind of raid0 in a server except for maybe temporary data where loosing it isn't a problem. And as a enterprise product ZFS is designed for reliability, data integritiy and alot of great features like replication, snapshots, block level compression, deduplication and so on. This all adds alot of complexity and overhead so ZFS will never be as fast as a good HW raid or even a way more simple mdadm SW raid.
You can do thing as fast as possible risking failures or slowly and carefully double checking everything. ZFS is more the latter type.

Its the same like with overclocking. Overclocking will make your computer faster but you shouldn't overclock your server. A server should be as reliable as possible and not as fast as possible. Overclocking it for more performance would also increase the chance of hardware errors or even failures so no serious admin would do such a thing.
 
Last edited:
  • Like
Reactions: LnxBil

lucad

New Member
Jan 25, 2022
14
1
3
35
Thanks for the answer. I've tried some w/r test and overall is acceptable using a zfs raid0 instead of mdadm. I'll finally use zfs, I love its semplicity to work with and I appreciate the integration with proxmox.
 

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 your own in 60 seconds.

Buy now!