Hi, I tried the mtx-changer script to load the volume,and bscan is working away now.
Thanks for the help. Dermot. On 17 August 2010 22:30, Dermot Beirne <dermot.bei...@dpd.ie> wrote: > Hi John, > Thanks for the very quick reply. I did actually try that, but i was > expecting bscan to then request the autochanger to mount it itself. > > When i umounted it in bacula, bscan requested me to mount it manually. > Did you just use your autoloader buttons to manually mount it from > the slot to the drive, or do i need to use something else (mtx?) to > mount it outside of bacula for bscan to see it? > > Thanks. > Dermot. > > > > On 17 August 2010 17:52, John Drescher <dresche...@gmail.com> wrote: >> On Tue, Aug 17, 2010 at 11:31 AM, Dermot Beirne <dermot.bei...@dpd.ie> wrote: >>> Hi, >>> I'm trying to repopulate catalogue with tapes that appear to have >>> their records pruned. >>> >>> When using bscan, I'm getting the following output: >>> >>> >>> bac...@ho-bksrv-11139:/usr/local/bacula/bin$ sudo ./bscan -V 000046L4 >>> -v -s -m -S -c /usr/local/bacula/bin/bacula-sd.conf /dev/nst0 >>> [sudo] password for bacula: >>> bscan: butil.c:282 Using device: "/dev/nst0" for reading. >>> 17-Aug 16:15 bscan JobId 0: Invalid slot=0 defined in catalog for >>> Volume "000046L4" on "LTO-4" (/dev/nst0). Manual load may be required. >>> 17-Aug 16:15 bscan JobId 0: 3301 Issuing autochanger "loaded? drive 0" >>> command. >>> 17-Aug 16:15 bscan JobId 0: 3302 Autochanger "loaded? drive 0", result >>> is Slot 3. >>> 17-Aug 16:20 bscan JobId 0: Warning: acquire.c:221 Read open device >>> "LTO-4" (/dev/nst0) Volume "000046L4" failed: ERR=dev.c:474 Unable to >>> open device "LTO-4" (/dev/nst0): ERR=Device or resource busy >>> >>> 17-Aug 16:20 bscan JobId 0: Invalid slot=0 defined in catalog for >>> Volume "000046L4" on "LTO-4" (/dev/nst0). Manual load may be required. >>> Mount Volume "000046L4" on device "LTO-4" (/dev/nst0) and press return >>> when ready: >>> >>> >>> The volume is loaded in the drive, as shown here: >>> >>> Device status: >>> Autochanger "Dell-PV124T" with devices: >>> "LTO-4" (/dev/nst0) >>> Device "FileStorage" (/disk-backup) is not open. >>> Device "Daily" (/disk-backup/Daily) is not open. >>> Device "Weekly" (/disk-backup/Weekly) is not open. >>> Device "Monthly" (/disk-backup/Monthly) is not open. >>> Device "Yearly" (/disk-backup/Yearly) is not open. >>> Device "LTO-4" (/dev/nst0) is mounted with: >>> Volume: 000046L4 >>> Pool: Daily-Tape-Pool >>> Media type: LTO-4 >>> Slot 3 is loaded in drive 0. >>> Total Bytes Read=129,024 Blocks Read=2 Bytes/block=64,512 >>> Positioned at File=0 Block=0 >>> ==== >>> >>> Used Volume status: >>> 000046L4 on device "LTO-4" (/dev/nst0) >>> Reader=0 writers=0 devres=0 volinuse=0 >>> ==== >>> >>> >>> Does anyone know how to get around the error? >>> >> >> You need to unmount it in bacula to use bscan. >> >> John >> >> > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users