Windows 2003 部署群集
安装简介
1. 服务器群集是需要在域环境下面才能实现的,所以要搭建域环境;
2. 安装成功一台域控制器后,第二台最好也安装(并非一定要安装),不然域控宕机后,启动用户登录不了,我在做的时候是安装了的;
3. 将第二台搭建为DNS服务器,是第一台服务器的DNS辅助服务器(并分一定要安装),我安装OK了;
4. 安装成功域后,建立clusteradmin,sqladmin两个用户,并将其加入到“Domain Admin”组里面;↓
![Win03+Sql2005+FreeNAS群集(三)_数据库_02](https://s2.51cto.com/attachment/201110/125535787.jpg?x-oss-process=image/resize,m_fixed,w_1184)
安装完成后,点击桌面的“microsoft ISCSI Initiator”并选择“Discovery”选项↓
![Win03+Sql2005+FreeNAS群集(三)_ISCSI_03](https://s2.51cto.com/attachment/201110/125629793.jpg?x-oss-process=image/resize,m_fixed,w_1184)
点击”Add”,填写“FREENAS”的地址,找到目标门户入口↓
![Win03+Sql2005+FreeNAS群集(三)_ISCSI_04](https://s2.51cto.com/attachment/201110/125653444.jpg?x-oss-process=image/resize,m_fixed,w_1184)
完成后到“Targets”选项卡中,即可发现“目标”磁盘,目前是未登录状态;↓
![Win03+Sql2005+FreeNAS群集(三)_ISCSI_05](https://s2.51cto.com/attachment/201110/125813699.jpg?x-oss-process=image/resize,m_fixed,w_1184)
点击”LOGO ON”将两个目标添加到我们的计算机上面↓
![Win03+Sql2005+FreeNAS群集(三)_数据库_06](https://s2.51cto.com/attachment/201110/125843683.jpg?x-oss-process=image/resize,m_fixed,w_1184)
完成后,到计算机磁盘管理上面将磁盘“格式化”成
NTFS格式,添加上卷标,E盘,和F盘↓
![Win03+Sql2005+FreeNAS群集(三)_休闲_07](https://s2.51cto.com/attachment/201110/125905833.jpg?x-oss-process=image/resize,m_fixed,w_1184)
关闭服务器A,到服务器B
服务器B
同样和服务器B一样,安装上“microsoft ISCSI Initiator” ↓
![Win03+Sql2005+FreeNAS群集(三)_休闲_08](https://s2.51cto.com/attachment/201110/125933774.jpg?x-oss-process=image/resize,m_fixed,w_1184)
连接目标磁盘↓
![Win03+Sql2005+FreeNAS群集(三)_数据库_09](https://s2.51cto.com/attachment/201110/130008937.jpg?x-oss-process=image/resize,m_fixed,w_1184)
添加磁盘,并与服务器A保持相同的盘符;
![Win03+Sql2005+FreeNAS群集(三)_休闲_10](https://s2.51cto.com/attachment/201110/130036454.jpg?x-oss-process=image/resize,m_fixed,w_1184)
完成后,打开服务器A,即可创建群集,这里回到服务器A上面↓
回到服务器A上面,开始创建群集↓
![Win03+Sql2005+FreeNAS群集(三)_数据库_11](https://s2.51cto.com/attachment/201110/130249104.jpg?x-oss-process=image/resize,m_fixed,w_1184)
选择域,并创建群集的名称↓
![Win03+Sql2005+FreeNAS群集(三)_SQL群集_12](https://s2.51cto.com/attachment/201110/130305678.jpg?x-oss-process=image/resize,m_fixed,w_1184)
选择计算机名,就默认的本地节点好了,选择下一步↓
![Win03+Sql2005+FreeNAS群集(三)_网络储存_13](https://s2.51cto.com/attachment/201110/130324565.jpg?x-oss-process=image/resize,m_fixed,w_1184)
程序分析环境是否满足搭建群集要求↓
![Win03+Sql2005+FreeNAS群集(三)_休闲_14](https://s2.51cto.com/attachment/201110/130345568.jpg?x-oss-process=image/resize,m_fixed,w_1184)
填写群集的虚拟IP地址,这里添加之前规划的IP地址192.168.1.15↓
![Win03+Sql2005+FreeNAS群集(三)_数据库_15](https://s2.51cto.com/attachment/201110/130407281.jpg?x-oss-process=image/resize,m_fixed,w_1184)
选择启动群集服务的用户,选择我们之前创建的“clusteradmin”↓
![Win03+Sql2005+FreeNAS群集(三)_网络储存_16](https://s2.51cto.com/attachment/201110/130433232.jpg?x-oss-process=image/resize,m_fixed,w_1184)
选择仲裁盘“E盘”,下一步↓
![Win03+Sql2005+FreeNAS群集(三)_SQL群集_17](https://s2.51cto.com/attachment/201110/130454786.jpg?x-oss-process=image/resize,m_fixed,w_1184)
创建群集服务中↓
![Win03+Sql2005+FreeNAS群集(三)_休闲_18](https://s2.51cto.com/attachment/201110/130609809.jpg?x-oss-process=image/resize,m_fixed,w_1184)
完成A节点配置↓
![Win03+Sql2005+FreeNAS群集(三)_网络储存_19](https://s2.51cto.com/attachment/201110/130637756.jpg?x-oss-process=image/resize,m_fixed,w_1184)
查看群集服务,只有一个节点,SERVER2是计算机名(文中是服务器A)↓
![Win03+Sql2005+FreeNAS群集(三)_网络储存_20](https://s2.51cto.com/attachment/201110/130706669.jpg?x-oss-process=image/resize,m_fixed,w_1184)
接着在把服务器B添加群集当中,选择新建节点↓
![Win03+Sql2005+FreeNAS群集(三)_ISCSI_21](https://s2.51cto.com/attachment/201110/130836554.jpg?x-oss-process=image/resize,m_fixed,w_1184)
选择服务器B的主机名↓
![Win03+Sql2005+FreeNAS群集(三)_ISCSI_22](https://s2.51cto.com/attachment/201110/130852397.jpg?x-oss-process=image/resize,m_fixed,w_1184)
创建的过程和服务器A都一样的,现在检查配置↓
![Win03+Sql2005+FreeNAS群集(三)_SQL群集_23](https://s2.51cto.com/attachment/201110/130937244.jpg?x-oss-process=image/resize,m_fixed,w_1184)
输入clusteradmin账户的密码↓
![Win03+Sql2005+FreeNAS群集(三)_网络储存_24](https://s2.51cto.com/attachment/201110/131001411.jpg?x-oss-process=image/resize,m_fixed,w_1184)
创建群集↓
![Win03+Sql2005+FreeNAS群集(三)_SQL群集_25](https://s2.51cto.com/attachment/201110/131030144.jpg?x-oss-process=image/resize,m_fixed,w_1184)
完成了节点的添加↓
![Win03+Sql2005+FreeNAS群集(三)_ISCSI_26](https://s2.51cto.com/attachment/201110/131121541.jpg?x-oss-process=image/resize,m_fixed,w_1184)
现在在群集管理器上面可以看到server1和server2 了,在组上面切换下资源,看下是否可以切换磁盘和资源。
![Win03+Sql2005+FreeNAS群集(三)_SQL群集_27](https://s2.51cto.com/attachment/201110/131148307.jpg?x-oss-process=image/resize,m_fixed,w_1184)