HP XC System Software Administration Guide Version 3.2

4. Use the text editor of your choice to 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 your changes and exit 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. Ensure that the configuration scripts for newservice (gconfig, sconfig, nconfig, or
cconfig) are in the appropriate /etc/hptc/etc/*config.d directory.
7. Back up the system management database:
# managedb backup file_name
8. Run the cluster_config utility with the --init option:
# /opt/hptc/config/sbin/cluster_config --init
Be sure to use the [A]nalyze menu option and review the output. Ensure that the service's
role is assigned the correct number of servers. If the assigned number of servers is insufficient,
edit the service.ini file accordingly and repeat this step.
9. Reimage the applicable node or nodes.
4.6.10.2 Creating a New Role and Adding a Service to It
Use the following procedure to create a role for a new service, and then add that service to that
role. This procedure creates a new role called newrole and creates a new service called
newservice to illustrate their placement in the role_services.ini file.
Note:
Only perform this procedure 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.
1. Log in as the superuser on the head node.
2. Make a copy of the current roles_services.ini file for safekeeping:
# cd /opt/hptc/config
# cp role_services.ini role_services.ini.ORIG
3. Edit the roles_services.ini file as follows:
4.6 Customizing Services and Roles 77