IBM Support

Removing a Tape Drive Using the ODM

Question & Answer


Question

Other means of removing a tape drive have failed.

Answer

Removing a Tape Drive Using the ODM


NOTE: This procedure should only be used when all other means of removing a tape drive have failed.

Environment

All AIX Versions
  1. Back up the ODM by entering the following commands:
     cd /etc/objrepos
     mkdir bak
     cp Cu* bak
    
  2. Set the ODM location:
     export ODMDIR=/etc/objrepos
    
  3. Delete the device:
     odmdelete -q name=rmt# -o CuAt
     odmdelete -q name=rmt# -o CuDv
     odmdelete -q value3=rmt# -o CuDvDr
     odmdelete -q name=rmt# -o CuVPD
    
    (Where # is the tape drive you want to remove)

  4. Update your boot image to reflect the changes:
     bosboot -ad /dev/hdisk#
     or
     savebase
    
  5. (OPTIONAL) Remove the device for active kernel, and reboot your system:
     shutdown -Fr
    

[{"Product":{"code":"SWG10","label":"AIX"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Attached devices","Platform":[{"code":"PF002","label":"AIX"}],"Version":"5.3;5.2;5.1;4.3","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Historical Number

isg1pTechnote0562

Document Information

Modified date:
10 December 2019

UID

isg3T1000337