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.
-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.
For example:
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
-R
Unconfigures the device and its children.
When used with the -d or -S flags, the
children are undefined or stopped, respectively.
The command to remove adapter fcs3 and all child devices, will be:
# rmdev -Rdl fcs3



This website is protected by copyright. The material and information on this website may not be sold, duplicated on other websites or in any other forms, incorporated in commercial documents or products, or used for promotional purposes, without the prior approval of AIX Health Check.