HP XC System Software Administration Guide Version 3.0

An N in these columns indicates a note; a W, indicates a warning. When notes and warnings are present,
more detailed descriptions are displayed immediately after the table.
Adding a Service to an Existing Role
IMPORTANT
Perform this procedure only when you have exclusive use of the HP XC system and when no jobs are running
on the system because the procedure requires that you reimage nodes.
This procedure adds a service called newservice to the common role:
1. Log in as the superuser on the head node.
2. Copy the roles_services.ini file:
# cd /opt/hptc/config
# cp role_services.ini role_services.ini.BAK
3. Determine the role that best suits the new service.
Use the shownode servers command to determine which nodes currently provide the services for
that role. This command is described in “Displaying the Nodes That Provide a Specified Service
(page 46).
4. Edit the roles_services.ini file as follows:
a. Add the name of the new service to the stanza that lists the services.
services = <<EOT
cmf
.
.
.
swmlogger
newservice
EOT
b. Add the name of the new service to the stanza for the appropriate role. This example uses the
common role.
common = <<EOT
gather_data
.
.
.
munge
newservice
EOT
c. Save the file.
5. Create the service.ini file if the service is not assigned to the common role. The file is named
/opt/hptc/config/etc/services/newservice.ini in this example.
6. Optionally back up the configuration and management database. See “Backing Up the Configuration
Database” (page 59) for more information.
7. Update the configuration and management database:
# reset_db
8. Restart and initialize the cmdb with the cluster_prep command:
# /opt/hptc/config/sbin/cluster_prep
9. Execute the discover command to discover network components:
# /opt/hptc/config/sbin/discover --system --verbose
Note
Adding a Service 51