On 11/01/17 15:01, Alan Brown wrote: > On 11/01/17 05:16, Charles wrote: >> >> According to both the man pages and experimentation, Debian Jessie's >> mt and mtx do not support an unlock command. > > Whilst other debian versions do > > # mt --version > mt-st v. 1.3 > default tape device: '/dev/tape' > > > lock (SCSI tapes) Lock the tape drive door. > > unlock (SCSI tapes) Unlock the tape drive door. > > > You might want to check the version of MT you have installed. > > > (mt -f /dev/nst0 lock) > > Note that lock/unlock will _only_ work if there's a tape in the drive.
Thanks Alan root@backup2.iciti:~# mt -f /dev/st0 lock mt: invalid argument `lock' for `operation' Valid arguments are: - `eof', `weof' - `fsf' - `bsf' - `fsr' - `bsr' - `rewind' - `offline', `rewoffl', `eject' - `status' - `bsfm' - `eom' - `retension' - `erase' - `asf' - `fsfm' - `seek' root@backup2.iciti:~# mt --version mt (GNU cpio) 2.11 ... To be thorough, the bacula-sd init script should not only run the mt rewoffl and mtx unload commands; it should also error trap their output. I suspect that, when our autoloader and backup server are powered up at the same time, the autoloader does not finish initialising before the backup server runs the bacula-sd init script. In which case the mt and mtx commands are ineffective and SD finds a tape in the drive resulting in the tape getting Bacula status Error. More after I have tested error trapping the mt rewoffl and mtx unload commands. Best Charles ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users