Thursday, February 9, 2012

NetApp Command Line Cheat-Sheet

I recently had the opportunity to work on a NetApp storage implementation project. As always I really wanted to get my hands dirty, so I tried to learn as much about their CLI as possible. It also helps when the NetApp System Manager GUI has got crazy bugs like Bug ID 548923, which prevents you from doing any FC related configs. Anyhow, here is a list of commands which should get you up and running in no time. I compiled this from a couple of web sources.

DiagnosticsPress DEL at boot up during memory test followed by boot_diags and select all priv set diags (Enter diagnostics CLI mode from the Ontap CLI) priv set (Return to normal CLI mode from diagnostics mode)

SnapMirroroptions snapmirror.enable on (turns on SnapMirror. Replace on with off to toggle) vol restrict volume_name (Performed on the Destination. Makes the destination volume read only which must be done for volume based replication) snapmirror initialize -S srcfiler:source_volume dstfiler:destination_volume (Performed on the destination. This is for full volume mirror. For example snapmirror initialize -S filer1:vol1 filer2:vol2) snapmirror status (Shows the status of snapmirror and replicated volumes or qtree’s) snapmirror status -l (Shows much more detail that the command above, i.e. snapshot name, bytes transferred, progress, etc) snapmirror quiesce volume_name (Performed on Destination. Pauses the SnapMirror Replication. If you are removing the snapmirror relationship this is the first step.) snapmirror break volume_name (Performed on Destination. Breaks or disengages the SnapMirror Replication. If you are removing the snapmirror relationship this is the second step followed by deleting the snapshot) snapmirror resync volume_name (Performed on Destination. When data is out of date, for example working off DR site and wanting to resync back to primary, only performed when SnapMirror relationship is broken) snapmirror update -S srcfiler:volume_name dstfiler:volume_name (Performed on Destination. Forces a new snapshot on the source and performs a replication, only if an initial replication baseline has been already done) snapmirror release volume_name dstfiler:volume_name (Performed on Destination. Removes a snapmirror destination)

About Me

About This Blog

This blog serves 2 purposes. Firstly, I want to share information with other IT pros about the technologies we work with and how to solve problems we often face. I work with technologies from the desktop to the data center, Active Directory, System Center, Exchange, Hyper-V, VMware, Networking and Storage.

Less altruistically, I use my blog as a reference. There's so much to learn and remember in our field that it's impossible to keep up. By blogging, I have a notebook that I can access from anywhere. It has made me look much smarter than I probably am on many occasions.