AIX

AIX

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

 View Only
Expand all | Collapse all

Force delete of a device referencing itself!!!!

  • 1.  Force delete of a device referencing itself!!!!

    Posted Wed September 18, 2013 07:18 AM

    Originally posted by: robinsguk


    AIX 6.1

     

    I've managed to do a stupid thing.

     

    I created an etherchannel device, ent13, and meant to add ent1 and ent3 to the list of adapters. Instead I added ent and ent13. So, I've manged to add the ethernchannel device to itself!!!!!

     

    I'm now unable to delete the etherchannel device as it's busy. I can remove ent1 but it won't let me remove ent13.

     

    Can I force a delete of the device?

     

     

    Thanks

     

    Glenn



  • 2.  Re: Force delete of a device referencing itself!!!!

    Posted Wed September 18, 2013 07:36 AM

    Originally posted by: LaurentOliva


    odmdelete ?



  • 3.  Re: Force delete of a device referencing itself!!!!

    Posted Wed September 18, 2013 08:32 AM

    Originally posted by: robinsguk


    I've done the odmdelete and it's gone, as expected.

     

    Unfortunately when I try to recreate the device I get:

     

    Method error (/usr/lib/methods/cfgech):

    0514-040 Error initializing a device into the kernel

     



  • 4.  Re: Force delete of a device referencing itself!!!!

    Posted Wed September 18, 2013 08:51 AM

    Originally posted by: LaurentOliva


    why don't unloading free kernel extensions ?

     

    http://pic.dhe.ibm.com/infocenter/aix/v7r1/index.jsp?topic=%2Fcom.ibm.aix.kernelext%2Fdoc%2Fkernextc%2Fkernextc02.htm

     

    Compare the output of genkld before and after using the slibclean command.

     

     

     



  • 5.  Re: Force delete of a device referencing itself!!!!

    Posted Wed September 18, 2013 08:10 AM

    Originally posted by: The_Doctor


    Have never personally tried this so use at your own risk, but this might work....

    --> lsattr -El ent13 ...... and confirm the list of adapter_names

    --> chdev -l ent13 -a "adapter_names=___"   ...... and substitute a new set of valid names.  If this fails then repeat with -p as in:

    --> chdev -l ent13 -a "adapter_names=___"   -p ..... and reboot

    If there's still doubt...... you should now be able to delete the Etherchannel and re-build it normally.

     

     

     

     



  • 6.  Re: Force delete of a device referencing itself!!!!

    Posted Wed September 18, 2013 08:55 AM

    Originally posted by: LaurentOliva


    to administer etherchannel, the recommended command is /usr/lib/methods/ethchan_config.

    Any changes made by chdev command onto an etherchannel are not taken account immediately.