Skip to content

TrueNAS Enterprise ZFS Storage Pool Provisioning, iSCSI Target Configuration & NFS Datastore Export

SOP-SYS-007 Standard Operating Procedure v1.0.0
Last Updated 2026-10-15
Author Systems Administration Team
đŸ’ģ Target OS / Systems:
TrueNAS SCALE 23.10+ / CORE 13.xOpenZFS 2.2+VMware ESXi 8.0+Proxmox VE 8.x10G/25G SFP28 Dual Storage Switch Fabric

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
Guide tools
0/0 Steps (0%)

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

WorkloadRecommended ZFS TopologyVolblocksize / RecordsizeSLOG (ZIL) RequirementL2ARC 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 Mirrors8K or 16KMandatory (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

  1. 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).
  2. HBA Controller: Ensure SAS controllers operate strictly in IT-Mode (Host Bus Adapter); hardware RAID controller passthrough is strictly prohibited.
  3. Power-Loss Protection (PLP): Ensure all write-cache SSDs (SLOG / ZIL) possess hardware Supercapacitors / PLP to guarantee data consistency during catastrophic power cuts.
  4. Dual Interfaces: Confirm ens1f0 is mapped to Storage Fabric A (10.10.90.20/24) and ens1f1 to Storage Fabric B (10.10.92.20/24), both configured with MTU 9000.

ZFS Storage Pool Provisioning

01

Storage Pool Creation (CLI / Midclt)

ZFS Pool

Execute 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.

Terminal window
# Verify raw disk serials and non-RAID layout
geom 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 spare
zpool 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...5

02

Optimal Pool Property Tuning

Tuning

Apply enterprise properties: enable LZ4 compression to reduce IOPS amplification, disable access-time tracking, and enforce standard sync semantics.

Terminal window
# Enable LZ4 compression (CPU-friendly, reduces write amplification)
zfs set compression=lz4 tank-fast-vms
# Disable access time updates to prevent write penalty
zfs set atime=off tank-fast-vms
# Set sync behavior (standard ensures POSIX sync requests are committed to SLOG)
zfs set sync=standard tank-fast-vms

iSCSI Target & MPIO Block Storage Provisioning

03

Create Zvol for Block Target

Block Zvol

Create a 2 TB Zvol for VMware ESXi VMFS datastore provisioning with a 16 KB block size matching hypervisor filesystem allocation units.

Terminal window
zfs create -V 2T -b 16k tank-fast-vms/esxi-prod-lun01

04

Configure iSCSI Portals, Targets & Extents

iSCSI SAN

Configure dual IP fabric listeners, register authorized hypervisor IQNs, and map the Zvol extent with VAAI primitives enabled.

Terminal window
# 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)

05

Create NFS Dataset & Configure Export Rules

NFS Export

Provision a ZFS dataset optimized for shared ISOs and VM templates, apply export ACLs restricted to hypervisor subnets, and verify mounts.

Terminal window
# 1. Create dataset optimized for large files
zfs create -o recordsize=128k -o compression=zstd tank-fast-vms/nfs-vm-shared
# 2. Verify export status from Linux shell
showmount -e 10.10.90.20

Enterprise Data Protection: Automated Snapshots & Remote Replication

06

Configure Automated Snapshot Schedules

Snapshots

Prevent ransomware and operator error by enforcing layered snapshot schedules (15-minute operational, daily, and monthly retention).

Terminal window
# Create automated snapshot task via CLI
midclt call pool.snapshottask.create '{
"dataset": "tank-fast-vms",
"recursive": true,
"lifetime_value": 30,
"lifetime_unit": "DAY",
"schedule": {"minute": "0", "hour": "0", "dom": "*", "month": "*", "dow": "*"}
}'

07

Offsite ZFS Stream Replication

DR Replication

Configure incremental asynchronous replication streams to transmit changed blocks directly to the secondary offsite disaster recovery array.

Terminal window
# Stream incremental differences to offsite DR storage
zfs send -i tank-fast-vms@snap-yesterday tank-fast-vms@snap-today | ssh [email protected] zfs recv dr-pool/backup-vms

Hypervisor MPIO & Datastore Verification

08

ESXi iSCSI Multipathing Configuration

MPIO

Configure 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.

Terminal window
# Discover target on both IP fabrics
esxcli iscsi adapter discovery sendtarget add --address 10.10.90.20:3260 --adapter vmhba64
esxcli iscsi adapter discovery sendtarget add --address 10.10.92.20:3260 --adapter vmhba64
# Rescan storage adapters
esxcli storage core adapter rescan --adapter vmhba64
# Set Multipath Policy to Round Robin (VMW_PSP_RR) with IOPS=1
for 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 1
done

Rollback, Emergency LUN Restoration & Storage Sign-Off

09

Rapid Snapshot Rollback & Disk Replacement

Rollback & Repair

In the event of datastore corruption or physical disk failure, execute instant snapshot rollback or trigger online ZFS mirror resilvering.

Terminal window
# 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 drive
zpool status tank-fast-vms
zpool replace tank-fast-vms /dev/disk/by-id/old-faulted-drive /dev/disk/by-id/new-healthy-drive
zpool status tank-fast-vms -v

10

Operational Audit Trail & Storage Sign-Off

Audit Sign-off

Validate 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 verified

Comments