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.

Attachment: ippower9258hp
Description: application/shellscript

_______________________________________________
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Reply via email to