D(one) IT

IT Tips, Tricks & Such

Monthly Archives: December 2010

vbk is locked running session

A few nights ago, one of our Veeam Backup jobs was hung. I tried the “Stop Job” option but seemed to have no effect. I then rebooted the backup server but found the drives for the server being backed up were still mounted to the backup server. I issued a “Retry Job” but the job came back failed with an error: “vbk is locked running session”

To resolve this issue and to get the job runnable again:

  1. Launch the vSphere client, go to Edit Settings on the Veeam VM

Remove any hard drives that shouldn’t be there(VMDKs mounted for the job).

  1. Remove any orphaned snapshots on servers being backed up.

Create a manual snapshot, go into Snapshot Manager – > Delete All.

Advertisements

Slow vSphere client

After upgrading VMware Virtual Center to 4.1, I noticed the vSphere Client took almost a minute to connect after authenticating.

Delete personal settings for client (clears saved server list and downloaded certificates) :

  • HKCU\Software\VMware\Virtual Infrastructure Client
  • HKCU\Software\VMware\VMware Infrastructure Client

Windows 7 users can also disable desktop composition to improve preformance:

  1. Right-click the shortcut for the vSphere Client and click Properties.
  2. Click the Compatibility tab.
  3. Select Disable desktop composition.
  4. Note: This disables Aero desktop effects while the application is open
  5. Click OK.
  6. Run the vSphere Client.

Deleting the registry keys reduced my load time to almost a quarter of what was prior.

yEd free Visio replacement

While looking for a free MS Visio alternative, I stumbled on yED Graph Editor by yWorks.

This program is Java-based and you can either download an installer or launch it from the yWorks webpage. I found that the Launch option uses yed.jnlp that opens yed.Jar. For my scenario I just wanted to place the jar file on the desktop of specific users to give them access. I used this link: http://www.yworks.com/products/yed/demo/yed.jar to download the required jar file.

Sdelete

Using Veeam Backup and Replication, I found that this size of the backup file can be greatly reduced if you use Sdelete to zero out the free space in the VMs being backed up (Fixed Disk).

I use a script from Yellow Bricks, which defrags all local drives then runs sdelete to zero out free space. I usually run this script after major program installs, Drive increase or on a quarterly bases.

sdfrag.bat

@echo off
cscript c:\sdfrag.vbs
pause

sdfrag.vbs

 Set WshShell = WScript.CreateObject("WScript.Shell")
Dim fso, d, dc
Set fso = CreateObject("Scripting.FileSystemObject")
Set dc = fso.Drives
WshShell.RegWrite "HKCU\Software\Sysinternals\", 0, "REG_SZ"
WshShell.RegWrite "HKCU\Software\Sysinternals\SDelete\", 0, "REG_SZ"
WshShell.RegWrite "HKCU\Software\Sysinternals\SDelete\EulaAccepted", 1, "REG_DWORD"
For Each d in dc
If d.DriveType = 2 Then
Return = WshShell.Run("defrag " & d & " -f", 1, TRUE)'
Return = WshShell.Run("sdelete -c " & d, 1, TRUE)
End If
Next
Set WshShell = Nothing 


Expand Windows boot volume

During a VMware VDI project, I ran into the situation of having to increase the system boot volume from a deployed template.

I found that my options were:

  1. Boot VM with a Live CD containing Gparted. Follow these steps.
  2. Connect boot volume to another VM and go through Diskpart. Follow these steps.
  3. Small Dos utility from Dell ExtPart (Works on 32bit OS only). Follow these steps.
  4. Starting in Windows Vista/ Server 2008: Extend boot volume from Disk Management or Diskpart locally. Follow these steps.

I found that ExtPart was the best option working with XP and Server 2003 VMs.

  • Power off VM
  • Increase drive size using vSphere Client
  • Power on VM
  • Open a Command prompt
  • Run extpart [ volume . sizetogrowinMB ]

Example: extpart c: 2048 (Increases C drive 2 GB)

  • No Reboot required.
  • I would then issue an Sdelete script to zero out all the free space to reduce backup size.