Document revision date: 15 July 2002 | |
Previous | Contents | Index |
If transaction performance has deteriorated on a node, check whether its transaction log is too small.
Section 27.5 describes how to find out whether transaction performance has deteriorated.
$ RUN SYS$SYSTEM:LMCP LMCP> SHOW LOG/CURRENT |
This example shows how to check whether node BLUE's transaction log is too small.
Log in to node BLUE. Then check how many times the transaction log has stalled:
$ RUN SYS$SYSTEM:LMCP LMCP> SHOW LOG/CURRENT Checkpoint starts/ends 2464/2464 Stall starts/ends 21/21 Log status: no checkpoint in progress, no stall in progress. |
The number of checkpoints is 2464, and the transaction log has stalled 21 times.
Wait for five minutes, then repeat the SHOW LOG/CURRENT command:
LMCP> SHOW LOG/CURRENT Checkpoint starts/ends 2514/2514 Stall starts/ends 28/28 Log status: no checkpoint in progress, no stall in progress. |
The number of checkpoints has increased since the previous reading, and
the transaction log has now stalled 28 times, an increase of 7. This
means that the transaction log is too small.
27.7 Changing the Size of a Transaction Log
To determine if changing the size of a transaction log is necessary, see Section 27.6.
Follow all the steps carefully. Taking shortcuts can lead to data corruption. |
SHOW LOG SYSTEM$node.LM$JOURNAL |
where node is the name of the node that the transaction
log belongs to.
RENAME dirspecSYSTEM$node.LM$JOURNAL dirspecSYSTEM$node.LM$OLD |
where:
dirspec | is the full specification of the directory containing the transaction log. |
node | is the name of the node that the transaction log belongs to. |
Yes |
Close the transaction log as follows:
|
||||||||||||
No | Close the transaction log by rebooting the node. Log in to the node when it has rebooted. |
CONVERT LOG/SIZE=size dirspecSYSTEM$node.LM$OLD dirspecSYSTEM$node.LM$JOURNAL |
where:
size | is the new size of the transaction log in blocks. |
dirspec | is the full specification of the directory containing the transaction log. |
node | is the name of the node that the transaction log belongs to. |
DELETE dirspecSYSTEM$node.LM$OLD; |
where:
dirspec | is the full specification of the directory containing the old transaction log. |
node | is the name of the node that the transaction log belongs to. |
This example shows how to change the size of node RED's transaction log to 6000 blocks. Node RED is in an OpenVMS Cluster, and its transaction log is in DISK$LOG2:[LOGFILES].
Log in to node RED. Find out which directory RED's transaction log is in, then rename the transaction log:
$ RUN SYS$SYSTEM:LMCP LMCP> SHOW LOG SYSTEM$RED.LM$JOURNAL Directory of DISK$LOG2:[LOGFILES] SYSTEM$RED.LM$JOURNAL;1 Total of 1 file. LMCP> EXIT $ RENAME DISK$LOG2:[LOGFILES]SYSTEM$RED.LM$JOURNAL - _$ DISK$LOG2:[LOGFILES]SYSTEM$RED.LM$OLD |
Stop all software that uses DECdtm services. Then close the transaction log:
$ RUN SYS$SYSTEM:LMCP LMCP> CLOSE LOG Transaction log closed, TP_SERVER process stopped LMCP> EXIT |
Restart the TP_SERVER process:
$ @ SYS$STARTUP:DECDTM$STARTUP.COM |
Change the size of the transaction log:
$ RUN SYS$SYSTEM:LMCP LMCP> CONVERT LOG/SIZE=6000 DISK$LOG2:[LOGFILES]SYSTEM$RED.LM$OLD - _LMCP> DISK$LOG2:[LOGFILES]SYSTEM$RED.LM$JOURNAL Log file DISK$LOG2:[LOGFILES]SYSTEM$RED.LM$JOURNAL;1 created. Log file DISK$LOG2:[LOGFILES]SYSTEM$RED.LM$OLD converted. LMCP> EXIT |
Restart the software that uses DECdtm services.
Delete the old transaction log:
$ DELETE DISK$LOG2:[LOGFILES]SYSTEM$RED.LM$OLD; |
You may want to move a transaction log if:
Follow all the steps carefully. Taking shortcuts can lead to data corruption. |
SHOW LOG SYSTEM$node.LM$JOURNAL |
where node is the name of the node that the transaction
log belongs to.
RENAME dirspecSYSTEM$node.LM$JOURNAL dirspecSYSTEM$node.LM$OLD |
where:
dirspec | is the full specification of the directory containing the transaction log. |
node | is the name of the node that the transaction log belongs to. |
Yes |
Close the transaction log as follows:
|
||||||||||||
No | Close the transaction log by rebooting the node. Log in to the node when it has rebooted. |
DEFINE/SYSTEM/EXECUTIVE_MODE SYS$JOURNAL dirspec[,...] |
where dirspec is the full specification of a directory
containing one or more transaction logs. List all the directories that
will contain transaction logs after you have moved the transaction log.
You can list the directories in any order.
In an OpenVMS Cluster,
use SYSMAN to redefine SYS$JOURNAL clusterwide.
CONVERT LOG old-dirspecSYSTEM$node.LM$OLD new-dirspecSYSTEM$node.LM$JOURNAL |
where:
old-dirspec | is the full specification of the directory that currently contains the transaction log. |
node | is the name of the node that the transaction log belongs to. |
new-dirspec | is the full specification of the directory that you are moving the transaction log to. |
DELETE dirspecSYSTEM$node.LM$OLD; |
where:
dirspec | is the full specification of the directory containing the old transaction log. |
node | is the name of the node that the transaction log belongs to. |
This example shows how to move BLUE's transaction log. BLUE is in an OpenVMS Cluster. The cluster members and the locations of their transaction logs are as follows:
Node | Directory Containing Log |
---|---|
BLUE | DISK$LOG1:[LOGFILES] |
RED | DISK$LOG2:[LOGFILES] |
Neither node has a node--specific version of SYLOGICALS.COM.
Decide where you want to move BLUE's transaction log to. In this example, assume that you want to move it to DISK$LOG3:[LOGFILES].
Log in to node BLUE. Then mount the disk clusterwide, and create a new directory for the transaction log:
$ MOUNT/CLUSTER/SYSTEM DUA3: LOG3 $ CREATE/DIRECTORY DISK$LOG3:[LOGFILES] |
Find out which directory BLUE's transaction log is in, then rename the transaction log:
$ RUN SYS$SYSTEM:LMCP LMCP> SHOW LOG SYSTEM$BLUE.LM$JOURNAL Directory of DISK$LOG1:[LOGFILES] SYSTEM$BLUE.LM$JOURNAL;1 Total of 1 file. LMCP> EXIT $ RENAME DISK$LOG1:[LOGFILES]SYSTEM$BLUE.LM$JOURNAL - _$ DISK$LOG1:[LOGFILES]SYSTEM$BLUE.LM$OLD |
Stop all software that uses DECdtm services. Then close the transaction log:
$ RUN SYS$SYSTEM:LMCP LMCP> CLOSE LOG Transaction log closed, TP_SERVER process stopped LMCP> EXIT |
Restart the TP_SERVER process:
$ @SYS$STARTUP:DECDTM$STARTUP.COM |
Redefine SYS$JOURNAL:
$ RUN SYS$SYSTEM:SYSMAN SYSMAN> SET ENVIRONMENT/CLUSTER SYSMAN> DO DEFINE/SYSTEM/EXECUTIVE_MODE SYS$JOURNAL - _SYSMAN> DISK$LOG2:[LOGFILES], DISK$LOG3:[LOGFILES] SYSMAN> EXIT |
Edit the SYS$MANAGER:SYLOGICALS.COM command procedure to update the SYS$JOURNAL definition. Then move the transaction log:
$ RUN SYS$SYSTEM:LMCP LMCP> CONVERT LOG DISK$LOG1:[LOGFILES]SYSTEM$BLUE.LM$OLD - _LMCP> DISK$LOG3:[LOGFILES]SYSTEM$BLUE.LM$JOURNAL Log file DISK$LOG3:[LOGFILES]SYSTEM$BLUE.LM$JOURNAL;1 created. Log file DISK$LOG1:[LOGFILES]SYSTEM$BLUE.LM$OLD converted. LMCP> EXIT |
Restart the software that uses DECdtm services. Then delete the old transaction log:
$ DELETE DISK$LOG1:[LOGFILES]SYSTEM$BLUE.LM$OLD; |
Before you can dismount a disk, you must close any transaction logs on the disk.
This section describes how to dismount a disk that has transaction logs.
$ RUN SYS$SYSTEM:LMCP LMCP> SHOW LOG |
RENAME dirspecSYSTEM$node.LM$JOURNAL dirspecSYSTEM$node.LM$TEMP |
where:
dirspec | is the full specification of the directory containing the transaction log. |
node | is the name of the node that the transaction log belongs to. |
Yes |
Close the transaction log as follows:
|
||||||||||
No | Close the transaction log by rebooting the node. When the node has rebooted, log in. |
RENAME dirspecSYSTEM$node.LM$TEMP dirspecSYSTEM$node.LM$JOURNAL |
where:
dirspec | is the full specification of the directory containing the transaction log. |
node | is the name of the node that the transaction log belongs to. |
This example shows how to dismount the disk DISK$LOG3.
Find out which transaction logs are on the disk:
$ RUN SYS$SYSTEM:LMCP LMCP> SHOW LOG . . . Directory of DISK$LOG3:[LOGFILES] SYSTEM$BLUE.LM$JOURNAL;1) |
The only transaction log on DISK$LOG3 is node BLUE's transaction log.
Stop all the software that uses DECdtm services.
Log in to node BLUE. Then rename the transaction log:
$ RENAME DISK$LOG3:[LOGFILES]SYSTEM$BLUE.LM$JOURNAL - _$ DISK$LOG3:[LOGFILES]SYSTEM$BLUE.LM$TEMP |
Close the transaction log:
$ RUN SYS$SYSTEM:LMCP LMCP> CLOSE LOG Transaction log closed, TP_SERVER process stopped LMCP> EXIT |
Restart the TP_SERVER process:
$ @SYS$STARTUP:DECDTM$STARTUP.COM |
Dismount the disk:
$ DISMOUNT/CLUSTER DISK$LOG3: |
When you want to mount the disk again, mount it clusterwide:
$ MOUNT/CLUSTER/SYSTEM DUA3: LOG3 |
Rename BLUE's transaction log:
$ RENAME DISK$LOG3:[LOGFILES]SYSTEM$BLUE.LM$TEMP - _$ DISK$LOG3:[LOGFILES]SYSTEM$BLUE.LM$JOURNAL |
Restart the software that uses DECdtm services.
Previous | Next | Contents | Index |
privacy and legal statement | ||
6017PRO_106.HTML |