When removing a device on AIX, you may run into a message saying that a child device is not in a correct state. For example:
To determine what the child devices are, use the -p option of the lsdev command. From the man page of the lsdev command:# rmdev -dl fcs3 Method error (/usr/lib/methods/ucfgcommo): 0514-029 Cannot perform the requested function because a child device of the specified device is not in a correct state.
For example:-p Parent Specifies the device logical name from the Customized Devices object class for the parent of devices to be displayed. The -p Parent flag can be used to show the child devices of the given Parent. The Parent argument to the -p flag may contain the same wildcard charcters that can be used with the odmget command. This flag cannot be used with the -P flag.
To remove the device, and all child devices, use the -R option. From the man page for the rmdev command:# lsdev -p fcs3 fcnet3 Defined 07-01-01 Fibre Channel Network Protocol Device fscsi3 Available 07-01-02 FC SCSI I/O Controller Protocol Device
The command to remove adapter fcs3 and all child devices, will be:-R Unconfigures the device and its children. When used with the -d or -S flags, the children are undefined or stopped, respectively.
# rmdev -Rdl fcs3
If you found this useful, here's more on the same topic(s) in our blog:
- Difference between sticky bit and SUID/GUID
- Finding and removing core dumps
- Olson time zone support
- How to restore an image.data file from tape
- Processor speed and more system information
UNIX Health Check delivers software to scan Linux and AIX systems for potential issues. Run our software on your system, and receive a report in just a few minutes. UNIX Health Check is an automated check list. It will report on perfomance, capacity, stability and security issues. It will alert on configurations that can be improved per best practices, or items that should be improved per audit guidelines. A report will be generated in the format you wish, and the report includes the issues discovered and information on how to solve the issues as well.
Interested in learning more?
Interested in learning more?