VMware: VMFS Best Practices


The VMware Virtual Machine File System (VMFS) is a high performance cluster file system that allows virtualization to scale beyond the boundaries of a single system. Designed, constructed, and optimized for the virtual server environment, VMFS increases resource utilization by providing multiple virtual machines with shared access to a consolidated pool of clustered storage. And VMFS provides the foundation for virtualization spanning multiple servers, enabling services such as VMware VmotionTM, Distributed Resource Scheduler, and VMware High Availability.
VMFS also reduces management overhead by providing a highly effective virtualization management layer, one that is especially suitable for large-scale enterprise data centers. Administrators employing VMFS find it easy and straightforward to benefit from the greater efficiency and increased storage utilization offered by the use of shared resources.
This paper gives a technology overview of VMFS, including a discussion of features and their benefits. The paper highlights how VMFS capabilities enable greater scalability and decreased management overhead. It also provides best practices and architectural considerations for deployment of VMFS.

You can download the whitepaper over here: http://communities.vmware.com/docs/DOC-9276

Tool: TSTaskman


image

Ctrl-Alt-Del IT Consultancy zijn bekent van de volgende gratis tools: TSLogoff – TSPasschg – TSReboot – TSWhereis – TSMsg – TSLogins – TSBackdrop en vele andere tools.

Sinds kort is de tool TSTaskman uit. Deze tool maakt het voor gebruikers mogelijk om processen af te sluiten.

Hieronder tref je een screenshot van de tool.

image

TSTaskman is a standalone Windows GUI tool designed to show a user the list of processes running in their Terminal Server session only. Processes can then be terminated by the user by selecting the process and pressing the terminate button.

This utility was written for the purpose of allowing users to terminate frozen programs or processes that exist only in the Terminal Server Session of the currently logged in user. The GUI lists all the running processes in the Terminal Session of the logged on user, and does not display any other user or system processes. This allows TSTaskman to be presented as an application on the user desktop or as a published application, giving the user the ability to manage frozen applications within a Terminal Server session, should they occur. After correct user training of TSTaskman, help desk calls can be significantly reduced by allowing users to terminate unresponsive applications, without the concerns that the user can terminate other processes not running in their session.

Although written for Terminal Server and Citrix environments, this application will function on non-TS/Citrix workstations and servers. This application has been tested on the following platforms:

Windows 2003 Server SP1
Windows 2003 Server SP1 w/ Citrix PS 4.0
Windows 2003  Server SP1 (Terminal Server Application Mode)
Windows 2000  Server SP4
Windows 2000  Server SP4 w/ Citrix MF XP
Windows 2000  Server SP4 (Terminal Server Application Mode)
Windows 2000  Server SP4 w/ Citrix MF 1.8
Windows XP Professional (domain member)

This utility is FREEWARE and was written by Warren Simondson of
Ctrl-Alt-Del IT Consultancy, Australia. http://www.ctrl-alt-del.com.au

The freeware version is offered AS IS. Ctrl-Alt-Del IT Consultancy has made every effort possible to ensure that TSTaskman is free of any bugs or errors, however in no way is TSTaskman to be considered error or bug free. You assume all responsibility for any damages or lost data that may result from any errors or bugs in TSTaskman.

IN NO EVENT WILL CTRL-ALT-DEL IT CONSULTANCY BE LIABLE TO YOU FOR ANY GENERAL,SPECIAL, INDIRECT, CONSEQUENTIAL,
INCIDENTAL OR OTHER DAMAGES ARISING OUT OF THIS PRODUCT.

Je kunt TSTaskman en de andere tools hier downloaden: http://www.ctrl-alt-del.com.au/CAD_TSUtils.htm

IBM DS4300: Collect Support Data


image

Ik was vandaag vrij en kreeg helaas toch een melding binnen dat er iets mis was met ons SAN. Gelukkig kan ik vanuit huis inloggen om mijn collega’s te ondersteunen. IBM support werd gebeld en even later was de call aangemaakt. Kort daarop werd mijn collega gebeld of hij alle Support data van de DS4300 kon opsturen. Hij had geen idee hoe dit moest dus heb ik het even vanuit huis gedaan. Dit is vrij simpel maar ik blog het toch maar even om het niet te vergeten.

Als eerste start je de Storage Manager 9 Client.

Open het Storage Subsystem <name>

image

Ga nu naar Advanced –Troubleshooting – Collect All Support Data….

image

Het volgende scherm verschijnt.

image

Zodra je op Start klikt wordt er een zip bestand aangemaakt met een aantal bestanden erin.

