Re: [ClusterLabs] OS Patching Process

2016-11-23 Thread AP
On Tue, Nov 22, 2016 at 05:22:21PM +, Jason A Ramsey wrote: > I’ve done the opposite: > > lvm on top of drbd -> iscsi lun > > but I’m not trying to resize anything. I just want to patch the OS > of the nodes and reboot them in sequence without breaking things (and, > preferably, without

Re: [ClusterLabs] Antw: Re: Set a node attribute for multiple nodes with one command

2016-11-23 Thread Kostiantyn Ponomarenko
Maybe I am doing something wrong, but I cannot set "status" section node attributes to a shadow cib, cluster applies them immediately. To try it out I do in a console: crm_shadow --create test crm_attribute --type nodes --node node-0 --name my-attribute --update 1 --lifetime=reboot And

Re: [ClusterLabs] Antw: OS Patching Process

2016-11-23 Thread Dmitri Maziuk
On 2016-11-23 02:23, Ulrich Windl wrote: I'd recommend making a backup of the DRBD data (you always should, anyway), the shut down the cluster, upgrade all the needed components, then start the cluster again. Do your basic tests. If you corrupted your data, re-create DRBD from scratch. Then

[ClusterLabs] Antw: Re: no final newline from "crm configure show"

2016-11-23 Thread Ulrich Windl
>>> Dejan Muhamedagic schrieb am 23.11.2016 um 14:15 in Nachricht <20161123131501.GB16270@tuttle.homenet>: > Hi, > > On Wed, Nov 09, 2016 at 02:49:02PM +0100, Ulrich Windl wrote: >> Hi! >> >> I just found a minor problem when redirecting the output of >> "crm configure

Re: [ClusterLabs] Antw: Locate resource with functioning member of clone set?

2016-11-23 Thread Jan Pokorný
On 18/11/16 08:22 +0100, Ulrich Windl wrote: >> 1) is there a way to set up a "kill script", such that before trying to >> launch a new copy of a process, pacemaker will run this script, which would >> be responsible for making sure that there are no other instances of the >> process running?

Re: [ClusterLabs] iSCSI on ZFS on DRBD

2016-11-23 Thread Jan Pokorný
On 22/11/16 17:28 +, Jason A Ramsey wrote: > The way that Pacemaker interacts with services is using resource > agents. These resource agents are bash scripts that you can modify > to your heart’s content to do the things you want to do. > > [...] > > Just take a peak at the resource agent

Re: [ClusterLabs] no final newline from "crm configure show"

2016-11-23 Thread Dejan Muhamedagic
Hi, On Wed, Nov 09, 2016 at 02:49:02PM +0100, Ulrich Windl wrote: > Hi! > > I just found a minor problem when redirecting the output of > "crm configure show" to a file for archiving purposes: If you Better use 'configure save' for archive/backup. 'configure show' is really meant for the

[ClusterLabs] Antw: Re: Reliable check for "is starting" state of a resource

2016-11-23 Thread Ulrich Windl
>>> Ken Gaillot schrieb am 22.11.2016 um 21:37 in >>> Nachricht : [...] > Probably the cleanest way is to set record-pending=true (either as an [...] I had set that on even before our pacemeker version supported it ;-) I think

[ClusterLabs] Antw: OS Patching Process

2016-11-23 Thread Ulrich Windl
>>> Jason A Ramsey schrieb am 22.11.2016 um 17:35 in Nachricht <37447f13-a83e-455b-82df-933ec7eab...@eramsey.org>: > Can anyone recommend a bulletproof process for OS patching a pacemaker > cluster that manages a drbd mirror (with LVM on top of the drbd and luns > defined for