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

环境介绍:

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博客 ” ,链接:http://blog.itpub.net/10130206/viewspace-1049411/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10130206/viewspace-1049411/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值