Purpose
Syntax
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. 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.
If the device is in the Available state, the rendev command must unconfigure the device before renaming it. This is similar to the operation performed by the rmdev -l Name command. If the unconfigure operation fails, the renaming will also fail. If the unconfigure succeeds, the rendev command will configure the device, after renaming it, to restore it to the Available state. The -u flag may be used to prevent the device from being configured again after it is renamed.
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
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
The second command fails because ootvg appended to r results in the name rootvg, which conflicts with the rootvg volume group name.
'IBM > AIX' 카테고리의 다른 글
Creating a mksysb backup to DVD in AIX V5, V6 and V7 (0) | 2015.05.06 |
---|---|
^M 없애는 방법 (0) | 2014.04.21 |
반드시알아둘AIX명령 (0) | 2012.11.09 |
P7_OS지원버전 (0) | 2012.11.09 |
savevg (0) | 2012.11.09 |
mpio_get_config (0) | 2012.11.09 |
lqueryvg (0) | 2012.11.09 |
hitachi_disk_정보확인 (0) | 2012.11.09 |
오라클tunning (0) | 2012.11.09 |
메시지카탈로그 (0) | 2012.11.09 |