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/

  • 相关阅读:
    [算法学习] 单调栈
    UVA11275 3D Triangles(三维几何)
    2019CCSU11月校赛 B,G题解
    2017-2018 ACM-ICPC Northern Eurasia (Northeastern European Regional) Contest (NEERC 17)(B,D)
    2016湖南省省赛 B 有向无环图(树形dp)
    2016湖南省省赛 J 三角形和矩形(计算几何)
    JAVA 高精度小数模板
    2019湖南省赛 K 双向链表练习题(list)
    2019 字节跳动 [编程题]最大映射(贪心)
    HDU 6740 MUV LUV EXTRA(kmp原理)
  • 原文地址:https://www.cnblogs.com/luoshengjie/p/11573427.html
Copyright © 2011-2022 走看看