Je vraagt je misschien af wat voor data er allemaal verzameld word, nou dit is makkelijk te achterhalen. Klik op Whitch data am I collecting? en je kunt er alles over lezen. Ik uit het helpbestand het volgende gehaald:

Storage Subsystem Profile – storageSubsystemProfile.txt
Major Event Log – majorEventLog.txt
Read Link Status Data – readLinkStatus.csv
NVSRAM Data – NVSRAMdata.txt
Recovery Guru Procedures – recoveryGuruProcedures.html
Performance Statistics – performanceStatistics.csv
Persistent Reservations and Registrations – persistentReservations.txt
Object Bundle – objectBundle
Drive Diagnostics Data – driveDiagnosticData.bin
Recovery Profile – recoveryProfile.csv
Unreadable Sectors – unreadableSectors.txt
State Capture Data – stateCaptureData.dmp

VMware: Creating VMware ESX Unattended Install Media


Paul Shannon heeft weer een super document gemaakt over het maken van een Unattended Installatie CD voor VMWare ESX. In de tijd van ESX 2.5.x heb ik ook eens zo’n CD gemaakt door de volgende guide te gebruiken: http://www.vmprofessional.com/index.php?content=kickstart_2. Helaas werkte deze guide niet meer met ESX 3.5. Ik ben dus erg blij met het document van Paul. Thanks Paul!

Paul schrijft het volgende op zijn blog:

I had a customer that had a requirement to backup the ESX Service Console settings and wanted to know the best files to backup. I suggested that it may be more prudent to create unattended installation media to make restores more seamless. This took a turn and I was asked to make a single CD that was capable of restoring any one of the 11 ESX hosts in the clusters. With a lot of reading and a lot of testing this was achieved and this document explains how I did it.

Download het document hier: http://www.vm-aware.com/files/tech_notes/Creating_Custom_ESX_CD.pdf

Bron: http://www.vm-aware.com/2008/12/22/creating-vmware-esx-unattended-install-media/

Live Writer: Twitter Notify Plugin


image

Zojuist heb ik Windows Live Writer geupgrade naar versie 14.0.8050.1202.  Voor deze versie van Live Writer zijn er een aantal plugins gemaakt. Een daarvan is de Twitter Notify plugin. Deze Plugin kun je hier downloaden: http://gallery.live.com/. De Plugin doet het volgende:

Send a Tweet announcing your newly published blog post. A shortened link to your post is automatically generated through the TinyURL service. Customize your default message in the options menu.

Zodra je de plugin hebt geïnstalleerd, kun je de opties aanpassen in de Plug-ins menu:

image

Zodra je de blogpost publiseert krijg je automatisch het onderstaande scherm.

image

En voila het werkt:

image

Add Custom Fields to VI Client with Powershell (Samples)


Hugo Peeters heeft zijn Powershell scripts voor het vullen van Custom Fields in vCenter gepost:

Snapshot Count

I already showed you how to do this, but I have now added an IF-statement so that only changes are updated (equal values are not overwritten). And I have added Julian Wood’s correction. Add-VMSnapshotCount.ps1

Total Snapshot Size

The number of snapshots is quite inetresting, but even more interesting, is the total size of the delta files all snapshots are occupying. They might be eating up all your precious SAN space. Plus, reverting to or committing a large snapshot is tricky. Add-VMSnapshotSize.ps1

Host Hardware Model

Want to see what models of hardware you are using in your datacenter? You could look at the summary tab of each host. Or run this script to add the info to the every Hosts tab in the VI Client. Select your Datacenter, select the Hosts tab and enjoy! Add-VMHostModel.ps1

Host ESX Version

Did you update all your ESX Servers to the latest version? Check it quickly using this script. Add-VMHostVersion.ps1

Host LUN Count

Last but certainly not least: are you sure every datastore you are using is available to all your ESX Servers? It is visible at a glance when you add the LUN Count to your VI Client! Add-VMHostLUNCount.ps1

 

Check zijn site voor allerlei top Powershell scripts: http://www.peetersonline.nl/

 

Bron: http://www.peetersonline.nl/index.php/vmware/add-custom-fields-to-vi-client-with-powershell-samples/

Script: Defrag all Local VMDK’s.


powerShellIcon

De volgende function zoekt eerst alle *.VMX bestanden op en vervangt daarna de extentie *.VMX naar *.VMDK. Deze *.VMDK bestanden worden in de $List geplaatst. Daarna worden alle VMDK’s gedefragmenteerd via de vmware-vdiskmanager.exe.

