DB2 10.5 for Linux, UNIX, and Windows

db2cluster_prepare - Create a DB2 managed GPFS cluster and file system command

Create a DB2® managed GPFS™ cluster and file system.

Authorization

Root user authority

Command syntax

Read syntax diagramSkip visual syntax diagram
>>-db2cluster_prepare------------------------------------------->

>--+- -instance_shared_dev--shared device path--+-----------------------------------------------+-+-->
   |                                            '- -instance_shared_mount--shared mounting dir -' |   
   '- -cfs_takeover-------------------------------------------------------------------------------'   

>--+--------------+--+------------+--+-----+-------------------><
   '--ttrace path-'  '--llog path-'  +- -h-+   
                                     '- -?-'   

Command parameters

-instance_shared_dev shared device path
Specifies a shared raw disk device to store instance shared files and default database path when the DB2 pureScale® instance is created For example, /dev/hdisk1.
-instance_shared_mount shared mounting dir
Specifies the mount point for a new IBM® General Parallel File System ( GPFS). The specified path must be a new and empty path that is not nested inside an existing GPFS file system.
-cfs_takeover
Specifies for DB2 to take control of a cluster. The cluster configuration must meet the minimum requirements for a DB2 pureScale environment.
-t trace path
The full path and name of the trace file.
-l log path
The full path and name of the log file. If this parameter is not specified, the utility creates the log file at the default file path:/tmp/db2cluster_prepare.log.
-h or -?
Displays the usage information.

Usage notes

In a DB2 pureScale environment, all data and logs must be on a GPFS file system. Existing data and logs that are not on GPFS file system must be moved to one before upgrading to a DB2 pureScale environment. The db2cluster_prepare command is used to set up a GPFS cluster and file system that are managed by DB2 cluster services. The command creates the GPFS cluster and file system, so that the data and logs can be moved to it in preparation for the upgrade to a DB2 pureScale. To have DB2 cluster services manage an existing GPFS cluster, specify the -cfs_takeover option.This command does not support creating multiple file systems.