mkdev returns 1 as exit code without changing its state from Define and making available - Aix

This is a discussion on mkdev returns 1 as exit code without changing its state from Define and making available - Aix ; Hi, mkdev returns 1 as exit code without changing its state from Define and making available a device with the given device class (-c Class flag), type (-t Type flag), subclass (-s Subclass flag), connection location (-w ConnectionLocation flag), and ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: mkdev returns 1 as exit code without changing its state from Define and making available

  1. mkdev returns 1 as exit code without changing its state from Define and making available

    Hi,

    mkdev returns 1 as exit code without changing its state from
    Define
    and making available a device with the given device class (-c Class
    flag),
    type (-t Type flag), subclass (-s Subclass flag), connection location
    (-w ConnectionLocation flag), and the device logical name of the parent
    (-p ParentName flag)

    what i have tried was..

    # rmdev -dl ent1
    ent1 deleted

    # mkdev -c adapter -s pci -t 14106902 -w 32 -p pci6
    Method error (/usr/lib/methods/define_rspc):
    0514-022 The specified connection is not valid.


    Can any one trace this?

    Thanks


  2. Re: mkdev returns 1 as exit code without changing its state from Define and making available

    honestly, i have no idea why you want to create a device manually
    instead of running cfgmgr to let system recognize new changes. but i
    did do the same thing as you.

    i had one disk device in fastT and i needed to change the hdiskX to
    hdiskY. so, i ran command lsattr to check the parent and class first
    and then used command mkdev to creat the device manully.
    example:
    lsdev -Cl hdisk5 -F "parent class subclass type connwhere" -H

    mkdev -p A -c B -s C -t D -w E -l F


    good luck,

    Frank

    venky wrote:
    > Hi,
    >
    > mkdev returns 1 as exit code without changing its state from
    > Define
    > and making available a device with the given device class (-c Class
    > flag),
    > type (-t Type flag), subclass (-s Subclass flag), connection location
    > (-w ConnectionLocation flag), and the device logical name of the parent
    > (-p ParentName flag)
    >
    > what i have tried was..
    >
    > # rmdev -dl ent1
    > ent1 deleted
    >
    > # mkdev -c adapter -s pci -t 14106902 -w 32 -p pci6
    > Method error (/usr/lib/methods/define_rspc):
    > 0514-022 The specified connection is not valid.
    >
    >
    > Can any one trace this?
    >
    > Thanks



+ Reply to Thread