Hello FreeBSD community, I have been troubled by an issue that I was not able to solve myself so far. I am running a small Bareos backup server with a used MSL4048 tape library with a cartridge autochanger and two connected HP Ultrium 5-SCSI I6RW tape drives on FreeBSD 13.1-p7 (issue was also present in former FreeBSD systems). The system is connected via a Qlogic ISP 2532 FC-HBA.
In order to save power, the MSL tape library is only turned on at days where a tape backup is expected. During the power up the cartridge scanner reads in all available tapes which takes about 5 minutes. This leads to the issue that the tape drives are available but the cartridge changer fails to attach:
When the tape library is already up and running and I (re)-start the system, everything runs fine.
Of course, one solution is to leave the tape library running. The tape library is, however, only used for archive purposes and only needed to archive backups to a 2nd medium every couple of days - so 100% on is in this case wasted power. So the current “fix” is to restart the backup server once the library is up… which is not the optional solution in my opinion. I already tried to rescan / reprobe / reset the SCSI bus via camcontrol(8) but did not have any positive outcome. Could you give me a hint how I could either re-attach the autochanger device while the server is running or give me another hint how I could solve the problem?
Your help is much appreciated, I absolutely love FreeBSD as a server system and have been a happy user for many years - thanks!
Matthias
In order to save power, the MSL tape library is only turned on at days where a tape backup is expected. During the power up the cartridge scanner reads in all available tapes which takes about 5 minutes. This leads to the issue that the tape drives are available but the cartridge changer fails to attach:
Code:
sa0 at isp0 bus 0 scbus0 target 0 lun 0
sa0: <HP Ultrium 5-SCSI I6RW> Removable Sequential Access SPC-4 SCSI device
sa0: Serial Number HU1204LRKW
sa0: 800.000MB/s transfers WWNN 0x50014380272b30e9 WWPN 0x50014380272b30ea PortID 0x1
sa0: Command Queueing enabled
sa1 at isp1 bus 0 scbus1 target 0 lun 0
sa1: <HP Ultrium 5-SCSI I6RW> Removable Sequential Access SPC-4 SCSI device
sa1: Serial Number HU1205LTM5
sa1: 800.000MB/s transfers WWNN 0x50014380272b30ef WWPN 0x50014380272b30f0 PortID 0x1
sa1: Command Queueing enabled
(ch0:isp0:0:0:1): MODE SENSE(6). CDB: 1a 00 1d 00 20 00
(ch0:isp0:0:0:1): SCSI sense: NOT READY asc:4,1 (Logical unit is in process of becoming ready)
(ch0:isp0:0:0:1): fatal error, failed to attach to device
When the tape library is already up and running and I (re)-start the system, everything runs fine.
Code:
Root mount waiting for: CAM
Root mount waiting for: CAM
Root mount waiting for: CAM
ses0 at ahciem0 bus 0 scbus11 target 0 lun 0
ses0: <AHCI SGPIO Enclosure 2.00 0001> SEMB S-E-S 2.00 device
ses0: SEMB SES Device
sa0 at isp0 bus 0 scbus0 target 0 lun 0
sa1 at isp1 bus 0 scbus1 target 0 lun 0
ses0: pass3 in 'Slot 00', SATA Slot: scbus5 target 0
sa1: <HP Ultrium 5-SCSI I6RW> Removable Sequential Access SPC-4 SCSI device
sa1: Serial Number HU1205LTM5
sa1: 800.000MB/s transfers WWNN 0x50014380272b30ef WWPN 0x50014380272b30f0 PortID 0x1
sa1: Command Queueing enabled
sa0: ses0: pass4 in 'Slot 01', SATA Slot: scbus6 target 0
ses0: pass5 in 'Slot 02', SATA Slot: scbus7 target 0
<HP Ultrium 5-SCSI I6RW> Removable Sequential Access SPC-4 SCSI device
sa0: Serial Number HU1204LRKW
sa0: 800.000MB/s transfers WWNN 0x50014380272b30e9 WWPN 0x50014380272b30ea PortID 0x1
sa0: Command Queueing enabled
..
ch0: Serial Number DEC53500DN
ch0: 800.000MB/s transfers WWNN 0x50014380272b30e9 WWPN 0x50014380272b30ea PortID 0x1
ch0: Command Queueing enabled
ch0: 48 slots, 2 drives, 1 picker, 0 portals
Of course, one solution is to leave the tape library running. The tape library is, however, only used for archive purposes and only needed to archive backups to a 2nd medium every couple of days - so 100% on is in this case wasted power. So the current “fix” is to restart the backup server once the library is up… which is not the optional solution in my opinion. I already tried to rescan / reprobe / reset the SCSI bus via camcontrol(8) but did not have any positive outcome. Could you give me a hint how I could either re-attach the autochanger device while the server is running or give me another hint how I could solve the problem?
Your help is much appreciated, I absolutely love FreeBSD as a server system and have been a happy user for many years - thanks!
Matthias