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

Considerations for RENAME DISK
When you issue the RENAME DISK command, the disk must be in one of these states:
STOPPED state, substate DOWN
SERVICING state, substate SPECIAL
During a rename operation, SCF puts the disk (or both halves of a mirrored volume) in the
SERVICING state, substate SPECIAL, so no other processes can access the disk. When the
operation finishes, SCF puts the disk in the STARTED state.
After the RENAME DISK command is executed, the default volume and alternate volume names
are changed to the $new-disk name. The disk configuration record is updated to reflect the
change. The old disk names are deleted from the system and replaced by the new disk names.
If the time stamps in the volume labels are different on the two disks of a mirrored volume,
only the newer disk is renamed. An error message alerts you that one half of the mirrored
volume is inconsistent with the other half.
You cannot rename a disk that resides in a storage pool. If you do, the pool process and
virtual disks are not informed of the name change. Therefore, before letting you rename a
disk in a storage pool, the storage subsystem manager issues a warning regarding the possible
effects on the storage pool process and virtual disks.
During system load or a START DISK command, the storage subsystem uses the default volume
name to bring up the disk. However, if the default volume name is already in use, the alternate
volume name is used. If the alternate volume name is also in use, the volume name as recorded
in the system configuration database is used.
If both the default and alternate names are already being used, you can resolve duplicate
name conflicts by using one of these SCF commands to assign a new name that is not in use:
RENAME DISK
ALTER DISK, VOLNAME
ALTER DISK, ALTNAME
These commands let you rename and bring up a disk volume that has the same name as
another volume currently active on the system. For more details, see “Naming a Disk
(page 88).
Renaming a Disk
1. Stop the disk you want to rename:
-> STOP DISK $DATA00
2. Verify the disk is stopped:
-> STATUS $DATA00
If the disk is not stopped, you can use the STOP command with the FORCED attribute:
-> STOP $DATA00, FORCED
3. Rename the disk:
-> RENAME DISK $DATA00, $SPARE00
The disk volume is automatically started with the new names, $SPARE00-P and $SPARE00-M,
even if AUTOSTART is not configured.
4. Verify the volume name of the disk has changed:
-> STATUS $SPARE00
Naming a Disk 89