5eo8755298 发表于 2016-5-21 09:15:31

Deployment,configuration and management Microsoft Windows Server win2003 cluster



Deployment,configuration and management Microsoft Windows Server win2003 cluster<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />  

  

作者:longrujun  

发布日期: <最终修改日期:<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><chsdate year="2005" month="1" day="7" islunardate="False" isrocdate="False" w:st="on"><span lang="EN-US" style="FONT-SIZE: 10.5pt; mso-fareast-language: ZH-CN">2005-1-7</span></chsdate>>  

  

  本试验提供关于在运行 Microsoft® Windows® Server 2003 Enterprise Edition操作系统的服务器上创建和配置使用共享磁盘的典型的单一仲裁设备多节点服务器群集的步骤指导。  

  文档提供有关针对连接到共享群集存储设备并运行 Server 2003 Enterprise Edition服务器创建和配置服务器群集的指导。本文档的目的是为了指引您完成安装典型群集的步骤,并未解释如何安装群集应用程序。而对于实施非传统仲裁模型,如:多数节点集(Majority Node Set,MNS),的Windows群集(Windows Clustering)解决方案和地理位置分散的群集也不予以讨论。关于服务器群集概念以及安装和配置步骤的附加信息,请参见“Windows Server 2003在线帮助”。  

  本试验是在虚拟环境vmwaregsxserver下实现的,虚拟了nodea,nodeb 两个操作系统, 由于cluster需要域环境,NODEA做DC和DNS server,NODEB做额外DC.本试验以step by step方式结合截图详细介绍了做cluster前条件的操作,cluster的安装,部署,灾难恢复及相关诊断.  

目录  


  

本次试验的相关环境说明... 1
软件环境... 1  

硬件环境... 1  

网络环境... 1-3
设置共享磁盘... 3-8
DNS SERVER的安装配置... 8-17
DC部署... 17-26
部署Cluster 27-41
NOTES. 41
参考资料... 42  

  

  

依据服务器群集配置的需求,将本次试验的相关环境说明  

  

  

  

>>>>软件环境:  

1. 群集中的计算机NODEA,NODEB均安装了Microsoft Windows Server 2003 Enterprise Edition,且打好补丁,否则在安装SCSI磁盘时需要安装驱动程序  

2. 一个名称解析法:域名系统(Domain Name System,DNS)  

3. DC:test.com  

4. NODEA,NODEB额外DC]  

5. 一个域级帐户:administrator  

6. 操作环境:VMWare.GSX.Server.For.Windows.v3.1.KG,[ http://soft.ttdown.com/ViewDownURL.asp?softID=18817]  

  

>>>>硬件配置  

1. 存储设备控制器。虚拟了共享磁盘,包括仲裁磁盘.磁盘大小分别为Quorum Disk[<chmetcnv w:st="on" unitname="m" sourcevalue="500" hasspace="False" negative="False" numbertype="1" tcsc="0">500M</chmetcnv>],ShareDisk[<chmetcnv w:st="on" unitname="g" sourcevalue="2" hasspace="False" negative="False" numbertype="1" tcsc="0">2G</chmetcnv>]  

2. 群集中的每个节点拥有两个PCI网络适配器。分别为 Public,Private .  

>>>>>网络配置  

NODEA  

  

Public:  

Ipaddress:172.17.0.1   

Subnet Mask: 255.255.255.0  

DNS: 172.17.0.1   

如下图:



Private  

Ipaddress:<chsdate year="1899" month="12" day="30" islunardate="False" isrocdate="False" w:st="on">10.1.1</chsdate>.1   

Subnet Mask: 255.255.255.0  

  

如图:  



  

NODEB  

  

Public:  

Ipaddress:172.17.0.2   

Subnet Mask: 255.255.255.0  

DNS: 172.17.0.1   

  

Private  

Ipaddress:<chsdate year="1899" month="12" day="30" islunardate="False" isrocdate="False" w:st="on">10.1.1</chsdate>.2   

Subnet Mask: 255.255.255.0  

  

注:1.NODEA做为DNS服务器  

2.NODEA,NODEB的额外DC]  

  
  

  

