Monday 16 November 2015

VMware vMA thumbprint error

Yesterday I installed the version 6.0 of the vmware vMA.
While trying to use remote hosts as vifptarget for remote access, I kept getting thumbprint error
such as theses:

“Unable to verify the authenticity of the specified host. The SHA1 thumbprint of the cerificate is:
XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX
Do you wish to proceed with connecting anyway? Choose “Yes” if you trust the host. The above information will be remembered until the host is removed from the inventory. Choose “No” to abort connecting to the host at this time.”


I am going to describe the process I used to automate (as much as possible), how I added all my hosts thumbprints to vMA credential store.

  1. First, open PowerCLI and list your hosts
    1. Get-VMHost | Get-View | Format-Table -Property Name, Name
  2. Now, add theses in a file named "esxcli" in VMA:
    1. while read LINE; do vifp addserver $LINE --username root --password **root_password** ;done<esxi
  3.  Now, retrieve each SHA1 thumbprint, from every host, output this in a file called "out" (yes, I am quite original when it comes to file naming):
    1. while read SERVER; do  echo -n ${SERVER}, && echo -n | openssl s_client -connect ${SERVER}:443 2>/dev/null | openssl x509 -noout -fingerprint -sha1 | awk -F= '{print $2}';done<esxi >out
  4. Now paste this script in a file of your choice, run chmod +x on it, and run it:
    1. #!/bin/sh

      while read SERVER; do
              STR1=$(echo $SERVER | awk -F, '{print $1}')
              STR2=$(echo $SERVER | awk -F, '{print $2}')
              /usr/lib/vmware-vcli/apps/general/credstore_admin.pl add -s $STR1 -T $STR2
      done<out

And you are done ! I hope it help.

Tuesday 19 May 2015

Avamar VMware stuck snapshots

  1. Log in as admin to the utility node
  2.  Disable the firewall
    • /usr/local/avamar/lib/admin/security/avfirewall stop
  3. Download proxycp.jar

Using proxycp.jar

To see a list of commands, run the following from the Avamar Utility Node:            
java -jar proxycp.jar


To view VM’s with hidden Snapshot Files, run this command:
java -jar proxycp.jar –listsnapshots 2>/dev/null | grep Snapshot

To remove original disk from the proxy that they were still mounted to, use this command.
java -jar proxycp.jar –listproxydisk –cleanup

Next clean up Avamar only snapshots with this command if any are present
java -jar proxycp.jar –listsnapshots –cleanup

Using the above list you may proceed using the command below to attempt to consolidate the vm’s that are failing.  Warning, proceed with caution.
java -jar proxycp.jar –consolidatesnapshots –vm REPLACEWITHVMNAME



** Thank you Hugh Griffin for the above content. I'm only duplicating content in case EMC decide it is too dangerous for our frail little hands. **

Wednesday 19 November 2014

Avamar GEN4 Visio stencil

Looking for Gen4 hardware stencils ?
Just use DELL's stencils.
The utility node is a Dell R710 server , and the storage nodes are R510 servers.

Friday 17 October 2014

Symmetrix V-Max head / track / cylinder conversion

Symmetrix V-Max
Enginuity Code: 5874
Includes EMC Symmetrix V-Max and various different configurations within this model.
GB = Cylinders * 15 * 128 * 512 / 1024 / 1024 / 1024
Eg: 262668 Cylinder device equates to 240.47 GB of usable data
262668 * 15 * 128 * 512 / 1024 / 1024 / 1024 = 240.47 GB

Cylinders = GB / 15 / 128 / 512 * 1024 * 1024 * 1024
15 = tracks per cylinder
128 = blocks per track
512 = bytes per block
8 bytes = 520-512 used for T10-DIF
1024 = conversions of bytes to kb to mb to gb
Drive format on a V-Max is 520 bytes, out of which 8 bytes are used for T10-DIF ( A post on DMX-4 and V-Max differences).


(Thank you storagenerve.com)

Wednesday 24 September 2014

Avamar 7.0.1 - Disabled groups are being reported as failed

Since the last version of Avamar, any clients located within a disabled backup group are now
being reported as "Failed" in the daily  summary. This is good if for some reason you forgot to re-enable a group after a temporary exclusion, but very annoying if you have groups disabled for some good reasons.

This behavior can be change in the mcserver.xml file ( Please be careful ):



1. Make a backup of mcserver.xml just in case.
cp -p /usr/local/avamar/var/mc/server_data/prefs/mcserver.xml /usr/local/avamar/var/mc/server_data/prefs/x-mcserver.bak20140923

2. Edit the mcserver.xml file
vi /usr/local/avamar/var/mc/server_data/prefs/mcserver.xml

3. Change this key from true to false
<entry key="report_disabled_client_job_as_fail" value="false" />

4. Restart MCS and the backup scheduler
dpnctl stop mcs; dpnctl start mcs; dpnctl start sched




Friday 18 July 2014

Avamar error - Error writing 32-byte header to cache file

You most likely have "avtar.exe" process stucks. This seem to be happenning the most often on MSSQL clients.

Kill them, and restarts Avamar services.

Thursday 26 June 2014

Avamar - MCCLI - 1,22801,User login failure.

After running /usr/local/avamar/7.0.1-61/bin/avsetup_mccli for the first time, if you make an error in your setup, it will never go back and update files in your home ~/.avamardata/* correctly.


Fix:
  1. delete ~/.avamardata/* OR:
  2. manually update ~/.avamardata/7.0.1-61/var/mc/cli_data/prefs/mcclimcs.xml with the correct information.