刚才的iscsi将服务器上的磁盘共享出来,在cluster中,往往会使用添加共享磁盘的方式扩大共享空间,我们可以使用clvm技术,将多块共享磁盘合并成一个磁盘(卷组volume goup).也便于以后的磁盘添加
卷组的分区和硬盘的分区不一样,我们叫他为逻辑卷(logical volume)
逻辑卷用什么格式呢?我这里选择的是gfs2
现在p1上设置clvmd,用来识别lvm
[root@p2 ~]# chkconfig --level 35 clvmd on
我是在iscsi这台机器上用Conga Cluster and Storage Management System对整个集群进行设置的,相当方便
那么先初始化Conga服务吧
Initializing the Luci server
Creating the 'admin' user
Enter password:
Confirm password:
Please wait...
The admin password has been successfully set.
Generating SSL certificates...
Luci server has been successfully initialized
Restart the Luci server for changes to take effect
eg. service luci restart
然后重启服务
Shutting down luci: [ OK ]
Starting luci: [ OK ]
Point your web browser to https://iscsi.yubo.org:8084 to access luci
先建立一个集群吧,至于为什么这样做,请参照<iscsi+clvm+gfs2+xen+Cluster(五)–能自动迁移的virtual server>

点击submit后

cluster成员经历安装-重启-配置-结合4个步骤

现在应该能看到

如果还是不放心,想进一步确认是不是正常的话,好吧,点击上面那个图上的p1.yubo.org

现在总该放心了吧,那么进入正题,storage->system list->p1.yubo.org->Volume Groups->New Volume Group
将p1上的3个共享硬盘做成一个卷组,名字就叫vg1吧


添加完成之后,点击vg1上面的蓝条,建立逻辑卷

p1.yubo.org上的gfs2也就配置完成了
p2.yubo.org按道理刷新后应该跟p1一样,毕竟是一个cluster,而且3个硬盘的scsi id都是一样的
不过我做试验的时候p2看上去没有任何变化,那么硬着头皮再配置一遍吧
进入p2的配置页面,创建卷组(心想这样重新创建的vg跟p1的vg1不一致怎么办)
果然报错了
刷新以后,p1的配置更新到p2上来了….
Leave a Reply
You must be logged in to post a comment.