Bacula-users

Re: [Bacula-users] bscan device or resource busy

2010-08-17 12:54:44
Subject: Re: [Bacula-users] bscan device or resource busy
From: John Drescher <drescherjm AT gmail DOT com>
To: Dermot Beirne <dermot.beirne AT dpd DOT ie>
Date: Tue, 17 Aug 2010 12:52:17 -0400
On Tue, Aug 17, 2010 at 11:31 AM, Dermot Beirne <dermot.beirne AT dpd DOT 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:
>
>
> bacula@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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>