Re: [ClusterLabs] How to set up fencing/stonith

2018-05-23 Thread Tomas Jelinek
Dne 22.5.2018 v 23:24 Casey & Gina napsal(a): On May 18, 2018, at 1:29 PM, Ken Gaillot wrote: Perhaps there is a bug in the packaging? It sounds like it, or perhaps a portability issue in the agent itself. There were missing dependencies. I've resolved that, so now am

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-22 Thread Casey & Gina
> It does exactly what you told it to do. If you want to power-on VM on > reset instead, remove RESETPOWERON parameter. Sorry, that was a part of the command that I found in /usr/share/doc/cluster-glue/stonith/README.vcenter, as well as on

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-22 Thread Casey & Gina
In the meantime, I thought I'd try running the fence_vmware_soap command, but it doesn't seem to be working, despite me using the same credentials that worked with the external/vcenter plugin. Is there a way to get more debugging information about why it says unable to connect/login? The

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-22 Thread Casey & Gina
> On May 18, 2018, at 1:29 PM, Ken Gaillot wrote: >> Perhaps there is a bug in the packaging? > > It sounds like it, or perhaps a portability issue in the agent itself. There were missing dependencies. I've resolved that, so now am coming back to trying this...

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-22 Thread Casey & Gina
> There are missing dependencies in Ubuntu 16.04, see > https://github.com/ClusterLabs/pcs/issues/168 > for details. Thank you! > It may be worth filing a bug against Ubuntu. I did that already when I sent this E-mail, to which they suggested the same fix. I have shared the above link in that

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-21 Thread Tomas Jelinek
Dne 18.5.2018 v 17:40 Casey & Gina napsal(a): Thank you - I hadn't seen the "releases" link on github before and somehow missed that. Sorry for that. I thought there would be download links somewhere on the clusterlabs website. I will try compiling this today to try. I finally managed to

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-21 Thread Tomas Jelinek
Dne 18.5.2018 v 21:29 Ken Gaillot napsal(a): On Fri, 2018-05-18 at 12:01 -0600, Casey & Gina wrote: pcmk_host_list="" - not sure about this one - I'm guessing this would actually be the same input as the list I was inputting to the HOSTLIST parameter with the external/vcenter approach? port=""

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-18 Thread Casey & Gina
> So, then instead of powering off the VM in vSphere, I instead tried a > `killall -9 corosync` on the primary. This resulted in the VIP coming up on > node 3, and node 1 being rebooted. Great! Unfortunately, things don't work at all when it comes to the PostgreSQL resource agent... When I

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-18 Thread Casey & Gina
> May 18 20:36:27 [4282] d-gp2-dbpg0-2 stonith-ng: warning: log_operation: > vfencing:16264 [ Performing: stonith -t external/vcenter -T reset > d-gp2-dbpg0-1 ] > May 18 20:36:27 [4282] d-gp2-dbpg0-2 stonith-ng: warning: log_operation: > vfencing:16264 [ failed: d-gp2-dbpg0-1 5 ]

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-18 Thread Casey & Gina
> Having it started on one node is normal. Fence devices default to > requires=quorum, meaning they can start on a new node even before the > original node is fenced. It looks like that's what happened here, but > something went wrong with the fencing, so the cluster assumes it's > still active on

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-18 Thread Ken Gaillot
On Fri, 2018-05-18 at 12:33 -0600, Casey & Gina wrote: > I think that I finally managed to get fencing working!  To do this, > I've (for now) used the approach of using the stock Ubuntu package > for pcs, but using crmsh to create the fencing resource.  I've had a > lot of trouble trying to get a

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-18 Thread Ken Gaillot
On Fri, 2018-05-18 at 12:01 -0600, Casey & Gina wrote: > > > pcmk_host_list="" - not sure about this one - I'm > > > guessing > > > this would actually be the same input as the list I was inputting > > > to > > > the HOSTLIST parameter with the external/vcenter approach? > > > > > > port="" - not

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-18 Thread Casey & Gina
I think that I finally managed to get fencing working! To do this, I've (for now) used the approach of using the stock Ubuntu package for pcs, but using crmsh to create the fencing resource. I've had a lot of trouble trying to get a newer pcs compiled and working, and don't really know what

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-18 Thread Casey & Gina
>> pcmk_host_list="" - not sure about this one - I'm guessing >> this would actually be the same input as the list I was inputting to >> the HOSTLIST parameter with the external/vcenter approach? >> >> port="" - not sure about this one - with this approach would >> I need to issue the above

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-18 Thread Ken Gaillot
On Fri, 2018-05-18 at 10:22 -0600, Casey & Gina wrote: > > Here is a command to adapt that work to fence a VM connecting to an > > esxi server: > > > >  pcs stonith create > > fence_vmware_soap   \ > >    pcmk_host_check="static-list" > > pcmk_host_list="" \ > >   

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-18 Thread Casey & Gina
> Here is a command to adapt that work to fence a VM connecting to an esxi > server: > > pcs stonith create fence_vmware_soap \ >pcmk_host_check="static-list" pcmk_host_list="" \ >port="" ipaddr="" login="" \ >passwd="<>password" ssl="1"

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-18 Thread Casey & Gina
> Thank you - I hadn't seen the "releases" link on github before and somehow > missed that. Sorry for that. I thought there would be download links > somewhere on the clusterlabs website. I will try compiling this today to try. I finally managed to get pcs-0.9.164 compiled and installed.

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-18 Thread Jehan-Guillaume de Rorthais
On Wed, 16 May 2018 21:18:14 +0200 Jehan-Guillaume de Rorthais wrote: > On Wed, 16 May 2018 12:43:15 -0600 > Casey & Gina wrote: > ... > > fence_vmware - Fence agent for VMWare > > If I remember correctly, this fencing agent is able to connect to

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-17 Thread Casey & Gina
Hi Ken, Thanks for your explanations - they are really helpful in coming to understand this set of software. > Whether to use one fence resource for the whole cluster, or one for > each node, is partly a question of what the device requires and partly > a personal preference. I think that one

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-17 Thread Ken Gaillot
On Thu, 2018-05-17 at 09:44 -0600, Casey & Gina wrote: > > > Barring that, where can I download source code packages?  I have > > > only > > > been able to find the github, which has 0.9 and 0.10 branches, > > > but I > > > can't find any .tar.gz's to download  > > > > Really? > > > >

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-17 Thread Casey & Gina
>> Barring that, where can I download source code packages? I have only >> been able to find the github, which has 0.9 and 0.10 branches, but I >> can't find any .tar.gz's to download > > Really? > > https://github.com/ClusterLabs/pcs/releases Thank you - I hadn't seen the "releases" link on

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-16 Thread Andrei Borzenkov
16.05.2018 23:33, Casey & Gina пишет: >> Is there an apt repository which provides more recent versions? > > I'm guessing no, based on trying fruitlessly to search for one. > >> Is there a way to use the version that Ubuntu provides (0.9.149) to >> accomplish the desired result? > > Barring

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-16 Thread Casey & Gina
> Is there an apt repository which provides more recent versions? I'm guessing no, based on trying fruitlessly to search for one. > Is there a way to use the version that Ubuntu provides (0.9.149) to > accomplish the desired result? Barring that, where can I download source code packages? I

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-16 Thread Casey & Gina
> On May 16, 2018, at 1:28 PM, Andrei Borzenkov wrote: > > It seems that your pcs is too old > > https://github.com/ClusterLabs/pcs/issues/81 I'm using Ubuntu 16.04 and the latest versions of the packages provided by them. Is there an apt repository which provides more

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-16 Thread Andrei Borzenkov
16.05.2018 19:43, Casey & Gina пишет: > Thank you and Andrei for the advice... > >> the pcs alternative commands are: >> >> pcs stonith create vfencing external/vcenter \ VI_SERVER=10.1.1.1 >> VI_CREDSTORE=/etc/vicredentials.xml \ >> HOSTLIST="hostname1=vmname1;hostname2=vmname2" RESETPOWERON=0

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-16 Thread Jehan-Guillaume de Rorthais
On Wed, 16 May 2018 12:43:15 -0600 Casey & Gina wrote: ... > fence_vmware - Fence agent for VMWare If I remember correctly, this fencing agent is able to connect to vcenter (and/or esxi) to fence a VM. ___ Users mailing list:

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-16 Thread Casey & Gina
> What "pcs stonith list" says? fence_alom - Fence agent for Sun ALOM fence_amt - Fence agent for AMT fence_apc - Fence agent for APC over telnet/ssh fence_apc_snmp - Fence agent for APC, Tripplite PDU over SNMP fence_bladecenter - Fence agent for IBM BladeCenter fence_brocade - Fence agent for

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-16 Thread Casey & Gina
I tried adding the stonith configuration with the crmsh command as follows: crm configure primitive vfencing stonith::external/vcenter params VI_SERVER="vcenter.imovetv.com" VI_CREDSTORE="/etc/pacemaker/vicredentials.xml"

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-16 Thread Andrei Borzenkov
16.05.2018 20:01, Casey & Gina пишет: >> On May 16, 2018, at 10:43 AM, Casey & Gina wrote: >> >> Thank you and Andrei for the advice... >> >>> the pcs alternative commands are: >>> >>> pcs stonith create vfencing external/vcenter \ >>> VI_SERVER=10.1.1.1

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-16 Thread Casey & Gina
> On May 16, 2018, at 10:43 AM, Casey & Gina wrote: > > Thank you and Andrei for the advice... > >> the pcs alternative commands are: >> >> pcs stonith create vfencing external/vcenter \ >> VI_SERVER=10.1.1.1 VI_CREDSTORE=/etc/vicredentials.xml \ >>

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-16 Thread Casey & Gina
Thank you and Andrei for the advice... > the pcs alternative commands are: > > pcs stonith create vfencing external/vcenter \ > VI_SERVER=10.1.1.1 VI_CREDSTORE=/etc/vicredentials.xml \ > HOSTLIST="hostname1=vmname1;hostname2=vmname2" RESETPOWERON=0 \ > op monitor interval=60s When I attempt the

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-16 Thread Ivan Devát
Dne 16.5.2018 v 05:52 Casey & Gina napsal(a): Hi, I'm trying to figure out how to get fencing/stonith going with pacemaker. As far as I understand it, they are both part of the same thing - setting up stonith means setting up fencing. If I'm mistaken on that, please let me know.

Re: [ClusterLabs] How to set up fencing/stonith

2018-05-15 Thread Andrei Borzenkov
16.05.2018 06:52, Casey & Gina пишет: > Hi, I'm trying to figure out how to get fencing/stonith going with > pacemaker. > > As far as I understand it, they are both part of the same thing - > setting up stonith means setting up fencing. If I'm mistaken on > that, please let me know. > They are