TrueNAS Enterprise ZFS Storage Pool Provisioning, iSCSI Target Configuration & NFS Datastore Export
Before you begin
- Applies to:TrueNAS Enterprise ZFS provisioning for iSCSI or NFS virtualization storage.
- Where to start:Start in the TrueNAS management console and inventory the intended disks, hosts, and network paths.
- What you need:Have administrative access, dedicated disks, the approved pool and export design, and verified backups before provisioning.
Guide tools
Scope, Storage Architecture & Topology
This standard operating procedure specifies the design, configuration, and provisioning of high-availability TrueNAS Enterprise ZFS storage arrays supporting virtualization clusters (VMware vSphere & Proxmox VE).
ZFS VDEV Architecture Baseline
| Workload | Recommended ZFS Topology | Volblocksize / Recordsize | SLOG (ZIL) Requirement | L2ARC Cache |
|---|---|---|---|---|
| VMware / Proxmox iSCSI (Block) | Striped Mirrors (RAID-10) | 16K (VMFS6) or 64K (KVM) | Mandatory (Enterprise NVMe with PLP) | Optional (Read-heavy) |
| File Shares & Archives (NFS/SMB) | RAIDZ2 (Dual Parity) | 128K or 1M (Large files) | Optional (if sync writes enforced) | Beneficial |
| Database Engines (SQL / Postgres) | Striped Mirrors | 8K or 16K | Mandatory (Ultra-low latency PLP NVMe) | High RAM priority |
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â Dual Redundant Storage Fabric â â Fabric A: VLAN 90 (10.10.90.0/24) - Jumbo Frames MTU 9000 â â Fabric B: VLAN 92 (10.10.92.0/24) - Jumbo Frames MTU 9000 â âââââââââââââââââŦââââââââââââââââââââââââââââââââŦââââââââââââââââ â â âââââââââââââââââ´ââââââââââââââââââââââââââââââââ´ââââââââââââââââ â TrueNAS Enterprise Storage Array â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â â ZFS Pool: "tank-fast-vms" (NVMe / SAS SSD Mirror VDEVs) â â â â ââ Dedicated SLOG: Dual Kioxia/Intel NVMe (PLP Mirror) â â â â ââ Zvol: "esxi-lun01" (Block iSCSI MPIO via Fabric A/B)â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââPre-Flight Verification & Hardware Sizing
- ECC RAM: Verify storage controller has minimum 64 GB ECC RAM (ZFS rule of thumb: 1 GB RAM per 1 TB raw storage + ARC sizing).
- HBA Controller: Ensure SAS controllers operate strictly in IT-Mode (Host Bus Adapter); hardware RAID controller passthrough is strictly prohibited.
- Power-Loss Protection (PLP): Ensure all write-cache SSDs (SLOG / ZIL) possess hardware Supercapacitors / PLP to guarantee data consistency during catastrophic power cuts.
- Dual Interfaces: Confirm
ens1f0is mapped to Storage Fabric A (10.10.90.20/24) andens1f1to Storage Fabric B (10.10.92.20/24), both configured with MTU 9000.
ZFS Storage Pool Provisioning
Storage Pool Creation (CLI / Midclt)
ZFS PoolExecute via TrueNAS Shell or API to create a resilient, high-IOPS pool using striped mirror pairs, a mirrored write cache (SLOG), and an active hot spare.
# Verify raw disk serials and non-RAID layoutgeom disk list # (CORE) or lsblk -d -o NAME,MODEL,SERIAL,SIZE # (SCALE)
# Create Pool 'tank-fast-vms' with 2-way mirror pairs, dedicated SLOG mirror, and hot sparezpool create -f -o ashift=12 tank-fast-vms \ mirror /dev/disk/by-id/nvme-SAMSUNG_MZQL2960HCJR-00A07_S6...1 /dev/disk/by-id/nvme-SAMSUNG_MZQL2960HCJR-00A07_S6...2 \ mirror /dev/disk/by-id/nvme-SAMSUNG_MZQL2960HCJR-00A07_S6...3 /dev/disk/by-id/nvme-SAMSUNG_MZQL2960HCJR-00A07_S6...4 \ log mirror /dev/disk/by-id/nvme-INTEL_MEMPEK1W016GA_PH...1 /dev/disk/by-id/nvme-INTEL_MEMPEK1W016GA_PH...2 \ spare /dev/disk/by-id/nvme-SAMSUNG_MZQL2960HCJR-00A07_S6...5Optimal Pool Property Tuning
TuningApply enterprise properties: enable LZ4 compression to reduce IOPS amplification, disable access-time tracking, and enforce standard sync semantics.
# Enable LZ4 compression (CPU-friendly, reduces write amplification)zfs set compression=lz4 tank-fast-vms
# Disable access time updates to prevent write penaltyzfs set atime=off tank-fast-vms
# Set sync behavior (standard ensures POSIX sync requests are committed to SLOG)zfs set sync=standard tank-fast-vmsiSCSI Target & MPIO Block Storage Provisioning
Create Zvol for Block Target
Block ZvolCreate a 2 TB Zvol for VMware ESXi VMFS datastore provisioning with a 16 KB block size matching hypervisor filesystem allocation units.
zfs create -V 2T -b 16k tank-fast-vms/esxi-prod-lun01Configure iSCSI Portals, Targets & Extents
iSCSI SANConfigure dual IP fabric listeners, register authorized hypervisor IQNs, and map the Zvol extent with VAAI primitives enabled.
# 1. Portal Configuration: Listen on Fabric A (10.10.90.20:3260) & Fabric B (10.10.92.20:3260)# 2. Initiator Group: Define authorized ESXi Host IQNs:# - iqn.1998-01.com.vmware:esxi-host01-abcdef01# - iqn.1998-01.com.vmware:esxi-host02-abcdef02# 3. Target: iqn.2026-10.internal.corp:storage.esxi-prod-target (Alias: ESXi-SAN-Target)# 4. Extent: extent-esxi-prod-lun01 (Points to tank-fast-vms/esxi-prod-lun01, VAAI primitives enabled)NFS v4.1 Datastore Export (Proxmox / VMware)
Create NFS Dataset & Configure Export Rules
NFS ExportProvision a ZFS dataset optimized for shared ISOs and VM templates, apply export ACLs restricted to hypervisor subnets, and verify mounts.
# 1. Create dataset optimized for large fileszfs create -o recordsize=128k -o compression=zstd tank-fast-vms/nfs-vm-shared
# 2. Verify export status from Linux shellshowmount -e 10.10.90.20Enterprise Data Protection: Automated Snapshots & Remote Replication
Configure Automated Snapshot Schedules
SnapshotsPrevent ransomware and operator error by enforcing layered snapshot schedules (15-minute operational, daily, and monthly retention).
# Create automated snapshot task via CLImidclt call pool.snapshottask.create '{ "dataset": "tank-fast-vms", "recursive": true, "lifetime_value": 30, "lifetime_unit": "DAY", "schedule": {"minute": "0", "hour": "0", "dom": "*", "month": "*", "dow": "*"}}'Offsite ZFS Stream Replication
DR ReplicationConfigure incremental asynchronous replication streams to transmit changed blocks directly to the secondary offsite disaster recovery array.
# Stream incremental differences to offsite DR storagezfs send -i tank-fast-vms@snap-yesterday tank-fast-vms@snap-today | ssh [email protected] zfs recv dr-pool/backup-vmsHypervisor MPIO & Datastore Verification
ESXi iSCSI Multipathing Configuration
MPIOConfigure dynamic discovery on ESXi across both IP fabrics and enforce Round Robin path selection (VMW_PSP_RR) with an IOPS limit of 1 for active load balancing.
# Discover target on both IP fabricsesxcli iscsi adapter discovery sendtarget add --address 10.10.90.20:3260 --adapter vmhba64esxcli iscsi adapter discovery sendtarget add --address 10.10.92.20:3260 --adapter vmhba64
# Rescan storage adaptersesxcli storage core adapter rescan --adapter vmhba64
# Set Multipath Policy to Round Robin (VMW_PSP_RR) with IOPS=1for device in $(esxcli storage nmp device list | grep -E '^naa\.' | awk '{print $1}'); do esxcli storage nmp device set --device $device --psp VMW_PSP_RR esxcli storage nmp psp roundrobin deviceconfig set --device $device --type "iops" --iops 1doneRollback, Emergency LUN Restoration & Storage Sign-Off
Rapid Snapshot Rollback & Disk Replacement
Rollback & RepairIn the event of datastore corruption or physical disk failure, execute instant snapshot rollback or trigger online ZFS mirror resilvering.
# Scenario A: Instant ZFS Snapshot Rollback (Unmount datastore first!)zfs rollback -r tank-fast-vms/esxi-prod-lun01@snap-2026-10-15-1000
# Scenario B: Replace failed mirror drivezpool status tank-fast-vmszpool replace tank-fast-vms /dev/disk/by-id/old-faulted-drive /dev/disk/by-id/new-healthy-drivezpool status tank-fast-vms -vOperational Audit Trail & Storage Sign-Off
Audit Sign-offValidate all VDEV layout parameters, MPIO connectivity across redundant fabrics, and automated snapshot policies.
TRUENAS ENTERPRISE AUDIT CHECKPOINTS:[â] Mirror VDEV Topology: Dual mirror VDEVs + PLP SLOG verified[â] MPIO Dual Fabric: Active paths visible across VLAN 90 and 92[â] VAAI Hardware Offload: ATS / XCOPY / Zeroing primitives active[â] ZFS Snapshot Schedule: 15-min and daily retention tasks verifiedYour feedback keeps these production procedures accurate and battle-tested.