I figured out how to create dummy (non-existent but defined) disk devices on AIX. I think the procedure should work for different device types as well where the parent has connection locations and the device driver's define method supports the procedure at all. For example, sysplanar0 doesn't have values for connections, even if it's the parent of proc*, mem0 and bus devices, among others.
SAS disk
Determine the device class, subclass and type, and the parent of the device you need to create.
# lsdev -l hdisk0 -F class,subclass,type,parentdisk,sas,scsd,sas0List valid connection values for the parent device
# lsconn -p sas0 -F connwheresasCreate device (all flags are mandatory)
# mkdev -l hdisk100 -c disk -s sas -t scsd -p sas0 -w sas -dhdisk100 DefinedUltra SCSI (don't ask me why I chose 9,0)
# lsdev -l hdisk0 -F class,subclass,type,parentdisk,scsi,scsd,scsi0 # lsconn -p scsi00,0 scsi0,1 scsi0,2 scsi0,3 scsi0,4 scsi0,5 scsi0,6 scsi0,7 scsi0,8 scsi0,9 scsi...# mkdev -l hdisk4 -c disk -s scsi -t scsd -p scsi0 -w 9,0 -dhdisk4 DefinedEMC LUN via physical FC adapter
# lsdev -l hdisk2 -F class,subclass,type,parentdisk,fcp,MSYMM_VRAID,fscsi2# lsconn -p fscsi2 -F connwhere<empty>Here I have no idea what the connection location should be.
Some of the error messages
Invalid parent
Method error (/etc/methods/define): 0514-025 Cannot perform the requested function because the parent of the specified device does not exist.Existing device
Method error (/etc/methods/define): 0514-013 Logical name is required.Without the -w flag
Method error (/etc/methods/define): 0514-015 Parent or connection required.