If I have a 2-nodes cluster with a clustered VG, that I copy (for example dd with cluster switched off), is then possible to acquire this VG on a third standalone node, or do I have to install the whole cluster layer on this third node too?
This is on a rhel 5.2 server....
At the moment: pvscan is ok. pvscan PV /dev/dm-11 VG VG_TEST lvm2 [10.00 GB / 0 free]
vgscan Reading all physical volumes. This may take a while... Skipping clustered volume group VG_TEST
vgchange -cn VG_TEST Skipping clustered volume group VG_TEST
vgchange -ae VG_TEST Skipping clustered volume group VG_TEST
vgchange -al VG_TEST Invalid argument l Error during parsing of command line.
Installing lvm2-cluster takes all sort of cluster infrastructure and probably licenses too...
rpm -ivh lvm2-cluster-2.02.32-4.el5.x86_64.rpm warning: lvm2-cluster-2.02.32-4.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 error: Failed dependencies: libcman.so.2()(64bit) is needed by lvm2-cluster-2.02.32-4.el5.x86_64 libdlm.so.2()(64bit) is needed by lvm2-cluster-2.02.32-4.el5.x86_64
rpm -ivh lvm2-cluster-2.02.32-4.el5.x86_64.rpm ../Server/cman-2.0.84-2.el5.x86_64.rpm warning: lvm2-cluster-2.02.32-4.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 error: Failed dependencies: openais is needed by cman-2.0.84-2.el5.x86_64 libSaCkpt.so.2()(64bit) is needed by cman-2.0.84-2.el5.x86_64 libSaCkpt.so.2(OPENAIS_CKPT_B.01.01)(64bit) is needed by cman-2.0.84-2.el5.x86_64 libcpg.so.2()(64bit) is needed by cman-2.0.84-2.el5.x86_64 libcpg.so.2(OPENAIS_CPG_1.0)(64bit) is needed by cman-2.0.84-2.el5.x86_64 perl(Net::Telnet) is needed by cman-2.0.84-2.el5.x86_64 perl(XML::LibXML) is needed by cman-2.0.84-2.el5.x86_64
Thanks in advance, Gianluca
On Tue, Feb 3, 2009 at 1:20 PM, Gianluca Cecchi gianluca.cecchi@gmail.com wrote:
If I have a 2-nodes cluster with a clustered VG, that I copy (for example dd with cluster switched off), is then possible to acquire this VG on a third standalone node, or do I have to install the whole cluster layer on this third node too?
This is on a rhel 5.2 server....
At the moment: pvscan is ok. pvscan PV /dev/dm-11 VG VG_TEST lvm2 [10.00 GB / 0 free]
vgscan Reading all physical volumes. This may take a while... Skipping clustered volume group VG_TEST
vgchange -cn VG_TEST Skipping clustered volume group VG_TEST
Ok, I found a Red Hat Knowledge Base (DOC-3619) explaining this.
[snip] However, a local volume group has been incorrectly set up as clustered, and there is not 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.
It works. Just in case other incurr in the same problem...
Sorry for the rumour, Gianluca