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 Services Managing DECdtm Services
go to previous page: Moving a Transaction Log Moving a Transaction Log
go to next page: Adding a NodeAdding a Node
end of book navigation links

Dismounting a Disk  



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.

How to Perform This Task

  1. Find out which transaction logs are on the disk you want to dismount, using LMCP's SHOW LOG command:
    $ RUN SYS$SYSTEM:LMCP
    LMCP> SHOW LOG
  2. Stop all the software that uses DECdtm services, if you can do so without shutting down any nodes.

    If you cannot stop the software, reboot one or more nodes in step 3.
  3. For each transaction log on the disk:

    1. Log in to the node that the transaction log belongs to.
    2. Rename the transaction log: RENAME dirspecSYSTEM$node.LM$JOURNAL dirspecSYSTEM$node.LM$TEMPwhere:

      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.

    3. Did you stop all the software that uses DECdtm services in step 2?

      Yes
      Close the transaction log as follows:

      Step Action
      1) Close the transaction log using LMCP's CLOSE LOG command:
      $ RUN SYS$SYSTEM:LMCP
      LMCP> CLOSE LOG
      The CLOSE LOG command closes the transaction log and stops the DECdtm TP_SERVER process. The command fails if any software is using DECdtm services.
      2) Did the CLOSE LOG command succeed?
      Yes Restart the TP_SERVER process:
      $ @SYS$STARTUP:DECDTM$STARTUP.COM
      No Wait for 30 seconds, then repeat step 3c.

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

  4. Dismount the disk. For instructions on how to dismount a disk, see Dismounting a Disk.
  5. When you want to mount the disk again, follow these steps:

    1. Mount the disk. For instructions on how to mount a disk, see ***Section 9.5***.

      If you are in a cluster, mount the disk clusterwide.
    2. Rename each transaction log on the disk: RENAME dirspecSYSTEM$node.LM$TEMP dirspecSYSTEM$node.LM$JOURNALwhere:

      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.

    3. If you stopped the software that uses DECdtm services, restart the software.

Example

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.
go to previous page: Moving a Transaction Log Moving a Transaction Log
go to next page: Adding a NodeAdding a Node