SCF Reference Manual for the Storage Subsystem (G06.27+, H06.04+)

Managing Magnetic Disks
SCF Reference Manual for the Storage Subsystem529937-008
7-22
Enabling and Disabling File Opens on a Magnetic
Disk
Enabling and Disabling File Opens on a
Magnetic Disk
Preventing File Opens on a Magnetic Disk
The STOPOPENS DISK Command (page 14-135) prevents applications from opening
files on a specific magnetic disk.
Considerations for STOPOPENS DISK
The disk must be in the STARTED state.
When you issue the STOPOPENS command, SCF provides a message indicating
the number of currently open files.
If the magnetic disk to which you issue a STOPOPENS command is in a storage
pool, SCF issues a warning message. Problems can occur because the storage
pool process is not advised of this change.
If the magnetic disk to which you issue a STOPOPENS command contains SMF
catalog files that are not currently not open, the SMF process that uses those
catalogs cannot be started.
Use the ALLOWOPENS command (page 14-46) to reverse the action of the
STOPOPENS command.
Examples
1. Before issuing the STOPOPENS command, verify the disk is in the STARTED
state.
2. Stop file-system opens:
To prevent new file-system opens on a disk:
-> STOPOPENS $DATA00
To prevent new file-system opens on all disks in the STARTED state:
-> STOPOPENS DISK $*, SEL STARTED
Caution. Do not issue a STOPOPENS DISK command on the system disk. Issuing a
STOPOPENS DISK command on the system disk makes it inaccessible to file-open attempts.
If you do issue a STOPOPENS DISK command on the system disk, do not exit SCF.
Immediately enter an ALLOWOPENS DISK, SUPERONLY command. Otherwise, the system
disk becomes inaccessible when you exit SCF.