NetApp ONTAP Commands: 50 Real-World Q&A for Admins - 夜莺博客

NetApp ONTAP Commands: 50 Real-World Q&A for Admins

NetApp ONTAP powers FAS, AFF and Select platforms in thousands of enterprises, and its command-line interface is the fastest way to diagnose storage problems when things go wrong. This collection of real-world Q&A takes you from fundamentals — volumes, aggregates, WAFL, RAID-DP — through provisioning, replication and snapshots, into the troubleshooting scenarios that actually come up in production: LUNs not visible on hosts, volumes full after file deletion, SnapMirror lag, AutoSupport failures and CIFS share access. Every answer includes the ONTAP command you would run.

ONTAP Fundamentals and Provisioning

storage aggregate show
volume show

Create a LUN and map it to a host with three commands:

lun create -vserver vs1 -path /vol/vol1/lun1 -size 100g -ostype linux
igroup create -vserver vs1 -igroup ig1 -protocol iscsi -ostype linux -initiator iqn.1993-08.org.debian:01
lun map -vserver vs1 -path /vol/vol1/lun1 -igroup ig1

Replication, Backup and Snapshots

snapmirror show -fields status,lag-time
snapmirror initialize -destination-path DEST_SVM:DEST_VOL
volume snapshot show
volume snapshot delete -vserver vs1 -volume vol1 -snapshot snap_old

WAFL uses pointer-based snapshots that are space-efficient and fast. If SnapMirror fails due to a missing baseline, reinitialize; if lag increases suddenly, check WAN performance, source snapshot delays, and volume locks.

Troubleshooting and Hardware Scenarios

storage disk show -broken
disk assign -disk 0a.15 -owner node1
lun mapping show
lun show -vserver vs1 -path /vol/vol1/lun1
system health status show
storage failover show

When a mapped LUN is not visible on the host, verify the igroup mapping, initiator IQNs, and that the iSCSI/FCP service is running, then rescan on the host. NFS volumes that stay full after deletion do not reclaim space instantly — check with df -h and volume efficiency show.

HA, AutoSupport and Scenario Checks

storage failover takeover -ofnode node1
system node autosupport invoke -node node1 -type all -message "Issue with Disk X"
autosupport check show
vserver cifs show
vserver cifs session show

Generate an AutoSupport bundle before opening a support case, verify quorum during node failover, and always have real troubleshooting stories ready — understanding the why behind the command matters more than memorizing output.

More NetApp resources on this site: ONTAP takeover not possible resolution, ONTAP ifstat port troubleshooting, and monitoring ONTAP network port reachability.

原文链接:https://medium.com/@madhuprasadcse/mastering-netapp-storage-interviews-50-real-time-q-a-for-ontap-admins-ef1aa76cae58