码迷,mamicode.com
首页 > Web开发 > 详细

Troubleshooting:lvm调整分区时“Error parsing metadata for VG fedora”的解决

时间:2015-02-06 20:18:05      阅读:201      评论:0      收藏:0      [点我收藏+]

标签:

磁盘满了,由于使用的是lvm,想要扩容时发现无论lvs还是lvdisplay这类命令都会报同样的错:

[root@localhost qwang]# lvs
  Parse error at byte 1591 (line 100): unexpected token
  Error parsing metadata for VG fedora.
  Skipping volume group fedora
  Internal error: Volume Group fedora was not unlocked

各种搜索无果,翻出一个bug:https://bugzilla.redhat.com/show_bug.cgi?id=1119045

读到comment 30,试试

[root@localhost qwang]# uname -a
Linux localhost.localdomain
54.197.182.68 jbossas.alias.medium 3.17.4-200.fc20.x86_64 #1 SMP Fri Nov 21 23:26:41 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

查看下hostname

[root@localhost qwang]# cat /etc/hostname 
localhost.localdomain
54.197.182.68 jbossas.alias.medium

/etc/hostname里删去我自己加的一行54.197.182.68 jbossas.alias.medium

再查看下

[root@localhost qwang]# uname -a
Linux localhost.localdomain 3.17.4-200.fc20.x86_64 #1 SMP Fri Nov 21 23:26:41 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

试试

[root@localhost qwang]# lvs
  LV   VG     Attr       LSize   Pool Origin Data%  Move Log Cpy%Sync Convert
  home fedora -wi-ao---- 180.34g                                             
  root fedora -wi-ao----  50.00g                                             
  swap fedora -wi-ao----   7.64g

问题解决!

Troubleshooting:lvm调整分区时“Error parsing metadata for VG fedora”的解决

标签:

原文地址:http://www.cnblogs.com/qyddbear/p/4277787.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!