On Wednesday 02 April 2008 20:56:03 Fajar Priyanto wrote: > Hello all, > I've just got an opportunity to play with a fence device: WTI NPS. > I manage to test the power cycle using this command: > stonith -v -t wti_nps ipaddr=192.168.0.100 password=123456 -l -T reset > station8 > > However, I'm not really clear on how to apply Stonith into Linux-HA v2. > Been digging around and found this page: > http://www.linux-ha.org/ConfiguringStonithPlugins > > If I'm not mistaken in understanding it, in a 2-node cluster, we need to > setup 2 stonith resource, with each one's job is to shoot the other node in > the head? > More confusion is, in what parameter/attribute can I define the "station8"? > In wti_nps native resource, the mentioned parameter is just "ipaddr" > and "password". > > I try to add an operation to a resource "On Fail: fence". This is what > happen when I test to make the httpd resource fail by emptying httpd.conf:
Hello, Sorry for my newbieness. After chatting in the #linux-ha channel, Kleind and Rubeus80 give me a hint that the 'node' parameter is automatically forwarded by linux-ha to the wti_nps. This gives me a clue, that maybe since uname -a results in station8.enterprise.com whereas in the wti it's called only 'station8', stonithd fails to command wti_nps correctly. Telnet command using full node name confirms this. So, I rename the nodes to shorter names: station8 and station9, make the httpd service fails by zeroing the httpd.conf in station8, and..... station9 successfully 'fence' station8. Wow! So happy. I'm exploring more tonight. Linux HA is awesome! -- Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial http://linux2.arinet.org 16:55:07 up 5:33, 2.6.22-14-generic GNU/Linux Let's use OpenOffice. http://www.openoffice.org The real challenge of teaching is getting your students motivated to learn.
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems