OCFS2 Integration with HP Serviceguard for Linux Administrator's Guide, First Edition, November 2008

3 Working with Administrative Commands
This chapter describes the administrative commands that can be used in an environment that
has OCFS2 integrated with Serviceguard for Linux.
This chapter addresses the following topics:
“Overview of Commands” (page 21)
“Using the ocfs2cluster Command” (page 21)
“Using the ocfs2mntadm Command” (page 22)
Overview of Commands
The Serviceguard and OCFS2 environment includes a set of commands for simplifying the process
of creating, configuring and applying various packages that are required for running OCFS2
with HP Serviceguard for Linux.
Following are the commands that are explained in subsequent sections:
ocfs2cluster
ocfsmntadm
Using the ocfs2cluster Command
Use the ocfs2cluster command to complete one or all of the following tasks:
Create, configure and apply an OCFS2 system multi-node package.
Remove an already configured OCFS2 system multi-node package.
Start or stop an OCFS2 system multi-node package.
View the command help.
Following examples illustrate how to use the ocfs2cluster command to complete each of the
tasks.
To create, configure and apply an OCFS2 system multi-node package, run the following
commands:
# ocfs2cluster config [--heartbeat_threshold <timeout>]\
[--idle_timeout_ms <timeout>] [--reconnect_delay_ms <timeout>]\
[--keepalive_delay_ms <timeout>] [-s]
Following is the output that is displayed if you create and configure a system multi-node package
with the default values:
# ocfs2cluster config -s
Begin package verification...
Checking existing configuration ... Done
Parsing package file: /opt/cmcluster/ocfs2/ocfs2cluster.conf.4265.
Attempting to add package SG-OCFS2-pkg.
Validation for package SG-OCFS2-pkg succeeded via
/opt/cmcluster/conf/scripts/mscripts/master_control_script.sh.
WARNING: Invalid system multi-node package name: SG-OCFS2-pkg
Maximum configured packages parameter is 150.
Configuring 1 package(s).
149 package(s) can be added to this cluster.
200 access policies can be added to this cluster.
Adding the package configuration for package SG-OCFS2-pkg.
Overview of Commands 21