unforgiven rmdev - Aix

This is a discussion on unforgiven rmdev - Aix ; Hello, In short words, I cannot remove/reconfigure FC adapter. Story was as below. I had some troubles with FC connection - seems that cabling was done in wrong way; as an result I had status: ***** 1. I cannot see ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: unforgiven rmdev

  1. unforgiven rmdev

    Hello,

    In short words, I cannot remove/reconfigure FC adapter. Story was as
    below.

    I had some troubles with FC connection - seems that cabling was
    done in wrong way; as an result I had status:

    *****

    1. I cannot see second path for fscsi3:

    root@server# powermt display paths | head -15
    Symm logical device count=101
    ================================================== ============================
    ----- Host Bus Adapters --------- ------ Storage System ----- - I/O Paths -
    ### HW Path ID Interface Total Dead
    ================================================== ============================
    0 fscsi0 000290103544 FA 4bA 35 0
    0 fscsi0 000290103544 FA 4aA 66 0
    1 fscsi1 000290103544 FA 4aA 66 0
    1 fscsi1 000290103544 FA 4bA 35 0
    2 fscsi2 000290103544 FA 13aB 66 0
    2 fscsi2 000290103544 FA 13bB 35 0
    3 fscsi3 000290103544 FA 13bB 1 0

    *****

    2. I tried to remove fscsi3:

    root@fdcgtslnaad02c# rmdev -Rdl fscsi3
    Method error (/etc/methods/ucfgdevice):
    0514-062 Cannot perform the requested function because the
    specified device is busy.

    *****

    3. Tried to search for reasons why it may be busy:

    root@fdcgtslnaad02c# lsdev -Cc adapter | grep fcs3
    fcs3 Available 0A-08 FC Adapter

    root@fdcgtslnaad02c# lsdev | grep 0A-08
    fcnet3 Defined 0A-08-01 Fibre Channel Network [..]
    fcs3 Available 0A-08 FC Adapter
    fscsi3 Available 0A-08-02 FC SCSI I/O Controller [..]
    hdisk207 Available 0A-08-02 EMC Symmetrix FCP RDF2 Raid5
    [..]
    hdisk307 Available 0A-08-02 EMC Symmetrix FCP RDF2 Raid5

    *****

    4. I tried also to remove hdisks one by one - but in all cases result
    was same as on the example below:

    root@fdcgtslnaad02c# rmdev -l hdisk307 -d
    Method error (/etc/methods/ucfgdevice):
    0514-062 Cannot perform the requested function because the
    specified device is busy.

    root@fdcgtslnaad02c# lspv hdisk307
    0516-320 : Physical volume hdisk307 is not assigned to
    a volume group.

    *****

    5. I had a hope that powermt may somehow 'clear' configuration, but

    root@fdcgtslnaad02c# powermt check

    did not return any errors, and outut from powermt display paths
    remains same (see point 1)

    *****

    So, simple questions:
    - what may be the reason I cannot remove fcs3 (and its child devices)?
    - how to remove them?

    help!

    regards
    t


  2. Re: unforgiven rmdev

    Most probable reason this could happen is hdisk307 is kept open by
    some application or being used by other application other
    than LVM.
    you can check ps -ef | grep hdisk307 and see if you see any
    application using this hdisk.

    u can also try fuser to see if any process has this device open.
    stopping these should close the device.

    If the device is open then rmdev will fail with busy status.

    regards
    sudhir
    On Jul 14, 1:26*pm, ser...@somewhere.on.il.pw.edu.pl wrote:
    > Hello,
    >
    > In short words, I cannot remove/reconfigure FC adapter. Story was as
    > below.
    >
    > I had some troubles with FC connection - seems that cabling was
    > done in wrong way; as an result I had status:
    >
    > *****
    >
    > 1. I cannot see second path for fscsi3:
    >
    > root@server# powermt display paths | head -15
    > Symm logical device count=101
    > ================================================== =========================*===
    > ----- Host Bus Adapters --------- ------ Storage System ----- * *- I/O Paths -
    > ### *HW Path * * * * * * * * * * * * * ID ** * * *Interface * * Total * *Dead
    > ================================================== =========================*===
    > * *0 fscsi0 * * * * * * * * * * * 000290103544 * * *FA *4bA * * * * 35 * * * 0
    > * *0 fscsi0 * * * * * * * * * * * 000290103544 * * *FA *4aA * * * * 66 * * * 0
    > * *1 fscsi1 * * * * * * * * * * * 000290103544 * * *FA *4aA * * * * 66 * * * 0
    > * *1 fscsi1 * * * * * * * * * * * 000290103544 * * *FA *4bA * * * * 35 * * * 0
    > * *2 fscsi2 * * * * * * * * * * * 000290103544 * * *FA 13aB * * * * 66 * * * 0
    > * *2 fscsi2 * * * * * * * * * * * 000290103544 * * *FA 13bB * * * * 35 * * * 0
    > * *3 fscsi3 * * * * * * * * * * * 000290103544 * * *FA 13bB * * * * *1 * * * 0
    >
    > *****
    >
    > 2. I tried to remove fscsi3:
    >
    > root@fdcgtslnaad02c# rmdev -Rdl fscsi3
    > Method error (/etc/methods/ucfgdevice):
    > * * * * 0514-062 Cannot perform the requested function because the
    > * * * * * * * * *specified device is busy.
    >
    > *****
    >
    > 3. Tried to search for reasons why it may be busy:
    >
    > root@fdcgtslnaad02c# lsdev -Cc adapter | grep fcs3
    > fcs3 *Available 0A-08 FC Adapter
    >
    > root@fdcgtslnaad02c# lsdev | grep 0A-08
    > fcnet3 * * * *Defined * 0A-08-01 * * *Fibre Channel Network [..]
    > fcs3 * * * * *Available 0A-08 * * * * FC Adapter
    > fscsi3 * * * *Available 0A-08-02 * * *FC SCSI I/O Controller [..]
    > hdisk207 * * *Available 0A-08-02 * * *EMC Symmetrix FCP RDF2 Raid5
    > [..]
    > hdisk307 * * *Available 0A-08-02 * * *EMC Symmetrix FCP RDF2 Raid5
    >
    > *****
    >
    > 4. I tried also to remove hdisks one by one - but in all cases result
    > was same as on the example below:
    >
    > root@fdcgtslnaad02c# rmdev -l hdisk307 -d
    > Method error (/etc/methods/ucfgdevice):
    > * * * * 0514-062 Cannot perform the requested function because the
    > * * * * * * * * *specified device is busy.
    >
    > root@fdcgtslnaad02c# lspv hdisk307
    > 0516-320 : Physical volume hdisk307 is not assigned to
    > * * * * a volume group.
    >
    > *****
    >
    > 5. I had a hope that powermt may somehow 'clear' configuration, but
    >
    > root@fdcgtslnaad02c# powermt check
    >
    > did not return any errors, and outut from powermt display paths
    > remains same (see point 1)
    >
    > *****
    >
    > So, simple questions:
    > - what may be the reason I cannot remove fcs3 (and its child devices)?
    > - how to remove them?
    >
    > help!
    >
    > regards
    > t



  3. Re: unforgiven rmdev

    On Jul 14, 5:21 am, sudhir wrote:
    > Most probable reason this could happen is hdisk307 is kept open by
    > some application or being used by other application other
    > than LVM.
    > you can check ps -ef | grep hdisk307 and see if you see any
    > application using this hdisk.
    >
    > u can also try fuser to see if any process has this device open.
    > stopping these should close the device.
    >
    > If the device is open then rmdev will fail with busy status.
    >
    > regards
    > sudhir
    > On Jul 14, 1:26 pm, ser...@somewhere.on.il.pw.edu.pl wrote:
    >
    > > Hello,

    >
    > > In short words, I cannot remove/reconfigure FC adapter. Story was as
    > > below.

    >
    > > I had some troubles with FC connection - seems that cabling was
    > > done in wrong way; as an result I had status:

    >
    > > *****

    >
    > > 1. I cannot see second path for fscsi3:

    >
    > > root@server# powermt display paths | head -15
    > > Symm logical device count=101
    > > ================================================== =========================*===
    > > ----- Host Bus Adapters --------- ------ Storage System ----- - I/O Paths -
    > > ### HW Path ID Interface Total Dead
    > > ================================================== =========================*===
    > > 0 fscsi0 000290103544 FA 4bA 35 0
    > > 0 fscsi0 000290103544 FA 4aA 66 0
    > > 1 fscsi1 000290103544 FA 4aA 66 0
    > > 1 fscsi1 000290103544 FA 4bA 35 0
    > > 2 fscsi2 000290103544 FA 13aB 66 0
    > > 2 fscsi2 000290103544 FA 13bB 35 0
    > > 3 fscsi3 000290103544 FA 13bB 1 0

    >
    > > *****

    >
    > > 2. I tried to remove fscsi3:

    >
    > > root@fdcgtslnaad02c# rmdev -Rdl fscsi3
    > > Method error (/etc/methods/ucfgdevice):
    > > 0514-062 Cannot perform the requested function because the
    > > specified device is busy.

    >
    > > *****

    >
    > > 3. Tried to search for reasons why it may be busy:

    >
    > > root@fdcgtslnaad02c# lsdev -Cc adapter | grep fcs3
    > > fcs3 Available 0A-08 FC Adapter

    >
    > > root@fdcgtslnaad02c# lsdev | grep 0A-08
    > > fcnet3 Defined 0A-08-01 Fibre Channel Network [..]
    > > fcs3 Available 0A-08 FC Adapter
    > > fscsi3 Available 0A-08-02 FC SCSI I/O Controller [..]
    > > hdisk207 Available 0A-08-02 EMC Symmetrix FCP RDF2 Raid5
    > > [..]
    > > hdisk307 Available 0A-08-02 EMC Symmetrix FCP RDF2 Raid5

    >
    > > *****

    >
    > > 4. I tried also to remove hdisks one by one - but in all cases result
    > > was same as on the example below:

    >
    > > root@fdcgtslnaad02c# rmdev -l hdisk307 -d
    > > Method error (/etc/methods/ucfgdevice):
    > > 0514-062 Cannot perform the requested function because the
    > > specified device is busy.

    >
    > > root@fdcgtslnaad02c# lspv hdisk307
    > > 0516-320 : Physical volume hdisk307 is not assigned to
    > > a volume group.

    >
    > > *****

    >
    > > 5. I had a hope that powermt may somehow 'clear' configuration, but

    >
    > > root@fdcgtslnaad02c# powermt check

    >
    > > did not return any errors, and outut from powermt display paths
    > > remains same (see point 1)

    >
    > > *****

    >
    > > So, simple questions:
    > > - what may be the reason I cannot remove fcs3 (and its child devices)?
    > > - how to remove them?

    >
    > > help!

    >
    > > regards
    > > t


    powerpath is holding it open , do :
    powermt remove hba=3
    then:
    rmdev -dRl fscsi3

    and you will achieve satisfaction

+ Reply to Thread