Friday, November 15, 2013

Quickly provision new NFS storage on NetApp for VMware ESXi

If you provision a lot of storage, without orchestration, you can speed this up:

On the NetApp ONTAP Cluster-Mode CLI:

For a 20-terabyte volume, with 25TB max growing in 1TB increments, default snapshot policy, and 20% snap reserve:

cluster::> volume create -volume VOLNAME -aggregate AGGRNAME -size 20TB -state online -type RW -policy default -unix-permissions ---rwxr-xr-x -space-guarantee volume -snapshot-policy default -foreground true -percent-snapshot-space 20 -max-autosize 25TB -autosize-increment 1TB

Modify the volume to delete snaps first @ 90% full

cluster::> volume modify -volume VOLNAME -space-mgmt-try-first snap_delete -space-nearly-full-threshold-percent 90  

Turn on dedupe:
sis on -volume esx_template

Mount the volume at the desired junction path:
volume mount -junction-path /vol/VOLNAME -volume VOLNAME


On the NetApp ONTAP 7-Mode CLI:

For a 20-terabyte volume:
vol create <volumename> -s none aggrname 20t

Export the filesystem:
exportfs -io sec=sys,rw=nfssubnet/24,root=nfssubnet/24,nosuid /vol/volumename
exportfs -w /etc/exports

Turn on dedupe
sis on /vol/volumename

Turn on snap auto cleanup @ 10%
snap autodelete volumename on
snap autodelete volumename target_free_space 10

On the VMware PowerCLI:

connect-viserver vcenter.domain.tld
Get-VMHost | New-Datastore -Nfs -Name volumename -Path "/vol/volumename " -NfsHost ontap-nfs-ip

No comments:

Post a Comment

Featured Post

Remove 3D Objects and other annoying folders on Windows 10

 Microsoft just keeps adding more crap to clutter up the navigation in Windows 10.  Seriously, who needs a 3D Objects folder?  The tiny perc...