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

5. View the new volume name and alternate volume name:
-> INFO $SPARE00, LABEL
Changing Either the Volume Name or Alternate Volume Name
The VOLNAME and ALTNAME attributes of the ALTER DISK command change the volume name
and alternate volume name, respectively, of a stopped disk.
When a disk is started, SCF uses the name in the system configuration database to bring up the
disk. The disk process reads the disk label and might change its process name to match either the
VOLNAME or ALTNAME. If both VOLNAME or ALTNAME are in use by other processes, the disk
process continues running with the configured name but does not enter the STARTED state.
When you change just the volume name or alternate volume name, only the volume label is
changed. After you change either volume name or alternate volume name, the disk process might
attempt to change the disk name to either the volume name or alternate volume name. If the disk
name changes, the disk process tells the storage subsystem manager to change its system
configuration database records to match the new disk name. For details about how disk names
are determined when a disk is started, see “Naming a Disk” (page 88).
Changing the Volume Name (and Keeping Files)
This example uses the VOLNAME attribute of the ALTER DISK command to change the volume
name from $DATA02 to $DEF00 without destroying the files on the volume
CAUTION: Do not rename a volume unless you are sure that other products or applications (such
as SMF, SQL, or TMF) will not search for files on that volume using the previous volume name.
Stop the disk you want to rename:
-> STOP DISK $DATA02
1. Verify the disk is stopped:
-> STATUS $DATA02
2. Change the volume name:
-> ALTER $DATA02, VOLNAME $DEF00
3. View the new volume name:
-> INFO $DATA02, LABEL
The volume name in the display should be $DEF00.
4. Start the disk:
-> START $DATA02
Starting the disk changes the name of the $DATA02 disk to $DEF00 in the system configuration
database.
Subsequent commands to the disk should use the new name:
-> INFO $DEF00
Changing the Alternate Volume Name (and Keeping Files)
This example uses the ALTNAME attribute of the ALTER DISK command to change the alternate
volume name from $DATA02 to $ALT00 without destroying the files on the volume
CAUTION: Do not rename a volume unless you are sure that other products or applications (such
as SMF, SQL, or TMF) will not search for files on that volume using the previous volume name.
Stop the disk you want to rename:
-> STOP DISK $DATA02
90 Configuring Disks