This script gets used to advance the cloning process on NetApp volumes. We use it to clone complete directories (scripted from powershell commandling) in an efficent and easy way instead of cloning file by file manually.
Below, you find the use details and requirements to execute the script.
This small Netapp Data ONTAP PowerShell Toolkit allows you create scripted Enhanced Flexclone from a complete (nfs exported) Directory inside a volume. We've used this to create highly storage-efficient automated copy-on-write clones from a bunch of Virtual Machines store on NFS exported Netapp Volumes:
See the example where a 153GB VM has been cloned 1000 times with a storage saving / deduplication of 99%.
Requires the Data ONTAP PowerShell Toolkit installed on the executing system http://support.netapp.com/NOW/download/tools/powershell_toolkit/
-
load script
./NetappTools.psm1
-
logon to the storage
logonToNaNode -NaNode "your node FQDN/IP"
(optionally) Autologon. Modify the following parameters:
$strUsername = "root"
Apply the password as secure string NetappRootEncString.txt
- Create a Volume Snapshot:
createVolumeSnapshot -NaNode "nodename/ip" -Volume "volumename" -SnapName "snapname"
- Remove Volume Snapshot:
removeVolumeSnapshot -NaNode "nodename/ip" -Volume "volumename" -SnapName "snapname"
- Enhanced Flexclone of an Directory inside a (NFS Exported) volume:
cloneFolder -SourceFolder "source" -TargetFolder "target"
example cloneFolder -SourceFolder "vm1" -TargetFolder "vm1_clone"
This project was realized by the help of the STAPPZ project and the guys form IUNERA:
</p>
Contact: [email protected]