![]() |
![]() HP OpenVMS Systems Documentation |
![]() |
OpenVMS System Manager's Manual
9.5.6 Modifying Disk Volume CharacteristicsUse the DCL command SET VOLUME to modify the characteristics of one or more mounted Files--11 disk volumes. To use this command, you must have write access to the index file on the volume. If you are not the owner of the volume, you must have either a system UIC or the user privilege SYSPRV. You must then specify the name of one or more mounted Files--11 volumes. The following examples illustrate how you can use the SET VOLUME command.
9.5.7 Speeding Up Disk MountingThe DISKMOUNT.C program can help to speed up disk mounts at system startup time. The program reduces the MOUNT image activation time by directly calling the $MOUNT system service.
This program requires a VAX C compiler. Perform the following steps:
For additional information, see the comments in the DISKMOUNT.H file.
The following sections discuss concepts related to disk volume sets and explain how to perform the following actions:
9.6.1 Understanding Disk Volume SetsA volume set is a collection of disk volumes bound into a single entity by the DCL command MOUNT/BIND. To users, a volume set looks like a single, large volume. Volume sets have the following characteristics:
Use a volume set to provide a large, homogeneous public file space. You must use a volume set to create files that are larger than a single physical disk volume. (The file system attempts to balance the load on the volume sets, for example, by creating new files on the volume that is the least full at the time.) If you want several distinct areas of file storage, with different types of users or different management policies, you must use a separate volume or volume set for each area. For example, you might want one volume for permanent user storage, with limited disk quotas and regular backups. You might want another volume for "scratch" use, which means that the volume has liberal or no quotas and is not backed up; also, its files are purged on a periodic basis. Each separate volume or volume set must contain a top-level user file directory for each user who keeps files on that volume. An advantage of separate volumes is their modularity. If one of the drives holding a volume set is out of service, the whole volume set is unavailable because of its interconnected directory structure. When a drive holding a single volume is not functioning, only the files on that volume are not available.
A disadvantage of volume sets is the large size of an image backup of a
multivolume set, which might affect your backup schedule. For example,
if backing up each of five separate volumes takes 5 hours in the
evening, backing up these same volumes in a volume set will take 25
hours, which cannot be done overnight, thus possibly causing a
scheduling problem.
When planning disk volume sets, keep in mind the following points:
When you mount a disk volume set, the volume label specified in the list must correspond to a device name in the same position in the device name list. You can bind two or more disk volumes into a volume set. The first volume in the set is called the root volume. Each volume in the set is identified by a volume number relative to the root volume, which is always relative to volume 1. A disk volume set has a single directory structure. The master file directory (MFD) is on the first volume in the set. When a disk volume set is on line and mounted, you can access all files and directories in the set by specifying either of the following names:
9.6.1.2 Using the /BIND QualifierUse the /BIND qualifier with the MOUNT command to create a disk volume set in the following format:
where:
The volume set name must be different from all volume labels within the set, and all labels in the set must be unique. The /BIND qualifier identifies a volume set by assigning it a volume set name that applies to all volumes in the set. The qualifier also identifies the root volume and creates the directory structure for the volume. When you create files on a volume set, the file system allocates space for the files anywhere on the set, wherever the most space exists. When existing files on any volume are extended, extension occurs on the same volume unless the volume is physically full. You can add new volumes to a volume set whenever additional space is needed. You can, for example, bind all disk volumes that are mounted into a volume set on a daily basis. Since this set contains all user file directories, users do not need to specify device names in file specifications to access files on any volume in the volume set. In fact, the physical location of a file is of no concern to users of the system.
You do not need special privileges to create volume sets. However, you must have write access to the index file on all volumes you are attempting to bind into a volume set; this usually means you also must have a system UIC, have the user privilege SYSPRV, or be the owner of the volumes. The following sections explain how to perform these tasks:
9.6.2 Creating a Disk Volume Set from New VolumesTo create a disk volume set from new disk volumes:
9.6.3 Creating a Shadowed Disk Volume SetThe following example illustrates one way to create a shadowed volume set.
This command creates a volume set with the logical name TEST3013. The
volume set TEST3013 is shadowed, and each element of the shadowset
(TEST3011 and TEST3012) is itself a volume set.
To create a disk volume set from an existing volume and a new volume:
The following example shows how to create a disk volume set (called USERS) from an existing volume. In this example, the volume USERFILES already contains a directory structure and files; the volume is currently located on the DUA1: device.
In the MOUNT/BIND command, you must specify the existing volume label USERFILES before the volume label USERFILES2. USERFILES will be the root volume of the set.
9.6.5 Adding Volumes to an Existing Disk Volume SetYou can add volumes to an existing volume set at any time. The maximum number of volumes in a volume set is 255. This section contains examples that show how to add volumes to an existing volume set.
9.7 Mounting ISO 9660 Volume Sets and GroupsTo access an ISO 9660-formatted CD-ROM, you can mount disk volumes in two ways:
The Mount utility (MOUNT) builds the I/O database structures that are needed to access ISO 9660 directories and files. MOUNT also verifies the presence of an appropriate ACP to perform $QIO functions specific to ISO 9660. Currently, you cannot mount ISO 9660 media as a system disk. Refer to the OpenVMS System Management Utilities Reference Manual for details.
For more information about ISO 9660 volume structure on
CD-ROM media, refer to the Guide to OpenVMS File Applications.
ISO 9660 supports volume sets of up to 65,535 volume set members. At any one time, users can mount a 255-member subset of the total volume set of 65,535.
If your volume set is greater than the number of
CD-ROM readers available to you, you can swap volume
set members, for example, as you might when you have a single reader
with multiple volume set members.
A volume group consists of one or more consecutively numbered volumes within a volume set. Affinity between the members of a volume group is established by the fact that the volumes are recorded together and are subject to the same maximum-volume-set-size parameter. Each volume in a volume group contains information describing all the files and directories recorded on all of the volumes in the volume set, up to and including the members of its volume group. For example, assume that a volume set includes two volume groups:
When you mount a volume set, you must first mount a member of the highest-numbered volume group (the most recently recorded group---in the example, Volume 3, 4, or 5), because only a member of the highest-numbered group has the information needed to mount all members of the volume set.
If you do not follow this requirement, you must dismount all of the
volumes and start again by specifying a member of the highest-numbered
volume group as the first volume to be mounted.
OpenVMS systems support partially mounted ISO 9660 volume sets. Data is usually read from all mounted volumes in a manner that is transparent to the user program.
When a volume-set member is not mounted because the volume set is
partially mounted, OPCOM sends a message to the OPERATOR class DISK
requesting that the unmounted volume be mounted. If you do not honor
the request within a specified time period, or if you do not enable the
option to provide for dynamically mounting a volume, the I/O process
fails, and an error message is issued.
All ISO 9660 volumes contain a Primary Volume Descriptor (PVD) that uses ASCII (ISO 646-IRV) as the character set. Both ISO 9660 and OpenVMS file naming conventions use the same subset of ASCII characters when displaying the directories and file names of a volume. In addition to mounting ISO 9660 volumes using the default PVD, you can also mount ISO 9660 volumes using a Supplementary Volume Descriptor (SVD). This capability allows access to an ISO 9660 volume with directories and file names containing characters from character sets other than the ISO 9660 limited set, which includes only A through Z, underscore (_), period (.) and semicolon (;). The author of the ISO 9660 volume set must record the volume with the required PVD, and optionally with one or more SVDs. Each SVD must contain a unique volume label and escape sequence. Use the following command syntax to mount an ISO 9660 device using an SVD:
where:
If an ISO 9660 volume contains SVDs with no escape sequence specified, the default character set is assumed to be ISO 646 (ASCII). This default character set allows the use of the file specification character set supported by OpenVMS, which includes these additional characters: dollar sign ($) and dash (-). Use the following command syntax to mount a volume using the SVD volume label when no escape sequence is specified:
Refer to the Guide to OpenVMS File Applications for more information about ISO 9660 volume structure on CD-ROM media.
|