ITPub博客

首页 > IT基础架构 > 网络安全 > vgchange -c y后的【Skipping clustered volume group 】

vgchange -c y后的【Skipping clustered volume group 】

原创 网络安全 作者:qqmengxue 时间:2011-05-04 17:21:19 0 删除 编辑

环境介绍:

oracle RED HAT 5.6 32bit

LVM

vgchange -c y /dev/oracle_vm

[@more@]

在对LVM group做了cluster设置后,想要更新都报:

Skipping clustered volume group oracle_vm

[root@qqovm ~]# vgdisplay /dev/oracle_vm
Skipping clustered volume group oracle_vm
[root@qqovm ~]# vgchange -c n /dev/oracle_vm
Skipping clustered volume group oracle_vm
[root@qqovm ~]# vgchange -a n /dev/oracle_vm
Skipping clustered volume group oracle_vm
[root@qqovm ~]#

解决办法是设置lvm.conf文件内的locking_type 由1设置为0:

[root@qqovm ~]# more /etc/lvm/lvm.conf |grep locking
# Type of locking to use. Defaults to local file-based locking (1).
# Turn locking off by setting to 0 (dangerous: risks metadata corruption
# Type 2 uses the external shared library locking_library.
# Type 3 uses built-in clustered locking.
locking_type = 1
# If using external locking (type 2) and initialisation fails,
# clustered locking.
# If you are using a customised locking_library you should set this to 0.
fallback_to_clustered_locking = 1
# If an attempt to initialise type 2 or type 3 locking failed, perhaps
# to 1 an attempt will be made to use local file-based locking (type 1).
fallback_to_local_locking = 1
locking_dir = "/var/lock/lvm"
# The external locking library to load if locking_type is set to 2.
# locking_library = "liblvm2clusterlock.so"
[root@qqovm ~]#

[root@qqovm ~]# more /etc/lvm/lvm.conf |grep locking
# Type of locking to use. Defaults to local file-based locking (1).
# Turn locking off by setting to 0 (dangerous: risks metadata corruption
# Type 2 uses the external shared library locking_library.
# Type 3 uses built-in clustered locking.
locking_type = 0
# If using external locking (type 2) and initialisation fails,
# clustered locking.
# If you are using a customised locking_library you should set this to 0.
fallback_to_clustered_locking = 1
# If an attempt to initialise type 2 or type 3 locking failed, perhaps
# to 1 an attempt will be made to use local file-based locking (type 1).
fallback_to_local_locking = 1
locking_dir = "/var/lock/lvm"
# The external locking library to load if locking_type is set to 2.
# locking_library = "liblvm2clusterlock.so"
[root@qqovm ~]#

[root@qqovm ~]# vgchange -c n /dev/oracle_vm
WARNING: Locking disabled. Be careful! This could corrupt your metadata.
Volume group "oracle_vm" successfully changed

修改完后再将属性改回去:

[root@qqovm ~]# more /etc/lvm/lvm.conf |grep locking
# Type of locking to use. Defaults to local file-based locking (1).
# Turn locking off by setting to 0 (dangerous: risks metadata corruption
# Type 2 uses the external shared library locking_library.
# Type 3 uses built-in clustered locking.
locking_type = 1
# If using external locking (type 2) and initialisation fails,
# clustered locking.
# If you are using a customised locking_library you should set this to 0.
fallback_to_clustered_locking = 1
# If an attempt to initialise type 2 or type 3 locking failed, perhaps
# to 1 an attempt will be made to use local file-based locking (type 1).
fallback_to_local_locking = 1
locking_dir = "/var/lock/lvm"
# The external locking library to load if locking_type is set to 2.
# locking_library = "liblvm2clusterlock.so"
[root@qqovm ~]#

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10130206/viewspace-1049411/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: TimesTen错误总结
请登录后发表评论 登录
全部评论

注册时间:2009-03-26

  • 博文量
    169
  • 访问量
    589153