I tried Arno's suggestions, but to no avail. I ended up doing the following: - bcopy the hosed tape (MSR133L3) to another file (FILE0003) - rewind, weof, and relabel MSR133L3 - compared file indeces of FILE0003 and FILE0002 by using bls ... There were duplicate file indeces... Hence the errors - wrote a bootstrap file to only get certain file indeces from FILE0003, and ran a bcopy -b with this bootstrap file to copy FILE0003 to MSR133L3 - then, i just continued with the original command that I was trying to run before the infamous <CTL<C> heard around the world: bcopy -c /etc/bacula/bacula-sd.conf -i FILE0002 -o MSR133L3 -v -w /var/bacula/spool VG1-LV0 Drive-1
This seemed to work fine... Bacula seemed to like this... No more errors... 8-) Martin Simmons wrote: >>>>>> On Wed, 02 May 2007 12:01:08 -0400, Mike Seda said: >>>>>> >> Hi All, >> Basically, the error that I received during a bcopy from disk to tape >> was the following: >> >> 01-May 22:48 bcopy: Volume "MSR133L3" previously written, moving to end >> of data. >> 01-May 22:48 bcopy: bcopy Error: I cannot write on Volume "MSR133L3" >> because: >> The number of files mismatch! Volume=4 Catalog=0 >> 01-May 22:48 bcopy: Marking Volume "MSR133L3" in Error in Catalog. >> >> Updating the number of volume files in the catalog does not make this >> error go away. Does anyone know how I can proceed? I would like to >> continue appending to this tape since it has around 500 GB free. >> > > I assume you get a different error in that case (i.e. it doesn't still say > Catalog=0). > > Since you interrupted bcopy while it was writing, that volume will be in a > funny state to the only safe option is to purge it to make it start again. > > __Martin > > > >> Thx, >> Mike >> >> >> Mike Seda wrote: >> >>> Hi All, >>> I just have one more question... I executed the following command, but >>> (stupidly) hit <CTL><C> shortly thereafter: >>> bcopy -c /etc/bacula/bacula-sd.conf -i FILE0002 -o MSR133L3 -v -w >>> /var/bacula/spool VG1-LV0 Drive-1 >>> >>> Now, when I try to execute the aforementioned command again, I get the >>> following error: >>> [EMAIL PROTECTED] spool]# bcopy -c /etc/bacula/bacula-sd.conf -i FILE0002 >>> -o MSR133L3 -v -w /var/bacula/spool VG1-LV0 Drive-1 >>> bcopy: butil.c:283 Using device: "VG1-LV0" for reading. >>> 01-May 22:48 bcopy: Ready to read from volume "FILE0002" on device >>> "VG1-LV0" (/var/bacula/spool). >>> bcopy: butil.c:286 Using device: "Drive-1" for writing. >>> 01-May 22:48 bcopy: 3301 Issuing autochanger "loaded? drive 0" command. >>> 01-May 22:48 bcopy: 3302 Autochanger "loaded? drive 0", result is Slot 30. >>> 01-May 22:48 bcopy: 3301 Issuing autochanger "loaded? drive 0" command. >>> 01-May 22:48 bcopy: 3302 Autochanger "loaded? drive 0", result is Slot 30. >>> 01-May 22:48 bcopy: Invalid slot=0 defined, cannot autoload Volume. >>> 01-May 22:48 bcopy: Volume "MSR133L3" previously written, moving to end >>> of data. >>> 01-May 22:48 bcopy: bcopy Error: I cannot write on Volume "MSR133L3" >>> because: >>> The number of files mismatch! Volume=4 Catalog=0 >>> 01-May 22:48 bcopy: Marking Volume "MSR133L3" in Error in Catalog. >>> 01-May 22:49 bcopy: Invalid slot=0 defined, cannot autoload Volume. >>> Mount Volume "" on device "Drive-1" (/dev/nst0) and press return when ready: >>> >>> Any thoughts? >>> >>> >>> Martin Simmons wrote: >>> >>> >>>>>>>>> On Mon, 30 Apr 2007 17:54:48 -0400, Mike Seda said: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>> Hi All, >>>>> I successfully bcopied a tape to disk. Then, during a subsequent bcopy >>>>> from disk to tape, I got the following output: >>>>> >>>>> [EMAIL PROTECTED] ~]# bcopy -c /etc/bacula/bacula-sd.conf -i FILE0002 -o >>>>> MSR131L3 -v -w /var/bacula/spool VG1-LV0 Drive-1 >>>>> bcopy: butil.c:283 Using device: "VG1-LV0" for reading. >>>>> 30-Apr 13:36 bcopy: Ready to read from volume "FILE0002" on device >>>>> "VG1-LV0" (/var/bacula/spool). >>>>> bcopy: butil.c:286 Using device: "Drive-1" for writing. >>>>> 30-Apr 13:36 bcopy: 3301 Issuing autochanger "loaded? drive 0" command. >>>>> 30-Apr 13:36 bcopy: 3302 Autochanger "loaded? drive 0", result is Slot 28. >>>>> 30-Apr 13:36 bcopy: 3301 Issuing autochanger "loaded? drive 0" command. >>>>> 30-Apr 13:36 bcopy: 3302 Autochanger "loaded? drive 0", result is Slot 28. >>>>> 30-Apr 13:36 bcopy: Invalid slot=0 defined, cannot autoload Volume. >>>>> 30-Apr 13:36 bcopy: Wrote label to prelabeled Volume "MSR131L3" on >>>>> device "Drive-1" (/dev/nst0) >>>>> bcopy: bcopy.c:242 Volume label not copied. >>>>> 30-Apr 16:26 bcopy: End of Volume "" at 523:8456 on device "Drive-1" >>>>> (/dev/nst0). Write of 64512 bytes got -1. >>>>> >>>>> >>>>> >>>> This message usually means that the tape is full. >>>> >>>> >>>> >>>> >>>> >>>>> 30-Apr 16:26 bcopy: Re-read of last block succeeded. >>>>> >>>>> >>>>> >>>> This is good. It means that Bacula is able to read the block before the >>>> one >>>> that filled the tape. >>>> >>>> >>>> >>>> >>>> >>>>> 30-Apr 16:26 bcopy: End of medium on Volume "" Bytes=523,512,105,984 >>>>> Blocks=8,114,956 at 30-Apr-2007 16:26. >>>>> 30-Apr 16:26 bcopy: Invalid slot=0 defined, cannot autoload Volume. >>>>> Mount Volume "" on device "Drive-1" (/dev/nst0) and press return when >>>>> ready: >>>>> >>>>> What does this mean? I am inclined to thing that bcopy is done. My >>>>> paranoid self thinks that I forgot to rewind tape volume "MSR131L3", >>>>> which caused this error. Please advise what to do next. >>>>> >>>>> >>>>> >>>> I would expect Bacula to rewind the tape before copying to it. Could the >>>> tape >>>> be full? Did the tape contain something already when you started copying >>>> to >>>> it? >>>> >>>> Beware also that tapes are not all exactly the same length, so Bacula can't >>>> guarantee to copy a full tape to another one. >>>> >>>> __Martin >>>> >>>> ------------------------------------------------------------------------- >>>> This SF.net email is sponsored by DB2 Express >>>> Download DB2 Express C - the FREE version of DB2 express and take >>>> control of your XML. No limits. Just data. Click to get it now. >>>> http://sourceforge.net/powerbar/db2/ >>>> _______________________________________________ >>>> Bacula-users mailing list >>>> Bacula-users@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/bacula-users >>>> >>>> >>>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by DB2 Express >>> Download DB2 Express C - the FREE version of DB2 express and take >>> control of your XML. No limits. Just data. Click to get it now. >>> http://sourceforge.net/powerbar/db2/ >>> _______________________________________________ >>> Bacula-users mailing list >>> Bacula-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/bacula-users >>> >>> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> Bacula-users mailing list >> Bacula-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/bacula-users >> >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users