SCF Reference Manual for the Storage Subsystem (G06.28+, H06.05+, J06.03+)

Enabling and Disabling File Opens on a Disk
Preventing File Opens on a Disk
The “STOPOPENS DISK Command” (page 293) prevents applications from opening files on a
specific disk.
Considerations for STOPOPENS DISK
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.
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 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 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 227) 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
Allowing File Opens on a Disk
The ALLOWOPENS DISK Command” (page 227) lets applications open files on a specific disk.
Examples
To allow files on a disk to be opened by applications:
-> ALLOWOPENS $DATA00
To prevent files on a disk from being opened by anyone except the super ID (255, 255):
-> ALLOWOPENS $DATA14, SUPERONLY
Swapping Processors for a Disk
The “PRIMARY DISK Command” (page 264) swaps the primary and backup processors for a disk.
The current primary processor becomes the backup processor, and the backup processor becomes
the primary processor, but the PRIMARYCPU and BACKUPCPU values stay the same
Enabling and Disabling File Opens on a Disk 109