问题现象:使用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. Loading... <div class="tip share">请注意,本文编写于 2036 天前,最后修改于 2036 天前,其中某些信息可能已经过时。</div> 问题现象:使用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 日 © 允许规范转载 打赏 赞赏作者 赞 如果觉得我的文章对你有用,请随意赞赏