不久前,我创建了第一个进行测试的GFS2:
mkfs.gfs2 -t cluster-test:gfs-vol1 -p lock_dlm -j 3 /dev/vg2/gfs-vol1来自mkfs.gfs2(8) man:
-t集群名:锁空间,用于唯一标识集群中的文件系统的“锁表”对。群集名称段(最多32个字符)必须与其配置中给群集的名称相匹配;只允许该集群的成员使用此文件系统。锁空间段(最多30个字符)是区别此gfs2文件系统的唯一文件系统名称。有效的簇名和锁空间只能包含字母数字字符、连字符(-)和下划线(_)。
测试之后,我希望将集群的名称从集群测试更改为集群-prod。首先,我更改了图腾(cluster_name)在corosync.conf中的配置,但之后挂载失败了。
mount: /gfs/gfs-vol1: mount(2) system call failed: Invalid request descriptor.在dmesg中:
kernel: gfs2: fsid=cluster-test:gfs-vol1: Trying to join cluster "lock_dlm", "cluster-test:gfs-vol1"
kernel: dlm: Using TCP for communications
kernel: dlm: dlm cluster name 'cluster-prod' does not match the application cluster name 'cluster-test'
kernel: gfs2: fsid=cluster-test:gfs-vol1: dlm_new_lockspace error -53如何更改文件系统中的GFS2集群名以匹配dlm/cor产c?
发布于 2019-02-07 10:15:46
改变很容易(如果你已经知道去哪里找了,而不是我的情况)。有两种不同的方式:
很难(我第一次猜测):
gfs2_edit -p sb field sb_locktable cluster-prod:gfs-vol1 /dev/vg2/gfs-vol1Easyway (如果您不知道tunegfs2命令以及“可锁名称”和“文件系统标签”之间的关系,则不太明显/直观):
tunegfs2 -L cluster-prod:gfs-vol1 /dev/vg2/gfs-vol1如果您想要更改"lockproto“,这也很有用。
https://serverfault.com/questions/952758
复制相似问题