Script to show last successful Veeam backup of VMs

Here is a small and simple PowerShell script to list VMs, their last successful backup and the days gone since then.

Continue reading “Script to show last successful Veeam backup of VMs”

Advertisements
Script to show last successful Veeam backup of VMs

Create CPG using Disk Filter

Recently I had to create a new 3PAR CPG using just new added 1.2TB disks. But the system uses already a cage full of 600GB disk. While it was straight forward to change the existing CPG (using 3PAR Management ConsoleStoreServe Management Console (SSMC) does not support this feature any more) to use all disk in cage 0, it was not possible to create a new CPG for all FC disks in cage 1. It was not possible to filter cage number, slot in cage, magazine or chunklet-sizes in the GUI. Also using a simple version of createcpg command does not work. All I got was an error: “Error: no available space for given (invalid?) parameters“.

To get the work done, I used this command:

createcpg -sdgs 32g -t r5 -ha mag -ssz 4 -ss 128 -ch first -p -devtype FC -tc_gt 546 -saga "-ha mag -p -devtype FC -tc_gt 546" FC_r5_1200_AO

Details:

  • -sdgs 32g
    Growth Increment. Note: use 32g instead of 32768!
  • -t
    Raid-Level (r0, r1, r5, r6)
  • -ha
    Availability (port, cag, mag)
  • -ssz
    Set-size. For example: set-size of 4 when using Raid5 means 3+1
  • -ss
    Step-size (KB)
  • -ch
    Preferred chunklets (first, last)
  • -p
    Filter-pattern

    • -devtype
      Disktype (FC, NL, SSD)
    • -tc_gt
      Means: “total chunklets greater than”. -tc_gt 546 selects all disk have more than 546 chunklets (size of a chunklet = 1G –> use all disks greater than 600GB)
    • -tc_lt
      Means: “total chunklets less than”.
  • -saga
    This parameter describes the admin-space of the CPG. If you don’t enter this parameter, the characteristic of the admin-space will be different to the characteristic  of the user-space.
  • FC_r5_1200_AO
    Name of the new CPG
Create CPG using Disk Filter

4 ways to configure adv. settings in CLI

There are a few CLI methods to configure advanced settings in ESXi Hosts. It depends on where you are (vMA/Linux, Windows Client, Console) and what you want to do (configure all hosts or just a specific host, …) which option fits best. Here I describe the options: native PowerCLI, esxcli (console), esxcli (get-esxcli), esxcli (get-esxcli -v2) to:

  • List
    • All settings
    • All settings in a specific Tree or Folder (eg.  /UserVars)
    • A specific option
    • All settings that differ from default settings (Delta)
  • Set
    • Integer
    • String.

Continue reading “4 ways to configure adv. settings in CLI”

4 ways to configure adv. settings in CLI

How PDL (Permanent Device Loss) looks like

Some time ago differentiation between PDL (Permanent Device Loss) and APD (All Path Down) was introduced to vSphere. In a PDL situation, the hosts does not expect the device to return. PDL happens for example, when an administrator unpresents a LUN from a host. APD on the other hand is completely unplanned. By default the host tries to get the device back. Starting with vSphere 6.0 there are settings in a HA-Cluster for response to PDL and APD. This post gives some information about the different settings, what happens to VMs with more than one VMDK, custom alarm creation and more.

Continue reading “How PDL (Permanent Device Loss) looks like”

How PDL (Permanent Device Loss) looks like

Mount HP Blade enclosure DVD on VMs

Mounting a HP BladeSystem enclosre DVD drive on a VM sounds easy. And it is, but it is not that easy as I thought first. Technically it is a USB drive for the host, but it is not possible to pass through the device as a USB drive. This post describes the steps to take for windows VMs (tested for Windows 2008 and 2012), but this should also work for other OSs.

Continue reading “Mount HP Blade enclosure DVD on VMs”

Mount HP Blade enclosure DVD on VMs