Code:
Linux
--------------------------------------------
| /data1 | /data2 | /data3 |
--------------------------------------------
| XFS | XFS | XFS | <--- mkfs.xfs
-------------------------------------------
| LVM Volume 1 | LVM Volume 2 | LVM Volume 3 | <--- lvcreate
-------------------------------------------
| LVM Volume Group | <--- pvcreate & vgcreate
-------------------------------------------
| RAID Volume | <--- mdadm
-------------------------------------------
| GPT | GPT | GPT | GPT | <--- parted
-------------------------------------------
| /dev/sda | /dev/sdb | /dev/sdc | /dev/sdd |
--------------------------------------------
DragonFly BSD HAMMER 1
--------------------------------------------
| | /data1 | /data2 |
-------------------------------------------
| | /pfs/@@-1:01 | /pfs/@@-1:02 | <-- hammer pfs-master
-------------------------------------------
| | HAMMER 1 | <-- newfs_hammer -L DATA
-------------------------------------------
| | /dev/ar0s1a | <-- disklable64 (partitions)
-------------------------------------------
| /dev/ar0s0 | /dev/ar0s1 | <-- gpt (slices)
-------------------------------------------
| Hardware RAID |
-------------------------------------------
| /dev/da0 | /dev/da1 | /dev/da2 | /dev/da3 |
--------------------------------------------
FreeBSD ZFS
-------------------------------------------
| /data1 | /data2 |
-------------------------------------------
| dataset1 | dataset2 | <-- zfs create -o compress=lz4
-------------------------------------------
| ZFS Storage Pool | <-- zpool create
-------------------------------------------
| GPT | GPT | GPT | GPT | <-- gpart
-------------------------------------------
| /dev/da0 | /dev/da1 | /dev/da2 | /dev/da3 |
--------------------------------------------
Note that GPT layer for ZFS can be skipped. It is merely put there to protect a user from having problems with the HDDs of slightly unequal sizes as well to make easier to identify the block devices (whole disks or partitions on the disk), so one doesn't get the ambiguity caused by the OS renumbering devices depending on which devices were found in hardware (which makes da0 into da1)? Labeling part can be accomplished with
glabel
from GEOM framework but YMMV as both GEOM and ZFS store matadata at the end of HDD.Here is the original thread with my post
https://marc.info/?l=dragonfly-users&m=150741646224774&w=2
Could be useful for people like me who don't know much.