lvs+gfs+iscsi

来源:未知 责任编辑:责任编辑 发表时间:2014-01-20 07:53 点击:

文章尚未完成请勿参考
(一)LVS
(二)gfs
(三)iscsi部分
 
iptables -F
iptables -X
service iptables save
ip6tables -F
ip6tables -X
service ip6tables save
setenforce 0

安装服务端
yum install scsi-target-utils iscsi-initiator-utils -y
scsi-target-utils-1.0.18-1.fc15.x86_64
iscsi-initiator-utils-6.2.0.872-12.fc15.x86_64
service tgtd start
chkconfig tgtd on
1.新增target device命令如下:
# tgtadm --lld iscsi --op new --mode target --tid 1 -T rhcs-storage
查看target device
#tgtadm --lld iscsi --op show --mode target
2.将起初新建的分区加入target device。
# tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/sda6
3.查看加入target device后的输出内容:
# tgtadm --lld iscsi --op show --mode target
            
4.设置可以访问存取此target device的initiator节点。本机允许gfs1 gfs2 gfs3存取,设置如下:
#tgtadm --lld iscsi --op bind --mode target --tid 1 -I 192.168.0.92                 
#tgtadm --lld iscsi --op bind --mode target --tid 1 -I 192.168.0.93

iscsiadm -m node -T rhcs-storage -p 192.168.0.91:3260 -l
 
 
客户端
检测服务端是否正常识别
[root@client01 ~]# iscsiadm -m discovery -t sendtargets -p 192.168.0.93:3260
登入服务端
[root@client01 ~]# iscsiadm -m node -T rhcs-storage -p 192.168.0.93:3260 -l
退出服务端iscsiadm -m node -T rhcs-storage -p 192.168.0.91:3260 -u
 
 

创建物理卷
[root@gfs-node-01 ~]# pvcreate -ff /dev/sdc
  Physical volume "/dev/sdc" successfully created
创建卷组
[root@gfs-node-01 ~]# vgcreate gfsvg /dev/sdc
  Clustered volume group "gfsvg" successfully created
创建逻辑卷
[root@gfs-node-01 ~]# lvcreate -L 4G -n vg01 gfsvg

mkfs.gfs2 -p lock_dlm -t cluster-gfs:data1 -j 2 /dev/gfsvg/vg01
 
 
Disk /dev/mapper/share-share10 doesn't contain a valid partition table
[root@gfs-node-01 /]# lvcreate -L 10G -n share10 share^C
[root@gfs-node-01 /]# lvre
lvreduce  lvremove  lvrename  lvresize
[root@gfs-node-01 /]# lvremove share10
  Volume group "share10" not found
  Skipping volume group share10
[root@gfs-node-01 /]# lvremove /dev/
Display all 186 possibilities? (y or n)
[root@gfs-node-01 /]# lvremove /dev/mapper/share-share10
Do you really want to remove active logical volume share10? [y/n]: y
  Logical volume "share10" successfully removed
[root@gfs-node-01 /]# vgremove share
  Volume group "share" successfully removed
[root@gfs-node-01 /]# pvremove /dev/sda6
  Labels on physical volume "/dev/sda6" succ

发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
用户名: 验证码:点击我更换图片
最新评论 更多>>

推荐热点

  • /etc/fstab 详解
  • nginx主主集群
  •  LVS-NAT和LVS-DR模式的实现详解
  •  RHCE考试之磁盘配额
  • 学习笔记:ACL详解
  • suse linux双网卡双网关配置
  •  LVM逻辑卷管理器
  •  Nginx主主负载均衡架构
  • ubuntu学习Mysql

快速直达

操作系统导航

LinuxWindows虚拟机
网站首页 - 友情链接 - 网站地图 - TAG标签 - RSS订阅 - 内容搜索
Copyright © 2008-2015 计算机技术学习交流网. 版权所有

豫ICP备11007008号-1