问题现象:使用vgdisplay查看卷组的时候,报如下信息:

connect() failed on local socket: No such file or directory
Internal cluster locking initialisation failed.
WARNING: Falling back to local file-based locking.
Volume Groups with the clustered attribute will be inaccessible.

处理方式如下:

修改/etc/lvm/lvm.conf文件,将locking_type值改为0

vim /etc/lvm/lvm.conf
locking_type = 0

执行 vgchange -c n命令将文件系统改为非集群属性。

# vgchange -c n VolGroup00

最后将/etc/lvm/lvm.conf中locking_type的值改为1即可。

vim /etc/lvm/lvm.conf

locking_type = 1

RHEL官方相关说明如下:

However, a local volume group has been incorrectly set up as
clustered, and there isnot a cluster set up for the locking, when
unset the cluster flag is attempted to be removed, vgchange will print
out

“Skipping cluster volume group.”

In order to fix this, edit the /etc/lvm/lvm.conf file and set
locking_type = 0. Then run the command vgchange -cn VolumeGroupName.
After this, change the locking_type in the /etc/lvm/lvm.conf back to
the

original value.

最后修改:2020 年 02 月 05 日 10 : 53 PM
如果觉得我的文章对你有用,请随意赞赏