HP Serviceguard Toolkit for Oracle on Linux User Guide Version A.12.00.00

1. While package is up and running, retrieve the current package configuration values using
the command cmgetconf.
For example: #cmgetconf -p <<Toolkit_Package_Name>> <<Latest_Toolkit_Conf_File>>
2. Backup this latest configuration file using a copy utility. This allows you to refer to the previous
configuration values.
For example: # cp -p <<Latest_Toolkit_Conf_File>> <<Backup_Toolkig_Conf_File>>
3. Edit the <<Latest_Toolkit_Conf_File>> file to modify the required attribute values.
4. Use the cmcheckconf command to verify the package configuration file.
For example: #cmcheckconf P <<Latest_Toolkit_Conf_File>>
5. Use the cmapplyconf command to add the new changes in the package configuration to
the Serviceguard cluster environment.
For example: #cmapplyconf P <<Latest_Toolkit_Conf_File>>
NOTE: Information related to package reconfiguration is logged in the package log.
If you modify any other attributes, the following error message appears on the console.
ERROR: Online modification of attribute "<Attribute name>" is not allowed
For example: If an user tries to change the value of ORACLE_HOME while the package is running,
the cmapplyconf command fails with an error message.
ERROR: Online modification of attribute "ORACLE_HOME" is not allowed.
Handling failures during online package reconfiguration
This section describes about how to troubleshoot failures during online package reconfiguration.
Table 6 (page 30) describes how to fix the errors in the affected modules that are encountered
during online addition of a package.
Table 6 Modules affected during online addition
ExampleHow to rectify the failures or
apply those that are not
attempted
Modules affected during
online addition
Description
To start the external pre script:
#extern_pre_script.sh start
If an external pre script which is
added to the package
configuration failed to start, run
sg/external_pre_script
(external.sh)
Adding an
external pre
script to the
package the script manually with start
option.
script_name start
To add PR keys, you must register on
all the paths and then reserve on one
path.
To view all the paths:
If addition of storage has failed,
ensure the following:
sg/filesystem
(filesystem.sh)
sg/volume_group
(volume_group.sh)
sg/pr_cntl
(pr_cntl.sh)
Extending
storage to the
package
Persistent reservation is added
to the disk.
#multipath -ll
To view the node PR keys:
Volume group is activated
with hosttags.
NOTE: In this example, the
node_pr_key is 72810001.
Verify and repair the file
system.
#cmviewcl -v -f line |
grep node_pr_key
The mount point is mounted.
For more information, see
sg_persist(1m),
#sg_persist --out -G
--param-sark=72810001
/dev/sde
vgchange(1m),fsck(1m),
multipath (1m), and
mount(1m) manpage.
#sg_persist --out -R
--param-rk=72810001
--prout-type=5 /dev/sde
30 Using HP Serviceguard toolkit for Oracle