歡迎您光臨本站 註冊首頁

LVM中的clustered volume group問題

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

LVM中的clustered volume group問題

偶爾用一次圖形操作,不小心在LVM管理時建vg時溝選了集群選項。現在這兩個vg無論如何也刪除不掉了。

# vgremove db1
  Skipping clustered volume group db1
#


# pvdisplay |grep /dev/
  Skipping clustered volume group online
  Skipping clustered volume group db1
  PV Name               /dev/sdb1
  PV Name               /dev/sdc1
  PV Name               /dev/sdd1
  
查了一下,沒有太多關於clustered volume group的介紹。誰能給講講呢?
《解決方案》

網上查到相關解釋:
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.


我的操作方法:


# vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "data" using metadata type lvm2
  Skipping clustered volume group db1
(可以看到一個cluster volume group: db1)

# vgchange -cn online
  Skipping clustered volume group online
(無法修改)

# vi /etc/lvm/lvm.conf
(設置locking_type = 0)

#  vgchange -cn db1
  WARNING: Locking disabled. Be careful! This could corrupt your metadata.
  Volume group "db1" successfully changed
(修改db1成功)

# vgscan
  WARNING: Locking disabled. Be careful! This could corrupt your metadata.
  Reading all physical volumes.  This may take a while...
  Found volume group "data" using metadata type lvm2
  Found volume group "db1" using metadata type lvm2
(可以看到已經不是cluster volume group了)

[火星人 ] LVM中的clustered volume group問題已經有1054次圍觀

http://coctec.com/docs/service/show-post-28500.html