www.vmwareadmins.com

how many VMs can you put in a box?

  • Increase font size
  • Default font size
  • Decrease font size
Home Articles All your VM's are aligned to us!

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...

 

 

 

Follow Me On...

Facebook linkedin twitter youtube