Am 26.02.24 um 14:25 schrieb Rob Gerber:
Mixing topics is ok. Better in this case. All the information is in one email thread.

fine

I have read that if you use mt to rewind the tape and then write eof to the tape (end of file), it will fool bacula into thinking that the tape is empty. If you want to wipe the bacula catalog in your postgres server, there should be scripts that do this in /opt/bacula/scripts (default location, maybe different on debian).

The Mt command is something like
mt -f /dev/yourtapedrive rewind
mt -f /dev/yourtapedrive -write eof
Check the command syntax I only vaguely remember them.

Used that already before, yes, thanks

If not clearing bacula database prob need to purge volumes from catalog (or maybe delete). Remember, these commands are dangerous and have sharp edges. After using the Mt command may need to relabel tape.

currently a job seems to hang:

26-Feb 18:33 debian1-sd JobId 34: Warning: mount.c:216 Open of Tape device "HP-Ultrium4" (/dev/nst0) Volume "Vol000007" failed: ERR=tape_dev.c:170 Unable to open device "HP-Ultrium4" (/dev/nst0): ERR=Kein Medium gefunden

26-Feb 18:43 debian1-sd JobId 34: Warning: mount.c:216 Open of Tape device "HP-Ultrium4" (/dev/nst0) Volume "Vol000007" failed: ERR=tape_dev.c:170 Unable to open device "HP-Ultrium4" (/dev/nst0): ERR=Kein Medium gefunden

I don't know why. Tests with "btape" are completely fine.

That Volume seems not to exist on tape but somewhere in the DB or so.

I would expect the software to skip that and look for another usable tape.

Is there a check routine possible *before* starting the job?

It dumps ~120GB data into the spooling area, then detects that the tape isn't there and hangs ... when I stop the job, the spooled data is deleted.

How can I fix that? thanks!



_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to