Platinum Sponsors


Save & Optimise Virtual Disk Storage for FREE.

Save & Optimise Virtual Disk Storage for FREE.

This article demonstrates a FREE way of saving/optimising Virtual Disk storage space using software which is freely available. Include is :1. How to report which disks are over-allocated using our very own free vdisk waste finder application from here > Vdisk Waste Finder (5193 downloads)
2. How to resize over-allocated vdisks using a free open source application called “gparted
3. How to align the vdisk including system disks to a 64k start sector. This increases performance and reduces disk latency using a free open source application called “gparted”So to get started first of all download all the software by clicking on the application names above./Disclaimer:  Virtualizeplanet will not be liable if anything was to go wrong whilst performing the following operations. Do at your own risk and we will not be responsible for data loss or down time./
How to report which disks are over-allocated.

Update on this post, watch how to do this found > here <

Firstly use Vdisk Waste Finder by pointing the application to your ESX server or vCenter server, providing credentials, specifying the percentage of free space you want to look for and then clicking go.
You will then be presented with a list of VMs and their disk details. On the far right you will see a column titled “Wasted Disk”. Any disk that is noted as “Needs Resize” falls under the allowed free space and you could consider this drive a candidate for a resize..

VWF Click Picture to make larger

How to resize over-allocated vdisks.

Secondly Add a vdisk to the candidate VM of the new optimal size using the VI client.
Now booting from the Gparted live-cd iso image it’s easy to resize the partition of a disk.  Right click on the drive you want to resize then click Resize/Move from the menu:

gpartedClick Picture to make larger

Then resize the original drive to the same size as the newly add drive:

gpartedClick Picture to make larger
Next you’ll have to click on “Apply All Operations”
Next right click the drive and select copy.
Now select the new drive, right-click and select paste. Before you can paste you will be prompted to initiate a partition table make sure you do this but no need to create a partition or format it.
Next you’ll have to click on “Apply All Operations”
This will now copy the data from the old drive to the new disk.
Now the newly created drive right-click and select manage-flags.
Make sure the boot flag is selected or the VM won’t boot.

GpartedClick Picture to make larger

In the VI client back in the settings of VM remove the old drive.

Job done.

How to align the vdisk including system disks to a 64k start sector.

The idea here is to make sure your partition starts on a sector number derivable by 64, so for example 64 or 128 or 256. This will increase your VM disk performance and reduce latency.
This issue is fully described in the following vmware document:

New update and “how to” video found >HERE<

Follow these steps:
Again boot the system with the Gparted live CD.
Right-click the parition select move/resize
Shrink the partition by 10 MBs
Move the partition to right by a few MB’s to free up space at the begining of the disk.
Next you’ll have to click on “Apply All Operations”
When finished  exit Gparted, not the entire live CD, just the Gparted application (so don’t reboot)
Start the terminal window
At command prompt type ‘parted /dev/sda’ (substitute your actual device here) to start the command line parted editor
Create a new partition at the start of the disk to fill in the space up to the section where you want to align your parition.  For example, if you want your system partition to start at sector 128, create a very small partition that takes up space from sectors 63-127.  For example using the command:
>mkpart primary 63s 127s

parted will create a new primary partition from sector 63 to sector 127.  That means the very next sector available is 128.
Exit parted and restart the Gparted GUI by clicking the Gparted icon.
Use the move/resize option to resize the partition to fill the entire remaining space.  Make sure you have the MUST uncheck the “Round to Cylinders” option selected.
Next you’ll have to click on “Apply All Operations”

Job Done.

Your partition should now start on an optimized sector

Gparted Click Picture to make larger

But how do you find misaligned disks in the first place? Click >HERE < to find out

Last Updated ( Mar 07, 2010 at 03:47 PM )

vSwitch Local Speed

A client told me today he thought he was having poor backup performance over a virtual network. But when he started debugging he noticed that it wasn’t just Backup that was the problem it was all network IO through a local vswitch. He started the conversation by asking me what I expect to see in network throughput between 2 VMs localised on the same vswitch. He informed me no matter what he tried in terms of using a vswitch with/without a pNIC and trying different types of vNIC he couldn’t push 240mbits/s. He asked him the obvious question which was “Is there anything else happening on the system that could be impacting net performance, like CPU overhead” and the answer was “no”.
So I decided to test it for myself.

As did my client I used the Netperf tool to test throughput between the 2 VMs. To use NetPerf you run:
C:\Netserver.exe on one VM
and then 
C:\Netclient.exe –H hostname (of the first system)
on the other VM.

After a few seconds you should get a result displayed in mbits/s
And just like my client I tested a vswitch with/without a pNIC and different types of vNIC. I also tested different hosts to get varied result. The problem is I saw results which I’d expect to see, and on average I saw speeds of 500mbits/s

Flexible 1 2 Average
vswitch +pNIC 502 594 548
vswitch -pNIC 608 565 586.5
vswitch +pNIC 461 482 471.5
vswitch -pNIC 261 495 378
VMXNet3 1 2 Average
vswitch +pNIC 641 621 631
vswitch -pNIC 628 593 610.5
vswitch +pNIC 465 496 480.5
vswitch -pNIC 531 533 532

VCP Tips – Storage Part1

Ok so I wanted to give something back to the community and seen as I used to be a VMware trainer I decided to dedicate a section on helping people revise for the VCP exam. My first offereing is a document that gives you a consolidated view of storage related revision material.

I’m never going to help you cheat but I can give you my view on exam requirements.

To download the document click >  VCP Tips -Storage Part1 (2536 downloads) <

This is the first document of many to come. Please contact me if you find something wrong or outdated

Gold Sponsors
Silver Sponsor