OCFS2 Integration with HP Serviceguard for Linux Administrator's Guide, Second Edition, May 2009
Completed the cluster update
OCFS2 is now configured
Starting OCFS2...
It might take a few minutes to complete
cmrunpkg: All specified packages are running
OCFS2 is up and running
For example, to configure, apply and start a system multi-node package with a heartbeat threshold
of 61, an idle timeout of 60000 milliseconds, a default reconnect delay of 2000 milliseconds and
a default keepalive delay of 2000 milliseconds, run the following command:
# ocfs2cluster config --heartbeat_threshold 61 --idle_timeout_ms 60000\
-s
To remove an already configured OCFS2 system multi-node package, run the following command:
# ocfs2cluster unconfig
To start an OCFS2 system multi-node package, run the following command:
# ocfs2cluster start
To stop an already running OCFS2 system multi-node package, run the following command:
# ocfs2cluster stop
To view the usage details of the command, run the following command:
# ocfs2cluster --help
Using the ocfs2mntadm Command
Use the ocfs2mntadm command to complete one or all of the following tasks:
• Create, configure, and apply the mount point multi-node package.
• Start a multi-node package.
• Halt a running multi-node package.
• Add resources to the multi-node package.
• Modify resources of the multi-node package.
• Delete resources from the multi-node package.
• View details of mount point packages
• Remove a previously configured package.
• View command help
Following examples illustrate how to use the ocfs2mntadm command to complete each of these
tasks.
To create, configure and apply the mount point multi-node package, run the following command:
# ocfs2mntadm config -dg <disk_group> -mp <mount_point> -n <node_name1>\
-- monitor_interval <monitor_interval> -p <package_name>
For example, to configure a mount point package with the device /dev/sdf1, mount point
/root/mp1 on the nodes node3 and node4 with a default 10 seconds monitor interval and
default package name, run the following command:
# ocfs2mntadm config -dg </dev/sdf1> -mp </root/mp1> -n <node 3> -n\
<node 4> -- monitor_interval <monitor_interval> -p <package_name>
In this example, no mount options are specified. Following is the output that is displayed:
Using default options "_netdev,datavolume, nointr"
Package name "SG-OCFS2-MP-1" is generated to control the resource
Begin package verification...
26 Working with Administrative Commands