环境介绍:
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/