terry_yu 发表于 2008-08-04 18:13

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的介绍。谁能给讲讲呢?

terry_yu 发表于 2008-08-05 10:05

网上查到相关解释:
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了)

hellopengyl 发表于 2014-07-08 11:12

dd if=/dev/zero of=/dev/sdb1 bs=1M count=16
试试
页: [1]
查看完整版本: LVM中的clustered volume group问题