On Mon, Aug 11, 2014 at 10:17:57PM +0800, WANG Chao wrote:
Node could be referenced by short hostname (hostname -s) in cluster
configuration:
[root@virt-068 /]# pcs status nodes
Pacemaker Nodes:
Online: virt-066 virt-067 virt-068
Standby:
Offline:
We didn't know it before. Martin noticed the kdump failure, and provide
this fix. Thanks to Martin.
Signed-off-by: WANG Chao <chaowang(a)redhat.com>
Tested-by: Martin Juricek <mjuricek(a)redhat.com>
Acked-by: Vivek Goyal <vgoyal(a)redhat.com>
Thanks
Vivek
---
dracut-module-setup.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh
index 8fa59ca..02a0557 100755
--- a/dracut-module-setup.sh
+++ b/dracut-module-setup.sh
@@ -502,7 +502,7 @@ get_pcs_fence_kdump_nodes() {
eval $node
nodename=$uname
# Skip its own node name
- if [ "$nodename" = `hostname` ]; then
+ if [ "$nodename" = `hostname` -o "$nodename" = `hostname -s`
]; then
continue
fi
nodes="$nodes $nodename"
--
1.9.3