Skip navigation
VMware
1,283 Views 3 Replies Last post: Sep 11, 2009 6:25 PM by c_shanklin RSS
c_shanklin Master VMware Employees 943 posts since
Dec 3, 2007
Currently Being Moderated

Aug 14, 2009 9:06 AM

FT-enable a VM.

To enable FT for a VM:

 


Get-VM X | Get-View | % { $_.CreateSecondaryVM($null) }

 

This will choose a host, if you want to specify a specific host, pass the host's MOR in place of $null.

 

To disable, run:


Get-VM X | Select -First 1 | Get-View | % { $_.TurnOffFaultToleranceForVM() }

 

Note that in PowerCLI 4.0 Get-VM will return a fault tolerant VM twice, so we select the first one.

Carter Shanklin | VMware Product Management | @cshanklin
 
Mike_Laverick Virtuoso vExpert 4,279 posts since
Jan 5, 2004
Currently Being Moderated
1. Sep 10, 2009 7:44 AM in response to: c_shanklin
Re: FT-enable a VM.

Carter,

 

I am I right in saying there's no method to enable FT logging on a vmkernel port in the SDK.

 

I remember asking this before but I can't remember the answer...

 

If it is possible - can you point me to the right location in the SDK online?

 

 

Regards

Mike Laverick

RTFM Education

http://www.rtfm-ed.co.uk

Author of the SRM Book: http://www.lulu.com/content/4343147

Regards Mike Laverick RTFM Education http://www.rtfm-ed.co.uk
lamw Guru vExpert 5,952 posts since
Nov 27, 2007
Currently Being Moderated
2. Sep 10, 2009 8:21 PM in response to: Mike_Laverick
Re: FT-enable a VM.

Mike,

 

Take a look at ftCLI2.pl to configure FT logging for a given set of ESX(i) hosts for a given FT portgroup, I'm sure this can be accomplished in PowerCLI as well since this just uses the vSphere APIs

 

 

 

 

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

Twitter: @lamw

 

 

If you find this information useful, please award points for "correct" or "helpful".

*Disclaimer: VMware Employee - William Lam | http://www.virtuallyghetto.com | http://blogs.vmware.com/vsphere/automation | @lamw

Bookmarked By (0)

Share This Page

Communities