Download presentation
Presentation is loading. Please wait.
Published byMarvin Gibbs Modified over 9 years ago
1
Powershell – Vmware - NetApp Overview 1.Installing NetApp Toolkit 2.Installing Vmware PowerCLI
2
Installing NetApp Toolkit Requirements Windows 7 or Windows 2008 Powershell Version 2.0 Download the NetApp Toolkit zip Unzip in : C:\Windows\System32\WindowsPowershell\v1.0\Modules
3
Testing NetApp Toolkit Open Powershell PS C:\> Get-Module –listavailable ModuleType Name ExportedCommands ---------- ---- ---------------- Manifest AppLocker Manifest BitsTransfer Manifest DataONTAP Manifest PSDiagnostics Manifest TroubleshootingPack
4
Testing NetApp Toolkit Open Powershell PS C:\> Import-Module DataONTAP PS C:\> Connect-NaController 192.168.30.8 Name Address Ontapi Version ---- ------- ------ ------- 192.168.30.8 192.168.30.8 1.15 NetApp Release 8.1RC2X13 7-Mode: Thu Oct 27 19:26:21 PDT 2011
5
Testing NetApp Toolkit Open Powershell PS C:\> Get-NaAggrSpace AggregateName : aggr1 SizeFree : 1257046016 SizeMetadata : 95813632 SizeNominal : 13212057600 SizeSnapUsed : 0 SizeUsed : 11955011584 SizeVolumeAllocated : 11954601984 SizeVolumeUsed : 86020096 VolumeCount : 3 Volumes : {NFSvol, nas, volvf}
6
Installing Vmware PowerCLI Requirements Windows 7 or Windows 2008 Powershell Version 2.0 Download the PowerCLI version 1.7 Run the exe file http://www.vmware.com/support/developer/windowstoolkit/wintk40u1/html/index.html For all cmdlets explenations
7
Installing Vmware PowerCLI Open PowerCLI from the icon on the desktop PS C:\> Connect-VIServer -Server 192.168.4.10 -Protocol https -User root -Password netapp80 PS E:\> Get-VM Name PowerState Num CPUs Memory (MB) ---- ---------- -------- ----------- w7thin-template PoweredOff 1 2048 w7-template PoweredOff 1 4096 w2k8-template PoweredOff 1 4096 w2k3-template PoweredOn1 512 sles-template PoweredOff 1 512 sc2-7m-template PoweredOff 2 1600 sc1-7m-template PoweredOn2 1600
8
NetApp and VMware PS C:\> Import-Module DataONTAP PS C:\> Connect-NaController 192.168.30.8 Name Address Ontapi Version ---- ------- ------ ------- 192.168.30.8 192.168.30.8 1.15 NetApp Release 8.1RC2X13 7-Mode: Thu Oct 27 19:26:21 PDT 2011 Now you can use the cmdlets form NetApp and VMware
9
NetApp and VMware Examples Create new Volume PS C:\> New-NaVol pwsvol -Aggregate aggr1 -SpaceReserve none -Size 5g Name State TotalSize Used Available Dedupe FilesUsed FilesTotal Aggregate ---- ----- --------- ---- --------- ------ --------- ---------- --------- pwsvol online 4,8 GB 76% 1,1 GB False 96 156k aggr1
10
NetApp and VMware Examples Create a SnapShot PS C:\> New-NaSnapshot -TargetName pwsvol -SnapName pws_snap Name Created Total Cumulative Dependency ---- ------- ----- ---------- ---------- pws_snap 7-3-2012
11
NetApp and VMware Examples Create a FlexClone PS C:\> New-NaVolClone -ParentVolume pwsvol –CloneVolume pws_clone -SpaceReserve none –ParentSnapshot pws_snap Name State TotalSize Used Available Dedupe FilesUsed FilesTotal Aggregate ---- ----- --------- ---- --------- ------ --------- ---------- --------- pws_clone online 4,8 GB 77% 1,1 GB False 96 156k aggr1
12
NetApp and VMware Examples Mount NFS to ESX PS C:\> New-Datastore -VMHost 192.168.4.10 -Name NFSPWS -Path /vol/pws_clone -Nfs -NfsHost 192.168.4.8 Name FreeSpaceMB CapacityMB ---- ----------- ---------- NFSPWS 1129 4864
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.