天天看點

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,如需轉載請自行聯系原作者