#logic address
192.168.0.121 t2000_c1
# vi /etc/hostname.e1000g0
t2000b netmask + broadcast + group ipmp1 up
# vi /etc/hostname.e1000g1
t2000b_ipmp netmask + broadcast + deprecated group ipmp1 up
dbtest_ipmp netmask + broadcast + deprecated group ipmp1 up
2.用root用户登录执行scinstall命令配置cluster。
t2000a服务器上创建新群集的第一个节点:
#scinstall
跟ufs系统装cluster不同的地方,因为zfs没有/globaldevices的分区,所以这里不选择默认的/globaldevices,而选择lofi方法。
不要自动生成投票方,安装好后手动配置投票方。
将t2000b服务器添加进节点:
应该先打开两台服务器连接心跳线的那两个网口,此处为:
# ifconfig e1000g2 plumb
# ifconfig e1000g3 plumb
# scinstall
这里选择“将此计算机添加为现有群集中的节点”
输入现有节点的主机名,即t2000a。
输入要加入群集的名称,即zfsclu (t2000a上取的名)
自动搜索群集传输,要把e1000g2和e1000g3网口打开。
这里如t2000a,选择lofi方法。
3. 给Cluster配置quorum磁盘
调配存储,在存储上划一个大小不限(1G即可)的卷作为投票方。
首先查看卷的设备名
root@t2000a # format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@780/pci@0/pci@9/scsi@0/sd@0,0
1. c0t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@780/pci@0/pci@9/scsi@0/sd@1,0
2. c2t1d0 <SUN-CSM200_R-0760-400.00GB>
/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@2/fp@0,0/ssd@w200600a0b8322116,0
3. c2t1d1 <SUN-CSM200_R-0760 cyl 2558 alt 2 hd 64 sec 64>
/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@2/fp@0,0/ssd@w200600a0b8322116,1
Specify disk (enter its number):
# scdidadm –L
1 t2000a:/dev/rdsk/c0t0d0 /dev/did/rdsk/d1
2 t2000a:/dev/rdsk/c2t1d0 /dev/did/rdsk/d2
2 t2000b:/dev/rdsk/c2t2d0 /dev/did/rdsk/d2
3 t2000a:/dev/rdsk/c2t1d1 /dev/did/rdsk/d3
3 t2000b:/dev/rdsk/c2t2d1 /dev/did/rdsk/d3
4 t2000a:/dev/rdsk/c0t1d0 /dev/did/rdsk/d4
5 t2000b:/dev/rdsk/c0t0d0 /dev/did/rdsk/d5
6 t2000b:/dev/rdsk/c0t1d0 /dev/did/rdsk/d6
对照format输出的磁盘信息可知较小的卷为c2t1d1,即对应的是d3。
投票方设置:
# scsetup
选择直接连接的共享磁盘
这里选择d3作为投票方,由上面format 和scdidadm –L可知。
Is it okay to reset "installmode" (yes/no) [yes]?
scconf -c -q reset
scconf -a -T node=.
Cluster initialization is complete.
Type ENTER to proceed to the main menu:
*** Main Menu ***
Please select from one of the following options:
1) Quorum
2) Resource groups
3) Data Services
4) Cluster interconnect
5) Device groups and volumes
6) Private hostnames
7) New nodes
8) Other cluster tasks
?) Help with menu options
q) Quit
Option: q
root@t2000b # scstat
------------------------------------------------------------------
-- Cluster Nodes --
Node name Status
--------- ------
Cluster node: t2000a Online
Cluster node: t2000b Online
------------------------------------------------------------------
-- Cluster Transport Paths --
Endpoint Endpoint Status
-------- -------- ------
Transport path: t2000a:e1000g3 t2000b:e1000g3 Path online
Transport path: t2000a:e1000g2 t2000b:e1000g2 Path online
------------------------------------------------------------------
-- Quorum Summary from latest node reconfiguration --
Quorum votes possible: 3
Quorum votes needed: 2
Quorum votes present: 3
-- Quorum Votes by Node (current status) --
Node Name Present Possible Status
--------- ------- -------- ------
Node votes: t2000a 1 1 Online
Node votes: t2000b 1 1 Online
-- Quorum Votes by Device (current status) --
Device Name Present Possible Status
----------- ------- -------- ------
Device votes: /dev/did/rdsk/d3s2 1 1 Online
------------------------------------------------------------------
-- Device Group Servers --
Device Group Primary Secondary
------------ ------- ---------
-- Device Group Status --
Device Group Status
------------ ------
-- Multi-owner Device Groups --
Device Group Online Status
------------ -------------
------------------------------------------------------------------
------------------------------------------------------------------
-- IPMP Groups --
Node Name Group Status Adapter Status
--------- ----- ------ ------- ------
IPMP Group: t2000a ipmp1 Online e1000g1 Offline
IPMP Group: t2000a ipmp1 Online e1000g0 Online
IPMP Group: t2000b ipmp1 Online e1000g1 Offline
IPMP Group: t2000b ipmp1 Online e1000g0 Online
-- IPMP Groups in Zones --
Zone Name Group Status Adapter Status
--------- ----- ------ ------- ------
本文出自 “豫霸天下” 博客,转载请与作者联系!