Jas -
Give it up! What's the caveat for Linux? I have some customers with sizeable Linux environments too. Also, is mbrscan a freeware tool? I don't work for a NetApp partner right now.
Sometimes (most of the time) after running NetApp's MBRALIGN on Linux VMs, the VM is no longer bootable. It will immediately hang at a GRUB prompt. There is a repair procedure that involves booting from a Knoppix CD and running a few commands to repair the boot loader of the affected Linux VM. I've been through it dozens of time. Once the boot loader is repaired, the Linux VM will boot and its partitions will be aligned. I have seen rare cases where the fix does not actually work and you have no choice but to revert to the backed up .vmdk files that mbralign automatically creates for you. At that point, you can try the align process again or give up. The align process takes a while and it varies upon how large each .vmdk file is of course. On average what I see is an alignment of a 50GB .vmdk file in half an hour or less.
- Once the knoppix CDROM has booted, From the 'boot>' prompt type 'knoppix 2' and hit RETURN
- From the Command Line, type 'grub' to get to the grub prompt
- Run "find /boot/grub/stage1" and note all of the drives it finds (e.g., "(hd0,0)")
- From the GRUB prompt, for each Drive, Run the following:
grub> find /boot/grub/stage1
(hd0,0)
(hd1,0)
(hd2,0)
grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 15 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
Done.
grub>
- You can batch process multiple boot drives, just attach all of the drives you wish to fix to a dedicated knoppix appliance that boots from the Knoppix CD.
You should be able to download the NetApp tools. Just go create yourself a now.netapp.com account and download the mbrscan and mbralign tools
http://communities.netapp.com/docs/DOC-2563;jsessionid=3FAC4EB6245FD8344D98EA9247C2FE34
Don't forget that MBRALIGN creates backups of your .vmdk files which will chew up double the amount of storage you use so go back and delete those backup files once you've determined the alignment is a success.
Duncan -
That's what I thought. If your data is on an aligned drive, ther is probably no reason to worry about the system drive, but I wanted some other opinions as well.
I align all drives as a best practice. Not as a performance benefit for the individual VM, but as a performance benefit for the storage array that all VMs point back to. Disk alignment converts all unaligned disk I/Os from a maximum possible value of 2 IOs to a value of 1 IO. If you multiply that factor by hundreds or thousands you start to see a little performance increase for the VMs. Now multiple that savings by X number of VMs on each LUN, disk group, etc. and you might see how aligning C: drives collectively improves the maximum amount of performance you can squeeze out of that LUN, disk group, storage array, etc. This is an example of where the value of the savings is greater than the sum of all of its parts.
Jason Boche, vExpert
boche.net - VMware Virtualization Evangelist
VMware Communities User Moderator
Minneapolis Area VMware User Group Leader