HPlogo Volume Management: HP 3000 MPE/iX Computer Systems > Chapter 5 Volume Management Commands

COPYVOL

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The COPYVOL command copies the contents of one volume to a second volume. This is a bit-wise copy of the source volume. The source must be mounted in the SCRATCH, UNKNOWN, or LONER state. The destination volume must be mounted in the SCRATCH or UNKNOWN state. Both volumes must have the same physical characteristics. Use the DSTAT command to determine the state of any volume.

Task

Copies the contents of one volume to another volume.

Capability

CV, create mountable volume set

Syntax

   COPYVOL [FROM=] from_ldev [TO=] to_ldev

Parameters

from_ldev

A number from 1 to 100 specifying the logical device number of the source volume. Required.

to_ldev

A number from 1 to 100 specifying the logical device number of the destination volume. Required.

Example

This example shows how to copy data from one volume to another volume.

  1. Use the VSCLOSE command to place the source volume in the LONER state (this is only necessary if the volume is mounted). The destination volume must be mounted in the SCRATCH or UNKNOWN state. Both volumes must have the same physical characteristics.

  2. Use the COPYVOL command to copy the volume.

       volutil: :VSCLOSE BSET 
    
    
    
       volutil: COPYVOL FROM=22 TO=42
    
    
    
       volutil: :DSTAT
    
    
    
       LDEV-TYPE  STATUS  VOLUME (VOLUME SET - GEN)
    
       ---------  ------  -------------------------
    
       21-079330  LONER    BVOL1    (BSET-0)
    
       22-079330  LONER    BVOL2    (BSET-0)
    
       23-079350  LONER    BVOL6    (BSET-0)
    
       41-079330  LONER    BVOL1    (BSET-2)
    
       42-079350  LONER    BVOL2    (BSET-2)
    
    
    
  3. Use the DSTAT command to verify that the volume was copied

CAUTION: Mixing copied volumes with original volumes could have disastrous effects. For example, if you make a backup of a volume set, then continue to use the original volume set, file and accounting information on the original may no longer correspond to the copy. Any attempt to integrate a duplicate volume into the original volume set would be disastrous.
Feedback to webmaster