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

qqmengxue發表於2011-05-04

環境介紹:

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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章