天天看點

Skipping clustered volume group

問題:在這次RHCE考試中,使用圖形化建立LVM時候不小心勾選了叢集,結果出現以下錯誤:

解決方法:

1

2

3

4

5

<code>[root@localhost yum.repos.d]</code><code># vgs</code>

<code>  </code><code>Skipping clustered volume group clustered</code>

<code>[root@localhost yum.repos.d]</code><code># vgscan</code>

<code>  </code><code>Reading all physical volumes.  This may take a </code><code>while</code><code>...</code>

網上查找的資料

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,發現并未能解決問題

<code>[root@localhost ~]</code><code># vgchange -c n vgo</code>

<code>  </code><code>WARNING: Locking disabled. Be careful! This could corrupt your metadata.</code>

<code>  </code><code>Volume group </code><code>"vgo"</code> <code>not found</code>

<code>[root@localhost ~]</code><code>#</code>

這時候想起了之前老師說的dd指令,于是

<code>[root@localhost ~]</code><code># dd if=/dev/zero of=/dev/sda5 bs=1M count=16</code>

<code>16+0 records </code><code>in</code>

<code>16+0 records out</code>

<code>16777216 bytes (17 MB) copied, 8.80356 s, 1.9 MB</code><code>/s</code>

問題成功解決!

本文轉自 justin_peng 51CTO部落格,原文連結:http://blog.51cto.com/ityunwei2017/1440502,如需轉載請自行聯系原作者

繼續閱讀