While IT was performing fiber switch upgrade, they moved the cable that goes from the AIX box to the TAN switch. Windows servers needed to be rebooted in order to rescan the bus and re-recognize the tape jukebox, but AIX refused to accept the new configuration. First I tried cfgmgr but nothing happened. Rebooting the server also didn’t help. The only solution was to unconfigure the fcs adapter. Let’s see how the tape config looks like:
lsdev -Cc tape rmt0 Available 2U-08-02 Other FC SCSI Tape Drive rmt1 Available 2U-08-02 Other FC SCSI Tape Drive rmt2 Available 2U-08-02 Other FC SCSI Tape Drive
Once I got the location, I can search for the adapter:
lsdev -C | grep 2U-08 fcnet2 Defined 2U-08-01 Fibre Channel Network Protocol Device fcs2 Available 2U-08 FC Adapter fscsi2 Available 2U-08-02 FC SCSI I/O Controller Protocol Device rmt0 Available 2U-08-02 Other FC SCSI Tape Drive rmt1 Available 2U-08-02 Other FC SCSI Tape Drive rmt2 Available 2U-08-02 Other FC SCSI Tape Drive
Luckily for me, I don’t have any hard disks attached to fcs2 so there is no need to vary off VGs. I tried to remove the fcs2 and all “children” devices but I was getting device busy error.
rmdev - Rdl fcs2
The solution is to unplug the fiber cable from port 2 and reboot the server. Once the server was back, I was able to remove the devices with rmdev. I plugged the cable back, waited 1-2 minutes for AIX to sync and then run cfgmgr again. After 2-3 minutes I got my tapes back and Legato NetWorker was able to recognize them with inquire command.