Archive | Code Snippets RSS feed for this section

Netapp 7m Exports to cDot Export Policy convert script

A coworker asked me is I could whip up a script to convert hundreds of lines large 7-mode /etc/exports files into Clustered Mode Export Policies and client rules.

No problem. Nothing is too hard for some ugly bash scripting.

Click to continue reading “Netapp 7m Exports to cDot Export Policy convert script”

1 Comment Continue Reading →

Quick Tip: NetApp DataOnTap Powershell Toolkit + cDot Snapshots

Just had someone ask me how they can delete all snapshots on a volume in cdot without being prompted for each snapshot to authorize it.

I told them powershell. Here’s a quick illustration of how to do it.

Click to continue reading “Quick Tip: NetApp DataOnTap Powershell Toolkit + cDot Snapshots”

Leave a comment Continue Reading →

Snippet: #1 emailed file of 2013: VM Snapshot age w/ powershell

Of all the thousands of emails I sent to customers in 2013, I sent this code to most. I think I sent it to over 150 people last year.

People do a really crappy job of monitoring their backup applications, and if they have old snapshots in VMware. It doesn’t matter if you use Veeam, NetBackup, BEX, SMVI/VSC, manual scripts, or what. Anything that automatically makes snapshots and then deletes them has the chance to totally screw that crap up!

Biggest issues happen when snapshots aren’t cleaned up if they are left around.

Click to continue reading “Snippet: #1 emailed file of 2013: VM Snapshot age w/ powershell”

Leave a comment Continue Reading →

Snippet: NetApp SSH Keys for passwordless auth.

It really pisses me off when I have to type passwords over and over and over again. Even more so when I am trying to do a ton of work or do a deployment and I need to do it.

It’s even more annoying when a customer won’t enable proper access to their systems, or they use root forever with weak passwords.

Enter the SSH KEYs. Here is how to set them up on your NetApp in both 7-mode and Cluster Mode!

Click to continue reading “Snippet: NetApp SSH Keys for passwordless auth.”

Leave a comment Continue Reading →

Tip #8: Set your damn host timeouts!

I saw a question on LinkedIn on the Netapp group today.

“what is the downtime (in seconds) for a FAS2240 high-availability machine in case one controller fails and the other takes over? ”

My pre-first cup of coffee answer was less on the question, and more on proper upkeep of a system running on a SAN/NAS. Any SAN/NAS. Set your damn timeouts on your hosts!

Click to continue reading “Tip #8: Set your damn host timeouts!”

Leave a comment Continue Reading →

Tip #2: Simplify creating NetApp luns/mounts with snapdrive (unix/linux)

NetApp’s snapdrive utility can help simplify out workflow, and reduce the amount of requests we get from the “Bob’s” of the world. This shows how you can do things like creating, presenting, formatting and mounting luns from your NetApp all with 1 command from the host!

Click to continue reading “Tip #2: Simplify creating NetApp luns/mounts with snapdrive (unix/linux)”

2 Comments Continue Reading →

Snippet – HPUX – Cleanup removed luns

I’ll go more into cleanup of old luns or old flexclones later on hpux and linux, but for now… here is how to remove disconnected luns from an HPUX server.  Don’t forget to remove the lv/vg first.

 

Leave a comment Continue Reading →