文档详情

群集rhcs的配置和共享存储.doc

发布:2017-03-29约1.53万字共20页下载文档
文本预览下载声明
Redhat5.5上实现Linux的rhcs群集 Rhcs红帽的群集套件,通过Conga项目调用luci界面安装软件套件 Rhel 4 提供16+个节点 Rhel 5 提供100+个节点 68-1 Target的配置 [root@target ~]# uname -n [root@target ~]# cat /etc/sysconfig/network HOSTNAME= [root@target ~]# cat /etc/hosts localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 00 target 0 node1 0 node2 格式化磁盘 [root@target ~]# fdisk -l [root@target ~]# fdisk /dev/sdb [root@target ~]# partprobe /dev/sdb [root@target ~]# more /proc/partitions 安装target [root@target ~]# yum list all |grep scsi scsi-target-utils.i386 0.0-6nap.el5_4.1 [root@target ~]# yum install scsi-target* -y [root@target ~]# service tgtd start [root@target ~]# chkconfig tgtd on [root@target ~]# netstat -tunlp |grep 3260 创建控制器和逻辑分区,各服务器时间要保持一致 Ip bind 认证,并把规则写入开机脚本里。 [root@target ~]# date Thu Oct 20 14:38:09 CST 2011 [root@target ~]# tgtadm --lld iscsi --op new --mode target --tid=1 --targetname iqn.2011-10.co m.test.target:test [root@target ~]# echo tgtadm --lld iscsi --op new --mode target --tid=1 --targetname iqn.2011 -10.com.test.target:test/etc/rc.d/rc.local [root@target ~]# tgtadm --lld iscsi --op new --mode=logicalunit --tid=1 --lun=1 --backing-stor e /dev/sdb1 [root@target ~]# echo tgtadm --lld iscsi --op new --mode=logicalunit --tid=1 --lun=1 --backin g-store /dev/sdb1/etc/rc.d/rc.local [root@target ~]# tgtadm --lld iscsi --op bind --mode=target --tid=1 --initiator-address=/24 [root@target ~]# echo tgtadm --lld iscsi --op bind --mode=target --tid=1 --initiator-address= /24/etc/rc.d/rc.local 安装luci [root@target ~]# yum list all |grep luci luci.i386 0.12.2-12.el5 rhel-cluster [root@target ~]# yum install luci -y Luci初始化需要三步 #luci_admin init #service luci restart –首次启动需要用restart #https://localhost:8084/ [root@target ~]# luci_admin init [root@target ~]# service luci restart Shutting down luci: [ OK ] Starting luci: Generating https S
显示全部
相似文档