rendev Command
Purpose
Renames a device.
Syntax
rendev -l Name -n NewName [-u]
Description
The rendev command enables devices to be renamed. The device to be renamed, is specified with the -l flag, and the new desired name is specified with the -n flag.
The new desired name must not exceed 15 characters in length. Acceptable characters for the new
name include alphanumeric characters, period (.), underscore (_), and hyphen (-). If the name has
already been used or is present in the /dev
directory, the operation fails. If the
name formed by appending the new name after the character r is already used as a device name, or
appears in the /dev
directory, the operation fails.
Some devices may have special requirements on their names in order for other devices or applications to use them. Using the rendev command to rename such a device may result in the device being unusable.
Flags
Item | Description |
---|---|
-l Name | Specifies the device, indicated by the Name parameter, to be renamed in the customized devices object. |
-n NewName | Specifies the new name, indicated by the NewName parameter, to be assigned to the device. |
-u | Optional flag, which indicates that the device is not to be configured after it is renamed. |
Examples
- To rename disk hdisk5 to hdisk2, enter:
rendev -l hdisk5 -n hdisk2
- To rename disk hdisk3 to ootvg, enter:
rendev -l hdisk3 -n ootvg