[ClusterLabs] Antw: [EXT] Moving multi-state resources

2021-05-12 Thread Ulrich Windl
My guess is default stickiness being > 0. >>> Alastair Basden schrieb am 12.05.2021 um 11:58 in Nachricht : > Hi all, > > Some help required with master/slave moving please... > > I have set up a resource with: > pcs resource create resourcedrbd ocf:linbit:drbd drbd_resource=disk1 op > monitor

Re: [ClusterLabs] Antw: [EXT] Moving multi-state resources

2021-05-12 Thread Alastair Basden
Hi Ulrich, What would I need to change? pcs resource meta resourcedrbdClone resource-stickiness=0 doesn't fix it. I already have: #> pcs property list --all | grep stick default-resource-stickiness: (null) #> pcs resource defaults No defaults set Thanks, Alastair. On Wed, 12 May 2021, Ulri

Re: [ClusterLabs] Antw: [EXT] Moving multi-state resources

2021-05-12 Thread Alastair Basden
Oddly enough, if I: pcs resource move resourcedrbdClone node2 it moves it to node 2 okay. But then if I pcs resource clear resourcedrbdClone it moves it back to node1. Which is odd, given its score for role Master is higher on node 2. Is there a way of getting pcs to show why it has made those

Re: [ClusterLabs] Antw: [EXT] Moving multi-state resources

2021-05-12 Thread Andrei Borzenkov
On 12.05.2021 17:16, Alastair Basden wrote: > Oddly enough, if I: > pcs resource move resourcedrbdClone node2 > it moves it to node 2 okay. > > But then if I > pcs resource clear resourcedrbdClone > it moves it back to node1. > > Which is odd, given its score for role Master is higher on node 2.

Re: [ClusterLabs] Antw: [EXT] Moving multi-state resources

2021-05-12 Thread Alastair Basden
Oddly enough, if I: pcs resource move resourcedrbdClone node2 it moves it to node 2 okay. But then if I pcs resource clear resourcedrbdClone it moves it back to node1. Which is odd, given its score for role Master is higher on node 2. How do you know it? Because I have set score=100 for node

Re: [ClusterLabs] Antw: [EXT] Moving multi-state resources

2021-05-12 Thread Andrei Borzenkov
On 12.05.2021 20:02, Alastair Basden wrote: >>> Oddly enough, if I: >>> pcs resource move resourcedrbdClone node2 >>> it moves it to node 2 okay. >>> >>> But then if I >>> pcs resource clear resourcedrbdClone >>> it moves it back to node1. >>> >>> Which is odd, given its score for role Master is hi

Re: [ClusterLabs] Antw: [EXT] Moving multi-state resources

2021-05-12 Thread Alastair Basden
On 12.05.2021 20:02, Alastair Basden wrote: Oddly enough, if I: pcs resource move resourcedrbdClone node2 it moves it to node 2 okay. But then if I pcs resource clear resourcedrbdClone it moves it back to node1. Which is odd, given its score for role Master is higher on node 2. How do you

Re: [ClusterLabs] Antw: [EXT] Moving multi-state resources

2021-05-12 Thread Ulrich Windl
On 5/12/21 4:06 PM, Alastair Basden wrote: Hi Ulrich, What would I need to change? pcs resource meta resourcedrbdClone resource-stickiness=0 doesn't fix it. I don't have a cluster here, but maybe see "crm_simulate -LS" or https://clusterlabs.org/pacemaker/doc/en-US/Pacemaker/2.0/html/Pacemake

Re: [ClusterLabs] Antw: [EXT] Moving multi-state resources

2021-05-13 Thread Andrei Borzenkov
On Wed, May 12, 2021 at 8:15 PM Alastair Basden wrote: > > > > On 12.05.2021 20:02, Alastair Basden wrote: > Oddly enough, if I: > pcs resource move resourcedrbdClone node2 > it moves it to node 2 okay. > > But then if I > pcs resource clear resourcedrbdClone > i

Re: [ClusterLabs] Antw: [EXT] Moving multi-state resources

2021-05-13 Thread Strahil Nikolov
If something moves in/out in a non-expected way, always check:pcs constraint location --full | grep cli Best Regards,Strahil Nikolov On Thu, May 13, 2021 at 10:45, Andrei Borzenkov wrote: On Wed, May 12, 2021 at 8:15 PM Alastair Basden wrote: > > > > On 12.05.2021 20:02, Alastair Basden