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 wanted name is specified with the -n flag.
The new wanted name must not exceed 15 characters in length. Acceptable characters for the new
name include alphanumeric characters and underscore (_). If the name is already 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.
rmdev –l Name
command. If the unconfigure operation fails, the renaming also fails.
If the unconfigure operation succeeds, the rendev command will configure the
device, after renaming it, to restore it to the Available state. The –u flag
might be used to prevent the device from being configured again after it is renamed. Some devices might have special requirements on their names for other devices or applications to use them. Using the rendev command to rename such a device might 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 | This flag is optional. It indicates that the device is not to be configured after it is renamed. |
Examples
- To rename disk
hdisk5
tohdisk2
, enter the following command:rendev -l hdisk5 -n hdisk2
- To rename disk
hdisk3
toootvg
, enter the following command:rendev -l hdisk3 -n ootvg
ootvg
appended to r
results
in the name rootvg
, which conflicts with the rootvg volume group name.