DB2 10.5 for Linux, UNIX, and Windows

db2drvmp - Map DB2 database drive command

Maps a database drive for Microsoft Cluster Server (MSCS). This command is available only on Windows operating systems.

Authorization

Read/write access to the Windows registry and the cluster registry.

Required connection

Instance. The application creates a default instance attachment if one is not present.

Command syntax

Read syntax diagramSkip visual syntax diagram
>>-db2drvmp--+-add-------+--dbpartition_number--from_drive------>
             +-drop------+                                   
             +-query-----+                                   
             '-reconcile-'                                   

>--to_drive----------------------------------------------------><

Command parameters

add
Assigns a new database drive map.
drop
Removes an existing database drive map.
query
Queries a database map.
reconcile
Reapplies the database drive mapping to the registry when the registry contents are damaged or dropped accidentally.
dbpartition_number
The database partition number. This parameter is required for add and drop operations. If this parameter is not specified for a reconcile operation, db2drvmp reconciles the mapping for all database partitions.
from_drive
The drive letter from which to map. This parameter is required for add and drop operations. If this parameter is not specified for a reconcile operation, db2drvmp reconciles the mapping for all drives.
to_drive
The drive letter to which to map. This parameter is required for add operations. It is not applicable to other operations.

Examples

To set up database drive mapping from F: to E: for NODE0, issue the following command:
   db2drvmp add 0 F E
To set up database drive mapping from E: to F: for NODE1, issue the following command:
   db2drvmp add 1 E F

Usage notes

  1. Database drive mapping does not apply to table spaces, containers, or any other database storage objects.
  2. Any setup of or change to the database drive mapping does not take effect immediately. To activate the database drive mapping, use the Microsoft Cluster Administrator tool to bring the DB2® resource offline, then online.
  3. Using the TARGET_DRVMAP_DISK keyword in the DB2MSCS.CFG file will enable drive mapping to be done automatically.