Document revision date: 19 July 1999 | |
Previous | Contents | Index |
When backing up your system disk, you must understand the functions of the /IMAGE and /PHYSICAL qualifiers to the BACKUP command before using standalone BACKUP:
Qualifier | Function |
---|---|
/IMAGE | Lets you create a functionally equivalent copy of the entire system disk. When restored, files from an image backup are placed contiguously on the system disk, eliminating disk fragmentation. |
/PHYSICAL | Copies, saves, restores, or compares the entire system disk in terms of logical blocks, ignoring any file structure. |
For a complete description of the Backup utility qualifiers, refer to the OpenVMS System Management Utilities Reference Manual.
To perform an image backup of the system disk to tape, use the following procedure:
BACKUP/IMAGE/VERIFY input-specifier: output-specifier:saveset.BCK/REWIND/LABEL=label |
where:
$ BACKUP/IMAGE/VERIFY DUA1: MUA0:DEC_31_BACKUP.BCK/REWIND/LABEL=WKY101 |
%BACKUP-I-STARTVERIFY, starting verification pass |
%BACKUP-I-RESUME, Resuming operation on volume 2 %BACKUP-I-READYWRITE, Mount volume 2 on _MUA0: for writing Enter "YES" when ready. |
%BACKUP-I-STARTVERIFY, starting verification pass |
%BACKUP-I-PROCDONE, Operation completed. Processing finished at 19-MAY-1998 15:30. If you do not want to perform another standalone BACKUP operation, use the console to halt the system. If you do want to perform another standalone BACKUP operation, ensure the standalone application volume is online and ready. Enter "YES" to continue: |
If a problem occurs that renders your system disk unbootable, you can restore the system disk from your backup copy.
To restore the system disk from tape, use the following procedure.
The BACKUP restore operation creates a system disk that includes a set of volume parameters provided by Compaq, including a cluster size (disk access scheme). You can change most volume parameters later with the SET VOLUME command. For cluster-mounted volumes, changes occur to the nodes on which the SET VOLUME command is issued. To change the cluster size, back up the system disk to a disk that has been previously initialized with the cluster size that you want. For more information about initializing a disk, see Section 8.3. For more information about the BACKUP command qualifiers, refer to the OpenVMS System Management Utilities Reference Manual. |
BACKUP/IMAGE/VERIFY input-specifier:saveset.BCK/REWIND output-specifier: |
where:
$ BACKUP/IMAGE/VERIFY MUA0:DEC_31_BACKUP.BCK/REWIND DUA0: |
%BACKUP-I-STARTVERIFY, starting verification pass |
%BACKUP-I-RESUME, Resuming operation on volume 2 %BACKUP-I-READYREAD, Mount volume 2 on MUA0: for reading Enter "YES" when ready. |
%BACKUP-I-STARTVERIFY, starting verification pass |
%BACKUP-I-PROCDONE, Operation completed. Processing finished at 19-MAY-1998 15:30. If you do not want to perform another standalone BACKUP operation, use the console to halt the system. If you do want to perform another standalone BACKUP operation, ensure the standalone application volume is online and ready. Enter "YES" to continue: |
To eliminate disk fragmentation, perform a disk-to-disk image backup without using the /SAVE_SET qualifier. This creates a functionally equivalent copy of the entire system disk, on which files are stored contiguously.
This procedure initializes the output disk, effectively erasing the files on the disk. |
To perform a disk-to-disk image backup, use the following procedure:
BACKUP/IMAGE/VERIFY input-specifier: output-specifier: |
where:
$ BACKUP/IMAGE/VERIFY DUA0: DUA1: |
%BACKUP-I-STARTVERIFY, starting verification pass |
%BACKUP-I-PROCDONE, Operation completed. Processing finished at 19-MAY-1998 15:30. If you do not want to perform another standalone BACKUP operation, use the console to halt the system. If you do want to perform another standalone BACKUP operation, ensure the standalone application volume is online and ready. Enter "YES" to continue: |
On VAX systems, you can back up the system disk to an InfoServer tape and restore the system disk from an InfoServer tape.
The boot command you use for your computer depends on the type of system you have. For more information about booting your system, refer to the installation and operations supplement for your computer. |
Example 10-1 shows the procedure for backing up a system disk to an InfoServer tape.
Example 10-1 System Disk Backup to an InfoServer Tape |
---|
>>> B/R5:10000100 ESA0 Bootfile: ISL_SVAX_071 -ESA0 Network Initial System Load Function Version 1.1 FUNCTION FUNCTION ID 1 - Display Menu 2 - Help 3 - Choose Service 4 - Select Options 5 - Stop Enter a function ID value: 3 OPTION OPTION ID 1 - Find Services 2 - Enter known Service Name Enter an Option ID value: 2 Enter a Known Service Name: VMS062 OpenVMS VAX Version 7.2 Major version id = 2 Minor version id = 0 %SYSINIT-E, error opening page file, status = 0000025C %SYSINIT-E, error opening swap file, status = 0000025C %SYSINIT, primary PAGEFILE.SYS not found; system initialization continuing %SYSINIT, no dump file - error log buffers not saved %SYSINIT-E, error mounting system device, status = 00000F64 $! Copyright (c) 1998 Compaq Computer Corporation. All rights reserved. $set noverify Copyright © (c) 1998 Compaq Computer Corporation. All rights reserved. Installing required known files... Configuring devices... **************************************************************** The menu can be used to execute DCL commands and procedures for various "standalone" tasks, such as backing up the system disk. Please choose one of the following: 1) Execute DCL commands and procedures 2) Shut down this system Enter CHOICE or "?" to repeat menu: (1/2/?) 1 WARNING -- The normal VMS startup procedure has not executed. Some commands and utilities will not work as documented. Enter DCL commands -- Enter "LOGOUT" when done. When you enter "LOGOUT" a logout message will be displayed, and you will be returned to the menu. $$$ MCR ESS$LADCP SHOW SERVICE/TAPE $$$ MCR ESS$LADCP BIND/WRITE/TAPE TZL04_TAPE $$$ MOUNT/FOREIGN MADn $$$ BACKUP/IMAGE DKA100: MADn:SYS_DISK.BCK/SAVE_SET . . . $$$ LOGOUT Process SYSTEM_1 logged out at 2-FEB-1998 23:35:17.52 **************************************************************** The menu can be used to execute DCL commands and procedures for various "standalone" tasks, such as backing up the system disk. Please choose one of the following: 1) Execute DCL commands and procedures 2) Shut down this system Enter CHOICE or "?" to repeat menu: (1/2/?) |
BACKUP has several qualifiers for further ensuring the integrity of
your backups. Compaq recommends using these qualifiers if you want to
achieve maximum data integrity. This section describes some of the ways
you can increase data integrity with BACKUP. For more information about
these qualifiers, refer to the OpenVMS System Management Utilities Reference Manual.
10.18.1 /CRC Qualifier
The /CRC qualifier enables the software cyclic redundancy check (CRC). The default is /CRC; you must specify /NOCRC to disable checking. Disabling checking reduces processing time, but increases the risk of data error.
As an output save-set qualifier, /CRC writes the CRC checking code into the blocks of the output save set.
As an input save-set qualifier, /CRC checks the CRC information in the input save set.
Compaq recommends that you use the CRC. Although it increases
processing time, it also improves data integrity.
10.18.2 /GROUP_SIZE Qualifier
This output save-set qualifier causes BACKUP to write redundant data to the output save set. This allows BACKUP to attempt to correct read errors during the backup restore operation. Use the /GROUP_SIZE qualifier to define the number of blocks in each group of redundant information. For example:
$ BACKUP/IMAGE/RECORD _From: DKA100: _To: MKB100:BACKUP.SAV/LABEL=WKY101/GROUP_SIZE=20 |
This command adds a recovery block after every 20 blocks of saved data. This allows BACKUP to recover a corrupted data block for every 20 blocks of saved data. The value of the /GROUP_SIZE qualifier defaults to 10.
Although using this qualifier increases the size of the save set and
the processing time for the operation, Compaq recommends using the
/GROUP_SIZE qualifier to increase data integrity.
10.18.3 /IGNORE Qualifier
Compaq recommends that you back up your system when no interactive users are logged in. This is because if BACKUP encounters an open file during a save operation, it issues an error message and does not copy the file.
You can instruct the backup procedure to save open files by using the /IGNORE=INTERLOCK qualifier on the BACKUP command. When you use the /IGNORE=INTERLOCK qualifier, the contents of the file at the moment of the backup are saved.
The /IGNORE=INTERLOCK qualifier is useful for files that are constantly open (and would therefore not otherwise be saved). However, you must recognize that you might be saving inconsistent data, depending on the applications that are writing to the open files (for example, open application transactions or file data cached in memory). Also, because of the way BACKUP scans directories, any activity in a directory (such as creating or deleting files) can cause files to be excluded from the backup. In general, it is best to back up your system when a minimum number of files are open.
Also, because of the way the file system works, using the
/IGNORE=INTERLOCK qualifier to back up open files affects subsequent
incremental backups. For example, you can back up an open file with the
BACKUP/IMAGE/RECORD/IGNORE=INTERLOCK command. However, the backup date
field of the file is not updated until you close the file. If the file
remains open during subsequent incremental backups, it is not included
in those backups because its backup date field is not as recent as the
last image backup.
10.18.4 /LOG Qualifier
Use the /LOG qualifier to the BACKUP command to display the file specification of the files that BACKUP processes during a backup operation. For example, if you are copying files in a directory, you can use the /LOG qualifier to display the file specification of each file copied:
$ BACKUP/LOG _From: WORK3:[OCONNELL]*.* _To: WORK1:[OCONNELL.SCRATCH]*.* %BACKUP-S-CREDIR, created WORK1:[OCONNELL.SCRATCH.COM] %BACKUP-S-CREATED, created WORK1:[OCONNELL.SCRATCH]DECW$MAIL.DAT;2 %BACKUP-S-CREATED, created WORK1:[OCONNELL.SCRATCH]DECW$SM.LOG;42 %BACKUP-S-CREATED, created WORK1:[OCONNELL.SCRATCH]DECW$SM.LOG;41 . . . |
Use the /VERIFY qualifier to cause BACKUP to compare the contents of the input and output specifiers after a save, restore, or copy operation. When BACKUP is executing the verification pass, it displays the following message:
%BACKUP-I-STARTVERIFY, starting verification pass |
If BACKUP finds differences between the input and output files, it issues an error message.
Compaq recommends that you use the /VERIFY qualifier. Although it increases processing time, it also improves data integrity.
Backing Up a Save Set Twice Using /VERIFY Qualifier
The problem described in this section applies to TZ87 and TZ88 tape drives and to TZ89 tape drives. If you mount a tape /FOREIGN and then back up files to a save set twice, the second save set reports errors under the following conditions:
For BACKUP /BLOCKSIZE= | The Files Must Total at Least |
---|---|
4000 | 6300 1 blocks |
3580 | 5400 1 blocks |
Error messages similar to the following ones are displayed:
%BACKUP-I-STARTVERIFY, starting verification pass %BACKUP-E-READERR, error reading MKB300:[]SET.SAV; -SYSTEM-W-DATAOVERUN, data overrun %BACKUP-E-INVBLKSIZE, invalid block size in save set %BACKUP-E-INVRECSIZ, invalid record size in save set %BACKUP-F-READERRS, excessive error rate reading MKB300:[]SET.SAV; -SYSTEM-W-DATAOVERUN, data overrun |
Previous | Next | Contents | Index |
privacy and legal statement | ||
6017PRO_050.HTML |