User Tools

Site Tools


aix:aix_drivers_inuse

Which drivers are in use

# lsdev -C -H -S a -F 'name class subclass type'
ent0 adapter pciex e4148a169304
fcs0 adapter pciex df1000e21410f10
....

To check which version of driver / package for adapter FC df1000e21410f10:

# lslpp -Lc | grep df1000e21410f10

Check the deult settings for a specific device, here the previous FC adapter

# odmget -q uniquetype="adapter/pciex/df1000e21410f10" PdAt 
PdAt:
        uniquetype = "adapter/pciex/df1000e21410f10"
        attribute = "max_xfer_size"
        deflt = "0x100000"
        values = "0x100000,0x200000,0x400000,0x800000,0x1000000"
        width = ""
        type = "D"
        generic = "DU"
        rep = "nl"
        nls_index = 7

PdAt:
        uniquetype = "adapter/pciex/df1000e21410f10"
        attribute = "num_cmd_elems"
        deflt = "1024"
        values = "200-4096,1"
        width = ""
        type = "R"
        generic = "DU"
        rep = "nr"
        nls_index = 6
...

You can for example update the default definition for num_cmd_elems, and set a value in the range “200-4096”, using the chdef cmd, without directly edit ODM database

# chdef -a num_cmd_elems=4096 -c adapter -s pciex -t df1000e21410f10

Find a parent or child of a device

How to find the parent or child device in AIX?

To find out the Parent device (lsdev -l <device name> -F parent):

# lsdev -l hdisk0 -F parent
sas0
# lsdev -l sas0 -F parent
sissas0

To find out the Child device (lsdev -p <device name>):

# lsdev -p sas0
hdisk0   Available 00-00-00    SAS Disk Drive
ses0     Available 00-00-00    SAS Enclosure Services Device
ses1     Available 00-00-00    SAS Enclosure Services Device
sfwcomm2 Available 00-00-00-FF SAS Storage Framework Comm
aix/aix_drivers_inuse.txt · Last modified: 2022/05/17 15:11 by manu