www.vmwareadmins.com

how many VMs can you put in a box?

  • Increase font size
  • Default font size
  • Decrease font size
Welcome to VMwareAdmins.com!

All your VM's are aligned to us!

E-mail Print PDF

I have a predicament, I have 3,000 VM's and they need to have their partitions aligned... there is no way that I'll be able to do this manually, just no way. How about vCO? (Orchestrator)

Let's draw up the workflow on how we think this should work...

So I'm thinking we'll use vCO to run mbralign using the Run SSH Command library function, so lets mount our templates NFS mount to a staging server which will run the actual alignment...

mkdir /vmfs
mkdir /vmfs/volumes
mkdir /vmfs/volumes/nas-vmtemplates
mount -t nfs nfsserver.domain.com:/nas-vmtemplates/exports /vmfs/volumes/nas-vmtemplates

Now lets throw together a bash script that will actually do the alignment...

#!/bin/bash
/usr/bin/mbralign --sparse --thereAreNoVmSnapshots "/vmfs/volumes/nas-staging/$2"

Now to test the Run SSH Command library function, I execute the function and call the following cmd string:

/usr/bin/align.sh[nfs_vmfarm_linux_vol003] vm002/vm002-flat.vmdk

Now to create the Guest Alignment workflow in orchestrator:

Download the workflow here!

I'll make it a bit more elegant later...

 

 

Last Updated on Wednesday, 26 May 2010 08:02
 

Recovering Linux VM after running mbralign

E-mail Print PDF
most of the time, your VM will boot and only display GRUB at the top of the screen, to fix this, boot to a rescue CD (installation media) and then:

Launch GRUB by typing the following

grub

Select the correct disk and fix the GRUB stages as follows
grub> root (hd0,0)
grub> setup (hd0)
grub> quit

Reboot and be happy now :)

Last Updated on Wednesday, 26 May 2010 07:38
 


Page 8 of 22

Follow Me On...

Facebook linkedin twitter youtube

Polls

What Version of vSphere are you purchasing?