天天看点

Printer server cluster

昨天领导发了一封说测试中心有个需求想搭建一个打印服务群集,问谁有兴趣做一下,我内心已经毫不犹豫的答应了自己,那肯定我来做了,因为之前做过很多群集的实验了,对于打印服务群集确实还没做过,这样一来自己又能充实一下了,好了,废话不多说了,开始今天的实验吧,具体操作见下。

一、环境介绍

1.)

Hostname:Abc-dc

IP:192.168.220.254

Roles: DNS DHCP DC ISCSI

2.)

Hostname:Abc-pt01

IP:192.168.220.10

Heart line:100.100.100.10

Roles:Print server cluster

3.)

Hostname:Abc-pt02

Ip:192.168.200.11

Heart line:100.100.100.11

4.)

Hostname:Virtual print

Ip:192.168.200.20

Roles:Test computer

CLUSTER IP:192.168.220. 200

CLUSTER Name:PT-CLUSTE

CLUSTER IP:192.168.220. 201

CLUSTER Name:PTS-CLUSTERPS

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363949503WOeW.jpg"></a>

二、操作步骤:

1.在每台将位于群集中的服务器上,打开“服务器管理器”,单击“添加角色”,然后使用添加角色向导来添加“打印和文件服务”角色和需要的任何角色服务。

2.检查故障转移群集的硬件和基础结构要求。

3.在每台将位于群集中的服务器上安装故障转移群集功能

4.连接群集将使用的网络和存储设备

5.在要加入群集的所有服务器上运行“验证配置”向导,以确认服务器、网络和存储的硬件和硬件设置是否与6.故障转移群集兼容。可以根据需要调整硬件或硬件设置,然后重新运行该向导直到通过所有测试(若要获得支持,必须通过所有测试)

7.创建故障转移群集。

8.如果群集服务器与不用于群集中的网络通信的一个网络相连(例如,一个仅用于 iSCSI 的网络或仅用于备份的网络),则配置该网络以便它不允许群集通信。

9.运行高可用性向导,并指定打印服务器角色、群集打印服务器的名称,以及不是由 DHCP 设置自动提供的 IP 地址信息。

10.配置打印设置,如用于指定打印机的设置。

11.测试群集打印服务器的故障转移。

12.从一个客户端打印群集打印服务器上的测试页。

因为在群集配置过程中需要挂仲裁盘,所以我通过iscsi软件来来实现

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363949504OQkt.jpg"></a>

安装Iscsi服务

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363949504rNNb.jpg"></a>

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363949504aNEf.jpg"></a>

打开ISCSI软件爱你创建一个Iscsi目标

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_13639495055840.jpg"></a>

目标名称

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363949535vjVz.jpg"></a>

添加需要分配的计算机地址:(192.168.220.10、192.168.220.11)该操作类似于在存储下给计算机组分配LUN。

添加192.168.220.11

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363949535biq3.jpg"></a>

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363949535bv2q.jpg"></a>

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363949567oQwF.jpg"></a>

创建完成ISCSI目标后接下来就是创建虚拟磁盘了;在存储里就是划分lun;

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363949567d6mm.jpg"></a>

磁盘路径为我本地的D盘下virtual disk目录

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363949567kToP.jpg"></a>

然后为目录下的文件指定文件名称及类型;必需是以.vhd结尾的文件;我们创建一个Data.vhd,然后大小给50G

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363949568NFpt.jpg"></a>

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_13639495890PMS.jpg"></a>

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363949589W6Ee.jpg"></a>

选择ISCSI目标

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363949590sXuH.jpg"></a>

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363949590F8WX.jpg"></a>

同理在创建一个群集仲裁盘quorum.vhd,大小 10G

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363949617yxCm.jpg"></a>

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363949617vG9y.jpg"></a>

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363949617g41A.jpg"></a>

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363949617LWQG.jpg"></a>

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363949636taBB.jpg"></a>

然后分别回到分配lun的server;也就是192.168.220.10、192.168.220.11

开始程序-打开ISCSI发起程序---目标---输入ISCSI server(192.168.220.254;abc-dc)然后单击快速链接

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363949637GkoL.png"></a>

切换到卷和设备-单击自动配置

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363949637O8JI.jpg"></a>

然后打开磁盘管理;发现分配的两个lun已经看见了,我们需要启用并且分配盘符

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363949637f7aI.jpg"></a>

我的数据盘分配的盘符为O,仲裁盘分配的为Q

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363950039Qycx.jpg"></a>

ABC-PT01\ABC-PT02上分别添加角色:打印和文件服务,角色功能选择打印服务器

ABC-PT01\ABC-PT02上分别添加故障转移群集管理器

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363950039OsWZ.png"></a>

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_13639500396Y1v.png"></a>

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363950040ar2g.png"></a>

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_13639500405R59.png"></a>

