VMware

AllBlack

AllBlack's Profile

  • Name: (Private)
  • Email: (Private)
  • Member Since: Nov 5, 2007
  • Last Logged In: Nov 19, 2009 3:09 PM
  • Status Level: Expert Expert (954 points)
  • Signature: Please consider marking my answer as "helpful" or "correct"

AllBlack's Latest Content

If you like to keep your OS and data vmdk seperate like I do and you did not do so during
initial VM creation you still have a few options to seperate out your disks.

One of them would be to perform a cold migration. This will allow you to change the storage
for your vmdk. By default it will drop the all files into one destination but you have the option
to store each vmdk in its purpose dedicated LUN by selecting the advanced button.
This works great but there are times where it is not practicle to shutdown your VM.

This is where storage vmotion comes in. We will be making use of the svmotion plugin from lost creations.

In this example we want to move a VM with two disk, one for OS and one for Data, and store the disks
in an appropriatly configured LUN. In ESX3.5, moving individual vmdks is not supported but there is a work around,
albeit a bit long.

Drag your entire VM to the Data LUN and click apply. This will take a wee while to complete depending on the size
of your disks. Once completed, drag the entire VM to the OS LUN but do not click apply! Select your Data disk and drag it back
to the Data LUN. Click apply. The vmx and os.vmdk will be moved again but the data.vmdk stays put.

Another way that works is to use RCLI and enter the following command.

H:\svmotion.pl --server vmcenter --username allblack --password xxxxxxx --vm
"old_DS vm1/vm1.vmx:new_DS" --disks="old_DS vm1/vm1.vmdk:old_DS"

The example above copies over the vmx file and all disks except my vm1.vmdk disk as specified with the --disks parameter.

0 Comments Permalink

I have seen situations were vmnic numbering changed after adding extra NICS or upgrading firmware.
It is not always convenient to re-install host but I'd like to keep vmnic numbering consistent accross all
our servers.

As an example, my ISCSI vSwitch is always bound to vmnic3, Vmotion to vmnic2, etc

If you want to rename those vmnics you can do so by editing /etc/vmware/esx.conf

  • SSH into your host and make a backup of your config file: cp /etc/vmware/esx.conf /etc/vmware/esx.conf.orig
  • Edit your file with an editor such as VI vi /etc/vmware/esx.conf
  • replace every instance of the vmnic you want to change
  • Save file
  • Reboot ESX host

0 Comments Permalink

Write your own drafts, invite selected collaborators, or leave it open for all to pitch in.

Communities