Как использовать power shell для установки отказочной кластеризации

This cmdlet modifies the configuration of a cluster. HAEnabled is automatically set to $true if some of the HA settings, HAAdmissionControlEnabled, HAFailoverLevel, HARestartPriority, or HAIsolationResponse are specified. DrsEnabled is automatically set to $true if some of the DRS settings, DrsAutomationLevel, or DrsMode are specified.

Parameters

RequiredParameter NameTypePositionFeaturesDescription
Cluster Cluster[]named
  • pipeline
  • wildcards
Specifies the name of the cluster you want to configure.
optional Name String1Specifies a new name for the cluster.
optional BaseImage BaseImagenamedSpecifies the ESXi base image that the cluster’s hosts should comply with.
optional Component Component[]namedSpecifies the ESXi components that the cluster’s hosts should comply with.
optional CryptoMode CryptoModenamedSpecifies the cluster encryption mode you want to configure. When set to OnDemand, hosts in the cluster are not required to be in a cryptographically “Safe” state. When set to ForceEnable, all hosts in the cluster are forced to be cryptographically “Safe”, that is, vCenter Server has installed a host key on the host.
optional DepotOverride String[]namedSpecifies a depot address from where the cluster can fetch metadata and resources for the vSphere Lifecycle Manager operations.
optional DrsAutomationLevel DrsAutomationLevelnamedSpecifies a DRS automation level. The valid values are FullyAutomated, Manual, and PartiallyAutomated.
optional DrsEnabled BooleannamedIf specified, enables VMware DRS.
optional DrsMode DrsModenamedThis parameter is deprecated and scheduled for removal. Use the DrsAutomationLevel parameter instead.
Specifies a DRS mode. The valid values are FullyAutomated, Manual, and PartiallyAutomated.
optional EVCMode StringnamedSpecifies the EVC mode of the newly created cluster. If not specified or set to $null, EVC is deactivated.
optional FirmwareAddon PackagenamedSpecifies a package from a hardware support manager that the hosts on a cluster should comply with. This parameter has been renamed from “Package”. A PowerShell alias “Package” for this parameter has been added for backward compatibility of PowerShell scripts.
optional HAAdmissionControlEnabled BooleannamedIndicates that the virtual machines in the cluster will not start if they violate availability constraints.
optional HAEnabled BooleannamedIf specified, enables VMware High Availability.
optional HAFailoverLevel Int32namedSpecifies a failover level. This is the number of physical host failures that can be tolerated without impacting the ability to meet minimum thresholds for all running virtual machines. The valid values are in the range of 1 to 4.
optional HAIsolationResponse HAIsolationResponsenamedSpecifies whether the virtual machine should be powered off if a host determines that it is isolated from the rest of the compute resource. The valid values are PowerOff and DoNothing. Passing values to this parameter through a pipeline is deprecated and will be deactivated in a future release.
optional HARestartPriority HARestartPrioritynamedSpecifies the cluster HA restart priority. The valid values are Disabled, Lowest, Low, Medium, High, and Highest. VMware HA is a feature that detects failed virtual machines and automatically restarts them on alternative ESX/ESXi hosts. Passing values to this parameter through a pipeline is deprecated and will be deactivated in a future release.
optional Profile VMHostProfilenamed
  • wildcards
Specifies a host profile you want to associate with the cluster. If the value of this parameter is $null, the current profile association is removed.
optional RunAsync SwitchParameternamedIndicates that the command returns immediately without waiting for the task to complete. In this mode, the output of the cmdlet is a Task object. For more information about the RunAsync parameter run “help About_RunAsync” in the VMware PowerCLI console.
optional Server VIServer[]named
  • wildcards
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.
optional VMSwapfilePolicy VMSwapfilePolicynamedSpecifies the swapfile placement policy. The following values are valid:
InHostDataStore – stores the swapfile in the datastore specified by the VMSwapfileDatastoreID property of the virtual machine host. If the VMSwapfileDatastoreID property is not set or indicates a datastore with insufficient free space, the swapfile is stored in the same directory as the virtual machine. This setting might degrade the vMotion performance.
WithVM – stores the swapfile in the same directory as the virtual machine.
optional VendorAddOn AddOnnamedSpecifies the ESXi vendor add-on that the cluster’s hosts should comply with.
optional VsanDiskClaimMode VsanDiskClaimModenamedSpecifies the mode by which disks are claimed by vSAN.
optional VsanEnabled BooleannamedSpecifies whether the vSAN feature is enabled on this cluster.
optional VsanEsaEnabled BooleannamedIndicates that the vSAN ESA feature is enabled on this cluster. This feature is supported from vSphere 8.0.
:/>  Вызов контекстного меню с клавиатуры

Parameters

RequiredParameter NameTypePositionFeaturesDescription
Cluster Cluster[]named
  • pipeline
  • wildcards
Specifies the name of the cluster you want to configure.
Remediate SwitchParameternamedIndicates that you want to remediate the cluster’s hosts to the target state.
optional AcceptEULA SwitchParameternamedIndicates that the End User License Agreement (EULA) is accepted for the images that you want to install on the cluster’s hosts in order to comply with the target state.
optional RunAsync SwitchParameternamedIndicates that the command returns immediately without waiting for the task to complete. In this mode, the output of the cmdlet is a Task object. For more information about the RunAsync parameter run “help About_RunAsync” in the VMware PowerCLI console.
optional Server VIServer[]named
  • wildcards
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.
Get-Cluster -Name "MyClusterName" | Set-Cluster -Name "NewClusterName" -HAEnabled:$true -HAAdmissionControlEnabled:$true -HAFailoverLevel 2 -VMSwapfilePolicy "InHostDatastore" -HARestartPriority "Low" -HAIsolationResponse "PowerOff"

Renames the “MyClusterName” cluster to “NewClusterName” and changes its VMware High Availability (HA) settings.

Set-Cluster -Cluster "MyClusterName" -DRSEnabled:$true -DRSAutomationLevel "Manual"

Changes the VMware Distributed Resource Scheduler (DRS) settings of the “MyClusterName” cluster.

Set-Cluster -Cluster "MyClusterName" -EVCMode "intel-nehalem"

Changes the VMware Enhanced vMotion Compatibility (EVC) settings of the “MyClusterName” cluster.

Set-Cluster -Cluster "MyClusterName" -CryptoMode "ForceEnable"

Changes the encryption mode settings of the “MyClusterName” cluster.

Related Commands

Cluster

This cmdlet retrieves the clusters available on a vCenter Server system.

:/>  Не запускается кс го хотя пишет что запущено, и деспетчере тоже пишет что запущено, но ничего не происходит :: Counter-Strike: Global Offensive General Discussions

This cmdlet moves a vCenter Server cluster from one location to another.

This cmdlet creates a new cluster.

This cmdlet deletes the specified clusters.

This cmldlet modifies the configuration of a cluster.