免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4124 | 回复: 14
打印 上一主题 下一主题

[MCSG] cluster.ascii生成失败 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-05-03 12:04 |只看该作者 |倒序浏览
双机的共享磁盘没有问题,都可以顺利mount.
信赖关系个人认为也没什么问题。。。
百思不得其解,望高手能帮下忙!
vi /.rhosts
fw183 root
fw184 root

# ls -al /.rhosts
-rwxrwxrwx   1 root       sys             22 May  2 21:56 /.rhosts

# cmquerycl -n fw183 -n fw184 -v -C /etc/cmcluster/cluster.ascii
Warning: Unable to determine local domain name for fw183
Looking for other clusters ... Done
Gathering storage information
Found 13 devices on node fw183
Found 13 devices on node fw184
Analysis of 26 devices should take approximately 3 seconds
0%----10%----20%----30%----40%----50%----60%----70%----80%----90%----100%
Found 2 volume groups on node fw183
Found 2 volume groups on node fw184
Analysis of 4 volume groups should take approximately 1 seconds
0%----10%----20%----30%----40%----50%----60%----70%----80%----90%----100%
Note: Disks were discovered which are not in use by either LVM or VxVM.
      Use pvcreate(1M) to initialize a disk for LVM or,
      use vxdiskadm(1M) to initialize a disk for VxVM.
Gathering network information
Beginning network probing
Completed network probing

Node Names:    fw183
               fw184

Bridged networks (local node information only - full probing was not performed):

1       lan0           (fw183)

3       lan0           (fw184)

IP subnets:

IPv4:

192.168.50.0       lan0      (fw183)
                   lan0      (fw184)

IPv6:

Possible Heartbeat IPs:

192.168.50.0                      192.168.50.183      (fw183)
                                  192.168.50.184      (fw184)

Possible Cluster Lock Devices:

/dev/dsk/c3t0d0                         30 seconds

Note: all lock disks have the same failover time

LVM volume groups:

/dev/vg00               fw183

/dev/vglock             fw183
                        fw184

/dev/vg00               fw184

LVM physical volumes:

/dev/vg00
/dev/disk/disk3_p2 64000/0xfa00/0x0              fw183

/dev/vglock
/dev/dsk/c3t0d0    0/1/1/1.0.0                   fw183

/dev/dsk/c3t0d0    0/1/1/1.0.0                   fw184

/dev/vg00
/dev/disk/disk3_p2 64000/0xfa00/0x0              fw184

LVM logical volumes:

Volume groups on fw183:
/dev/vg00/lvol1                           FS MOUNTED   /stand
/dev/vg00/lvol2
/dev/vg00/lvol3                           FS MOUNTED   /
/dev/vg00/lvol4                           FS MOUNTED   /home
/dev/vg00/lvol5                           FS MOUNTED   /opt
/dev/vg00/lvol6                           FS MOUNTED   /tmp
/dev/vg00/lvol7                           FS MOUNTED   /usr
/dev/vg00/lvol8                           FS MOUNTED   /var
/dev/vg00/iso
/dev/vg00/isolv
/dev/vglock/lvol1                         FS

Volume groups on fw184:
/dev/vg00/lvol1                           FS MOUNTED   /stand
/dev/vg00/lvol2
/dev/vg00/lvol3                           FS MOUNTED   /
/dev/vg00/lvol4                           FS MOUNTED   /tmp
/dev/vg00/lvol5                           FS MOUNTED   /usr
/dev/vg00/lvol6                           FS MOUNTED   /var
/dev/vg00/lvol7                           FS MOUNTED   /home
/dev/vg00/lvol8                           FS MOUNTED   /opt
/dev/vg00/iso
/dev/vglock/lvol1
Warning: Failed to find a configuration that satisfies the minimum network configuration requirements.
Minimum network configuration requirements are:
- 2 or more heartbeat networks OR
- 1 heartbeat network with local switch (HP-UX Only) OR
- 1 heartbeat network using APA with 2 trunk members (HP-UX Only) OR
- 1 heartbeat network using bonding (mode 1) with 2 slaves (Linux Only)

Writing cluster data to /etc/cmcluster/cluster.ascii

论坛徽章:
0
2 [报告]
发表于 2013-05-03 14:05 |只看该作者
看红字提示的意思是没有配置心跳,那LZ检查下呗:netstat -in看看除了业务网卡外,有没有心跳的配置,是否up,两个互相ping下,如果都没问题,那就去cluster.ascii里面看看是不是忘了修改配置文件里面对心跳的定义项了!手头没带笔记本,没法查我的实际配置文档,只能提供这么多帮助了。。。

评分

