• 21Jul

    A fascinating insight into how Google have designed their infrastructure, right from server to datacenter.  12V batteries on each server saves them a fortune from UPS inefficiency, and the design is clearly optimised to handle airflow and still manage the density.

    Stripping a load of the plastic and fittings out saves a good bit of resources as well.

    http://news.cnet.com/8301-1001_3-10209580-92.html?tag=rtcol;pop

  • 21Jul

    Number one cause of HA errors in VMware is incorrectly configured FQDNs.  If you find that HA is throwing up an error because you forgot a 03 and used 3 for example (hypothetically),  then you need to correct this to get it all working.

    The hostname command should do the trick, but you’ve got a couple of other places to look in as well.  This should all be so familiar to anyone used to Red Hat anyway.

    Make sure it all matches up in:

    /etc/sysconfig/network

    /etc/hosts

    You may also need to reboot, sometimes a service network restart is not enough.

    HA should now work a treat!

  • 21Jul

    Increase the size of the disk presented to the VM using vCenter, then go to disk manager on the VM itself.  You should now see some unused space.

    Launch diskpart from the command line.

    list volumes

    select volume #

    extend

    Done!

  • 20Jul

    Get all VMs using a certain datastore (in this case one with test in the name), and then show those that are powered off.

    [vSphere PowerCLI] C:Program FilesVMwareInfrastructurevSphere PowerCLI> get-datastore -name "*test*" | get-vm | wher
    e { $_.Powerstate -eq "poweredoff" }
    Name                 PowerState Num CPUs Memory (MB)
    ----                 ---------- -------- -----------
    UPRINTXDM            PoweredOff 1        2048
    Uprint8_test         PoweredOff 1        512
    U-SANTEST-01         PoweredOff 1        512
    U-SANTEST-02         PoweredOff 1        512
    TestVM               PoweredOff 1        512
    uclh-test-vm02       PoweredOff 1        3840

    Get all hosts in a cluster to rescan for new storage:

    Get-Cluster | get-vmhost | Get-VMHostStorage -RescanAllHBA
  • 20Jul

    How to reduce the migration time on a datacenter move to the absolute minimum?  Powershell helps hugely with this as there are a large number of mouse clicks required to re-import the virtual environment.  More details on the move to follow, but for now lets get started.

    Go and install powershell on your windows machine, and then go to the vmware site to download their VI-plugin.

    Once installed, you can launch from the vmware folder group, but you may get an error when launching due to the unsigned script.  You can ignore this but it may cause you further issues later.

    If you get this you’ll see this:

    File C:\Program Files\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-VIToolkitEnvironment.ps1 cannot be load
    ed because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.
    At line:1 char:2
    + . <<<<  "C:\Program Files\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-VIToolkitEnvironment.ps1"
    PS C:\Program Files\VMware\Infrastructure\vSphere PowerCLI>

    To resolve, you need to set the signing to allow the VMware bits to all run properly.  Most cmdlets will be fine, and I only ran into problems with this when I tried to use the AnswerVM class which didn’t exist.

    Note: this will remove your security on running scripts, so only do this if you are comfortable with the implications - don’t let any code run you’re not happy with and understand fully.

    set-executionpolicy unrestricted

    Then exit the shell, and restart - it will now look like this:

    VMware powershelll startup

    VMware powershelll startup