Troubleshooting:lvm調整分區時「Error parsing metadata for VG fedora」的解決

磁盤滿了,因爲使用的是lvm,想要擴容時發現不管lvs仍是lvdisplay這類命令都會報一樣的錯:dom

[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=1119045spa

讀到comment 30,試試code

[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

查看下hostnameblog

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

/etc/hostname裏刪去我本身加的一行54.197.182.68 jbossas.alias.mediumtoken

再查看下ip

[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

試試class

[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

問題解決!cgi

相關文章
相關標籤/搜索