Script: Direct-SVM support for SnapVault in VSC

Attached is a script to do SnapVault (SnapMirror XDP) with Virtual Storage Console for VMWare from NetApp without adding the whole cluster into the VSC GUI.

VSC_Add_job

VSC 5.0 added support for SnapVault into the VSC for VMWare. If you want to use this function you had to add the whole destination cluster into the VSC. There is no possiblity to add only the SVM via a management interface into VSC and use SnapVault and SnapMirror.
I normally don’t add the whole cluster because of the permissions.

The second reason was VSC 4.2.x hadn’t support for SnapVault updates.

The best solution was to create a script which handles these problems and adds the capability to update SnapVault to SnapMirror cascades. It was tested with a number of different VSC versions including 4.2.1, 4.2.2, 6.0 and 6.1 and OnTap 8.2.x to 8.3.x.

I named the script SVVMcDOT -> SnapVault for VMWare with cDOT.
Along with the script you can find a little manual and the configuration file attached. Just rename the svvmcdot.doc to svvmcdot.ps1 (PowerShell Script), the configuration file from svvmcdot_config.doc to svvmcdot.conf and read the documentation.

svvmcdot_config
svvmcdot
Documentation_svvmcdot_v1.0

More Infos:
https://community.netapp.com/t5/VMware-Solutions-Discussions/VSC-4-2-1-and-Clustered-Data-OnTap-SnapMirror/m-p/64113/highlight/true#M6005

Advertisements

4 awesome PowerCLI Commands

Here are some useful PowerCLI Commands:

#Get all VirtualPortGroups and Loadbalance Policy
Get-VirtualPortGroup | ft Name, @{Label=”LoadbalancingPolicy”; Expression = { $_.ExtensionData.config.defaultportconfig.uplinkteamingpolicy.policy.value}}

#Get all VirtualPortGroups which are not IP-Hash
Get-VirtualPortGroup | ? { $_.ExtensionData.config.defaultportconfig.uplinkteamingpolicy.policy.value -ne “loadbalance_ip” }

#Get all VMs with CDROM attached
Get-VM | FT Name, @{Label=”ISOfile”; Expression = { ($_ | Get-CDDrive).ISOPath }}

#Get all VMs with Snapshots
Foreach($vm in get-vm){ get-snapshot $vm |select VM,Name,Description,Created}

Performance Charts service returned an invalid response

When I wanted to check the performance of a datastore I got the following error message:test

I am using vSphere Appliance 6.0 with Update 1.
This problem occurs with my domain account only and not with the administrator@vsphere.local account.

There is an easy way to fix this.
# SSH to the vCenter Appliance and enter the following two commands:

shell.set –enabled true
shell

# Go to the directory /usr/lib/vmware-perfcharts/tc-instance/conf/. Add the option maxHttpHeaderSize=”65536″ to your server.xml as follows (don’t forget to make a backup of the server.xml file):

<!– IPv4 configuration –>
<Connector address=”127.0.0.1″
acceptCount=”300″
maxThreads=”300″
connectionTimeout=”20000″
executor=”tomcatThreadPool”
maxKeepAliveRequests=”15″
port=”${bio.http.port}”
maxHttpHeaderSize=”65536″
protocol=”org.apache.coyote.http11.Http11Protocol”/>
<!– IPv6 configuration –>
<Connector address=”::1″
acceptCount=”300″
maxThreads=”300″
connectionTimeout=”20000″
executor=”tomcatThreadPool”
maxKeepAliveRequests=”15″
port=”${bio.http.port}”
maxHttpHeaderSize=”65536″
protocol=”org.apache.coyote.http11.Http11Protocol”/>

# Then simply restart the performance charts daemon:

service-control –stop vmware-perfcharts
service-control –start vmware-perfcharts

This issue should be resolved in vCenter Server 6.0 Update 2.

This Knowledge Base article is for Windows vCenter Server only but applies to Appliance as well:
https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2131040