Technical data

Managing Storage Media
9.5 Mounting Volumes
To recover from the error condition, reenter the SET VOLUME/STRUCTURE_
LEVEL=5 command, and then dismount and remount the disk. As a last resort,
you can restore the backup you made.
9.5.5.2 Converting from ODS-1 to ODS-2
To convert from ODS-1 format to ODS-2 format:
1. Back up the entire disk or disks.
2. Initialize the disk or disks as ODS-2 file structure.
3. Restore the disk or disks.
9.5.5.3 Converting from ODS-5 Files to ODS-2
Two types of BACKUP operations, file and image, support converting ODS-5
file names to ODS-2 file names. (File and image operations are described more
completely in Chapter 11.)
In the examples in the following descriptions, notice that when you perform
a conversion to or from a save set, the created as or copied as message is
displayed for the converted files.
Conversions during image operations
Restoring an ODS-5 image save set to an ODS-2 disk
You can use this method if you have an image backup of an ODS-5 disk,
and you want to restore it to an ODS-2 disk.
In the command line in the following example, IMAGE.BCK is the ODS-5
save set, and DKA200: is the ODS-2 disk. When you use this conversion
method, you must preinitialize the output disk to ODS-2 and then include
the /NOINIT qualifier in your command line in order to preserve the
ODS-2 structure level.
$ BACKUP/LOG/IMAGE/CONVERT DKA500:[000000]IMAGE.BCK/SAVE DKA200:/NOINIT
%BACKUP-I-ODS5CONV, structure level 5 files will be converted to structure
level 2 on DKA200:
-BACKUP-I-ODS5LOSS, conversion may result in loss of structure level 5
file attributes
%BACKUP-S-CREATED, created DKA200:[000000]000000.DIR;1
%BACKUP-S-CREATED, created DKA200:[000000]BACKUP.SYS;1
%BACKUP-S-CREATED, created DKA200:[000000]CONTIN.SYS;1
%BACKUP-S-CREATED, created DKA200:[000000]CORIMG.SYS;1
%BACKUP-S-CREATED, created DKA200:[000000]SECURITY.SYS;1
%BACKUP-S-CREATED, created MDA2:[000000]TEST_FILES.DIR;1
%BACKUP-S-CREATEDAS, created DKA200:[TEST_FILES]SUB^_^{DIR^}.DIR;1 as
DKA200:[TEST_FILES]SUB$$DIR$.DIR;1
%BACKUP-S-CREATEDAS, created
DKA200:[TEST_FILES.SUB^_^{DIR^}]SUB^&_~_FILE_~.DAT;1 as
DKA200:[TEST_FILES.SUB$$DIR$]SUB$_$_FILE_$.DAT;1
%BACKUP-S-CREATEDAS, created
DKA200:[TEST_FILES]THIS^_IS^_A^_TEST^{_FILE_^}.DAT;1 as
DKA200:[TEST_FILES]THIS$IS$A$TEST$_FILE_$.DAT;1
%BACKUP-S-CREATED, created DKA200:[000000]VOLSET.SYS;1
Saving an ODS-5 disk to an ODS-2 image save set
You can use this method to make an ODS-2 image save set of an ODS-5
disk that can be read by a system running a version of OpenVMS prior to
Version 7.2.
Managing Storage Media 939