Как удалить кластер windows

Добавление узлов в автономный кластер Service Fabric под управлением Windows Server или удаление узлов из него Add or remove nodes to a standalone Service Fabric cluster running on Windows Server

После создания автономного кластера Service Fabric на компьютерах под Windows Server, потребности вашего бизнеса могут измениться, и вам потребуется добавить или удалить узлы в кластере, как описано в этой статье. After you have created your standalone Service Fabric cluster on Windows Server machines, your (business) needs may change and you will need to add or remove nodes to your cluster, as described in this article.

Функции добавления и удаления узлов не поддерживаются в кластерах локальной разработки. Node addition and removal functionality is not supported in local development clusters.

Добавление узлов в кластер Add nodes to your cluster

Подготовьте ВИРТУАЛЬную машину или компьютер, которые требуется добавить в кластер, выполнив действия, описанные в разделе планирование и подготовка развертывания Service Fabric кластера. Prepare the VM/machine you want to add to your cluster by following the steps outlined in Plan and prepare your Service Fabric cluster deployment.

Выясните, в какой домен сбоя и домен обновления вы собираетесь добавить эту виртуальную машину или компьютер. Identify which fault domain and upgrade domain you are going to add this VM/machine to.

Если для защиты кластера используются сертификаты, предполагается, что сертификаты будут установлены в локальные хранилища сертификатов при подготовке узла к присоединению к кластеру. If you use certificates to secure the cluster, certificates are expected to be installed in the local certificate stores in preparation for the node to join the cluster. Аналоговый параметр применяется при использовании других форм безопасности. The analog is applicable when using other forms of security.

Подключитесь к виртуальной машине или компьютеру, который нужно добавить в кластер, с помощью удаленного рабочего стола. Remote desktop (RDP) into the VM/machine that you want to add to the cluster.

Скопируйте или Скачайте автономный пакет для Service Fabric для Windows Server на виртуальную машину или компьютер и распакуйте пакет. Copy or download the standalone package for Service Fabric for Windows Server to the VM/machine and unzip the package.

Запустите PowerShell с повышенными привилегиями и перейдите в расположение распакованного пакета. Run PowerShell with elevated privileges and go to the location of the unzipped package.

Запустите скрипт AddNode.ps1, указав параметры, описывающие новый узел, который будет добавлен. Run the AddNode.ps1 script with the parameters describing the new node to add. В следующем примере добавляется новый узел с именем VM5 с типом NodeType0 и IP-адресом 182.17.34.52, в ДО1 и демон:/DC1/R0. The following example adds a new node called VM5, with type NodeType0 and IP address 182.17.34.52, into UD1 and fd:/dc1/r0. ExistingClusterConnectionEndPoint — Это конечная точка подключения для узла, уже существующего в существующем кластере, который может быть IP-адресом любого узла в кластере. ExistingClusterConnectionEndPoint is a connection endpoint for a node already in the existing cluster, which can be the IP address of any node in the cluster.

Читайте также:  Windows 10 когда начнется установка

Небезопасные (создание прототипов): Unsecure (prototyping):

Безопасность (на основе сертификата): Secure (certificate-based):

После завершения выполнения скрипта можно проверить, добавлен ли новый узел, выполнив командлет Get-ServiceFabricNode . When the script finishes running, you can check whether the new node has been added by running the Get-ServiceFabricNode cmdlet.

Чтобы обеспечить согласованность на различных узлах в кластере, нужно обновить конфигурацию. To ensure consistency across different nodes in the cluster, you must initiate a configuration upgrade. Выполните команду Get-ServiceFabricClusterConfiguration , чтобы получить последний файл конфигурации и добавить добавленный узел в раздел «узлы». Run Get-ServiceFabricClusterConfiguration to get the latest configuration file and add the newly added node to the «Nodes» section. Также рекомендуется всегда иметь доступ к последней конфигурации кластера, если потребуется повторное развертывание кластера с такой же конфигурацией. It is also recommended to always have the latest cluster configuration available in case you need to redeploy a cluster that has the same configuration.

