I want to re-catalog a tape that's been accidentally deleted from the bacula database (Postgres), however the tape hasn't been overwritten. I've looked at the problem at it seems as though I should use bacula's bscan utility.
I've got a bacula 5.2.10 director (bacula-dir) running under RedHat Linux 5.8 on one server - let's call this serverA and the bacula-sd running on another server -- let's call this ServerB that has the tape drive attached to it.
From ServerA I issue the command at the Linux prompt
#bscan -s -m -c bacula-sd.conf -v -V My_Tape_Vol01 /dev/nst0
and the following is displayed.
#bscan: butil.c:287 Using device: "/dev/nst0" for reading.
16-Sep 18:19 bscan JobId 0: Warning: acquire.c:239 Read open device "TapeStorage" (/dev/nst0) Volume "My_Tape_Vol01" failed: ERR=dev.c:513 Unable to open device "TapeStorage" (/dev/nst0): ERR=No such file or directory
Mount Volume "My_Tape_Vol01" on device "TapeStorage" (/dev/nst0) and press return when ready:
The above message is obvious as the Tape drive isn't attached to /dev/nst0 on ServerA
My Question is: How can I get bscan on ServerA to 'see' the tape drive on ServerB?