0

我有集群 RHEL6、cman、corosync、pacemaker。

添加新成员后,我在安装 GFS 时遇到错误。GFS 从不安装在服务器上。

group_tool
fence domain
member count  4
victim count  0
victim now    0
master nodeid 1
wait state    none
members       1 2 3 4

dlm lockspaces
name          clvmd
id            0x4104eefa
flags         0x00000000
change        member 4 joined 1 remove 0 failed 0 seq 1,1
members       1 2 3 4

gfs mountgroups
name          lv_gfs_01
id            0xd5eacc83
flags         0x00000005 blocked,join
change        member 3 joined 1 remove 0 failed 0 seq 1,1
members       1 2 3

在流程中:

root      2695  2690  0 08:03 pts/1    00:00:00 /bin/bash /etc/init.d/gfs2 start
root      2702  2695  0 08:03 pts/1    00:00:00 /bin/bash /etc/init.d/gfs2 start
root      2704  2703  0 08:03 pts/1    00:00:00 /sbin/mount.gfs2 /dev/mapper/vg_shared-lv_gfs_01 /mnt/share -o rw,_netdev,noatime,nodiratime

fsck.gfs2 -yf /dev/vg_shared/lv_gfs_01

Initializing fsck
jid=1: Replayed 0 of 0 journaled data blocks
jid=1: Replayed 20 of 21 metadata blocks
Recovering journals (this may take a while)

Journal recovery complete.
Validating Resource Group index.
Level 1 rgrp check: Checking if all rgrp and rindex values are good.
(level 1 passed)
RGs: Consistent: 183   Cleaned: 1   Inconsistent: 0   Fixed: 0   Total: 184
2 blocks may need to be freed in pass 5 due to the cleaned resource groups.
Starting pass1
Pass1 complete
Starting pass1b
Pass1b complete
Starting pass1c
Pass1c complete
Starting pass2
Pass2 complete
Starting pass3
Pass3 complete
Starting pass4
Pass4 complete
Starting pass5
Block 11337799 (0xad0047) bitmap says 1 (Data) but FSCK saw 0 (Free)
Fixed.
Block 11337801 (0xad0049) bitmap says 1 (Data) but FSCK saw 0 (Free)
Fixed.
RG #11337739 (0xad000b) free count inconsistent: is 65500 should be 65502
RG #11337739 (0xad000b) Inode count inconsistent: is 15 should be 13
Resource group counts updated
Pass5 complete
The statfs file is wrong:

Current statfs values:
blocks:  12057320 (0xb7fae8)
free:    9999428 (0x989444)
dinodes: 15670 (0x3d36)

Calculated statfs values:
blocks:  12057320 (0xb7fae8)
free:    9999432 (0x989448)
dinodes: 15668 (0x3d34)
The statfs file was fixed.
Writing changes to disk
gfs2_fsck complete

gfs2_edit -p 0xad0047 字段 di_size /dev/vg_shared/lv_gfs_01

10 (Block 11337799 is type 10: Ext. attrib which is not implemented)

如何丢弃标记被阻止,从 GFS 加入?

4

1 回答 1

0

我通过重新启动所有具有 GFS 的服务器来解决它,这是 GFS 的不愉快行为之一。

基于内核的 GFS 锁定,在少数情况下,它只能通过重新启动来解决。

有非常有用的手册 - h​​ttps: //access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html-single/Global_File_System_2/index.html

于 2016-07-14T08:14:04.007 回答