|
|
|
|
These tasks are described in Managing Storage Media. This chapter describes specifically how these tasks relate to BACKUP. Note that all disk operations in this chapter also apply to diskettes.
Understanding Volume Initialization
Initializing a volume completes the following actions:
Initializing a volume removes links to existing files on the volume, effectively erasing the files. Do not initialize a volume that contains data you want to keep. |
When to Initialize Volumes
You must initialize a volume for use with BACKUP if any of
the following conditions exist:
Methods of Volume Initialization show the three ways to initialize a volume.
Method | For More Information |
---|---|
Before a backup
operation with the DCL command INITIALIZE
|
Initializing Volumes
|
On the BACKUP
command line with the /REWIND qualifier (for tapes only)
|
Tapes
|
On the BACKUP command line
with the /INITIALIZE qualifier (for disks only)
|
Initializing Disks
|
Tapes
Instead of using the INITIALIZE command and then performing
a backup operation, you can initialize a tape and perform a backup
operation by entering one BACKUP command.
To initialize a tape volume on the BACKUP command line, add the /REWIND and /LABEL qualifiers to the output specifier. The /REWIND qualifier rewinds and initializes the volume. The /LABEL qualifier allows you to specify the volume label.
Magnetic tape volume labels can contain a maximum of six characters. You can use any ANSI "a" character in a magnetic tape volume label. The ANSI "a" characters include numbers, uppercase letters, and any of the following nonalphanumeric characters: ! " % ' ( ) * + , _ . / : ; < = > ?
If you use any nonalphanumeric characters, you must enclose the volume label with quotation marks.
Label your magnetic tapes according to the data contained on the tapes. The following table presents some suggestions for labeling tapes:
Label | Type of Backup | Expiration Date |
---|---|---|
DLY101
|
Daily, group
1, volume number 1
|
Expires in 7 days
|
DLY102
|
Daily, group
1, volume number 2
|
Expires in 7 days
|
WKY101
|
Weekly, group
1, volume number 1
|
Expires in 4 weeks
|
WKY201
|
Weekly, group
2, volume number 1
|
Expires in 4 weeks
|
MTH101
|
Monthly, group
1, volume number 1
|
Expires in 12 months
|
YRY101
|
Yearly, group 1, volume
number 1
|
Expires in 5 years
|
Note that:
%INIT-F-FILNOTEXP, file is not expiredIf you have either VOLPRO privilege or write access to the volume, or you are the owner of the volume, you can use the DCL command INITIALIZE/OVERRIDE=EXPIRATION to initialize the magnetic tape.
$
BACKUP [ACCOUNTS.JUNE] MUA0:JUNE.BCK/REWIND/LABEL=MTH101
Initializing
Disks
Instead of using the INITIALIZE command and then performing
a backup operation, you can initialize a disk and perform a backup
operation by entering one BACKUP command.
The two ways to initialize a disk during a backup operation are:
This command initializes DUA2: using the volume-initialization data from DUA1. BACKUP then copies the contents of DUA1: to DUA2:, effectively erasing any existing files on DUA2. Note that the files on DUA2: are stored contiguously, eliminating disk fragmentation.$
BACKUP/IMAGE DUA1: DUA2:
This command causes BACKUP to initialize DUA2:, preserving the initialization data on that volume. BACKUP then copies the contents of DUA1: to DUA2:, effectively erasing any existing files on DUA2.$
BACKUP/IMAGE DUA1: DUA2:/NOINITIALIZE
BACKUP then creates an image backup of DUA1: in the sequential disk save set DUA2:[000000]DAILY.SAV. If the save set exceeds the available disk space, BACKUP prompts for another volume. BACKUP initializes the new volume and extends the save set in the master file directory ([000000]) of the new volume. (For more information about save sets, see Understanding Save Sets. For more information about the /INITIALIZE qualifier, refer to the HP OpenVMS System Management Utilities Reference Manual.)$
MOUNT/FOREIGN DJA2:
%MOUNT-I-MOUNTED, USER1 mounted on _DJA2:
$
BACKUP/IMAGE DUA1: DJA2:DAILY.SAV/INITIALIZE
Mounting a Volume
Mounting a volume makes it available to the system. BACKUP
automatically mounts tapes when you use them for a backup operation.
Most disks on your system are mounted at system startup. This section describes
how to explicitly mount volumes.
If you are planning to write a save set to a disk, decide whether the save set will be written in standard Files-11 format or in sequential-disk format:
device-name
|
is the name of the drive
that holds the volume you want to mount.
|
volume-label
|
is the alphanumeric identification
you assigned to the volume with the INITIALIZE command. For disk
volumes, labels can have a maximum of 12 characters; for magnetic tape
volumes, labels can have a maximum of 6 characters. You do not need
to add this parameter if you are mounting the volume with the /FOREIGN
qualifier.
|
logical-name
|
is an optional 1- to 255-character alphanumeric
specification that you want to associate with the volume.
|
$ SHOW DEVICE MU
Device Device Error Volume Free Trans Mnt
Name Status Count Label Blocks Count Cnt
DAD$MUA6: Online 0
MOM$MUA6: Online 0
FRED$MUA6: Online 0
$
MOUNT/FOREIGN FRED$MUA6: TEST DRIVE1
%MOUNT-I-MOUNTED, TEST mounted on _FRED$MUA6:This command mounts the tape in FRED$MUA6: and assigns it the logical name DRIVE1.
Dismounting a Volume
BACKUP does not dismount the last volume of a backup operation
(unless you use the /RELEASE_TAPE qualifier). When you finish using
a volume, you should dismount it.
Enter the DISMOUNT command in the following format:DISMOUNT device-name
The following command dismounts a tape in drive MUB6:
This command dismounts and unloads the tape in MUB6. After you dismount and unload the volume, you can remove it from the drive. To dismount the tape but not unload it, enter the following command:$
DISMOUNT MUB6:
$
DISMOUNT/NOUNLOAD MUB6:
|
|