skip book previous and next navigation links
go up to top of book: HP OpenVMS System Manager's Manual, Volume 2:... HP OpenVMS System Manager's Manual, Volume 2:...
go to beginning of chapter: Managing DECdtm ServicesManaging DECdtm Services
go to previous page: Checking Whether a Transaction Log Is Too SmallChecking Whether a Transaction Log Is Too Small
go to next page: Moving a Transaction LogMoving a Transaction Log
end of book navigation links

Changing the Size of a Transaction Log  



To determine if changing the size of a transaction log isnecessary, see Checking Whether a Transaction Log Is Too Small.

How to Perform This Task


CautionFollow all the steps carefully. Taking shortcutscan lead to data corruption.

  1. Log in to thenode that the transaction log belongs to.
  2. Find out which directory the transaction log isin, using LMCP's SHOW LOG command:SHOW LOG SYSTEM$node.LM$JOURNALwhere node is the name of the node thatthe transaction log belongs to.
  3. Rename the transaction log: RENAME dirspecSYSTEM$node.LM$JOURNAL dirspecSYSTEM$node.LM$OLDwhere:

    dirspec
    is the full specificationof the directory containing the transaction log.
    node
    is the name of the node that the transactionlog belongs to.

  4. Can you stop all the software that uses DECdtm serviceswithout shutting down any nodes?

    Yes
    Close the transaction logas follows:

    Step Action
    a. Stop all the software that uses DECdtm services.
    b. Close the transaction log using LMCP's CLOSE LOG command:
    $ RUN SYS$SYSTEM:LMCPLMCP> CLOSE LOG
    The CLOSE LOG command closes the transaction log and stops the DECdtm TP_SERVERprocess. The command fails if any software is using DECdtm services.
    c. Did the CLOSE LOG command succeed?
    Yes Restart the TP_SERVER process:
    $ @SYS$STARTUP:DECDTM$STARTUP.COM
    No Wait for 30 seconds, then repeat steps 4b and 4c.

    No
    Close the transaction log by rebootingthe node. Log in to the node when it has rebooted.

  5. Change the size of the transaction log, using LMCP'sCONVERT LOG command: CONVERT LOG/SIZE=size dirspecSYSTEM$node.LM$OLD dirspecSYSTEM$node.LM$JOURNAL where:

    size
    is the new size of the transactionlog in blocks.
    dirspec
    is the full specificationof the directory containing the transaction log.
    node
    is the name of the node that the transactionlog belongs to.

  6. If you stopped the software that uses DECdtm servicesin step 4, restart the software.
  7. Delete the old transaction log: DELETE dirspecSYSTEM$node.LM$OLD;where:

    dirspec
    is the full specificationof the directory containing the old transaction log.
    node
    is the name of the node that the transactionlog belongs to.

Example

This example shows how to change the size of node RED's transactionlog to 6000 blocks. Node RED is in an OpenVMS Cluster, and its transactionlog is in DISK$LOG2:[LOGFILES].

Log in to node RED. Find out which directory RED's transactionlog is in, then rename the transaction log:

$ RUN SYS$SYSTEM:LMCPLMCP> SHOW LOG SYSTEM$RED.LM$JOURNALDirectory 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 thetransaction log:
$ RUN SYS$SYSTEM:LMCPLMCP> CLOSE LOGTransaction log closed, TP_SERVER process stoppedLMCP> EXIT
Restart the TP_SERVER process:
$ @ SYS$STARTUP:DECDTM$STARTUP.COM
Change the size of the transaction log:
$ RUN SYS$SYSTEM:LMCPLMCP> CONVERT LOG/SIZE=6000 DISK$LOG2:[LOGFILES]SYSTEM$RED.LM$OLD -_LMCP> DISK$LOG2:[LOGFILES]SYSTEM$RED.LM$JOURNALLog 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;

go to previous page: Checking Whether a Transaction Log Is Too SmallChecking Whether a Transaction Log Is Too Small
go to next page: Moving a Transaction LogMoving a Transaction Log