[Pacemaker] Low cost stonith device
Johan Verrept
Johan.Verrept at able.be
Mon Oct 5 13:49:32 UTC 2009
On Mon, 2009-10-05 at 14:38 +0200, Johan Verrept wrote:
> Perhaps something in the nature of
>
> if [ `uname -n` = `hostname -s` ]
> then
> for host in `list_devices`;
> do
> echo $host
> done;
> else
> domainname=`hostname -d`
> for host in `list_devices`;
> do
> echo $host.$domain
> done;
> fi
>
> This makes the script return the same format as "uname -n". (That much i
> can test.) Modified version attached.
Grmbl. Except that I reversed the logic in the actual RA. Version 4
attached.
Can you guys try to see if hostname -s and uname -n return the same on
your systems? Here, my desktop returned "localhost" for hostname -s and
"uname -n" returned the hostname... I fixed my config but I am wondering
if it is more pervasive.
J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ippower9258hp
Type: application/x-shellscript
Size: 5275 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20091005/7f14ef3f/attachment-0002.bin>
More information about the Pacemaker
mailing list