function Defrag-allVMDKs{
param([string]$path)
$vdiskmanager = “C:\Program Files\VMware\VMware Workstation\vmware-vdiskmanager.exe”
$parameter = “-d”
$List = get-childitem $path -recurse | where {$_.extension -eq “.vmx”} |
foreach-object -process { $_.FullName } | ForEach-Object {$_ -replace “.vmx”, “.vmdk”}
ForEach($vmdk in $List)
{
echo $vmdk
& $vdiskmanager $parameter $vmdk
}
}

Via het volgende commando kun de bovenstaande function gebruiken.

Defrag-allVMDKs <drive>\<path>

Als je dit in de Shell uitvoerd ziet het er als volgt uit:

image

VMware: Snapshot Information in vCenter


 image

Hugo Peeters heeft een powershell script gemaakt welke het aantal snapshots laat zien in een custom field binnen vCenter.

Although I spend quite some time in the Powershell Command Line Interface, the main tool for managing the Virtual Infrastructure remains the VI Client. So wouldn’t it be great if we could somehow show the results of our Powershell VI Toolkit scripts inside the VI Client?
Well, we can! Let’s take a closer look at Custom Fields / Custom Attributes.
If you select either a VMHost (ESX Server) or a VM in the VI Client and open the Summary tab, you will see the Annotations section in the bottom left. When you click Edit, I’m sure you have used the Notes section to enter Descriptions. But have you ever used the Attributes section? Here you can manually add and remove custom attributes and their values. Go ahead and create one. Then select a cluster or datacenter and click the Hosts or Virtual Machines tab. You will notice you can display your custom attribute in this table view, just like all the other properties of your VMs / Hosts. Pretty sweet!
image

Voor meer info zie Hugo zijn post: http://www.peetersonline.nl/index.php/vmware/add-snapshot-information-to-the-vi-client-using-powershell/

Script: Backup VMware Workstation VM’s


 

Via het onderstaande script kun je redelijk eenvoudig een backup maken van je VMware Workstation VM’s. Mocht de VM nog actief zijn, dan wordt deze “netjes” afgesloten en vervolgens gekopieerd naar een directory op een netwerk share. Dit script heb ik geschreven voor een VM die bij ons in productie draait onder VMware Workstation (deze VM heeft een seriële modem aangekoppeld). Zo wordt er elke dag via een scheduled task een backup gemaakt.

De volgende parameters moet je meegeven aan de onderstaande function backup-wsvm:

  • $vmname – de naam van de VM.
  • $vmx – pad naar het vmx bestand.
  • $vmdir – de directory waarin de VM staat.
  • $vmbackup – de directory waar de VM naar toe gekopieerd moet worden.

function backup-wsvm{
  param([string]$vmname, [string]$vmx, [string]$vmdir, [string]$vmbackup)
 
  $driveltr = “v:”
  $share = \\server\share
  $date = get-date -uformat “%m-%d-%Y”
  $vmrun = “C:\Program Files\VMware\VMware Workstation\vmrun.exe”
  $stop = “stop”
  $start = “start”
  $soft = “soft”
  $Result = test-path -path “$vmbackup\$date\$vmname”

  if ($Result -eq $false)
  {
    net use $driveltr $share
    New-Item “$vmbackup\$date\$vmname” -type directory
        & $vmrun $stop $vmx $soft
            Copy-Item $vmdir $vmbackup\$date\ -recurse
                & $vmrun $start $vmx
                    net use $driveltr /Delete
   }
}

Daarna kun je via de volgende code een backup maken van je vm:

$vmname = “Powershell_Lab”
backup-wsvm “$vmname” “D:\vmware\$vmname\$vmname.vmx” “D:\vmware\$vmname” “V:\vmbackup”

VMware: Comparison of Storage Protocol Performance


image

VMware heeft een nieuwe whitepaper uitgegeven over Storage Protocol Performance Whitepaper

This study provides performance comparisons of various storage connection options available to VMware® ESX Server. We used the widely used IOmeter benchmark for the comparison.
The results show that all four network storage options can reach wire‐speed throughput when properly configured. The wire‐speed throughput is also maintained with multiple virtual machines driving concurrent I/Os, indicating that the limiting factor in performance scalability is not in ESX Server. The data also demonstrates that, although Fibre Channel has the best performance in throughput, latency, and CPU efficiency among the four options, iSCSI and NFS are also

De whitepaper kun je hier downloaden: storage_protocol_perf.pdf