Skipping clustered volume group

问题:在这次RHCE考试中,使用图形化创建LVM时候不小心勾选了集群,结果出现以下错误:

pvcreate command failed. Command attempted: "/sbin/pvcreate -M 2 /dev/sda5" - System Error Message:   Can't initialize physical volume "/dev/sda5" of volume group "clustered" without -ffwKiom1PLXg-Q9r7OAAC2mHiTN5s586.jpg

解决方法:

[root@localhost yum.repos.d]# vgs
  Skipping clustered volume group clustered
[root@localhost yum.repos.d]# vgscan
  Reading all physical volumes.  This may take a while...
  Skipping clustered volume group clustered

网上查找的资料

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.

根据说明我把/etc/lvm/lvm.conf中的locking_type = 1修改成了locking_type = 0,发现并未能解决问题

[root@localhost ~]# vgchange -c n vgo
  WARNING: Locking disabled. Be careful! This could corrupt your metadata.
  Volume group "vgo" not found
[root@localhost ~]#

这时候想起了之前老师说的dd命令,于是

[root@localhost ~]# dd if=/dev/zero of=/dev/sda5 bs=1M count=16
16+0 records in
16+0 records out
16777216 bytes (17 MB) copied, 8.80356 s, 1.9 MB/s
[root@localhost ~]#

问题成功解决!


#########公众号:w_caibao###########

         与技术无关,与“宝宝”相连

wKiom1NOIF2jpo-5AAC_L8Q6aGk139.jpg

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值