Skipping clustered volume group

在RHCE考试中遇到图形化创建LVM时误选集群选项导致错误,通过编辑/etc/lvm/lvm.conf文件将locking_type设置为0,使用dd命令清空相关分区,最终成功解决问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题:在这次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

(base) std@DESKTOP-34RVGDQ:~/OpenFOAM/yuanzhuwangge$ gmsh sss.geo -3 -format msh2 Info : Running 'gmsh sss.geo -3 -format msh2' [Gmsh 4.12.1, 1 node, max. 1 thread] Info : Started on Tue Mar 11 10:44:51 2025 Info : Reading 'sss.geo'... Error : 'sss.geo', line 45: syntax error (,) Error : 'sss.geo', line 45: syntax error (}) Error : 'sss.geo', line 50: Unknown variable 'ext2(.)' Error : 'sss.geo', line 56: Uninitialized variable 'ext3[0]' Error : 'sss.geo', line 58: syntax error (,) Error : 'sss.geo', line 58: syntax error (}) Error : 'sss.geo', line 63: Unknown variable 'ext4(.)' Error : 'sss.geo', line 69: Uninitialized variable 'ext5[0]' Error : 'sss.geo', line 70: Unknown variable 'ext2(.)' Error : 'sss.geo', line 70: Uninitialized variable 'ext3[1]' Error : 'sss.geo', line 70: Unknown variable 'ext4(.)' Error : 'sss.geo', line 70: Uninitialized variable 'ext5[1]' Error : 'sss.geo', line 71: Unknown variable 'ext2(.)' Error : 'sss.geo', line 71: Uninitialized variable 'ext3[1]' Error : 'sss.geo', line 71: Unknown variable 'ext4(.)' Error : 'sss.geo', line 71: Uninitialized variable 'ext5[1]' Warning : Skipping unknown surface 0 in physical surface 2 Warning : Skipping unknown surface 0 in physical surface 3 Warning : Skipping unknown surface 0 in physical surface 3 Warning : Skipping unknown surface 0 in physical surface 3 Warning : Skipping unknown surface 0 in physical surface 3 Warning : Skipping unknown volume 0 in physical volume 4 Warning : Skipping unknown volume 0 in physical volume 4 Warning : Skipping unknown volume 0 in physical volume 4 Warning : Skipping unknown volume 0 in physical volume 4运行后出现以上报错,应该怎么修改
03-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值