Before a node can perform DECdtm transactions, you must create
a transaction log for the node. In an OpenVMS Cluster environment,
create a transaction log for each node.
Removing a node from a cluster after you have created
the transaction logs can lead to data corruption. For instructions
on how to remove a node safely, see
Removing a Node.
For
each node, decide the size and location of the transaction log,
using the guidelines in
Planning Transaction Logs. Remember that the disks must have enough contiguous space
to hold the transaction logs.
If you are in a cluster environment,
make sure that the disks on which you want to create the transaction logs
are mounted clusterwide.
Decide in which directories
you want to create the transaction logs. You may want to create
new directories for the transaction logs.
Define SYS$JOURNAL to point to the directories in
which you want to create the transaction logs: DEFINE/SYSTEM/EXECUTIVE_MODE
SYS$JOURNAL dirspec[,...]where dirspec is the full specification of a directory in which
you want to create one or more transaction logs. List all the directories
that will contain transaction logs. You can list the directories
in any order. In a cluster environment, use SYSMAN to define SYS$JOURNAL
clusterwide.
Edit the SYS$MANAGER:SYLOGICALS.COM command procedure
to include the SYS$JOURNAL definition. If you created node-specific versions of SYLOGICALS.COM, edit
all the versions.
Create one transaction log for each node, using
LMCP's CREATE LOG command: CREATE LOG [/SIZE=size] dirspecSYSTEM$node.LM$JOURNAL where:
size
is the size of the transaction
log in blocks. By default, the size of the transaction log is 4000 blocks.
dirspec
is the full specification
of the directory in which you want to create the transaction log.
node
is the name of the node.
Make sure DECdtm services are enabled as follows:
Step
Action
a.
Check whether the logical
SYS$DECDTM_INHIBIT is defined:
$SHOW LOGICAL SYS$DECDTM_INHIBIT
b.
Is SYS$DECDTM_INHIBIT defined?
Yes
DECdtm services are disabled. Enable DECdtm services
by following the instructions in
Disabling DECdtm Services.
This example shows how to create transaction logs in an OpenVMS
Cluster that consists of two nodes whose SCSNODE names are BLUE
and RED. Neither node has a node-specific version of SYLOGICALS.COM.
Decide the size and location of the transaction logs: