安装配置GFSWord文件下载.docx
- 文档编号:17623927
- 上传时间:2022-12-07
- 格式:DOCX
- 页数:10
- 大小:19.63KB
安装配置GFSWord文件下载.docx
《安装配置GFSWord文件下载.docx》由会员分享,可在线阅读,更多相关《安装配置GFSWord文件下载.docx(10页珍藏版)》请在冰豆网上搜索。
Tool,
used
to
graphically
configure
display
of
current
status
nodes,
resources,
fencing
agents,
services
ccsd
configuration
daemon
(ccsd)
associated
files
magma
an
interface
library
for
lock
management
magma-plugins
plugins
cman
Manager
(CMAN),
which
is
managing
membership,
messaging,
notification
cman-kernel
required
CMAN
kernel
modules
dlm
distributed
(DLM)
dlm-kernel
DLM
modules
fence
The
I/O
system
that
allows
nodes
connect
a
variety
network
power
switches,
fibre
channel
integrated
interfaces
gulm
GULM
userspace
tools
libraries
(an
alternative
using
DLM).
iddev
identify
file
(or
volume
manager)
in
device
formatted
Also,
you
can
optionally
install
Red
Hat
on
your
Suite.
consists
following
RPMs:
module
GFS-kernel
gnbd
Network
Block
Device
gnbd-kernel
Kernel
module
Device
lvm2-cluster
extensions
logical
manager
GFS-kernheaders
header
files
gnbd-kernheaders
2.2安装软件和顺序
安装脚本,install.sh
#!
/bin/bash
rpm
-ivh
kernel-smp-2.6.9-42.EL.x86_64.rpm
kernel-smp-devel-2.6.9-42.EL.x86_64.rpm
perl-Net-Telnet-3.03-3.noarch.rpm
magma-1.0.6-0.x86_64.rpm
magma-devel-1.0.6-0.x86_64.rpm
ccs-1.0.7-0.x86_64.rpm
ccs-devel-1.0.7-0.x86_64.rpm
cman-kernel-2.6.9-45.4.centos4.x86_64.rpm
cman-kernheaders-2.6.9-45.4.centos4.x86_64.rpm
cman-1.0.11-0.x86_64.rpm
cman-devel-1.0.11-0.x86_64.rpm
dlm-kernel-2.6.9-42.12.centos4.x86_64.rpm
dlm-kernheaders-2.6.9-42.12.centos4.x86_64.rpm
dlm-1.0.1-1.x86_64.rpm
dlm-devel-1.0.1-1.x86_64.rpm
fence-1.32.25-1.x86_64.rpm
GFS-6.1.6-1.x86_64.rpm
GFS-kernel-2.6.9-58.2.centos4.x86_64.rpm
GFS-kernheaders-2.6.9-58.2.centos4.x86_64.rpm
#gnbd:
gnbd-kernel-2.6.9-9.43.centos4.x86_64.rpm
gnbd-kernheaders-2.6.9-9.43.centos4.x86_64.rpm
gnbd-1.0.7-0.x86_64.rpm
gulm-1.0.7-0.x86_64.rpm
gulm-devel-1.0.7-0.x86_64.rpm
iddev-2.0.0-3.x86_64.rpm
iddev-devel-2.0.0-3.x86_64.rpm
magma-plugins-1.0.9-0.x86_64.rpm
rgmanager-1.9.53-0.x86_64.rpm
system-config-cluster-1.0.25-1.0.noarch.rpm
ipvsadm-1.24-6.x86_64.rpm
ivh
piranha-0.8.2-1.x86_64.rpm
--nodeps
注视:
有些包有依赖关系,使用nodeps开关进行安装即可,另外因为本人安装了X-windows,所以gnome的包没写在这里
2.3、修改各个节点上的/etc/hosts文件(每个节点都一样)
如下:
[root@gfs-node01
etc]#
cat
hosts
#
Do
not
remove
line,
or
various
programs
require
functionality
will
fail.
#127.0.0.1
gfs-node01
localhost.localdomain
localhost
192.168.10.1
gfs-node01
192.168.10.2
gfs-node02
192.168.10.3gfs-node03
gnbd-server
备注:
我把gnbs-server和node01放在了同一台server上,实际运行如果有条件的话中最好分开
三、在node-01上进行分区
#dmesg
|grep
scsi察看scsi设备,如下:
~]#
dmesg|grep
scsi
scsi0
:
ioc0:
LSI53C1030,
FwRev=00000000h,
Ports=1,
MaxQ=128,
IRQ=169
Attached
scsi
disk
sda
at
scsi0,
0,
id
lun
0
说明认出了scsi设备,然后用fdisk进行了分区,注意,只进行分区,不要格式化,在这里我使用fdisk分了两个大小为3G的分区,分别为:
/dev/sda1和/dev/sda2,如下:
fdisk
-l
Disk
/dev/hda:
8589
MB,
8589934592
bytes
255
heads,
63
sectors/track,
1044
cylinders
Units
=
cylinders
16065
*
512
8225280
Boot
Start
End
Blocks
Id
System
/dev/hda1
1
13
104391
83
Linux
/dev/hda2
14
8281507+
8e
Linux
LVM
/dev/sda:
/dev/sda1
366
2939863+
/dev/sda2
367
732
2939895
四、运行system-config-cluster进行配置
(注视“因为system-config-cluster需要X-windows运行,所以第一次测试时安装了X-windows,实际配置时候只需要根据下面的文件进行修改即可)
增加三个节点,节点的权置全部设置为1,即Quorum值设置为1
三个节点的名称为:
gfs-node03
修改cluster.conf文件,如下:
/etc/cluster/cluster.conf
<
?
xml
version="
1.0"
>
config_version="
1"
name="
alpha_cluster"
fence_daemon
post_fail_delay="
0"
post_join_delay="
3"
/>
clusternodes>
clusternode
gfs-node01"
votes="
fence>
method
F-Man"
nodename="
ipaddr="
192.168.10.1"
/method>
/fence>
/clusternode>
gfs-node02"
192.168.10.2"
gfs-node03"
192.168.10.3"
/clusternodes>
cman/>
fencedevices>
fencedevice
agent="
fence_manual"
/fencedevices>
rm>
failoverdomains>
failoverdomain
web_failover"
ordered="
restricted="
failoverdomainnode
priority="
2"
/failoverdomain>
/failoverdomains>
/rm>
/cluster>
使用scp命令把这个配置文件copy到02/03节点上
五、
在01/02/03节点上启动dlm,ccsd,fence等服务
5.1、在三个节点上加载dlm模块
cluster]#
modprobe
lock_dlm
[root@gfs-node02
[root@gfs-node03
5.2、启动ccsd服务
ccsd
5.3、在两个节点上启动集群管理器(cman)
root@one
/sbin/cman_tool
join
root@tow
5.4、测试ccsd服务
(注意:
ccsd的测试要等cman启动完成后,然后才可以进行下面的测试
ccs_test
connect
各个节点的返回如下:
node
1:
Connect
successful.
Connection
descriptor
2:
30
3:
60
5.5、查看节点状态
/proc/cluster/nodes,应该返回
/proc/cluster/nodes
Node
Votes
Exp
Sts
Name
3
M
2
六、加入fence域:
/sbin/fence_tool
七、
查看集群状态
1:
/proc/cluster/status
Protocol
version:
5.0.1
Config
1
name:
alpha_cluster
ID:
50356
Member:
Yes
Membership
state:
Cluster-Member
Nodes:
3
Expected_votes:
Total_votes:
Quorum:
Active
subsystems:
addresses:
2
Cluste
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 安装 配置 GFS