[ClusterLabs] VG activation on Active/Passive
Hi, For an active/passive cluster, using a non-cluster filesystem like ext3 over LVM (using cLVM DLM), would you: - include the VG activation in the same cloned group that hosts cLVM DLM? (top of screenshot) so that in both nodes the VG is activated (even though this is not a cluster-filesystem so there's no need to have the VG activated on both sides simultaneously)? or - do you create a separate group with the VG activation (LVM resource) and tie it with the Filesystem resource? (bottom of screenshot). This makes more sense to me since the VG only needs to be activated where the filesystem is going to be mounted. Here's my screenshot: http://oi60.tinypic.com/10pn9n6.jpg I belive this last one is THE way to go for such setup (active/passive) but I'm wondering why I have seen examples online with the first case. Maybe I'm missing something. Thanks! Jorge ___ Users mailing list: Users@clusterlabs.org http://clusterlabs.org/mailman/listinfo/users Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org
Re: [ClusterLabs] VG activation on Active/Passive
On 08/29/2015 02:37 PM, Digimer wrote: No need for clustered LVM, only the active node should see the PV. When the passive takes over, after connecting to the PV, it should do a pvscan - vgscan - lvscan before mounting the FS on the LV. Keep you cluster simple; remove everything not needed. Hi Digimer, It would be great if my cluster could communicate with the storage-array to make it present or unpresent LUNs based on the cluster conditions but I'm afraid that's not possible :) So yes, these are LUNs that are visible on both nodes. I'm the one who asked you something regarding cLVM on IRC the other day (one of the many times you have helped me there) and I decided to go the cLVM/DLM route (because the LUNs are seen on both nodes) but now I have my issues with this VG activation. Thanks. Regards, Jorge ___ Users mailing list: Users@clusterlabs.org http://clusterlabs.org/mailman/listinfo/users Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org
Re: [ClusterLabs] VG activation on Active/Passive
On 29/08/15 02:30 PM, Jorge Fábregas wrote: Hi, For an active/passive cluster, using a non-cluster filesystem like ext3 over LVM (using cLVM DLM), would you: No need for clustered LVM, only the active node should see the PV. When the passive takes over, after connecting to the PV, it should do a pvscan - vgscan - lvscan before mounting the FS on the LV. Keep you cluster simple; remove everything not needed. - include the VG activation in the same cloned group that hosts cLVM DLM? (top of screenshot) so that in both nodes the VG is activated (even though this is not a cluster-filesystem so there's no need to have the VG activated on both sides simultaneously)? or - do you create a separate group with the VG activation (LVM resource) and tie it with the Filesystem resource? (bottom of screenshot). This makes more sense to me since the VG only needs to be activated where the filesystem is going to be mounted. Here's my screenshot: http://oi60.tinypic.com/10pn9n6.jpg I belive this last one is THE way to go for such setup (active/passive) but I'm wondering why I have seen examples online with the first case. Maybe I'm missing something. Thanks! Jorge ___ Users mailing list: Users@clusterlabs.org http://clusterlabs.org/mailman/listinfo/users Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org -- Digimer Papers and Projects: https://alteeve.ca/w/ What if the cure for cancer is trapped in the mind of a person without access to education? ___ Users mailing list: Users@clusterlabs.org http://clusterlabs.org/mailman/listinfo/users Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org
Re: [ClusterLabs] VG activation on Active/Passive
On 29/08/15 02:51 PM, Jorge Fábregas wrote: On 08/29/2015 02:37 PM, Digimer wrote: No need for clustered LVM, only the active node should see the PV. When the passive takes over, after connecting to the PV, it should do a pvscan - vgscan - lvscan before mounting the FS on the LV. Keep you cluster simple; remove everything not needed. Hi Digimer, It would be great if my cluster could communicate with the storage-array to make it present or unpresent LUNs based on the cluster conditions but I'm afraid that's not possible :) So yes, these are LUNs that are visible on both nodes. I'm the one who asked you something regarding cLVM on IRC the other day (one of the many times you have helped me there) and I decided to go the cLVM/DLM route (because the LUNs are seen on both nodes) but now I have my issues with this VG activation. Thanks. Regards, Jorge Ah, OK then. -- Digimer Papers and Projects: https://alteeve.ca/w/ What if the cure for cancer is trapped in the mind of a person without access to education? ___ Users mailing list: Users@clusterlabs.org http://clusterlabs.org/mailman/listinfo/users Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org