windows双机配置.docx
- 文档编号:12129000
- 上传时间:2023-04-17
- 格式:DOCX
- 页数:30
- 大小:1.16MB
windows双机配置.docx
《windows双机配置.docx》由会员分享,可在线阅读,更多相关《windows双机配置.docx(30页珍藏版)》请在冰豆网上搜索。
windows双机配置
Windows2008集群配置
目录
1设置网络2
1.1重命名局域网图标2
1.2配置专用网络适配器2
1.3配置公用网络适配器5
2.设置域控制器6
2.1新建一个域控制器6
2.2设置集群用户帐户7
2.3配置DNS8
2.4加入域9
3.配置节点10
3.1AddingWindowsServer2008ApplicationServerRole10
3.2AddingtheFailoverClusterFeature15
3.3RunningtheWindowsServer2008ValidateClusterConfiguration19
3.4Configuringyourclusterquorum24
4.集群测试29
环境:
windowsserver2008R2ItaniumBasedsystem;共享存储(共享仲裁盘Q,共享数据盘S);至少两块网卡;域环境。
1设置网络
每个群集节点至少需要包含两个网络适配器,其中一个网络适配器用于连接到公用网络,而另一个则用于连接到仅由群集节点组成的专用网络。
专用网络适配器用于执行节点对节点的通信、群集状态信息和群集管理。
每个节点的公用网络适配器都将群集连接到客户端所在的公用网络,并应配置为内部群集通信的后备路由。
要实现这些操作,应该将群集服务的这些网络角色配置为“只用于内部群集通信”或“所有通信”。
1.1重命名局域网图标
建议您更改网络连接的名称,以便清楚地进行识别。
·单击开始,指向控制面板,右击网络连接,然后单击打开
·右击本地连接2图标
·单击重命名
·在文本框中键入Private,然后按ENTER键
·重复以上步骤,然后将公用网络适配器重命名为Public
1.2配置专用网络适配器
·右击您的心跳适配器对应的网络连接,然后单击“属性”。
·在“常规”选项卡上,确认仅选定了“Internet协议(TCP/IP)”复选框,如下方图1所示。
点击清除所有其它客户端、服务和协议的复选框。
图1
·如果您拥有一个能够以不同速度进行传输的网络适配器,那么您应该手动指定一个速度及双工模式。
不要对传输速度应用自动选择设置,因为某些适配器在确定速度时可能丢掉一些数据包。
打开“配置”修改设置
图2
图3
·单击“Internet协议(TCP/IP)”,然后单击“属性”。
在“常规”选项卡上确认您选择的静态IP地址与其它任何公用网络适配器不在相同的子网或网络上。
·对专用适配器应用一个较好的IP地址的范例是:
将节点1的地址设为10.1.1.1,将节点2的地址设为10.1.1.2,同时将子网掩码设为255.255.255.0,如下方图4所示。
确认该IP地址方案与应用于公用网络的IP地址方案完全不同。
图4
·确认未在“默认网关”方框中,或者在“使用下列DNS服务器地址”下方,定义了任何值。
·单击“高级”按钮。
·在“DNS”选项卡上,确认未定义任何值。
同时确认清除了“在DNS中注册此连接的地址”和“在DNS注册中使用此连接的DNS后缀”复选框。
·在“WINS”选项卡上,确认未定义任何值。
单击“禁用TCP/IP上的NetBIOS”,如下方图5所示。
图5
·当关闭了该对话框,您可能接收到如下提示:
“此连接拥有一个空白的主WINS地址。
您想继续吗?
”如果您收到了该提示,单击“是”。
1.3配置公用网络适配器
集群只支持静态IP地址,不支持DHCP动态地址。
例如
节点1
节点2
IP地址
IP地址
子网掩码
子网掩码
默认网关
默认网关
主用DNS
域控IP地址
主用DNS
域控IP地址
备用DNS
备用DNS
检查连接连通性(ping)
2.设置域控制器
集群所有节点必须是域成员,本次安装的windowsserver2008R2ItaniumBasedsystem版本不支持域控,因此需客户提供windows2003企业版的PC来做域控
2.1新建一个域控制器
可以手动安装域名服务(DNS)和DCPromo(创建DNS和ActiveDirectory的命令行工具),也可以使用“WindowsServer2003管理服务器”向导进行安装。
本节使用手动工具来完成安装。
使用手动工具安装DNS和ActiveDirectory(不同版本过程略有不同)
1.
单击“开始”按钮,单击“运行”,键入“DCPROMO”,然后单击“确定”。
2.
在出现“ActiveDirectory安装向导”时,单击“下一步”开始安装。
3.
阅读“操作系统兼容性”信息后,单击“下一步”。
4.
选择“新域的域控制器”(默认),然后单击“下一步”。
5.
选择“在新林中的域”(默认),然后单击“下一步”。
6.
对于“DNS全名”,键入“XXS.COM”,然后单击“下一步”。
(这表示一个完全限定的名称。
)
7.
单击“下一步”,接受将“ISMXXS”作为默认“域NetBIOS名”。
(NetBIOS名称提供向下兼容性。
)
8.
在“数据库和日志文件文件夹”屏幕上,将ActiveDirectory“日志文件文件夹”指向“C:
\Windows\NTDS”,然后单击“下一步”继续。
9.
保留“共享的系统卷”的默认文件夹位置,然后单击“下一步”。
10.
在“DNS注册诊断”屏幕上,单击“在这台计算机上安装并配置DNS服务器”。
单击“下一步”继续。
11.
选择“只与Windows2000或WindowsServer2003操作系统兼容的权限”(默认),然后单击“下一步”。
12.
在“还原模式密码”和“确认密码”中,键入密码,然后单击“下一步”继续。
注意:
在生产环境中,应使用复杂的目录服务还原密码。
图6ActiveDirectory安装选项摘要
13.
图6中显示的是“ActiveDirectory安装选项摘要”。
单击“下一步”开始安装ActiveDirectory。
在出现提示时,请插入WindowsServer2003安装CD。
14.
单击“确定”,对已为DNS服务器动态分配了IP地址这一提示信息作出确认。
15.
在“ActiveDirectory安装向导”完成后,单击“完成”。
16.
单击“立即重新启动”以重新启动计算机。
2.2设置集群用户帐户
·单击“开始”,指向“所有程序”,指向“管理工具”,然后单击“活动目录用户和计算机”。
·如果域还未展开,单击加号(+)将其展开。
·右击“用户”,指向“新建”,然后单击“用户”。
·键入账号名称,如下方图7所示,然后单击“下一步”。
图7
1.将密码设置设定为“用户不能更改密码”和“密码永不过期”。
单击“下一步”,然后单击“完成”创建该用户。
2.单击“将成员添加到组”。
3.单击“管理员”,然后单击“确定”。
这将给予新用户帐户在该计算机上的管理特权。
4.退出“活动目录用户和计算机”插件。
2.3配置DNS
在正向查找区域中添加主机两个节点
2.4加入域
首先要将节点DNS设置成域控的ip地址,在hosts文件中加入域控的解析
查看是够能PING通DNS
将两个节点加入域中(过程省略)
3.配置节点
3.1AddingWindowsServer2008ApplicationServerRole
SincewewillbeinstallingSQLServer2008lateron,wewillhavetoaddtheApplicationServerroleonbothofthenodes.AserverroleisaprogramthatallowsWindowsServer2008toperformaspecificfunctionformultipleclientswithinanetwork.ToaddtheApplicationServerrole,
1.OpentheServerManagerconsoleandselectRoles.
2.ClicktheAddRoleslink. ThiswillruntheAddRolesWizard
3.IntheSelectServerRolesdialogbox,selecttheApplicationServercheckbox.ThiswillpromptyoutoaddfeaturesrequiredforApplicationServerrole.ClickNext.
4.IntheApplicationServerdialogbox,clickNext.
5.IntheSelectRoleServicesdialogbox,selectIncomingRemoteTransactionsandOutgoingRemoteTransactionscheckboxes.TheseoptionswillbeusedbyMSDTC.ClickNext
6.IntheConfirmInstallationSelectionsdialogbox,clickInstall.ThiswillgothrutheprocessofinstallingtheApplicationServerrole
7.IntheInstallationResultsdialogbox,clickClose.ThiscompletestheinstallationoftheApplicationServerroleonthefirstnode.Youwillhavetorepeatthisprocessfortheotherserver
3.2AddingtheFailoverClusterFeature
WindowsServer2008callsthemfeatureswhicharesimplysoftwareprogramsthatcansupportoraugmentthefunctionalityofserverroles.Sincewe'vealreadyinstalledtheApplicationServerroleinourserver,let'sdefineafeaturefromthisperspective:
failoverclusteringsimplyaugmentstheroleasanapplicationserverbymakingithighlyavailable.Itisdisabledbydefault,unlikeinWindowsServer2003soweneedtoadditonbothoftheserversthatwillformapartofourcluster.
ToaddtheFailoverClusteringfeature:
1.OpentheServerManagerconsoleandselectFeatures.
2.ClicktheAddFeatureslink.ThiswillruntheAddFeaturesWizard
3.IntheSelectFeaturesdialogbox,selecttheFailoverClusteringcheckboxandclickNext.
4.IntheConfirmInstallationSelectionsdialogbox,clickInstalltoconfirmtheselectionandproceedtodotheinstallationoftheFailoverClusteringfeature.
5.IntheInstallationResultsdialogbox,clickClose.ThiscompletestheinstallationoftheFailoverClusteringfeatureonthefirstnode.
That'showsimpleandeasyitistoaddtheFailoverClusteringfeatureinWindowsServer2008.Youwillhavetodothisonbothnodestocompletetheprocess.OnceyouhavemanagedtoinstalltheFailoverClusterFeatureonbothnodes,wecanproceedtovalidateourserversiftheyarereadyforclustering.
3.3RunningtheWindowsServer2008ValidateClusterConfiguration
UnlikeinpreviousversionsofWindowswhereMicrosofthadsomesortofahardwarecompatibilitylist(HCL)fromwhichwehadtofindandselectcomponentstestedtobeclustering-supported,thiswizardislikethe“seal”thattellsyouwhetherornotthehardwareyouareusingissupported.Infact,MicrosofthaspartneredwithhardwarevendorstocreatetheFailoverClusterConfigurationProgramtomaketheacquisitionofhardwareforWindowsServer2008FailoverClusteringveryeasyandsimple.Basically,yourhardwarewillbesupportedforclusteringifitmeetsthesetworequirements:
theserverhasa“CertifiedforWindowsServer2008”logoanditpassesthiswizard.
Onewordofcaution:
donotskipanyerrormessagethatthiswizardgeneratesinthefinalreport.Doingsowouldsimplymeanthatyourconfigurationgoingforwardwillbeunsupported.Youonlyneedtorunthiswizardoneitherofthenodes.
ToruntheValidateClusterConfigurationWizard:
1.OpentheFailoverClusterManagementconsole
2.UndertheManagementsection,clicktheValidateaConfigurationlink.ThiswillruntheValidateaConfigurationWizard
3.IntheSelectServersoraClusterdialogbox,enterthehostnamesofthenodesthatyouwanttoaddasmembersofyourclusterandclickNext.
4.IntheTestingOptionsdialogbox,clickNexttorunallthenecessaryteststovalidatewhetherornotthenodesareOKforclustering.Ifthisisthefirsttimetorunthewizard,youmustrunallthetestsforvalidation.Forsuccedingruns,especiallywhenaddinghardwarelikedisksubsystemsotnetworkcardsonyourclusternodes,youcanselectivelychoosewhichteststorunaslongasyouhaveinitiallyvalidatedyourhardwarebyrunningalltests.
5.IntheConfirmationdialogbox,clickNext.Thiswillrunallthenecessaryvalidationtests.
6.IntheSummarydialogbox,verifythatallthereportreturnssuccessful.
3.4Configuringyourclusterquorum
ThissectionissometimesnecessaryespeciallywhenWindowsServer2008decidestotakeadifferentdisksubsystemasaquorumotherthantheoneyou'veoriginallyintendeditto.NoticethatintheCreateaClusterwizard,therewasnooptiontoselectthedisksubsystemthatwecanuseasaquorumdisk(nowcalledthe"witness"disk).Bydefault,theCreateaClusterwizardwillusethefirstavailablediskasthewitnessdisk.Tovalidate,checktheStoragenodeundertheFailoverClusterManagementconsole
Toconfigurethequoruminafailovercluster:
1.OpentheFailoverClusterManagementconsole
2.Selectthenameoftheclusteryouhavejustcreated.Right-clickonthecluster,selectMoreActions,andclickConfigureClusterQuorumSettings...ThiswillopenuptheConfigureClusterQuorumWizard
3.IntheSelectQuorumConfigurationdialogbox,selecttheNodeandDiskMajority(recommendedforyourcurrentnumberofnodes)option.Theoptionspresentedwilldependonhowyouwantyourclusterconfigured.Thecurrentselectionisfora2-nodeclusterconfiguration
4.IntheConfigureStorageWitnessdialogbox,validateandselectthediskthatyouwantyourclustertouseasthequorum/witnessdisk.ClickNext
5.IntheConfirmationdialogbox,verifythatthediskconfigurationforthequorum/witnessdiskiscorrect.ClickNext
6.IntheSummarydialogbox,verifythatalltheconfigurationsaresuccessful.
FormoredetailsonConfiguringtheQuoruminaFailoverClusterinWindowsServer2008,checkoutthisMicrosoftTechNetarticle.
4.集群测试
由于本次项目实施windows2008的服务器只是安装一些应用程序,而且程序都很小,没有什么数据,西安站只是将程序安装在共享的数据盘上,重启一个节点,另一个节点能自动接管共享磁盘,就可以实现两台服务器应用的切换。
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- windows 双机 配置