Apr 03

Copy SimpliVity Backups to another SimpliVity Cluster

Recently a fellow SA, @agoelammohamed, had a customer who deployed a new production SimpliVity cluster and was planning to decommission and re-purpose the original SimpliVity cluster. Migrating the VMs from the original cluster to the new cluster was easy enough, but they also needed to move around 700 SimpliVity backups, which need to be kept through the configured retention periods, to the new cluster. This can be done from the vSphere Web Client, but @agoelammohamed was looking to see if there was an easy way to automate this process. There is! The SimpliVity REST API includes an operation to copy backups from one OmniStack Cluster to another.

There are a couple other situations where this may come in handy, @agoelammohamed‘s is one and another could be that customer originally deployed SimpliVity for production and later added a DR site and wants to get the existing backups to the DR site.

I put together a powershell script which uses the SimpliVity REST API to automate copying backups from one OmniStack Cluster to another OmniStack Cluster. The script, SVT-CopyBackups.ps1, can be found here: https://github.com/herseyc/SVT/blob/master/SVT-CopyBackups.ps1
Read the rest of this entry »

Mar 23

Checking VMs for SimpliVity Storage HA

When performing maintenance, upgrades, etc, on a SimpliVity host it is important to verify SimpliVity VMs are in a safe Storage HA state. A safe Storage HA state, or Storage HA equal to Yes, means the virtual machine’s data is fully synchronized and protected in a multi-node SimpliVity cluster.

Verifying the Storage HA state of a VM can be accomplished using a number of different methods:

  1. Using the SimpliVity Management functions in the vSphere Web Client
  2. Using the SimpliVity CLI
  3. Using the SimpliVity REST API

This post provides an overview of verifying Storage HA of SimpliVity virtual machines using the different methods.
Read the rest of this entry »

Mar 17

Quick SimpliVity OmniStack Capacity Script

This is a quick script, SVT-Fed-Capactiy.ps1, I put together using Powershell and the SimpliVity REST API to report available, free, and used capacity information for OmniStack Clusters in a SimpliVity Federation, and the OmniStack hosts in each Cluster.

Get the script here: https://github.com/herseyc/SVT/blob/master/SVT-Fed-Capacity.ps1

Just set a couple of simple configuration variables:

  • Line 12-14 – set the OVC mgmt IP ($ovc), username to use ($username), and password ($pass)
  • Line 22 – Here you can set what you want to convert the capacity information to, the REST API returns capacity information in Bytes. Just change the variable to one of the ones above the line. This is set to TiB in the script.
  • Line 23 – Set the number of decimal places to round the capacity conversion to. It is set to 2 in the script.

The script will output the total capacity of each SimpliVity OmniStack Cluster and the physical capacity of each host in the OmniStack Cluster. It looks a little something like this:

Happy Friday! Enjoy.

Mar 13

Collect Virtual Disk IOPS with PowerCLI

I was messing around with PowerCLI and the real-time statistics to collect the IOPS used by virtual machines/virtual machine disks in my my home lab. Virtual disk performance counters are available in the real-time performance stats but at the default statistics level, Level 1, the IOPS statistics are not rolled up into the historical performance statistics (daily, weekly, monthly, yearly). To get per device level statistics the statistics level has to be set to at least Level 3.

Here is an example of the real-time chart in the vSphere Web Client which shows the read/write requests per second, and the read/write latency for a single virtual disks:

I adjusted the virtual disk chart options selecting counters for NumberReadAveraged, NumberWriteAverage, TotalReadLatency, and TotalWriteLatency for virtual disk scsi0:1 on LABFILE01. If the the default statistics level has not been changed these counters are only available real-time and are only kept for the past hour.

To collect these counters past the hour which displays in the real-time statistics I put together a PowerCLI script, collect-iops.ps1, which uses the Get-Stat Cmdlet to collect the real-time samples and save each sample for each virtual machine, and each virtual disk, to a csv file.
Read the rest of this entry »

Mar 08

Microsoft Failover Cluster in a Box on SimpliVity

This is a White Paper I worked on with SimpliVity‘s Product Management to provide details on how to implement and operate a Microsoft Windows Server Failover Cluster in a Box (CIB) on a SimpliVity OmniStack system. It provides information on configuration and also details how availability is provided across different failure scenarios.

The White Paper is available here: Windows Server Failover Clustering and here: Windows Server Failover Clustering on SimpliVity and also here: Windows Server Failover Clustering on SimpliVity

You can also check out other SimpliVity Solution White Papers.

Enjoy!


Feb 28

SimpliVity Getting Started Guide

This “getting started” guide introduces you to the SimpliVity hyperconverged infrastructure. It also steps you through performing common management tasks on deployed OmniStack hosts using the SimpliVity Extension for vSphere Web Client. The online guide is searchable to allow you to easily find the SimpliVity task or feature you are looking for.

Beyond common tasks there is also an introduction to SimpliVity terminology and links to additional resources for SimpliVity administrators.

The guide is accessible online or can be downloaded as a PDF. You can access the SimpliVity Getting Started Guide here.

Feb 21

Automated vSphere Lab Deployment Script

Very handy! @lamw has put together an automated lab deployment script which will deploy a 3 host nested vCenter/ESXi/VSAN/NSX Lab. It supports vSphere 6.0 Update 2 and vSphere 6.5. The scripts provide a fully deployed and ready to use lab in under an hour!

A full write up and links to the scripts can be found here: http://www.virtuallyghetto.com/2016/11/vghetto-automated-vsphere-lab-deployment-for-vsphere-6-0u2-vsphere-6-5.html. The README with configuration instructions can be found here: https://github.com/lamw/vghetto-vsphere-automated-lab-deployment

Great stuff!!! Thanks @lamw

Jan 30

SimpliVity Custom Backup Scheduling Using the REST API

The ability to perform Policy-based VM-centric backups is a key feature delivered by SimpliVity’s Data Virtualization Platform (DVP). SimpliVity Backup Policies are a collection of rules which automate the protection of virtual machines to meet Recovery Point Objectives (RPO) for data recovery, this includes replicating backups to other SimpliVity Datacenters for off site retention and disaster recovery. SimpliVity Backups allow full virtual machines or individual files/folders to be quickly restored to the point in time when the backup was taken. This post provides a solution using the REST API to schedule SimpliVity backups outside of the standard options available when creating SimpliVity backup policy rules in the vSphere Web Client.

A SimpliVity Backup Policy contains backup rules which answer three questions: 1) frequency of backup, 2) retention period, and 3) in which SimpliVity datacenter to store the backup. A Backup Policy can contain multiple rules to protect VMs at different frequencies, with different retention policies, which can be replicated across multiple Datacenters.

Read the rest of this entry »

Jan 19

Automate Backup of the VCSA to the vMA

Recently I wrote a post on how to Target the vMA for VCSA Backups. This post takes things a step further and automates the backup of the VCSA using a shell script, the vCenter Appliance REST API, and cron on the vMA.

In the vSphere 6.5 Documentation there is a Bash Example of Backing Up the vCenter Server Instance so I did not have to re-invent the wheel. I made a few slight modifications to the example script to use SCP and separate VCSA instance backups into different folders.

My vcbu.sh script can be found here: https://github.com/herseyc/VMware/blob/master/vcbu.sh
Read the rest of this entry »

Jan 16

Target the vMA for VCSA Backups

One handy new feature available with vSphere 6.5 is the ability to take a supported backup of the vCenter Server Appliance (VCSA) configuration and database. The VCSA backup workflow can be accessed from the VMware vSphere Appliance Management Interface at https://IPorFQDNofvCenter:5480/

VCSA backups can be transferred to a target using HTTP/S, FTP/S, and SCP. A target will have to be configured to use one of the supported protocols in order to backup the VCSA, the vMA already supports SCP. This post walks through backing up the VCSA using SCP to target the vSphere Management Assistant (vMA) to store the backup.

Additional capacity will need to be added to the vMA to store the VCSA backups. Check out the post Adding a /workspace Disk to the vSphere Management Assistant for details on how to add an additional disk to the vMA.
Read the rest of this entry »

Older posts «

» Newer posts