参与人数 1可用积分 +5 收起 理由
lbseraph + 5 谢谢积极回复~

查看全部评分

论坛徽章:
48
15-16赛季CBA联赛之青岛
日期:2021-01-07 13:41:2315-16赛季CBA联赛之上海
日期:2020-12-01 18:02:0720周年集字徽章-20	
日期:2020-10-28 14:14:2620周年集字徽章-20	
日期:2020-10-28 14:04:3015-16赛季CBA联赛之天津
日期:2020-10-18 22:51:412016猴年福章徽章
日期:2016-02-18 15:30:3415-16赛季CBA联赛之北控
日期:2015-12-22 13:30:48操作系统版块每日发帖之星
日期:2015-12-07 06:20:00操作系统版块每日发帖之星
日期:2015-09-04 06:20:002015亚冠之德黑兰石油
日期:2015-08-05 18:46:082015年亚洲杯之巴勒斯坦
日期:2015-04-19 10:42:502015年亚洲杯之巴林
日期:2015-04-09 08:03:23
3 [报告]
发表于 2013-05-03 15:26 |只看该作者
同LS,检查一下心跳的配置是否正常。

针对第一个标红的,fw183的domain有设置么?在各个node分别用nslookup解析一下两个node,看看是否正常解析。不行的话要检查/etc/hosts文件的配置。

论坛徽章:
0
4 [报告]
发表于 2013-05-03 15:45 |只看该作者
谢谢回答,那个warning好像不影响之后的搭建。
遇到了个新问题。。。
MC配置完后,结果共享磁盘激活失败了。。。
# vgchange -a y /dev/vglock
vgchange: Activation mode requested for the volume group "/dev/vglock" conflicts with configured mode.

# vgchange -a e /dev/vglock
vgchange: Couldn't activate volume group "/dev/vglock":
Quorum not present, or some physical volume(s) are missing.

# vgchange -a s -p /dev/vglock
vgchange: Activation mode requested for the volume group "/dev/vglock" conflicts with configured mode.

# vgchange -a s /dev/vglock
vgchange: Activation mode requested for the volume group "/dev/vglock" conflicts with configured mode.

论坛徽章:
0
5 [报告]
发表于 2013-05-03 15:51 |只看该作者
本帖最后由 dalong42 于 2013-05-03 15:55 编辑

说错了大家别喷哈,貌似共享的vg设置了Share的属性,所以如果要想去激活或者激活要先改变属性(个人记得);从你报错来看,你的vglock应该没激活,其实这个在双机里面正常,不需要你去手工激活它,貌似默认就是两边都去激活的;如果非要激活,好像只能先去掉共享模式,我记得命令式vgchange -s n -a n吧,然后再激活;另外你看看你用过vgchang -c y 加入到集群模式过么?如果使用过,刚才的命令也不好用的话,可是试下vgchange -c n ,让后再更改vg属性。

论坛徽章:
0
6 [报告]
发表于 2013-05-03 15:54 |只看该作者
能否告知详细点,如何改变其属性?回复 5# dalong42


   

论坛徽章:
0
7
发表于 2013-05-03 15:56
回复 6# leezuimeng
详细写了下。。。刚才手抖。。。碰着回车了。。。。

   

论坛徽章:
0
8 [报告]
发表于 2013-05-03 15:57 |只看该作者
# vgchange -c y /dev/vglock
Configuration change completed.
Volume group "/dev/vglock" has been successfully changed.
-C没有问题,主要是现在想要在共享目录里面建东西。。。可是两边都看不见。。。
回复 5# dalong42


   

论坛徽章:
0
9 [报告]
发表于 2013-05-03 16:02 |只看该作者
回复 8# leezuimeng

你vgdisplay -v vglock下,看看模式是什么,还有,vglock一般建议不放数据的。。。你现在就是想激活它,但是我实际中貌似如果要手工激活哪个vglock的话,需要先给他去掉共享模式,在激活,再加入共享模式吧,你直接激活没戏的,因为vgchange -a y 是针对独立vg的。
   

评分

参与人数 1可用积分 +5 收起 理由
lbseraph + 5 谢谢积极回复!

查看全部评分

论坛徽章:
0
10 [报告]
发表于 2013-05-03 16:07 |只看该作者
vgdisplay -v vglock
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "vglock".
不好意思,说错了。我想mount vg到共享目录下去。
得先激活vglock.

# mount -F vxfs /dev/vglock/lvol1 /lee
vxfs mount: V-3-20003: Cannot open /dev/vglock/lvol1: No such device or address
vxfs mount: V-3-24996: Unable to get disk layout version

回复 9# dalong42
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP