Hello
I want to ask what is the reasoning behind creating partitions on Disks when creating a ZFS pool?
There are no valid reasons as far as I know.
All other implementations of ZFS in OSs like FreeBSD, Oracle, Linux, SmartOS, Illumos do not force partitions on Disks.
To me it's much cleaner to work with ZFS without partitions.
Well Proxmox does make it easier working with ZFS with partitions by automatically creating partitions. Everything works fine in ZFS but with partitions.
The docs state that the reason is that some devices are different in size while claiming to be of one size.
If you try to add those this is what happens anyway:
You can't add those anyway and Proxmox doesn't really calculate the size of the smaller disk so that it can create two same size partitions.
There's no restrictions in creating a stripe with different sized disks.
ZFS uses a ZFS label to tell which disks belong to which ZFS pool, it does't need partitions.
On root pools partitions are necesarry because of boot partitions.
But on storage pools, why is there a 8 megabytes partition? Does it really help?
If the Disks are different in size ZFS won't let them be in a mirror vdev anyway. And if you cut off 8MB from each disk they'll still be different in size only the difference will be 8MB smaller.
So we have:
A Disk of 7782 GB (7782000 MB)
A Disk of 7987 GB (7987000 MB)
Then those become 7781992 and 7986992 when we cut off 8MB. That's about 205GB difference in those disks and that will not be added to a mirror vdev.
Excuse the rant. I don't like partitions.
I want to ask what is the reasoning behind creating partitions on Disks when creating a ZFS pool?
There are no valid reasons as far as I know.
All other implementations of ZFS in OSs like FreeBSD, Oracle, Linux, SmartOS, Illumos do not force partitions on Disks.
To me it's much cleaner to work with ZFS without partitions.
Well Proxmox does make it easier working with ZFS with partitions by automatically creating partitions. Everything works fine in ZFS but with partitions.
The docs state that the reason is that some devices are different in size while claiming to be of one size.
If you try to add those this is what happens anyway:
Code:
invalid vdev specification
use '-f' to override the following errors:
mirror contains devices of different sizes
You can't add those anyway and Proxmox doesn't really calculate the size of the smaller disk so that it can create two same size partitions.
There's no restrictions in creating a stripe with different sized disks.
ZFS uses a ZFS label to tell which disks belong to which ZFS pool, it does't need partitions.
On root pools partitions are necesarry because of boot partitions.
But on storage pools, why is there a 8 megabytes partition? Does it really help?
Code:
Device Start End Sectors Size Type
/dev/vdd1 2048 1048557567 1048555520 500G Solaris /usr & Apple ZFS
/dev/vdd9 1048557568 1048573951 16384 8M Solaris reserved 1
If the Disks are different in size ZFS won't let them be in a mirror vdev anyway. And if you cut off 8MB from each disk they'll still be different in size only the difference will be 8MB smaller.
So we have:
A Disk of 7782 GB (7782000 MB)
A Disk of 7987 GB (7987000 MB)
Then those become 7781992 and 7986992 when we cut off 8MB. That's about 205GB difference in those disks and that will not be added to a mirror vdev.
Excuse the rant. I don't like partitions.
Last edited: