请注意,本文编写于 1813 天前,最后修改于 1813 天前,其中某些信息可能已经过时。
问题现象:使用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
theoriginal value.