Deployment,configuration and management Microsoft Windows Server win2003 cluster

 

 

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

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

本试验是在虚拟环境vmware gsx server下实现的 ,虚拟了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 SystemDNS

3.      DCtest.com

4.      NODEA[DC],NODEB[NODEA额外DC]

5.      一个域级帐户:administrator

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

 

>>>>硬件配置

1. 存储设备控制器。虚拟了共享磁盘,包括仲裁磁盘.磁盘大小分别为Quorum Disk[500M],ShareDisk[2G]

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

>>>>>网络配置

NODEA

 

Public:

Ipaddress:172.17.0.1     

Subnet Mask: 255.255.255.0

DNS:        172.17.0.1

如下图:

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Private

Ipaddress:10.1.1.1     

Subnet Mask: 255.255.255.0

 

如图:

Deployment,configuration and management Microsoft Windows Server win2003 cluster


 

NODEB

 

Public:

Ipaddress:172.17.0.2    

Subnet Mask: 255.255.255.0

DNS:        172.17.0.1

 

Private

Ipaddress:10.1.1.2     

Subnet Mask: 255.255.255.0

 

注:1.NODEA做为DNS服务器

2.NODEA[DC],NODEB[nodea的额外DC]

 

 

 

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

 

1.创建sharedisk.pln,qdisk.pln

如图

Deployment,configuration and management Microsoft Windows Server win2003 cluster

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

Deployment,configuration and management Microsoft Windows Server win2003 cluster

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

Deployment,configuration and management Microsoft Windows Server win2003 cluster

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

Deployment,configuration and management Microsoft Windows Server win2003 cluster
Disk size(GB):0.5,取消allocate all disk space now前面的勾.next---出现如下图
Deployment,configuration and management Microsoft Windows Server win2003 cluster

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

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

Deployment,configuration and management Microsoft Windows Server win2003 cluster

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

如图在NODEA

Deployment,configuration and management Microsoft Windows Server win2003 cluster

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

Deployment,configuration and management Microsoft Windows Server win2003 cluster

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

 

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

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

格式化为 NTFS, quorum disk设置为 Q 分区,卷标Qdisk 2G的那个设置为 S 分区,卷标 Sharedisk

Deployment,configuration and management Microsoft Windows Server win2003 cluster

 

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

 

Setp 1.NODEA上安装DNS SERVER.

 

1.      安装DNS服务器

Deployment,configuration and management Microsoft Windows Server win2003 cluster

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

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next,出现configure a dns server wizard


Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next,configure the root hints only[configure a forward and reverse nslookup zone,如图

Deployment,configuration and management Microsoft Windows Server win2003 cluster

1.      配置DNS服务

A.             配置 forward/reverse lookup zones.

创建Forward lookup zones,如图

Deployment,configuration and management Microsoft Windows Server win2003 cluster

选择”primary zone”,

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Zone name:test.com


Deployment,configuration and management Microsoft Windows Server win2003 cluster
Deployment,configuration and management Microsoft Windows Server win2003 cluster

Allow dynamic updates

Deployment,configuration and management Microsoft Windows Server win2003 cluster

B. 创建 reverse lookup zones.

Deployment,configuration and management Microsoft Windows Server win2003 cluster

选择”primary zone”,next


Deployment,configuration and management Microsoft Windows Server win2003 cluster
Deployment,configuration and management Microsoft Windows Server win2003 cluster
Deployment,configuration and management Microsoft Windows Server win2003 cluster

Also,allow dynamic updates

………..

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


Deployment,configuration and management Microsoft Windows Server win2003 cluster
Deployment,configuration and management Microsoft Windows Server win2003 cluster

3.

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



设置primary dns suffixtest.com

Deployment,configuration and management Microsoft Windows Server win2003 cluster

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

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

 

 

Step 2.DC部署

 

1.      NODEADC的部署

运行:dcpromo

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next,
Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next,

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next,

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next,

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next,

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next,

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next,

…….

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next,

Deployment,configuration and management Microsoft Windows Server win2003 cluster

完成后重启机器

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

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Ok,下面部署NODEB中的DC

1.      部署 NODEB中的DC

运行:dcpromo


Deployment,configuration and management Microsoft Windows Server win2003 cluster

选择additional domain controller for an existing domain,next

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next,

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next,

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next,

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next,

……..

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next,

……..

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Ok,现在DCNODEA,NODEB中部署已完成

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Step 3:部署cluster

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

Deployment,configuration and management Microsoft Windows Server win2003 cluster

2,NODEA上部署群集

 

部署前关闭NODEB

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

Deployment,configuration and management Microsoft Windows Server win2003 cluster

选择,create new cluster,next

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next,

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Cluster name:win2003cluster,next

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next,

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next,

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Cluster ip:172.17.0.99

Next,

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next,

Deployment,configuration and management Microsoft Windows Server win2003 cluster

仲裁盘选择Disk Q,next

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next,

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Ok,现在NODEA上的cluster完成了

检验一下

Deployment,configuration and management Microsoft Windows Server win2003 cluster

看看现在资源正用的是NODEA

Deployment,configuration and management Microsoft Windows Server win2003 cluster

开启NODEB,完成NODEBcluster的部署

3NODEBcluster部署

打开cluster administrator,如图

Deployment,configuration and management Microsoft Windows Server win2003 cluster

选择add nodes to cluster,

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next,

Deployment,configuration and management Microsoft Windows Server win2003 cluster
next,
.......
next
Deployment,configuration and management Microsoft Windows Server win2003 cluster
next,
Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next,
Deployment,configuration and management Microsoft Windows Server win2003 cluster

Next,

Deployment,configuration and management Microsoft Windows Server win2003 cluster

Ok,
Deployment,configuration and management Microsoft Windows Server win2003 cluster

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

现在resourceNODEA节点上,如图所示

Deployment,configuration and management Microsoft Windows Server win2003 cluster

下面停止NODEA节点,测试cluster,如下图所示
Deployment,configuration and management Microsoft Windows Server win2003 cluster

说明cluster成功部署^_^

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

Deployment,configuration and management Microsoft Windows Server win2003 cluster

再开启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[c:\windows\system32\logfies\cluster],查看具体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



Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=244617

相关文章: