9.8 Changing the host name

Executor: HiRDB administrator

This section explains the procedure for changing the host name (changing the computer name) of HiRDB while it is active.

Procedure
  1. Use the pdstop command to terminate HiRDB normally.
  2. Change the pd_mode_conf operand.
  3. Use the pdlogunld command to unload system logs.
  4. Change the host name.
  5. Restart the server machine.
  6. Change HiRDB system definitions.
  7. Initialize the system files.
  8. Change the pd_mode_conf operand.
  9. Use the pdstart command to start HiRDB normally.
The procedure step numbers above correspond to the paragraph numbers in the explanation that follows. For example, step 3 above is explained in paragraph (3) below.
Organization of this section
(1) Use the pdstop command to terminate HiRDB normally
(2) Correct the pd_mode_conf operand
(3) Use the pdlogunld command to unload system logs
(4) Rename the host
(5) Reboot the server machine
(6) Change HiRDB system definitions
(7) Initialize the system files
(8) Change the pd_mode_conf operand
(9) Use the pdstart command to start HiRDB normally

(1) Use the pdstop command to terminate HiRDB normally

pdstop

(2) Correct the pd_mode_conf operand

If AUTO was specified in the pd_mode_conf operand, change the specification to MANUAL2.

(3) Use the pdlogunld command to unload system logs

Unload the system log files waiting to be unloaded. The status of system log files can be checked with the pdlogls command:

pdlogunld -d sys -g log01 -o /unld/unldlog01

(4) Rename the host

Rename the host (change the computer name).

(5) Reboot the server machine

Reboot the server machine.

In the case of an HiRDB/Parallel Server, reboot all server machines whose host has been renamed.

(6) Change HiRDB system definitions

Change the host name specified in the following operands in the HiRDB system definition:

(7) Initialize the system files

Initialize the system log files, synchronization point dump files, and status files (delete them, then create them again). In the case of a HiRDB/Parallel Server, initialize all system files in the unit where the host name was changed.

pdlogrm -d sys -f /sysfile01/syslog1a                    1
pdloginit -d sys -f /sysfile01/syslog1a -n 5000          2
pdlogrm -d spd -f /sysfile01/sync1                       3
pdloginit -d spd -f /sysfile01/sync1 -n 5000             4
pdstsrm  -f /sysfile01/usts1a                            5
pdstsinit -f /sysfile01/usts1a -c 5000                   6
pdstsrm  -f /sysfile01/ssts1a                            7
pdstsinit -f /sysfile01/ssts1a -c 5000                   8

Explanation
  1. Deletes system log files.
  2. Re-creates system log files.
  3. Deletes synchronization point dump file.
  4. Re-creates synchronization point dump files.
  5. Deletes unit status files.
  6. Re-creates unit status files.
  7. Deletes server status files.
  8. Re-creates server status files.

(8) Change the pd_mode_conf operand

If the specification of the pd_mode_conf operand was changed to MANUAL2 in step (2), change it back to AUTO.

(9) Use the pdstart command to start HiRDB normally

pdstart