By the loop, I meant that the tape will be on mount status then get dismounted then mounted again and will be on the âCleanupâ state then repeat.
LVL="DEBUG" PID="3708" TID="3708" MSG="WARNING: In DriveHandler::processMounting(): unexpected previous state/type." tapeDrive="6,2,4" PreviousState="PendingFork" PreviousType="Undetermined" NewState="Mounting" NewType="Archive"
LVL="DEBUG" PID="3708" TID="3708" MSG="Computed new timeout" tapeDrive="6,2,4" PreviousState="PendingFork" PreviousType="Undetermined" NewState="Mounting" NewType="Archive" TimeoutType="StateChange" LastStateChangeTime="2680121" LastHeartBeatTime="-9223372036" LastDataMovementTime="-9223372036" Now="2680121" Timeout="2680721"
LVL="DEBUG" PID="3708" TID="3708" MSG="WARNING: In DriveHandler::processUnmounting(): unexpected previous state/type." tapeDrive="6,2,4" PreviousState="Mounting" PreviousType="Archive" NewState="Unmounting" NewType="Archive"
LVL="INFO" PID="3710" TID="11413" MSG="Opened disk file for read" thread="DiskRead" tapeDrive="6,2,4" tapeVid="J01397" mountId="48755" threadID="9" path="root://131.169.80.62:1094/0000C76BA411EE234CA5BECFB75C01297C8E" actualURL="root://131.169.80.62:1094/0000C76BA411EE234CA5BECFB75C01297C8E" fileId="6029"
LVL="INFO" PID="3710" TID="11402" MSG="Opened disk file for read" thread="DiskRead" tapeDrive="6,2,4" tapeVid="J01397" mountId="48755" threadID="0" path="root://131.169.80.62:1094/000061D09267BEB047269A4DE12C0AE0E977" actualURL="root://131.169.80.62:1094/000061D09267BEB047269A4DE12C0AE0E977" fileId="6030"
LVL="INFO" PID="3710" TID="11415" MSG="Tape mounted for read/write access" thread="TapeWrite" tapeDrive="6,2,4" tapeVid="J01397" mountId="48755" vo="desy" mediaType="3592JE20T" tapePool="test-01" logicalLibrary="ctajaglib" mountType="ArchiveForUser" vendor="IBM" capacityInBytes="20000000000000" drive_Slot="smc1" MCMountTime="3.852839" mode="RW"
LVL="DEBUG" PID="3710" TID="11414" MSG="going to report" thread="Watchdog" tapeDrive="6,2,4" tapeVid="J01397" mountId="48755"
LVL="DEBUG" PID="3708" TID="3708" MSG="Computed new timeout" tapeDrive="6,2,4" TimeoutType="StateChange" LastStateChangeTime="2680121" LastHeartBeatTime="2680136" LastDataMovementTime="-9223372036" Now="2680136" Timeout="2680721"
LVL="DEBUG" PID="3710" TID="11414" MSG="going to report" thread="Watchdog" tapeDrive="6,2,4" tapeVid="J01397" mountId="48755"
LVL="DEBUG" PID="3708" TID="3708" MSG="Computed new timeout" tapeDrive="6,2,4" TimeoutType="StateChange" LastStateChangeTime="2680121" LastHeartBeatTime="2680151" LastDataMovementTime="-9223372036" Now="2680151" Timeout="2680721"
LVL="INFO" PID="3710" TID="11403" MSG="File successfully read from disk" thread="DiskRead" tapeDrive="6,2,4" tapeVid="J01397" mountId="48755" threadID="1" path="root://131.169.80.62:1094/00006B6CE69B2B8040C080FC934F29973BCC" actualURL="root://131.169.80.62:1094/00006B6CE69B2B8040C080FC934F29973BCC" fileId="6021" readWriteTime="33.041737" checksumingTime="0.000000" waitFreeMemoryTime="0.013510" waitDataTime="0.000000" waitReportingTime="0.000000" checkingErrorTime="0.001958" openingTime="0.003474" transferTime="33.060682" totalTime="33.060682" dataVolume="22548578304" globalPayloadTransferSpeedMBps="682.036091" diskPerformanceMBps="682.036091" openRWCloseToTransferTimeRatio="0.999532"
LVL="INFO" PID="3710" TID="11403" MSG="Finishing of DiskReadWorkerThread" thread="DiskRead" tapeDrive="6,2,4" tapeVid="J01397" mountId="48755" threadID="1" threadReadWriteTime="33.041737" threadWaitFreeMemoryTime="0.013510" threadCheckingErrorTime="0.001958" threadOpeningTime="0.003474" threadTransferTime="33.060682" threadTotalTime="33.061327" threadDataVolume="22548578304" threadFileCount="1" threadGlobalPayloadTransferSpeedMBps="682.022785" threadAverageDiskPerformanceMBps="682.036091" threadOpenRWCloseToTransferTimeRatio="0.999532"
LVL="DEBUG" PID="3710" TID="11403" MSG="Will not signal the end to task injector yet" thread="DiskRead" tapeDrive="6,2,4" tapeVid="J01397" mountId="48755" threadID="1" remainingThreads="9"
LVL="DEBUG" PID="3710" TID="11414" MSG="going to report" thread="Watchdog" tapeDrive="6,2,4" tapeVid="J01397" mountId="48755"
LVL="DEBUG" PID="3708" TID="3708" MSG="Computed new timeout" tapeDrive="6,2,4" TimeoutType="StateChange" LastStateChangeTime="2680121" LastHeartBeatTime="2680166" LastDataMovementTime="-9223372036" Now="2680166" Timeout="2680721"
LVL="DEBUG" PID="3710" TID="11414" MSG="going to report" thread="Watchdog" tapeDrive="6,2,4" tapeVid="J01397" mountId="48755"
LVL="DEBUG" PID="3708" TID="3708" MSG="Computed new timeout" tapeDrive="6,2,4" TimeoutType="StateChange" LastStateChangeTime="2680121" LastHeartBeatTime="2680181" LastDataMovementTime="-9223372036" Now="2680181" Timeout="2680721"
LVL="ERROR" PID="3710" TID="11415" MSG="Got timeout or error while waiting for drive to be ready." thread="TapeWrite" tapeDrive="6,2,4" tapeVid="J01397" mountId="48755" vo="desy" mediaType="3592JE20T" tapePool="test-01" logicalLibrary="ctajaglib" mountType="ArchiveForUser" vendor="IBM" capacityInBytes="20000000000000" exceptionMessage="Failed to test unit ready after waiting 60 seconds: SCSI error in testUnitReady: status=0x2 host_status=0 driver_status=0x8: SCSI command failed with status CHECK CONDITION: Sense Information: Not Ready: Medium not present" configuredTapeLoadTimeout="60" tapeLoadTime="60.052331"
LVL="DEBUG" PID="3710" TID="11415" MSG="In MigrationReportPacker::reportDriveStatus(), pushing a report." thread="TapeWrite" tapeDrive="6,2,4" tapeVid="J01397" mountId="48755" type="ReportDriveStatus" Status="CleanUp"
LVL="DEBUG" PID="3710" TID="11417" MSG="In MigrationReportPacker::WorkerThread::run(): Got a new report." thread="ReportPacker" tapeDrive="6,2,4" tapeVid="J01397" mountId="48755" typeId="castor::tape::tapeserver::daemon::MigrationReportPacker::ReportDriveStatus"
LVL="DEBUG" PID="3710" TID="11417" MSG="In MigrationReportPacker::ReportDriveStatus::execute(): reporting drive status." thread="MainThread" tapeDrive="6,2,4" tapeVid="J01397" mountId="48755" status="CleanUp"
longer version of the same here
in this particular case, only this drive was up so the tape wasnât requested anywhere else.
02/04 11:04:06 35855 rmc_srv_mount: RMC92 - mount request by 1000,33 from localhost
02/04 11:04:06 35855 rmc_srv_mount: RMC98 - mount J01397/0 on drive 1
02/04 11:04:10 35855 rmc_srv_mount: returns 0
02/04 11:06:23 35855 rmc_srv_mount: RMC92 - mount request by 1000,33 from localhost
02/04 11:06:23 35855 rmc_srv_mount: RMC98 - mount J01397/0 on drive 1
02/04 11:06:24 35855 rmc_sendrep: smc_mount: Asked for J01397, got reply for J01397
02/04 11:06:24 35855 rmc_sendrep: smc_mount: Location: data transfer element (0x4)
02/04 11:06:24 35855 rmc_sendrep: smc_mount: SR018 - mount of J01397 on drive 1 failed : volume in use
02/04 11:06:24 35855 rmc_srv_mount: returns 2204
mwai