Network & Connectivity Problems
Troubleshoot ONTAP network problems: LIFs down or unreachable, no route to host, MTU/jumbo-frame mismatches, flapping ports, ifgrp and iSCSI path issues. Real commands included.
Home / Troubleshooting / SMB/CIFS Deep-Dive
How ONTAP SMB actually works — share creation, the two-layer permission model, AD/Kerberos integration, SMB 3.x features — followed by the failures that show up in the field and the commands that pin them down.
SMB in ONTAP is scoped to an SVM. Each SVM that serves SMB gets its own CIFS server object with its own machine account in Active Directory, its own NetBIOS identity, and its own share list. A share is a name that maps to a path (usually a volume junction). Clients see \\svm-lif\sharename; ONTAP resolves the share to the underlying junction path and applies access control there.
# Create the CIFS server and join AD in one step (prompts for the AD admin password)
vserver cifs server create -vserver vs1 -cifs-server CIFS1 -domain CORP.EXAMPLE.COM \
-admin-user ad_admin
# Status: is it operational, joined to which domain, DCs discovered?
vserver cifs server show -instance
If the join fails, fix DNS and time first (sections 4 and 6) — 90% of join failures are one of those two.
Shares are thin: they define the name → path mapping and carry share-level properties and ACLs. The heavy access control lives in the filesystem (NTFS ACLs), so get comfortable with both commands.
# Create a share called "docs" pointing at the /docs junction
vserver cifs share create -vserver vs1 -share docs -path /docs
# What exists, and full detail (properties, ABE, CA, encryption flags)
vserver cifs share show
vserver cifs share show -instance
# Share-level ACLs: who can connect at all, and at what level
vserver cifs share access-control show -vserver vs1 -share docs
# Grant the engineers group Change on the share
vserver cifs share access-control create -vserver vs1 -share docs \
-user-or-group "CORP\engineers" -permission change
# Remove a share (does NOT delete data — only the name)
vserver cifs share delete -vserver vs1 -share oldshare
Share ACL levels are read, change, full-control, and none. Note that vserver cifs share delete never touches the underlying volume — a fact worth remembering when someone asks "will deleting the share delete the files?"
A Windows user needs to pass both gates: the share ACL (can they reach the share at all) and the NTFS ACL on the folder/files (what can they do once inside). The effective permission is the most restrictive intersection — the classic "share says Full Control but the folder denies" or the reverse.
The security style of the volume decides how ONTAP stores ACLs:
# Which security style does the volume/junction have?
volume show -vserver vs1 -volume vol1 -fields security-style
# What does ONTAP actually see for a path? Effective ACL + style + owner
vserver security file-directory show -vserver vs1 -path /docs
# Default share permission check: who can connect if the ACL list is empty?
vserver cifs share access-control show -vserver vs1 -share docs -instance
icacls on a mapped drive — ONTAP stores what Windows sets. ONTAP-side commands exist (vserver security file-directory ntfs create and friends), but they're for automation and recovery, not day-to-day ACL editing.
When a client connects, ONTAP authenticates the user against AD (Kerberos by default on domain-joined clients; NTLM as a fallback where allowed), then maps the Windows SID to the filesystem. Three things have to be right or authentication silently degrades:
# Which DCs did ONTAP discover, and are they reachable?
vserver cifs domain discovered-servers show -vserver vs1
# DNS config on the SVM — is the domain search list right?
vserver services name-service dns show -vserver vs1
# Clock: NTP servers configured and in sync? (Kerberos depends on this)
cluster time-service ntp server show
cluster date show
Kerberos errors usually surface in the event log as secd messages — the same family as NFS Kerberos failures:
event log show -message-name secd* -severity error
encrypt-data property), or forced cluster-wide with vserver cifs security settings. SMB 3.1.1 adds mandatory encryption (AES-128-GCM) and secure dialect negotiation.continuously-available property survives LIF failover with the client's connection state preserved.# Negotiated dialects per session — spot the SMB 2.1 straggler
vserver cifs session show -fields remote-address,smb-version,session-id,workstation
# Disable SMB1 (default on 9.10.1+; enforce if it was re-enabled)
vserver cifs server options modify -vserver vs1 -smb1-enabled false
# Force encryption for one sensitive share
vserver cifs share properties add -vserver vs1 -share finance -properties encrypt-data
# CA for an application that needs it (SQL Server, etc.)
vserver cifs share properties add -vserver vs1 -share sql -properties continuously-available
# What options are currently set on the CIFS server?
vserver cifs server options show -vserver vs1
| Symptom | Most likely cause | First command |
|---|---|---|
Share not visible / Access denied on connect | Share ACL doesn't include the user/group | vserver cifs share access-control show |
Connects, then Access denied opening folders | NTFS ACL on the path | vserver security file-directory show -path /... |
| Repeated password prompts / "logon failure" | Kerberos: clock skew, DNS, or machine account | vserver cifs domain discovered-servers show + NTP check |
CIFS server shows down / join failed | AD unreachable, bad admin credentials, orphaned machine account | vserver cifs server show -instance (read the error field) |
| Slow copy on one host, fast elsewhere | SMB 2.1 negotiation or single-channel (no multichannel) | vserver cifs session show -fields smb-version |
| Security scanner flags SMB1 | SMB1 enabled (pre-9.10.1 or re-enabled) | vserver cifs server options show |
| Stuck open files / sessions that won't release | Client crash, cached credentials | vserver cifs openfile show → close |
# Diagnose: who is connected, what files are open, at which dialect
vserver cifs session show
vserver cifs openfile show -vserver vs1
# Force-close a stuck file (use the file-id from the show above)
vserver cifs openfile close -vserver vs1 -file-id 5231
# Re-establish a broken machine account after AD-side fixes
vserver cifs server delete -vserver vs1
vserver cifs server create -vserver vs1 -cifs-server CIFS1 -domain CORP.EXAMPLE.COM \
-admin-user ad_admin
# Pre-flight a new share: check the junction exists and its security style
volume show -vserver vs1 -volume vol1 -fields junction-path,security-style
vserver cifs share create -vserver vs1 -share docs -path /docs
vserver cifs server delete removes the CIFS server and its shares — data volumes are untouched, but you must recreate shares afterwards. Export the share list first (vserver cifs share show -instance) so you can rebuild it exactly.
cluster time-service ntp server add) — Kerberos health starts here.encrypt-data on any share crossing a WAN or untrusted segment.continuously-available on the share and test failover with a live session.vserver cifs domain discovered-servers show.