Ход выполнения обновления можно отслеживать с помощью Service Fabric Explorer. You can monitor the progress of the upgrade on Service Fabric Explorer. Кроме того, можно выполнить команду Get-ServiceFabricClusterUpgrade. Alternatively, you can run Get-ServiceFabricClusterUpgrade.

Добавление узлов в кластеры, настроенные с помощью Windows Security, с использованием gMSA Add nodes to clusters configured with Windows Security using gMSA

Для кластеров, настроенных с помощью групповой управляемой учетной записи службы (https://technet.microsoft.com/library/hh831782.aspx)), можно добавить новый узел, используя обновление конфигурации. For clusters configured with Group Managed Service Account(gMSA)(https://technet.microsoft.com/library/hh831782.aspx), a new node can be added using a configuration upgrade:

Выполните команду Get-ServiceFabricClusterConfiguration на любом из имеющихся узлов, чтобы получить самый последний файл конфигурации, и добавьте сведения о новом узле, который нужно добавить в раздел узлов. Run Get-ServiceFabricClusterConfiguration on any of the existing nodes to get the latest configuration file and add details about the new node you want to add in the «Nodes» section. Убедитесь, что новый узел входит в ту же учетную запись, которой управляет группа. Make sure the new node is part of the same group managed account. Этой учетной записи нужно назначить роль «Администратор» на всех компьютерах. This account should be an Administrator on all machines.

Ход выполнения обновления можно отслеживать с помощью Service Fabric Explorer. You can monitor the progress of the upgrade on Service Fabric Explorer. Кроме того, с этой же целью можно выполнить команду Get-ServiceFabricClusterUpgrade. Alternatively, you can run Get-ServiceFabricClusterUpgrade

Добавление типов узлов в кластер Add node types to your cluster

Чтобы добавить новый тип узла, измените конфигурацию, чтобы добавить новый тип узла в разделе NodeTypes в области Properties, и начните обновление конфигурации, используя ServiceFabricClusterConfigurationUpgrade. In order to add a new node type, modify your configuration to include the new node type in «NodeTypes» section under «Properties» and begin a configuration upgrade using Start-ServiceFabricClusterConfigurationUpgrade. После завершения обновления в кластер можно добавить новые узлы этого типа. Once the upgrade completes, you can add new nodes to your cluster with this node type.

Читайте также:  Adobe after effects с линуксом

Удаление узлов из кластера Remove nodes from your cluster

Вы можете удалить узел из кластера в ходе обновления конфигурации следующим образом: A node can be removed from a cluster using a configuration upgrade, in the following manner:

Выполните команду Get-ServiceFabricClusterConfiguration, чтобы получить последний файл конфигурации, и удалите узел из раздела узлов. Run Get-ServiceFabricClusterConfiguration to get the latest configuration file and remove the node from «Nodes» section. Добавьте параметр NodesToBeRemoved в раздел Setup в разделе FabricSettings. Add the «NodesToBeRemoved» parameter to «Setup» section inside «FabricSettings» section. Значение должно быть списком имен узлов, разделенных запятыми, для узлов, которые необходимо удалить. The «value» should be a comma-separated list of node names of nodes that need to be removed.

Ход выполнения обновления можно отслеживать с помощью Service Fabric Explorer. You can monitor the progress of the upgrade on Service Fabric Explorer. Кроме того, можно выполнить команду Get-ServiceFabricClusterUpgrade. Alternatively, you can run Get-ServiceFabricClusterUpgrade.

При удалении узлов может выполниться несколько обновлений. Removal of nodes may initiate multiple upgrades. Некоторые узлы будут отмечены тегом IsSeedNode=”true” . Их можно определить, запросив манифест кластера с использованием Get-ServiceFabricClusterManifest . Some nodes are marked with IsSeedNode=”true” tag and can be identified by querying the cluster manifest using Get-ServiceFabricClusterManifest . Удаление таких узлов может занимать больше времени, чем других, так как в таких сценариях начальные узлы придется перемещать. Removal of such nodes may take longer than others since the seed nodes will have to be moved around in such scenarios. Кластер должен поддерживать как минимум 3 первичных узла. The cluster must maintain a minimum of 3 primary node type nodes.

Удаление типов узлов из кластера Remove node types from your cluster

Прежде чем удалить тип узла, проверьте, нет ли узлов, которые ссылаются на этот тип. Before removing a node type, check if there are any nodes referencing the node type. Перед удалением соответствующего типа узла удалите эти узлы. Remove these nodes before removing the corresponding node type. После удаления всех соответствующих узлов NodeType можно удалить из конфигурации кластера и начать обновление конфигурации с помощью ServiceFabricClusterConfigurationUpgrade. Once all corresponding nodes are removed, you can remove the NodeType from the cluster configuration and begin a configuration upgrade using Start-ServiceFabricClusterConfigurationUpgrade.

Замена основных узлов кластера Replace primary nodes of your cluster

Замену основных узлов следует выполнять последовательно, вместо того чтобы удалять, а затем добавлять их массово. The replacement of primary nodes should be performed one node after another, instead of removing and then adding in batches.

Как использовать командную строку для удаления отказоустойчивого кластера Windows Server 2008?

Используйте команду cluster.exe, чтобы удалить отказоустойчивый кластер Server 2008, и ключ.

В. Как использовать командную строку для удаления отказоустойчивого кластера Windows Server 2008?

О. Используйте команду cluster.exe, чтобы удалить отказоустойчивый кластер Server 2008, и ключ /cleanup, чтобы удалить любую информацию из Active Directory (AD). В следующем примере получен список существующих кластеров, а один из кластеров в списке удален. Затем я повторно открыл список, чтобы убедиться в успешном удалении.

Читайте также:  Hide download windows 10

Команда для получения списка существующих порталов:

Затем кластер savtstfclus уничтожен командой

cluster savtstfclus /destroy /cleanup

Are you sure you want to destroy this cluster? (Y/N):

Я ввел символ Y и нажал клавишу Enter. Был получен следующий результат:

Destroying cluster savtstfclus.
11% Moving resource group ‘Cluster Group’.
22% Deleting resource group ‘Available Storage’.
33% Cleaning up computer objects for cluster ‘savtstfclus’.
44% Evicting node savtstfc02 from cluster.
55% Attempting to restore node savtstfc02 to its non-clustered state.
66% Taking resource group ‘Cluster Group’ offline.
77% Cleaning up resources in core Cluster groups.
88% Evicting node savtstfc01 from cluster.
100% Attempting to restore node savtstfc01 to its non-clustered state.

Следующая команда открывает вновь список кластеров:

Уничтожаемый кластер должен быть в активном состоянии. Если узлы кластера находятся в состоянии, в котором уничтожаемый кластер не может быть активизирован, следует использовать ключ /forcecleanup для очистки кластерной информации, как в следующем образце исходного текста:

Поделитесь материалом с коллегами и друзьями

Remove-Cluster

Destroys an existing failover cluster.

Syntax

Description

The Remove-Cluster cmdlet destroys an existing failover cluster. The affected servers will no longer function together as a cluster.

This cmdlet deletes all copies of the cluster configuration database on all cluster nodes.

Note: This cmdlet cannot be run remotely without Credential Security Service Provider (CredSSP) authentication on the server computer.

Examples

Example 1

This example prompts the user for confirmation, then destroys the local failover cluster and removes cluster configuration information from the cluster nodes.

Example 2

This example destroys the local failover cluster and removes cluster configuration information from the cluster nodes. The cmdlet does not prompt for confirmation.

Example 3

This example destroys the cluster named Cluster1, removes cluster configuration information from the cluster nodes, and deletes the cluster objects in Active Directory. The cmdlet does not prompt for confirmation.

Parameters

Specifies that when the cluster is destroyed, the objects in Active Directory that are associated with the cluster are removed.

Type: SwitchParameter
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the name of the cluster on which to run this cmdlet. If the input for this parameter is . or it is omitted, then the cmdlet runs on the local cluster.

Type: String
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Aliases: cf
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

Runs the cmdlet without prompting for confirmation. By default the cmdlet will ask for confirmation from the user before proceeding.

Type: SwitchParameter
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Specifies the cluster to destroy.

Type: PSObject
Position: Named
Default value: None
Accept pipeline input: True
Accept wildcard characters: False

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Оцените статью