dracut-module-setup: allow short hostname in cluster configuration
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@redhat.com> Tested-by: Martin Juricek <mjuricek@redhat.com> Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
parent
b17977dfb8
commit
082043e117
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user