>>>>>共享磁盘的配置  

  

1.创建sharedisk.pln,qdisk.pln  

如图
  



添加—出现”add hardware wizard”界面,next---出现”hardware type”界面,选择hard disk,next---出现如下图所示,选create a new virtual disk  


Next---出现virtual disk type,如图  


选择SCSI,next---出现disk capacity界面,如图  


Disk size(GB):0.5,取消allocate all disk space now前面的勾.next---出现如下图

将其命名为QDISK.pln,保存到本地的G:\SCSI\路径下  

同样原理添加SHAREDISK, Disk size(GB):2,取消allocate all disk space now前面的勾.设置好后,如图  


2.将Qdisk.pln,Sharedisk.pln分别添加到NODEA,NODEB中  

如图在NODEA中  


选择use an existing virtual disk,next,如下图  


选择QDISK.pln,同样添加SHAREDISK.pln.NODEB中安装同样的方法添加QDISK.pln,SHAREDISK.pln  

  

3.在NODEA,NODEB中配置Qdisk.pln,Sharedisk.pln  

在磁盘管理里面将两个 SCSI 盘转换为 basic 磁盘,创建主分区,  

格式化为 NTFS, quorum disk设置为 Q 分区,卷标Qdisk , <chmetcnv w:st="on" unitname="g" sourcevalue="2" hasspace="False" negative="False" numbertype="1" tcsc="0">2G</chmetcnv>的那个设置为 S 分区,卷标 Sharedisk  



  

Ok,到此为止前期的准备工作已经清楚了,下面就开始一步一步去完成吧  

  

Setp 1.在NODEA上安装DNS SERVER.  

  

1. 安装DNS服务器  


Next,出现如下图界面,选择DNS Server,  


Next,出现configure a dns server wizard  



Next,configure the root hints only如图  


1. 配置DNS服务  

A. 配置forward/reverselookupzones.  

创建Forward lookup zones,如图  


选择”primary zone”,  


Zone name:test.com  




Allow dynamic updates  


B. 创建reverselookupzones.  


选择”primary zone”,next  





Also,allow dynamic updates  

………..  

C.在forward / reverse nslookup zones 建立host/ptr,如图  




3.  

在本地连接public中将DNS地址指向172.17.0.1  



设置primarydnssuffix为test.com  


按照提示,restart,建议一定重起。

重起后发现test.com中有NODEA的A记录,说明一切正常。反向zone中有ptr记录,Ok,至此NODEA中DNS部署完成了,下面将进行DC部署  

  

  

Step 2.DC部署  

  

1. NODEA中DC的部署  

运行:dcpromo,  


Next  


Next,


Next,  



Next,  



Next,  



Next,  



Next,  



Next,  

…….  



Next,  



完成后重启机器  

装完AD后看看DNS的的test.com内是否有放置SRV记录的四个目录,目录名为TCP,UDP,MSDCS,Sites,如图  



Ok,下面部署NODEB中的DC  

1. 部署 NODEB中的DC  

运行:dcpromo  




选择additional domain controller for an existing domain,next  



Next,  



Next,  



Next,  



Next,  

……..  



Next,  

……..  



Ok,现在DC在NODEA,NODEB中部署已完成  



Step 3:部署cluster  

1. add new cluster username before deploying the win 2003 cluster.so we add a username clusteradmin ,view the following pic  



2,在NODEA上部署群集  

  

部署前关闭NODEB。  

打开cluster administrator,出现下图界面,  



选择,create new cluster,next  



Next,  



Cluster name:win2003cluster,next  

http://blog.csdn.net/images/blog_csdn_net/longrujun/85368/o_pic53.JPG

Next,  

http://blog.csdn.net/images/blog_csdn_net/longrujun/85368/o_pic54.JPG

Next,  

