Re: [ClusterLabs] VirtualDomain as resources and OCFS2

2018-09-11 Thread Gang He
Hello Lentes, >>> On 2018/9/11 at 20:50, in message <584818902.7776848.1536670226935.javamail.zim...@helmholtz-muenchen.de>, "Lentes, Bernd" wrote: > > - On Sep 11, 2018, at 4:29 AM, Gang He g...@suse.com wrote: > >> Hello Lentes, >> >> It does not look like a OCFS2 or pacemaker problem,

Re: [ClusterLabs] Complex Pacemaker resource depedency

2018-09-11 Thread Vassilis Aretakis
On 11/09/2018 20:09, Andrei Borzenkov wrote: 11.09.2018 20:57, Ken Gaillot пишет: On Mon, 2018-09-10 at 21:46 +0200, Vassilis Aretakis wrote: Hi All, I have a Pacemaker which failovers IPs around 5 nodes. I want to add an default Route on each node, when this node has at least one of the

Re: [ClusterLabs] Complex Pacemaker resource depedency

2018-09-11 Thread Ken Gaillot
On Mon, 2018-09-10 at 21:46 +0200, Vassilis Aretakis wrote: > Hi All, > > I have a Pacemaker which failovers IPs around 5 nodes. I want to add > an  > default Route on each node, when this node has at least one of the  > resources running. > > > The resources are: > >   vip1-19   

Re: [ClusterLabs] Non-cloned resource moves before cloned resource startup on unstandby

2018-09-11 Thread Ken Gaillot
On Fri, 2018-09-07 at 16:07 -0400, Dan Ragle wrote: > On an active-active two node cluster with DRBD, dlm, filesystem > mounts, a Web Server, and some crons I can't figure out how to have  > the crons jump from node to node in the correct order. Specifically, > I have two crontabs (managed via

Re: [ClusterLabs] 2 node cluster dlm/clvm trouble

2018-09-11 Thread Valentin Vidic
On Tue, Sep 11, 2018 at 09:31:13AM -0400, Patrick Whitney wrote: > But, when I invoke the "human" stonith power device (i.e. I turn the node > off), the other node collapses... > > In the logs I supplied, I basically do this: > > 1. stonith fence (With fence scsi) After fence_scsi finishes the

Re: [ClusterLabs] 2 node cluster dlm/clvm trouble

2018-09-11 Thread Vladislav Bogdanov
On 11.09.2018 16:31, Patrick Whitney wrote: But, when I invoke the "human" stonith power device (i.e. I turn the node off), the other node collapses... In the logs I supplied, I basically do this: 1. stonith fence (With fence scsi) At this point DLM on a healthy node is notified that node

Re: [ClusterLabs] Non-cloned resource moves before cloned resource startup on unstandby

2018-09-11 Thread Dan Ragle
On 9/11/2018 9:20 AM, Dan Ragle wrote: On 9/11/2018 1:59 AM, Andrei Borzenkov wrote: 07.09.2018 23:07, Dan Ragle пишет: On an active-active two node cluster with DRBD, dlm, filesystem mounts, a Web Server, and some crons I can't figure out how to have the crons jump from node to node in

Re: [ClusterLabs] 2 node cluster dlm/clvm trouble

2018-09-11 Thread Patrick Whitney
But, when I invoke the "human" stonith power device (i.e. I turn the node off), the other node collapses... In the logs I supplied, I basically do this: 1. stonith fence (With fence scsi) 2. verify UI shows fenced node as stopped 3. power off fenced node It's only when I shut down the fenced

Re: [ClusterLabs] 2 node cluster dlm/clvm trouble

2018-09-11 Thread Valentin Vidic
On Tue, Sep 11, 2018 at 04:14:08PM +0300, Vladislav Bogdanov wrote: > And that is not an easy task sometimes, because main part of dlm runs in > kernel. > In some circumstances the only option is to forcibly reset the node. Exactly, killing the power on the node will stop the DLM code running in

