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' 카테고리의 다른 글
Dynamic Tracking of Fibre Channel devices (0) | 2012.01.11 |
---|---|
How to NFS Mount a cdrom Filesystem (0) | 2011.12.22 |
mkisofs(이미지생성) (0) | 2011.12.21 |
timezone (0) | 2011.11.14 |
loopmount (0) | 2011.11.03 |
hitachi_disk_정보확인 (0) | 2011.10.11 |
mpio_get_config (0) | 2011.10.10 |
바뀐LUN사이즈를VG에적용할때 (0) | 2011.10.06 |
savevg (0) | 2011.10.04 |
log볼륨생성 (0) | 2011.08.17 |