http://blog.csdn.net/images/blog_csdn_net/longrujun/85368/o_pic55.JPG

Cluster ip:172.17.0.99  

Next,  

http://blog.csdn.net/images/blog_csdn_net/longrujun/85368/o_pic56.JPG

Next,  

http://blog.csdn.net/images/blog_csdn_net/longrujun/85368/o_pic57.JPG

仲裁盘选择Disk Q,next  

http://blog.csdn.net/images/blog_csdn_net/longrujun/85368/o_pic58.JPG

Next,  

http://blog.csdn.net/images/blog_csdn_net/longrujun/85368/o_pic59.JPG

Ok,现在NODEA上的cluster完成了  

检验一下  

http://blog.csdn.net/images/blog_csdn_net/longrujun/85368/o_pic60.JPG


看看现在资源正用的是NODEA  

http://blog.csdn.net/images/blog_csdn_net/longrujun/85368/o_pic61.JPG
开启NODEB,完成NODEB上cluster的部署  

3.NODEB上cluster部署  

打开cluster administrator,如图  

http://blog.csdn.net/images/blog_csdn_net/longrujun/85368/o_pic62.JPG
选择add nodes to cluster,  

http://blog.csdn.net/images/blog_csdn_net/longrujun/85368/o_pic63.JPG
Next,  

http://blog.csdn.net/images/blog_csdn_net/longrujun/85368/r_1.JPG
next,
.......
next
http://blog.csdn.net/images/blog_csdn_net/longrujun/85368/r_2.JPG
next,
http://blog.csdn.net/images/blog_csdn_net/longrujun/85368/o_pic68.JPG
Next,
http://blog.csdn.net/images/blog_csdn_net/longrujun/85368/o_pic69.JPG

Next,  

http://blog.csdn.net/images/blog_csdn_net/longrujun/85368/o_pic70.JPG

Ok,
http://blog.csdn.net/images/blog_csdn_net/longrujun/85368/o_pic71.JPG

至此cluster部署已经完成,下面进行测试.  

现在resource在NODEA节点上,如图所示  


http://blog.csdn.net/images/blog_csdn_net/longrujun/85368/o_pic72.JPG

下面停止NODEA节点,测试cluster,如下图所示
http://blog.csdn.net/images/blog_csdn_net/longrujun/85368/o_pic73.JPG

说明cluster成功部署^_^

现在resource运行在NODEB节点上,要替换回NODEA节点,可以停止NODEB节点,resource会自动切换到NODEA节点上,如图所示  

  
http://blog.csdn.net/images/blog_csdn_net/longrujun/85368/o_pic74.JPG

再开启NODEB节点  

  

  

NOTE:  

  

A.cluster的灾难恢复方法  

1. 可以NTbackup保存群集配置  

2. 用ASR恢复群集配置与磁盘信息  

3. 用win2003 resource kit tools[下载地址为: http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en]  

中的confdisk.exe, clusterrecovery.exe命令  

confdisk /save c:\mstools\cluster.sif---backup  

Confidisk /restore c:\mstools\cluster.sif---restore  

  

B.cluster故障排除  

1.win2003中提供群集安装日志clcfgsrv.log,查看具体log  

2.诊断工具:clusterdiag.msi,在resource kit tools安装目录中的TOOLS文件夹下,需要再次安装,安装后运行tool—run,不过诊断需要一段时间^_^  

  

  

  

参考资料  

1. Windows Server 2003集群服务技术概述  

http://www.microsoft.com/china/technet/asp/test/prodtechnol/windowsnetserver/clustering.asp  

2. Windows Server 2003服务器集群体系结构  

http://www.microsoft.com/china/technet/asp/test/prodtechnol/windowsnetserver/servercluster.asp  

  

3. Windows Server 2003服务器群集创建和配置指南  

http://www.microsoft.com/china/technet/asp/test/prodtechnol/windowsnetserver/confclus.asp  

页: [1]
查看完整版本: Deployment,configuration and management Microsoft Windows Server win2003 cluster