zoukankan      html  css  js  c++  java
  • 使用Powershell安装WSFC

    介绍

    在本文中,我们将介绍如何使用PowerShell在Windows Server2012 R2进行的更多自动化操作以及在Windows 2008 R2和Windows Server 2012 R2上使用PowerShell自动安装故障转移群集功能。我们将介绍可用于安装可以单独运行的所需功能的命令,以及用于安装功能并记录结果的简单脚本。

    那么,可以为故障转移群集安装哪些功能?故障转移群集功能由Windows Server PowerShell CmdLet Get-WindowsFeature所示的以下组件组成:

    • Failover-Clustering (Failover Clustering) = This installs the core Failover Clustering feature and all fundamental requirements.  It does not include any management tools.
    • RSAT-Clustering-Mgmt (Failover Cluster Management Tools) = Includes the Failover Cluster Manager snap-in and the Cluster-Aware Updating interface.
    • RSAT-Clustering-PowerShell (Failover Cluster Module for Windows PowerShell)  = Includes Windows PowerShell cmdlets for managing failover clusters.  It also includes the Cluster-Aware Updating module for Windows PowerShell, for installing software updates on failover clusters.

    过程

    需要注意的是,必须以管理员身份打开的PowerShell,先让我们看一下可以运行的单个命令:

    下面的命令会安装The Failover Clustering feature and the management tools.

    注意:如果你并没有指明 –IncludeManagementTools 参数开关,则不会安装故障转移群集管理器和Powershell cmdlet for cluster.

    PS C:UsersAdministrator> Install-WindowsFeature -Name FailOver-Clustering -IncludeManagementTools

    and the next tool needed.

    C:PS> Install-windowsfeature RSAT-Clustering -IncludeAllSubFeature

    Windows Server实现了“ FailoverClusters” Windows PowerShell模块库,该库提供了Powershell所需要的WSFC命令可以与Windows故障转移群集一起使用。

    When you enable the failover cluster role on a Windows Server, the installation process installs the required Windows failover cluster PowerShell modules. Before you can execute any of the Windows failover PowerShell cmdlets, you will be required to import the modules in a PowerShell session by executing the “Import-Module” command as shown in the command below:

    最后重启计算机。

    本文内容引自:http://lifeofageekadmin.com/how-to-install-failover-clustering-with-powershell/

  • 相关阅读:
    python3中Requests将verify设置为False后,取消警告的方式
    unicode编码转换中文_python
    base64编解码_python
    数据结构学习之二叉树
    springboot全能框架学习之旅
    数据结构之树
    经典的猴子分香蕉问题
    求n个数的排列
    三元运算的应用
    将正整数分解成质因数乘积
  • 原文地址:https://www.cnblogs.com/luoshengjie/p/11573427.html
Copyright © 2011-2022 走看看