LVM ボリュームグループのタイプをクラスタ化にしたり、非クラスタ化にする方法
Issue
- LVM ボリュームグループのタイプをクラスタ化にしたり、非クラスタ化にする方法は?
-
別の RHEL5.4 サーバーに Clone LUN をマウントして、データーをサーバーからテープに書き込めるようにする必要があります。ただし、RHEL5.4 server で VG をマウントすると、以下のエラーを取得します。
# vgimport /dev/mapper/mpath0 connect() failed on local socket: Connection refused WARNING: Falling back to local file-based locking. Volume Groups with the clustered attribute will be inaccessible. Skipping clustered volume group vgname</code>
Environment
- Red Hat Enterprise Linux 4
- Red Hat Enterprise Linux 5
- クラスタ化された LVM デーモン (CLVMD) は使用されているときもされていないときもあります。
-
問題となっているボリュームグループには、クラスタ化された属性セットがあります。
# vgdisplay vgtest --config 'global {locking_type = 0}' | grep Clustered WARNING: Locking disabled. Be careful! This could corrupt your metadata. Clustered yesまたは、
# vgs --config 'global {locking_type = 0}' WARNING: Locking disabled. Be careful! This could corrupt your metadata. VG #PV #LV #SN Attr VSize VFree vgname 1 1 0 wz--nc 96.00M 76.00M <----- Attr includes the 'c' flag meaning clustered.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
