Changes between Initial Version and Version 1 of how-to/servers/support/change-server-name


Ignore:
Timestamp:
Sep 21, 2013, 2:40:01 PM (12 years ago)
Author:
Ross
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • how-to/servers/support/change-server-name

    v1 v1  
     1= How do I change the name of a server? =
     2
     3Sometimes we misspell the name of a server we create and need to modify the hostname after creation.  The following checklist shows the steps to take in order to modify the hostname (currently this is just an outline).
     4
     5== On guest: ==
     6 * change /etc/hostname
     7 * vgrename volume group
     8 * change /etc/hosts
     9 * change /etc/fstab
     10 * Run update-grub
     11 * Add new monkeysphere service name: monkeysphere-host add-servicename ssh://HOST.mayfirst.org
     12 * publish the new service name key monkeysphere-host publish-key <keyid>
     13 * Revoke old service name: monkeysphere-host revoke-servicename ssh://OLDHOST.mayfirst.org/
     14 * revoke gpg key
     15
     16    gpg --edit root@misspelled-server-name.mayfirst.org
     17
     18    revkey
     19
     20    save (password is monkeys)
     21
     22    gpg --send-key <keyid>
     23
     24    delete the secret key to prompt puppet to renegerate a new one with the new name
     25
     26    gpg --delete-secret-keys <keyid> for root user's gpg key
     27
     28 * Add DNS entry for NEW_HOST.mayfirst.org
     29== On TPC ==
     30 * reboot the guest
     31 * edit puppet configs for guest
     32 * apply new puppet configs to guest
     33== On guest: ==
     34 * Reboot. Pray.
     35 * If it works... shutdown guest.
     36== On host: ==
     37 * update-services --remove /etc/sv/OLDNAME
     38 * Delete old server name stuff in /usr/local/share/ISOs, /etc/kvm-manager, /etc/sv/
     39 * deluser
     40== On TPC ==
     41 * Update host pp file to fix name
     42== On host: ==
     43 * lvremove newly created logical volume
     44 * lvrename old lv to new logical volume name
     45== On hay: ==
     46If controlled by red, make name changes in seso to red_server and red_item.item_host