安装完故障转移角色后,我们开始配置群集了;打开故障转移群集管理---首先为了保证群集满足的条件---单击验证群集配置-;我们输入两台server的名称;abc-pt01\abc-pt02

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363950061es35.jpg"></a>

开始验证群集,以下结果为当前环境满足群集创建条件

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363950061zvmv.jpg"></a>

当前环境满足群集创建条件,那我们开始创建群集

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363950061n2g1.jpg"></a>

添加两台server:abc-pt01 abc-pt02

PTS-CLUSTER 192.168.220.200然后下一步

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363950084Nxfa.jpg"></a>

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363950085A6hO.jpg"></a>

开始创建群集

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363950085B6o1.jpg"></a>

群集创建完成

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363950085UVvs.jpg"></a>

两个节点分别为abc-pt01 abc-pt02

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363950085GRkx.jpg"></a>

单击存储-查看当前所挂在的磁盘

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363950107Zlhk.jpg"></a>

我们选择打印服务器

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363950107sZni.jpg"></a>

为打印服务器创建一个客户端访问点

PTS-CLUSTERPS 192.168.220.201

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363950108Zhvk.jpg"></a>

选择存储Data盘

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363950193lG3g.jpg"></a>

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363950193YoI4.jpg"></a>

开始创建

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_13639501949Oax.jpg"></a>

打印服务器创建完成

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363950194K6WR.jpg"></a>

所有的群集创建完后,我们发现在DNS下会自动注册相关的记录;同时也会在AD下创建对应的两台计算机:

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363950343Ow6Q.jpg"></a>

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363950343NnUy.jpg"></a>

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363950343hEMQ.jpg"></a>

我们现在需要添加打印机;右击打印机群集服务---管理打印机

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363950343Jn9v.jpg"></a>

切换到打印机选项

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_13639560841OhF.jpg"></a>

添加打印机

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363956084wdGk.jpg"></a>

我们选择打印机获取到的IP地址:192.168.220.21

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363956084PPky.jpg"></a>

提示安装打印机驱动

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363956085kswv.jpg"></a>

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363956085QYdQ.jpg"></a>

选择相应的打印机驱动

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363956997D4hu.jpg"></a>

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363956997vIxL.jpg"></a>

为打印机设置打印机名称,在此默认

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_13639569984OeL.jpg"></a>

开始添加打印机

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363956998pcvt.jpg"></a>

在群集服务下安装打印机

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/22/451336_1363956998EXw1.jpg"></a>

打印机安装完成

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/23/451336_136400417815UO.jpg"></a>

测试打印页,经测试后打印机正常打出打印页

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/23/451336_13640041781WZt.jpg"></a>

我们刚才添加的打印机

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/23/451336_13640041781CkD.jpg"></a>

刚才打印机所需要的驱动;在此我们添加多个驱动

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/23/451336_1364004179gkgv.jpg"></a>

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/23/451336_1364004179z9Il.jpg"></a>

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/23/451336_1364004212ha1K.jpg"></a>

测试打印服务群集:

我们发现ABC-PT01节点上未运行任何服务和应用程序

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/23/451336_1364004212HYyE.jpg"></a>

ABC-PT02上运行打印机服务

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/23/451336_1364004213Eogq.jpg"></a>

我们测试将节点ABC-PT02上的打印机服务切换到ABC-PT01节点上

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/23/451336_1364004213uKGo.jpg"></a>

单击是

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/23/451336_1364004213yULb.jpg"></a>

快速的将打印服务从节点2切换到节点1上了

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/23/451336_1364004314tjIM.jpg"></a>

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/23/451336_1364004315rpis.jpg"></a>

三、客户机测试;我们准备了一个w7客户端来添加打印机;通过开始访问网络共享:打印机客户访问节点的群集名称:PTS-CLUSTERPS

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/23/451336_1364004315oIb3.jpg"></a>

发现了刚才所安装的打印机

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/23/451336_1364004315TWc4.jpg"></a>

双击开始链接该打印机

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/23/451336_1364004316Do7g.jpg"></a>

或者通过打开打印机添加共享打印机

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/23/451336_1364004316nd7V.jpg"></a>

正在安装该打印机

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/23/451336_1364004349e3zS.jpg"></a>

打印机安装成功,开始打印测试页

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/23/451336_1364004350a2Bw.jpg"></a>

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/23/451336_1364004350PbRO.jpg"></a>

成功打出测试页。

<a href="http://gaowenlong.blog.51cto.com/attachment/201303/23/451336_1364004350vcNC.png"></a>

本文转自 高文龙 51CTO博客,原文链接:http://blog.51cto.com/gaowenlong/1160737,如需转载请自行联系原作者