iSCSI Hub
Flat isometric illustration of a dark navy rack server cabinet with three stacked units and glowing pink drive bays on a slab traced with pink node links.
comparisons

iSCSI vs NFS vs SMB: Choosing a Storage Protocol

Choose iSCSI, NFS or SMB for your NAS or virtual machines. Compare filesystem ownership, shared writes, and how recovery works when a path fails.

By iSCSI Hub Editorial · · 5 min read

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

WorkloadChooseClient support and filesystem ownerConcurrent writers
Dedicated NAS-backed disk for one serveriSCSI LUNThe host uses an iSCSI initiator and manages its local filesystem.One host with an ordinary filesystem
Shared ESXi VM datastore on a NASNFS exportEach 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 storageVMFS on iSCSIEach 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 hostsNFS exportLinux clients mount the export. The server manages the filesystem.Multiple clients with write access
Windows team files on a NASSMB shareWindows 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.

ProtocolWhat can keep I/O going after one path fails
iSCSIConfigure 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
NFSWith 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
SMBSMB 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 with krb5i, and privacy with krb5p. 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.

ProtocolWhat happens if the service failsWhat recovery needs
iSCSILosing 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
NFSOn 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
SMBA 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

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.

Sources

  1. IETF RFC 7143: Internet Small Computer System Interface (iSCSI) Protocol (Consolidated)
  2. Red Hat Enterprise Linux 9: Configuring an iSCSI target
  3. Red Hat Enterprise Linux 9: Overview of available file systems
  4. Broadcom: Guidance for connecting external storage arrays to a vSAN cluster
  5. Broadcom: Disabling hardware accelerated locking (ATS) in ESXi
  6. IETF RFC 8881: Network File System (NFS) Version 4 Minor Version 1 Protocol
  7. Microsoft Learn: What is SMB File Sharing for Windows and Windows Server?
  8. Microsoft Open Specifications: SMB2_LOCK_ELEMENT Structure
  9. Broadcom: Multiple VMs rebooted due to a vSphere HA trigger following network switch maintenance
  10. Broadcom: Discrepancy between ESXi host and NetApp storage LIF connections due to DNS misalignment
  11. Microsoft Learn: SMB features in Windows and Windows Server
  12. Microsoft Learn: Azure premium storage performance
  13. Microsoft Learn: Slow SMB file transfer speed
  14. Broadcom: Multiple VMs not accessible over iSCSI network
  15. Red Hat Customer Portal: When NFS server is stopped, how long does the client retry?
  16. Red Hat Enterprise Linux 9: Configuring an active/passive NFS server

Related