That worked. I just need to remember this trick for when it happens next time. Thanks John!
JJ -----Original Message----- From: John Drescher [mailto:dresche...@gmail.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 <jj...@u.washington.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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users