- 论坛徽章:
- 0
|
目前的实验环境为:
node1 10.1.5.161 #cluster apache
node2 10.1.5.162 #cluster apache
node3 10.1.5.163 #gnbd_server
floating ip 为10.1.5.169
目前实验的阶段:
ccsd,cman,fenced,clvmd,gfs,rgmanager已经能够正常启动;
cluster.conf的配置如下
- <?xml version="1.0" ?>
- <cluster config_version="3" name="web_cluster">
- <fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="3"/>
- <clusternodes>
- <clusternode name="node1" votes="1">
- <fence>
- <method name="1"/>
- </fence>
- </clusternode>
- <clusternode name="node2" votes="1">
- <fence>
- <method name="1"/>
- </fence>
- </clusternode>
- </clusternodes>
- <cman expected_votes="1" two_node="1"/>
- <fencedevices>
- <fencedevice agent="fence_manual" name="httpd"/>
- </fencedevices>
- <rm>
- <failoverdomains>
- <failoverdomain name="httpd" ordered="1" restricted="0"> <failoverdomainnode name="node1" priority="2"/>
- <failoverdomainnode name="node2" priority="1"/>
- </failoverdomain>
- </failoverdomains>
- <resources>
- <clusterfs device="/dev/gnbd/gfs" force_unmount="0" fstype="gfs" mountpoint="/gfs" name="web_content" options="-t gfs"/>
- <ip address="10.1.5.169" monitor_link="1"/>
- <script file="/etc/rc.d/init.d/httpd" name="httpd"/>
- </resources>
- <service autostart="1" name="httpd">
- <clusterfs ref="web_content"/>
- <ip ref="10.1.5.169"/>
- <script ref="httpd"/>
- </service>
- </rm>
- </cluster>
复制代码
resource中,配置的ip address为floating ip 10.1.5.169; fs resource为,通过gnbd导入的/dev/gnbd/gfs,mount到/gfs。
目前的疑惑为:
1. 在配置 httpd.conf时,listen的配置。目前配置成了10.1.5.169,但是无法正常启动httpd,显示为- Cannot assign requested address: make_sock: could not bind to address 10.1.5.169:80
复制代码
显然和配置成floating ip 有关。请问这一部分该如何去设?
2.目前两台设备通过gnbd的导入来实现GFS文件的访问,但是在system-config-cluster配置工作中,配置fs的resource时,device是已经导入好的/dev/gnbd/gfs。我们知道,在导入时还需要一系列的命令:
modprobe gnbd
gnbd_import -v -i node3
请问这些命令是在什么时候执行合适?
谢谢 |
|