How to change hostname of a node?

I changed the hostname of a node and now PBS won’t run on the machine. The logs show it trying to resolve to the old hostname. I tried rebooting but it did not make a difference. Is there some configuration file I need to manually update with the new hostname?

Please remove that node from the pbs configuration using qmgr.

  1. qmgr -c “print nodes @default” > print_nodes.txt
  2. qmgr: delete node oldnodename
  3. make sure /etc/hosts has the new-node-hostname populated and is same across the cluster nodes/server
  4. systemctl restart pbs on the node , which has a new hostname
  5. back on the server
    qmgr : create node newnodename

Hope this works

Thanks, that worked!

1 Like