HP XC System Software Administration Guide Version 3.2

a. Add the name of the new role to the stanza that lists all the roles:
roles = <<EOT
node_management
.
.
.
common
newrole
EOT
b. Add the name of the new service to the stanza that lists all the services:
services = <<EOT
cmf
.
.
.
swmlogger
newservice
EOT
c. At the end of the file, create a new stanza specifying the role and the service:
newrole = <<EOT
newservice
EOT
d. Save the file.
4. 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.
5. Ensure that the configuration scripts for newservice (gconfig, sconfig, nconfig, or
cconfig) are in the appropriate /etc/hptc/etc/*config.d directory.
6. Back up the system management database:
# managedb backup file_name
7. Run the cluster_config utility with the --init option:
# /opt/hptc/config/sbin/cluster_config --init
The cluster_config utility identifies the new role from the roles_services.ini file
and makes it available to be assigned on any of the nodes.
Be sure to use the [A]nalyze menu option and review the output. Ensure that the 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.
8. Reimage the applicable node or nodes as described in Chapter 11 (page 139).
4.6.11 Verifying a New Service
Follow this procedure to verify the correct configuration of the new service:
1. Use the [A]nalyze menu option of the cluster_config utility to verify that the
service.ini file is performing correctly and producing reasonable recommendations for
the new service.
2. Look for any errors produced by the configuration scripts (sconfig, gconfig, nconfig,
and cconfig) for the new service.
3. After cluster_config processing has completed, use the following command to verify
the servers and server-to-client relationships to ensure they are configured as you as expected:
# shownode config
4. After the system is started, verify that the nconfig and cconfig scripts performed correctly,
on the correct nodes, by examining the /var/log/nconfig.log file on nodes other than
the head node.
78 Managing and Customizing System Services