OCFS2 Integration with HP Serviceguard for Linux Administrator's Guide, First Edition, November 2008
Checking existing configuration ...
Done Parsing package file: /opt/cmcluster/ocfs2/ocfs2mntadm.conf .21653.
Attempting to add package SG-OCFS2-MP-1.
Validation for package SG-OCFS2-MP-1 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 2 package(s).
148 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-MP-1.
Completed the cluster update
Successfully associated package "SG-OCFS2-MP-1" with the cluster
To start an OCFS2 mount point multi-node package:
# ocfs2mntadm start <package_name>
For example, to start the mount point package SG-OCFS2-MP-1, run the following command:
# ocfs2mntadm start -p SG-OCFS2-MP-1
Following is the output that is displayed:
Starting package SG-OCFS2-MP-1
To halt a running multi-node package, run the following command:
# ocfs2mntadm stop <package_name>
For example to halt the mount point package SG-OCFS2-MP-1, run the following command:
# ocfs2mntadm stop -p SG-OCFS2-MP-1
Following is the output that is displayed:
Stopping package SG-OCFS2-MP-1
To add resources to an existing mount point multi-node package, run the following command:
# ocfs2mntadm add -dg <disk_group> -mp <mount_point> [-mo\
<mount_options>] -n <node_name> <package_name>
For example, to add a new OCFS2 disk resource /dev/sde1 that has the mount point /root/
mp2 and a new node titled node1 to the mount point package SG-OCFS2-MP-1, run the following
command:
# ocfs2mntadm add -dg /dev/sde1 -mp /root/mp2 -n node1 -p SG-OCFS2-MP-1
To modify resources of an existing mount point multi-node package, run the following command:
# ocfs2mntadm modify -dg <old_disk_group, new_disk_group> -mp\
<old_mount_point, new_mount_point> [-mo <old_mount_options\,
new_mount_options>] -n <old_node_name, old_node_name> <package_name>
To delete resources from an existing mount point multi-node package, run the following
command:
# ocfs2mntadm delete -dg <disk_group> -n <node_name> <package_name>
For example, to delete the OCFS2 disk resource /dev/sdd1 from the package SG-OCFS2-MP-1,
run the following command:
# ocfs2mntadm delete -dg /dev/sdd1 -p SG-OCFS2-MP-1
To view the details of mount point packages, run the following command:
# ocfs2mntadm display [-p <package_name1> -p <package_name2> ..]
Using the ocfs2mntadm Command 23