November 06, 2009
Disks and their alignment
The idea of disk alignment has come up around our environment. We are not seeing any dramatic effects of of this currently, however since we are still young in the game ov VMs in general we might as well get started off right.
To that end I have started to work on realigning the templates for linux hosts. I have worked up a quick idea of how to make this work, we'll see how it goes.
- convert template to VM
- add an identical sized disk
- boot VM
- use fdisk to set the partition info on second drive correctly
- reboot system to PLD
- dd if=/dev/sda1 of=/dev/sdb1
- dd if=/dev/sda2 of=/dev/sdb2
- fdisk /dev/sdb to verify
- use VMwIC to rearange the disks such that our sdb is used to boot
- boot to RHEL5 disk
- run GRUB sequence to set hd0 etc..
- reboot on new disk ..
Hope it works!
All this is to avoid another dredded install :-) And of course its fun to monkey with disks like this.
Posted by Kevin Foote in work on November 06, 2009

