AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  rendev ends in a problem with the devices

    Posted Wed September 13, 2023 08:48 PM

    Hi experts..

     

    Recently I used rendev command for rename some hdisks for another ones.

    After that, the devices become inaccessible. The command drop me the following message:

     

    # rendev -l hdisk9 -n Data02_E

    Method error (/etc/method/define)

             0514-040 Error initializing a device into the kernel

     

    # lsdev -Cc disk

    Data02_E     Defined   C5-T1-01 EMC Symmetrix FCP MPIO VG3R

    hdisk5       Available C5-T1-01 EMC Symmetrix FCP MPIO VG3R

     

    Other EMC disks with LVM Volume Groups structures work OK coming from the same vFC paths.

     

    It was just after issued the rendev when everything goes wrong..

     

    I get noticed that /dev/files for those devices were deleted.

     

    #cfgmgr

    Method error (/etc/methods/cfgscsidisk -l Data02_E    ):

            0514-040 Error initializing a device into the kernel.

     

    It is not possible to do anything with those new devices.

     

    #rmdev -dl Data02_E

    rmdev: 0514-519 The following device was not found in the customized

            device configuration database:

            name = 'Data02_E'

     

    Any comment or troubleshooting to try ?

     

    PD.        AIX is 7.2.3.3

     

    Regards

     

    Luis Rojas



  • 2.  RE: rendev ends in a problem with the devices

    Posted Wed September 13, 2023 09:31 PM

    Sorry experts...

     

    The problem was resolved.

    It was due a bug with rendev command ... extra blind characters were added to new name, so AIX couldn't handle it.

     

    # rendev -l hdisk9 -n Data02_Esss

     

    Thanks

     

    Luis Rojas

     

     






  • 3.  RE: rendev ends in a problem with the devices

    Posted Thu September 14, 2023 04:11 AM
    Luis,

    I would strongly advise against using adhoc device names or any
    non-alphanumeric characters with rendev and disks.

    Renaming hdisk1 to hdisk999 is OK, but This_IS-^Not===a!!diskname.

    Thanks.

    On Thu, Sep 14, 2023 at 01:31:28AM +0000, Luis Alberto Rojas Kramer via IBM TechXchange Community wrote:
    > Sorry experts...
    >
    > The problem was resolved.
    > It was due a bug with rendev command ... extra blind characters were added to new name, so AIX couldn't handle it.
    >
    > # rendev -l hdisk9 -n Data02_Esss
    >
    > Thanks
    >
    > Luis Rojas
    >
    >
    >
    >
    > -------------------------------------------
    > Original Message:
    > Sent: 9/13/2023 8:48:00 PM
    > From: Luis Alberto Rojas Kramer
    > Subject: rendev ends in a problem with the devices
    >
    > Hi experts..
    >
    > Recently I used rendev command for rename some hdisks for another ones.
    > After that, the devices become inaccessible. The command drop me the following message:
    >
    > # rendev -l hdisk9 -n Data02_E
    > Method error (/etc/method/define)
    > 0514-040 Error initializing a device into the kernel
    >
    > # lsdev -Cc disk
    > Data02_E Defined C5-T1-01 EMC Symmetrix FCP MPIO VG3R
    > hdisk5 Available C5-T1-01 EMC Symmetrix FCP MPIO VG3R
    >
    > Other EMC disks with LVM Volume Groups structures work OK coming from the same vFC paths.
    >
    > It was just after issued the rendev when everything goes wrong..
    >
    > I get noticed that /dev/files for those devices were deleted.
    >
    > #cfgmgr
    > Method error (/etc/methods/cfgscsidisk -l Data02_E ):
    > 0514-040 Error initializing a device into the kernel.
    >
    > It is not possible to do anything with those new devices.
    >
    > #rmdev -dl Data02_E
    > rmdev: 0514-519 The following device was not found in the customized
    > device configuration database:
    > name = 'Data02_E'
    >
    > Any comment or troubleshooting to try ?
    >
    > PD. AIX is 7.2.3.3
    >
    > Regards
    >
    > Luis Rojas
    >
    >
    > Reply to Sender : https://community.ibm.com/community/user/eGroups/PostReply?GroupId=6049&MID=380973&SenderKey=ee1f4052-5c82-4fa3-b481-9764871598db
    >
    > Reply to Discussion : https://community.ibm.com/community/user/eGroups/PostReply?GroupId=6049&MID=380973
    >
    >
    >
    > You are subscribed to "AIX" as Russell.Adams@AdamsSystems.nl. To change your subscriptions, go to http://community.ibm.com/community/user/preferences?section=Subscriptions. To unsubscribe from this community discussion, go to http://community.ibm.com/HigherLogic/eGroups/Unsubscribe.aspx?UserKey=c23dfccc-9910-40ae-beeb-fdcbced5bf1f&sKey=KeyRemoved&GroupKey=7b554d78-d4dc-417a-b4dc-017e309e5c91.


    ------------------------------------------------------------------
    Russell Adams Russell.Adams@AdamsSystems.nl
    Principal Consultant Adams Systems Consultancy
    https://adamssystems.nl/




  • 4.  RE: rendev ends in a problem with the devices

    Posted Thu September 14, 2023 05:30 AM

    Also, some software that wants to access disks directly is expecting the device name to start with "hdisk"...  Found out after renaming all the RAC disks at a customer...

    Sufice to say that we were not amused.



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------