Re: [ClusterLabs] 2 node cluster dlm/clvm trouble

2018-09-11 Thread Valentin Vidic
On Tue, Sep 11, 2018 at 09:13:08AM -0400, Patrick Whitney wrote: > So when the cluster suggests that DLM is shutdown on coro-test-1: > Clone Set: dlm-clone [dlm] > Started: [ coro-test-2 ] > Stopped: [ coro-test-1 ] > > ... DLM isn't actually stopped on 1? If you can connect to the

Re: [ClusterLabs] Antw: VirtualDomain as resources and OCFS2

2018-09-11 Thread Lentes, Bernd
- On Sep 11, 2018, at 8:54 AM, Ulrich Windl ulrich.wi...@rz.uni-regensburg.de wrote: > > Hi Bernd, > > the disappointing answer ist this: With cLVM you cannot make snapshots of the > LVs (easily), and in SLES11 SP4 at least the tool to make snapshots of OCFS2 > also isn't provided. So the

Re: [ClusterLabs] Non-cloned resource moves before cloned resource startup on unstandby

2018-09-11 Thread Dan Ragle
On 9/11/2018 1:59 AM, Andrei Borzenkov wrote: 07.09.2018 23:07, Dan Ragle пишет: On an active-active two node cluster with DRBD, dlm, filesystem mounts, a Web Server, and some crons I can't figure out how to have the crons jump from node to node in the correct order. Specifically, I have two

Re: [ClusterLabs] 2 node cluster dlm/clvm trouble

2018-09-11 Thread Vladislav Bogdanov
On 11.09.2018 16:10, Valentin Vidic wrote: On Tue, Sep 11, 2018 at 09:02:06AM -0400, Patrick Whitney wrote: What I'm having trouble understanding is why dlm flattens the remaining "running" node when the already fenced node is shutdown... I'm having trouble understanding how power fencing

Re: [ClusterLabs] 2 node cluster dlm/clvm trouble

2018-09-11 Thread Patrick Whitney
So when the cluster suggests that DLM is shutdown on coro-test-1: Clone Set: dlm-clone [dlm] Started: [ coro-test-2 ] Stopped: [ coro-test-1 ] ... DLM isn't actually stopped on 1? Best, -Pat On Tue, Sep 11, 2018 at 9:10 AM Valentin Vidic wrote: > On Tue, Sep 11, 2018 at 09:02:06AM

Re: [ClusterLabs] 2 node cluster dlm/clvm trouble

2018-09-11 Thread Valentin Vidic
On Tue, Sep 11, 2018 at 09:02:06AM -0400, Patrick Whitney wrote: > What I'm having trouble understanding is why dlm flattens the remaining > "running" node when the already fenced node is shutdown... I'm having > trouble understanding how power fencing would cause dlm to behave any > differently

Re: [ClusterLabs] VirtualDomain as resources and OCFS2

2018-09-11 Thread Lentes, Bernd
- On Sep 11, 2018, at 4:29 AM, Gang He g...@suse.com wrote: > Hello Lentes, > > It does not look like a OCFS2 or pacemaker problem, more like virtualization > problem. > From OCFS2/LVM2 perspective, if you use one LV for one VirtualDomain, that > means > the guest VMs on that

[ClusterLabs] Q: Reusing date specs in crm shell

2018-09-11 Thread Ulrich Windl
Hi! I have a set of resources with almost identical rules, one part being a data spec. Currently I'm using two different date specs in those rules. However I repeated the date spec in every rule. Foreseeing that I might change those one day, I wonder whether it's possible in crm shell to

[ClusterLabs] Antw: VirtualDomain as resources and OCFS2

2018-09-11 Thread Ulrich Windl
>>> "Lentes, Bernd" schrieb am 10.09.2018 um 18:20 in Nachricht <719144896.5605540.1536596432401.javamail.zim...@helmholtz-muenchen.de>: > Hi, > > i'm establishing a cluster with virtual guests as resources which should > reside in a raw files on OCFS2 formatted logical volumes. > My first idea