Hi, I have a Netgate 6100 pfSense appliance with ZFS. Everything is working fine and I know there is nothing wrong here but I am just trying to understand how the space is reported by each of the tools. diskinfo reports 477GB in bytes and the pfSense zpool list is 472GB. Where are the missing 5 GB? If I look gpart then freebsd-zfs is 475GB and freebsd-swap is 2 GB which adds up to 477GB on nvd0 but that's different than zpool list (472GB). Thanks!
Code:
[22.05-RELEASE][root@pfSense.home.arpa]/root: diskinfo -v nvd0
nvd0
512 # sectorsize
512110190592 # mediasize in bytes (477G)
1000215216 # mediasize in sectors
0 # stripesize
0 # stripeoffset
WDC PC SN520 SDAPNUW-512G-1014 # Disk descr.
1939B4800202 # Disk ident.
Yes # TRIM/UNMAP support
0 # Rotation rate in RPM
[22.05-RELEASE][root@pfSense.home.arpa]/root: zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
pfSense 472G 765M 471G - - 0% 0% 1.00x ONLINE -
[22.05-RELEASE][root@pfSense.home.arpa]/root: geom label status
Name Status Components
ufsid/630f6996b58c32c2 N/A mmcsd0p2
label/swap0 N/A mmcsd0p3
gpt/efiboot0 N/A nvd0p1
msdosfs/EFISYS N/A nvd0p1
gpt/gptboot0 N/A nvd0p2
[22.05-RELEASE][root@pfSense.home.arpa]/root: gpart show
=> 40 1000215136 nvd0 GPT (477G)
40 409600 1 efi (200M)
409640 1024 2 freebsd-boot (512K)
410664 984 - free - (492K)
411648 4194304 3 freebsd-swap (2.0G)
4605952 995608576 4 freebsd-zfs (475G)
1000214528 648 - free - (324K)
=> 40 30621616 mmcsd0 GPT (15G)
40 409600 1 efi (200M)
409640 28950527 2 freebsd-ufs (14G)
29360167 1 - free - (512B)
29360168 1261488 3 freebsd-swap (616M)