Choose iSCSI when one machine needs a dedicated disk, NFS when Linux clients or ESXi hosts need a shared export, and SMB for Windows team files. For a shared ESXi datastore backed by iSCSI, use VMFS to coordinate access across hosts.
Side by side
| Workload | Choose | Client support and filesystem owner | Concurrent writers |
|---|---|---|---|
| Dedicated NAS-backed disk for one server | iSCSI LUN | The host uses an iSCSI initiator and manages its local filesystem. | One host with an ordinary filesystem |
| Shared ESXi VM datastore on a NAS | NFS export | Each ESXi host mounts the export with a supported NFS version. The NAS manages the filesystem. | Multiple ESXi hosts on the datastore |
| Shared ESXi VM datastore on block storage | VMFS on iSCSI | Each ESXi host needs access to the same LUN. The hosts manage it together through VMFS. | Multiple ESXi hosts through VMFS locking |
| Shared files for Linux hosts | NFS export | Linux clients mount the export. The server manages the filesystem. | Multiple clients with write access |
| Windows team files on a NAS | SMB share | Windows clients connect to the share. The server manages the filesystem. | Multiple clients with write access |
The datastore options are documented in Broadcom’s ESXi guidance. The file-share choices follow the client and server models in Red Hat’s filesystem guide and Microsoft’s SMB overview.
One question decides it: who owns the filesystem?
SCSI defines storage commands. iSCSI carries those commands over TCP. RFC 7143
The target exports a storage device identified by a logical unit number (LUN). Red Hat’s iSCSI target guide
For a dedicated LUN, the host runs its own local filesystem. Red Hat’s guide to local filesystems on unshared SAN devices
With NFS and SMB, the server manages the filesystem and handles client requests to open, read or write files. See RFC 8881 and Microsoft’s SMB overview.
Concurrency and locking
Give one host at a time access to a LUN formatted with an ordinary filesystem such as XFS or ext4. Simultaneous writes from multiple hosts can corrupt the filesystem. For concurrent block access, use a cluster filesystem. VMFS coordinates metadata updates across ESXi hosts sharing a datastore. See Red Hat’s shared-storage filesystem guidance and Broadcom’s explanation of VMFS locking.
NFS and SMB let several clients write to a share. If they need to change the same file, use an application that coordinates those edits. Both NFSv4.1 and SMB provide byte-range locks. See RFC 8881 and Microsoft’s SMB locking specification.
Path redundancy
A cable, NIC or switch failure can leave both the client and storage server running. Continued access depends on a surviving path to the same storage.
| Protocol | What can keep I/O going after one path fails |
|---|---|
| iSCSI | Configure multipathing with independent paths to the same LUN. In Broadcom’s ESXi example, iSCSI port binding keeps the host connected through a separate network fabric if one switch or NIC fails. Broadcom’s iSCSI path redundancy example |
| NFS | With NFSv4.1 session trunking, use a client and server that support multiple connections over separate paths. Broadcom documents an ESXi 8.x example with multiple server addresses. RFC 8881, Broadcom’s NFS trunking example |
| SMB | SMB 3 Multichannel can continue over a surviving connection when the client and server support Multichannel and multiple usable paths are available. Microsoft’s SMB feature guide |
Speed checklist for iSCSI vs NFS vs SMB
- Workload. Keep the read/write mix and I/O sizes the same across comparisons. For random VM I/O, record latency and I/O operations per second (IOPS). For large sequential transfers, record throughput. Microsoft’s storage performance guide
- Media. Compare sustained storage throughput after write caches fill. A copy that starts fast and then slows can be limited by how quickly the disks commit writes. Microsoft’s file transfer guidance
- Network. Compare transfer throughput with link capacity and check for packet loss. If the link has spare capacity, check disk and workload measurements before changing protocols. Microsoft’s file transfer guidance
Authentication and encryption
- iSCSI. CHAP authenticates the connection, and an initiator ACL controls access to the LUN. IPsec can protect the traffic in transit. Red Hat’s iSCSI target guide, RFC 7143
- NFS. Check the security modes supported at both ends. For NFSv4.1, Kerberos modes include authentication with
krb5, integrity protection withkrb5i, and privacy withkrb5p. RFC 8881 - SMB. Check signing and encryption support on the client and server. Availability varies with the SMB dialect and Windows version. Microsoft’s SMB feature guide
Failure behaviour
If the target or file service goes down, multiple links to that server can all lose access at once. Check what restores access to the same data.
| Protocol | What happens if the service fails | What recovery needs |
|---|---|---|
| iSCSI | Losing every path makes the LUN unavailable. In Broadcom’s ESXi example, the host retries access during the All Paths Down timeout. | Restore a working connection to a target presenting the same LUN. Broadcom’s iSCSI outage explanation |
| NFS | On a RHEL hard mount, unanswered requests keep retrying. | Restore the export or use a failover service. In Red Hat’s active/passive example, the standby takes over the export and floating IP using shared storage. Red Hat’s hard-mount guidance, Red Hat’s NFS failover example |
| SMB | A standalone server outage interrupts share access. With SMB Transparent Failover, supported clients can reconnect to another cluster node. | A validated Windows Server failover cluster with a surviving node, a share with Continuous Availability enabled, and an SMB 3 client that supports it. Microsoft’s Transparent Failover requirements |
For block storage faults, see iSCSI troubleshooting.
Choosing
- One host, one disk. Give the host its own iSCSI LUN. For setup, see the TrueNAS iSCSI guide.
- Several ESXi hosts, one datastore. Choose NFS if the NAS will manage the filesystem. Mount the same export on each host. Choose iSCSI if the array will present a shared LUN for the hosts to use through VMFS. See Broadcom’s datastore guidance and the NFS vs iSCSI comparison.
- Several Windows users, shared folders. Give the team an SMB share and grant access to the people who need it. See Microsoft’s SMB overview and the iSCSI vs SMB comparison.
Evidence and limits. The examples are based on RFC 7143, RFC 8881, Red Hat Enterprise Linux 9, Broadcom’s vSphere ESXi 8.x documentation and Microsoft’s SMB 3 documentation. The configurations and failover scenarios were not run.