I’ve been test driving a script called “mbrscan” for a while now. Today I noticed that this script had already been released a couple of weeks ago. The cool thing about the script is that you can check the alignment of the VM’s filesystem from the outside. The script runs directly on the service console of ESX. NetApp’s Nick Triantos describes it as follows:
There’s a new utility that has been added, called mbrscan. The purpose of mbrscan is to identify whether or not a VM has properly aligned partitions. The script will run successfully under two conditions: a) The VM is powered off b) the VM has VMsnaps. The script will error out if none of the above two conditions are satisfied simply because the VMDK(s) are locked.
This can be very useful to identify possible performance issues within just a matter of seconds. Combine this command with “vmware-cmd” to create and remove snapshots and you’ll have the results for you entire environment within minutes.
Now that you just received your results the real question would be:”How am I going to modify this without destroying the data?”
At this point in time that’s not possible. But I know NetApp is working on a tool called “mbralign”. This tool will make it possible to align the filesystem from outside the VM.
The mbrscan tool is part of the “Unified Host Utilities Kit” which reached version 5. The toolkit isn’t available for everyone, you will need a now.netapp.com/ to be able to download it.
UPDATE: MBRSCAN is a binary not an editable script, and the script version has been floating around for a while now…
Lane Leverett says
Hey Duncan,
Actually Vizioncore just released their vOptimizer Pro product on 1/12 that will allow you to realign the partitions on the 64k block boundary. It does involve powering off the guest OS in order to perform this. vOptimizer will also allow for disk resizing as well.
Robert says
MBRScan and MBRAlign have been available to netapp customers for some time.
One of our customers has netapp storage and when the consultant was up before xmas he took me through it and showed me how to use it.
justme says
Anyone have a direct link to “Unified Host Utilities Kit”?
Duncan says
there’s no direct link… I don’t have a netapp account so i can’t help you out unfortunately…
ArnoldR says
http://now.netapp.com/NOW/download/software/kit_iscsi/esx/5.0/
You still need a NetApp account, but hey if you are not working with filers, why do you need the tool?
Martín says
I do not have a NetApp filer, I have an IBM Branded one, so I can not download these tools although the machine are the same.
Duncan says
Filer or not, you will still need to align your OS Filesystem. This tool will come in handy.
ArnoldR says
MBRAlign is not in the download at the moment.(only MBRScan)
Hope they will be releasing that soon.
Tom says
It does not look like NetApp wishes to be generous and make mbrscan/mbralign available to the general public.
Jpratt says
According to the VMWare docs, you do not need to worry about the OS partition alignment if your san luns are aligned properly on the ESX side…
Jpratt says
Just to clarify my previous posting since Duncan was in disagreement, I was referring to boot volumes/disks on vmfs luns – apols if there was any confusion!… :\
http://www.vmware.com/pdf/esx3_partition_align.pdf
Page 3 –
Note: Aligning the boot disk in the virtual machine is neither recommended nor required.
Align only the data disks in the virtual machine.
Duncan says
I don’t know why it wouldn’t be recommended. Just to be sure and out of consistency I would do it when creating a Template.
Michael Tyler says
Do we still need to worry about alignment if you are using NFS for your datastores in ESX? We are not using FB or Isci.
I installed the ESX host utilities but it stops install on the
“checking for installed HBA”
Do I need to configure more? Netapp Howto doesnt list any additional help
Duncan Epping says
Yes as the filesystem of the Guest OS needs to be aligned!
Russ OConnor says
Doesn’t seem to be well publicised, but VMWare Converter 5 does this for you.
There is an option to ‘Create optimized partition layout’. This is an absolute gem of an added feature
Just tried with a V2V for a Linux Red Hat vm with LVM volumes, (out of scope for MBRScan and MBRAlign).
Only caveat is that Linux vms have to be powered on, and you have to mess around with IPs, etc.