Bacula-users

Re: [Bacula-users] labeled volume doesnt exist in db.

2010-08-06 14:46:30
Subject: Re: [Bacula-users] labeled volume doesnt exist in db.
From: "Jeremiah D. Jester" <jjest AT u.washington DOT edu>
To: "Jeremiah D. Jester" <jjest AT u.washington DOT edu>, John Drescher <drescherjm AT gmail DOT com>, bacula-users <Bacula-users AT lists.sourceforge DOT net>
Date: Fri, 6 Aug 2010 11:42:01 -0700
John,

It looks like I have to stop bacula-sd to use btape. Unfortunately, that kills 
the backup job in the drive that is currently in process. Anyway to avoid kill 
this and still using the bscan command?

JJ


[root@monk bacula]# ./bin/bscan -V 000087 -v -s -m -c bacula-sd.conf /dev/nst1
[root@monk bacula]# mt -f /dev/nst1 rewind
/dev/nst1: Device or resource busy
[root@monk bacula]# /etc/init.d/bacula-sd status
bacula-sd (pid 20756) is running...
[root@monk bacula]# /etc/init.d/bacula-sd stop
Stopping Bacula Storage services:                          [  OK  ]

-----Original Message-----
From: Jeremiah D. Jester [mailto:jjest AT u.washington DOT edu] 
Sent: Friday, August 06, 2010 11:02 AM
To: John Drescher; bacula-users
Subject: Re: [Bacula-users] labeled volume doesnt exist in db.

That worked. I just need to remember this trick for when it happens next time. 
Thanks John!

JJ

-----Original Message-----
From: John Drescher [mailto:drescherjm AT gmail DOT com] 
Sent: Thursday, August 05, 2010 3:22 PM
To: Jeremiah D. Jester; bacula-users
Subject: Re: [Bacula-users] labeled volume doesnt exist in db.

2010/8/5 Jeremiah D. Jester <jjest AT u.washington DOT edu>:
> I'm having problems labeling a couple new volumes. I tried entering 'label
> barcodes', which works on most tapes but I have several it that it doesn't
> return a status, pool or media type for.  See volume '000107' that I singled
> out below.
>
>
>
> I then try to 'label' the volume but bacula complains that it is already
> labeled. When I attempt to change the volume status I get a sql error
> stating that no volume exists.
>
>
>
> Does anyone know what is going on? See bacula output below for more info.
>
No but you can get the media record for any volume into the database using

bscan

see the manual for operation.

The following link will pull the volume into the catalog:

http://www.bacula.org/manuals/en/utility/utility/Volume_Utility_Tools.html#SECTION00272000000000000000

If you did not write any jobs to the volume an alternate method is to
erase the volume (assuming its in /dev/nst0 already):

mt -f /dev/nst0 rewind
mt -f /dev/nst0 weof

Then relabel with label barcodes.

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

------------------------------------------------------------------------------
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>