[Bacula-users] How to start over again with tapes, catalog, slots, volumes?

2019-05-13 Thread Robert Minvielle


I am really at the end of my rope, and have the same question that seems to
get asked (but not answered, like this person: 
http://bacula.10910.n7.nabble.com/newbie-problem-labeling-adding-tapes-to-pool-td58780.html)


I have a bacula system 7.0, and a set of new tapes. I try to label the tapes one
at a time, which seems to work. I called them Vol00-01, Vol00-02, etc. They then
come back in the catalog as Vol01-01, Vol01-02, etc. I think they do this as
I had the Auto label set to one, and they got labeled. 

Now when I do list media, I see nothing. I can not get it to recognize any
of my blank tapes. I would like to try to sort of blow away my database
or its current memory of what I have and start over. Does anyone know
a good short FAQ on how to:

Delete the current catalog, media, pools
Relabel all of my current tapes (they are new and blank, but I think they have 
a label)
Add them to a pool
Get them to show up as media


Here is some current output, and it is incorrect int hat it thinks the volume
names are one thing, but the labels are different, and nothing shows up under
pools:



*status slots
Automatically selected Storage: File1
Connecting to Storage daemon File1 at localhost:9103 ...
3306 Issuing autochanger "slots" command.
Device "LTO5" has 32 slots.
Connecting to Storage daemon File1 at localhost:9103 ...
3306 Issuing autochanger "list" command.
 Slot |   Volume Name|   Status  | Media Type   |  Pool 
 |
--+--+---+--+|
1*| Vol01-01 | ? |? |  
? |
2*| Vol01-02 | ? |? |  
? |
3*| Vol01-03 | ? |? |  
? |
4*| Vol01-04 | ? |? |  
? |
5*| Vol01-05 | ? |? |  
? |
6*| Vol01-06 | ? |? |  
? |
7*| Vol01-07 | ? |? |  
? |
8*| Vol01-08 | ? |? |  
? |
9*| Vol01-09 | ? |? |  
? |
   10*| Vol01-10 | ? |? |  
? |
   11*| Vol01-11 | ? |? |  
? |
   12*| Vol01-12 | ? |? |  
? |
   13*| Vol01-13 | ? |? |  
? |
   14*| Vol01-14 | ? |? |  
? |
   15*| Vol01-15 | ? |? |  
? |
   16*| Vol01-16 | ? |? |  
? |
   17*| Vol01-17 | ? |? |  
? |
   18*| Vol01-18 | ? |? |  
? |
   19*| Vol01-19 | ? |? |  
? |
   20*| Vol01-20 | ? |? |  
? |
   21 |  |   |  |   
 |
   22 |  |   |  |   
 |
   23 |  |   |  |   
 |
   24 |  |   |  |   
 |
   25 |  |   |  |   
 |
   26 |  |   |  |   
 |
   27 |  |   |  |   
 |
   28 |  |   |  |   
 |
   29 |  |   |  |   
 |
   30 |  |   |  |   
 |
   31 |  |   |  |   
 |
   32 |  |   |  |   
 |


*list media
Pool: Default
No results to list.
Pool: File
No results to list.
Pool: Scratch
No results to list.
*list volumes
Pool: Default
No results to list.
Pool: File
No results to list.
Pool: Scratch
No results to list.
*update slots
Automatically selected Storage: File1
Connecting to Storage daemon File1 at localhost:9103 ...
3306 Issuing autochanger "slots" command.
Device "LTO5" has 32 slots.
Connecting to Storage daemon File1 at localhost:9103 ...
3306 Issuing autochanger "list" command.
Volume "Vol01-01" not found in catalog. Slot=1 InChanger set to zero.
Volume "Vol01-02" not found in catalog. Slot=2 InChanger set to zero.
Volume "Vol01-03" not found in catalog. Slot=3 InChanger set to zero.
Volume "Vol01-04" not found in catalog. 

Re: [Bacula-users] Autochanger not working? SOLVED

2019-05-09 Thread Robert Minvielle


I think I have solved the issue, or at least for Bacula seeing
it as an autochanger. The fix seems to have been adding the following
to the bacula-sd.conf file in the Device directive:

AutoChanger = yes;


I now need to figure out how to get it to
see the tape labels. I have it running a 

update slots scan

But I do not think it is loading the tape names into the system...


Automatically selected Storage: File1
Connecting to Storage daemon File1 at localhost:9103 ...
3306 Issuing autochanger "slots" command.
Device "LTO5" has 32 slots.
Connecting to Storage daemon File1 at localhost:9103 ...
3306 Issuing autochanger "list" command.
Connecting to Storage daemon File1 at localhost:9103 ...
3902 Cannot mount Volume on Storage Device ""Drive-1" (/dev/nst0)" because:
Could not unserialize Volume label: ERR=label.c:873 Expecting Volume Label, got 
FI=0 Stream=0 len=64412

No VolName for Slot=1 InChanger set to zero.
Connecting to Storage daemon File1 at localhost:9103 ...
3307 Issuing autochanger "unload slot 1, drive 0" command.
3995 Bad autochanger "unload slot 1, drive 0": ERR=Child exited with code 1
Results=Unloading drive 0 into Storage Element 1...mtx: Request Sense: Long 
Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Sense Key=Illegal Request
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 53
mtx: Request Sense: Additional Sense Qualifier = 03
mtx: Request Sense: Field in Error = 00
mtx: Request Sense: BPV=yes
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=yes
mtx: Request Sense: Field Pointer = 00 00
MOVE MEDIUM from Element Address 1 to 1001 Failed

No VolName for Slot=2 InChanger set to zero.
Connecting to Storage daemon File1 at localhost:9103 ...
3307 Issuing autochanger "unload slot 1, drive 0" command.
3304 Issuing autochanger "load slot 3, drive 0" command.
3305 Autochanger "load slot 3, drive 0", status is OK.
3001 Volume=Vol00-03 Slot=3
Catalog record for Volume "Vol00-03" updated to reference slot 3.
Connecting to Storage daemon File1 at localhost:9103 ...
3307 Issuing autochanger "unload slot 3, drive 0" command.
3304 Issuing autochanger "load slot 4, drive 0" command.
3305 Autochanger "load slot 4, drive 0", status is OK.
3001 Volume=Vol00-04 Slot=4
Catalog record for Volume "Vol00-04" updated to reference slot 4.





- Original Message -
> From: "Robert Minvielle" 
> To: "William Muriithi" 
> Cc: bacula-users@lists.sourceforge.net
> Sent: Thursday, May 9, 2019 7:25:58 AM
> Subject: Re: [Bacula-users] Autochanger not working?
> 
> Just a small update, my labels that I performed seemed not to work. I labeled
> all
> of the tapes two days ago, but now I get this (I have verified that tape 1 is
> in
> the drive, which I labeled Vol00-01):
> 
> Connecting to Director localhost:9101
> 1000 OK: 1 cmixhyperv03-dir Version: 7.0.5 (28 July 2014)
> Enter a period to cancel a command.
> *status
> Status available for:
>  1: Director
>  2: Storage
>  3: Client
>  4: Scheduled
>  5: All
> Select daemon type for status (1-5): 2
> Automatically selected Storage: File1
> Connecting to Storage daemon File1 at localhost:9103
> 
> cmixhyperv03-sd Version: 7.0.5 (28 July 2014) x86_64-pc-linux-gnu ubuntu
> 16.04
> Daemon started 09-May-19 07:23. Jobs: run=0, running=0.
>  Heap: heap=135,168 smbytes=213,200 max_bytes=343,348 bufs=68 max_bufs=72
>  Sizes: boffset_t=8 size_t=8 int32_t=4 int64_t=8 mode=0,0
> 
> Running Jobs:
> No Jobs running.
> 
> 
> Jobs waiting to reserve a drive:
> 
> 
> Terminated Jobs:
> 
> 
> Device status:
> Autochanger "LTO5" with devices:
>"Drive-1" (/dev/nst0)
> 
> Device "Drive-1" (/dev/nst0) open but no Bacula volume is currently mounted.
> Total Bytes Read=64,512 Blocks Read=1 Bytes/block=64,512
> Positioned at File=0 Block=0
> ==
> 
> 
> Used Volume status:
> 
> 
> ====
> 
> *label
> Automatically selected Catalog: MyCatalog
> Using Catalog "MyCatalog"
> Automatically selected Storage: File1
> Enter new Volume name: Vol00-01
> Media record for new Volume "Vol00-01" already exists.
> Enter new Volume name:
> Volume name must be at least one character long.
> 
> 
> Any ideas?
> 
> 
> - Original Message -
> > From: "Robert Minvielle" 
> > To: "William Muriithi" 
> > Cc: bacula-users@lists.sourceforge.net
> > Sent: Thursday, May 9, 2019 7:18:57 AM
> > Subject: Re: [Bacula-users] A

Re: [Bacula-users] Autochanger not working?

2019-05-09 Thread Robert Minvielle
Just a small update, my labels that I performed seemed not to work. I labeled 
all
of the tapes two days ago, but now I get this (I have verified that tape 1 is in
the drive, which I labeled Vol00-01):

Connecting to Director localhost:9101
1000 OK: 1 cmixhyperv03-dir Version: 7.0.5 (28 July 2014)
Enter a period to cancel a command.
*status 
Status available for:
 1: Director
 2: Storage
 3: Client
 4: Scheduled
 5: All
Select daemon type for status (1-5): 2
Automatically selected Storage: File1
Connecting to Storage daemon File1 at localhost:9103

cmixhyperv03-sd Version: 7.0.5 (28 July 2014) x86_64-pc-linux-gnu ubuntu 16.04
Daemon started 09-May-19 07:23. Jobs: run=0, running=0.
 Heap: heap=135,168 smbytes=213,200 max_bytes=343,348 bufs=68 max_bufs=72
 Sizes: boffset_t=8 size_t=8 int32_t=4 int64_t=8 mode=0,0

Running Jobs:
No Jobs running.


Jobs waiting to reserve a drive:


Terminated Jobs:


Device status:
Autochanger "LTO5" with devices:
   "Drive-1" (/dev/nst0)

Device "Drive-1" (/dev/nst0) open but no Bacula volume is currently mounted.
Total Bytes Read=64,512 Blocks Read=1 Bytes/block=64,512
Positioned at File=0 Block=0
==


Used Volume status:




*label
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Automatically selected Storage: File1
Enter new Volume name: Vol00-01
Media record for new Volume "Vol00-01" already exists.
Enter new Volume name: 
Volume name must be at least one character long.


Any ideas?


- Original Message -
> From: "Robert Minvielle" 
> To: "William Muriithi" 
> Cc: bacula-users@lists.sourceforge.net
> Sent: Thursday, May 9, 2019 7:18:57 AM
> Subject: Re: [Bacula-users] Autochanger not working?
> 
> Still trying to figure this out... Am I reading this wrong, or it is telling
> me that
> it can not find the volume on the tape, or the volume in the config file?
> 
> Does anyone have a bacula-dir and bacula-sd they would like to share with a
> single
> tape drive that works? I have a feeling I am misconfiguring something.
> 
> Thank you.
> 
> - Original Message -
> > From: "Robert Minvielle" 
> > To: "William Muriithi" 
> > Cc: bacula-users@lists.sourceforge.net
> > Sent: Tuesday, May 7, 2019 3:31:16 PM
> > Subject: Re: [Bacula-users] Autochanger not working?
> > 
> > I labeled the tapes in bconsole, it said it worked (I ejected them and
> > mounted
> > them with mtx). However, I still get:
> > 
> > 
> > *mount
> > Automatically selected Storage: File1
> > 3905 Device ""Drive-1" (/dev/nst0)" open but no Bacula volume is mounted.
> > If this is not a blank tape, try unmounting and remounting the Volume.
> > *unmount
> > Automatically selected Storage: File1
> > 3002 Device ""Drive-1" (/dev/nst0)" unmounted.
> > *mount
> > Automatically selected Storage: File1
> > 3902 Cannot mount Volume on Storage Device ""Drive-1" (/dev/nst0)" because:
> > Could not unserialize Volume label: ERR=label.c:873 Expecting Volume Label,
> > got FI=0 Stream=0 len=64412
> > 
> > 3905 Device ""Drive-1" (/dev/nst0)" open but no Bacula volume is mounted.
> > If this is not a blank tape, try unmounting and remounting the Volume.
> > 
> > And it still does not see the tapes. Am I using the wrong device??
> > 
> > 
> > 
> > - Original Message -
> > > From: "William Muriithi" 
> > > To: "Robert Minvielle" ,
> > > bacula-users@lists.sourceforge.net
> > > Sent: Tuesday, May 7, 2019 2:36:51 PM
> > > Subject: Re: Autochanger not working?
> > > 
> > > Hi Robert,
> > > 
> > > ===
> > > 
> > > Autochanger {
> > >   Name = LTO5
> > >   Device = Drive-1
> > >   Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
> > >   Changer Device = /dev/sg3
> > > }
> > > 
> > > Be aware that /dev/sg3 can change when the system is rebooted.
> > > 
> > > ===
> > > Device {
> > >   Name = Drive-1
> > >   Drive Index = 0
> > >   Device Type = Tape
> > >   Media Type = LTO-5
> > >   Archive Device = /dev/nst0
> > >   Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
> > >   Label Media = yes;   # lets Bacula label unlabeled
> > >   media
> > >   Random Access = Yes;
> > >   Automatic Mount = yes;   # when device opened, read i

Re: [Bacula-users] Autochanger not working?

2019-05-09 Thread Robert Minvielle
Still trying to figure this out... Am I reading this wrong, or it is telling me 
that 
it can not find the volume on the tape, or the volume in the config file?

Does anyone have a bacula-dir and bacula-sd they would like to share with a 
single
tape drive that works? I have a feeling I am misconfiguring something.

Thank you.

- Original Message -
> From: "Robert Minvielle" 
> To: "William Muriithi" 
> Cc: bacula-users@lists.sourceforge.net
> Sent: Tuesday, May 7, 2019 3:31:16 PM
> Subject: Re: [Bacula-users] Autochanger not working?
> 
> I labeled the tapes in bconsole, it said it worked (I ejected them and
> mounted
> them with mtx). However, I still get:
> 
> 
> *mount
> Automatically selected Storage: File1
> 3905 Device ""Drive-1" (/dev/nst0)" open but no Bacula volume is mounted.
> If this is not a blank tape, try unmounting and remounting the Volume.
> *unmount
> Automatically selected Storage: File1
> 3002 Device ""Drive-1" (/dev/nst0)" unmounted.
> *mount
> Automatically selected Storage: File1
> 3902 Cannot mount Volume on Storage Device ""Drive-1" (/dev/nst0)" because:
> Could not unserialize Volume label: ERR=label.c:873 Expecting Volume Label,
> got FI=0 Stream=0 len=64412
> 
> 3905 Device ""Drive-1" (/dev/nst0)" open but no Bacula volume is mounted.
> If this is not a blank tape, try unmounting and remounting the Volume.
> 
> And it still does not see the tapes. Am I using the wrong device??
> 
> 
> 
> - Original Message -
> > From: "William Muriithi" 
> > To: "Robert Minvielle" ,
> > bacula-users@lists.sourceforge.net
> > Sent: Tuesday, May 7, 2019 2:36:51 PM
> > Subject: Re: Autochanger not working?
> > 
> > Hi Robert,
> > 
> > ===
> > 
> > Autochanger {
> >   Name = LTO5
> >   Device = Drive-1
> >   Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
> >   Changer Device = /dev/sg3
> > }
> > 
> > Be aware that /dev/sg3 can change when the system is rebooted.
> > 
> > ===
> > Device {
> >   Name = Drive-1
> >   Drive Index = 0
> >   Device Type = Tape
> >   Media Type = LTO-5
> >   Archive Device = /dev/nst0
> >   Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
> >   Label Media = yes;   # lets Bacula label unlabeled media
> >   Random Access = Yes;
> >   Automatic Mount = yes;   # when device opened, read it
> >   Removable Media = yes;
> >   Always Open = yes;
> >   Maximum Concurrent Jobs = 5
> > }
> > ==
> > 
> > Don't have "Drive Index = 0", think its only needed when your tape devices
> > have multiple drives/head
> > Use  "Random Access = no"  since you are using the tapes
> > 
> > 
> > Device "Drive-1" (/dev/nst0) open but no Bacula volume is currently
> > mounted.
> > Total Bytes Read=64,512 Blocks Read=1 Bytes/block=64,512
> > Positioned at File=0 Block=0
> > ==
> > You may not have labelled the tapes, so bacula didn't attempt loading them.
> > 
> > Try manually attempting to load them from bconsole and see what happens.
> > 
> > Sorry for the formatting, using a horrible mail client called outlook,
> > hence
> > the mess
> > 
> > Regards,
> > William
> 
> 
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Autochanger not working?

2019-05-07 Thread Robert Minvielle
I labeled the tapes in bconsole, it said it worked (I ejected them and mounted
them with mtx). However, I still get:


*mount
Automatically selected Storage: File1
3905 Device ""Drive-1" (/dev/nst0)" open but no Bacula volume is mounted.
If this is not a blank tape, try unmounting and remounting the Volume.
*unmount
Automatically selected Storage: File1
3002 Device ""Drive-1" (/dev/nst0)" unmounted.
*mount
Automatically selected Storage: File1
3902 Cannot mount Volume on Storage Device ""Drive-1" (/dev/nst0)" because:
Could not unserialize Volume label: ERR=label.c:873 Expecting Volume Label, got 
FI=0 Stream=0 len=64412

3905 Device ""Drive-1" (/dev/nst0)" open but no Bacula volume is mounted.
If this is not a blank tape, try unmounting and remounting the Volume.

And it still does not see the tapes. Am I using the wrong device??



- Original Message -
> From: "William Muriithi" 
> To: "Robert Minvielle" , 
> bacula-users@lists.sourceforge.net
> Sent: Tuesday, May 7, 2019 2:36:51 PM
> Subject: Re: Autochanger not working?
> 
> Hi Robert,
> 
> ===
> 
> Autochanger {
>   Name = LTO5
>   Device = Drive-1
>   Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
>   Changer Device = /dev/sg3
> }
> 
> Be aware that /dev/sg3 can change when the system is rebooted.
> 
> ===
> Device {
>   Name = Drive-1
>   Drive Index = 0
>   Device Type = Tape
>   Media Type = LTO-5
>   Archive Device = /dev/nst0
>   Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
>   Label Media = yes;   # lets Bacula label unlabeled media
>   Random Access = Yes;
>   Automatic Mount = yes;   # when device opened, read it
>   Removable Media = yes;
>   Always Open = yes;
>   Maximum Concurrent Jobs = 5
> }
> ==
> 
> Don't have "Drive Index = 0", think its only needed when your tape devices
> have multiple drives/head
> Use  "Random Access = no"  since you are using the tapes
> 
> 
> Device "Drive-1" (/dev/nst0) open but no Bacula volume is currently mounted.
> Total Bytes Read=64,512 Blocks Read=1 Bytes/block=64,512
> Positioned at File=0 Block=0
> ==
> You may not have labelled the tapes, so bacula didn't attempt loading them.
> 
> Try manually attempting to load them from bconsole and see what happens.
> 
> Sorry for the formatting, using a horrible mail client called outlook, hence
> the mess
> 
> Regards,
> William


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Autochanger not working?

2019-05-07 Thread Robert Minvielle



I have a new bacula install using the ubuntu built in packages on ubuntu 16
with a new Dell EMC ML3 drive (an ibm 3573-TL)

I can get btape to work, and mt and mtx to work, but it seems the bconsole
will not work. I am not sure if I have something configured wrong or it does
not see the tape drive correctly. Any input would be appreciated. 

Below, I will show some configs, lsscsi and testing that I have 
performed. When I go to the console to test labels or the changer, it seems
to fail. 

my relevant portions from bacula-sd.conf:



Autochanger {
  Name = LTO5
  Device = Drive-1
  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg3
}

Device {
  Name = Drive-1
  Drive Index = 0
  Device Type = Tape
  Media Type = LTO-5
  Archive Device = /dev/nst0
  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
  Label Media = yes;   # lets Bacula label unlabeled media
  Random Access = Yes;
  Automatic Mount = yes;   # when device opened, read it
  Removable Media = yes;
  Always Open = yes;
  Maximum Concurrent Jobs = 5
}



And  /etc/bacula# lsscsi -g
[0:2:0:0]diskDELL PERC H730 Mini   4.24  /dev/sda   /dev/sg0 
[0:2:1:0]diskDELL PERC H730 Mini   4.24  /dev/sdb   /dev/sg1 
[1:0:1:0]tapeIBM  ULT3580-HH6  J451  /dev/st0   /dev/sg2 
[1:0:1:1]mediumx IBM  3573-TL  1112  /dev/sch0  /dev/sg3 





/etc/bacula# btape -c bacula-sd.conf /dev/nst0
Tape block granularity is 1024 bytes.
btape: butil.c:287-0 Using device: "/dev/nst0" for writing.
btape: btape.c:469-0 open device "Drive-1" (/dev/nst0): OK
*test

=== Write, rewind, and re-read test ===

I'm going to write 1 records and an EOF
then write 1 records and an EOF, then rewind,
and re-read the data to verify that it is correct.

This is an *essential* feature ...

btape: btape.c:1152-0 Wrote 1 blocks of 64412 bytes.
btape: btape.c:604-0 Wrote 1 EOF to "Drive-1" (/dev/nst0)
btape: btape.c:1168-0 Wrote 1 blocks of 64412 bytes.
btape: btape.c:604-0 Wrote 1 EOF to "Drive-1" (/dev/nst0)
btape: btape.c:1210-0 Rewind OK.
1 blocks re-read correctly.
Got EOF on tape.
1 blocks re-read correctly.
=== Test Succeeded. End Write, rewind, and re-read test ===

btape: btape.c:1277-0 Block position test
btape: btape.c:1289-0 Rewind OK.
Reposition to file:block 0:4
Block 5 re-read correctly.
Reposition to file:block 0:200
Block 201 re-read correctly.
Reposition to file:block 0:
Block 1 re-read correctly.
Reposition to file:block 1:0
Block 10001 re-read correctly.
Reposition to file:block 1:600
Block 10601 re-read correctly.
Reposition to file:block 1:
Block 2 re-read correctly.
=== Test Succeeded. End Write, rewind, and re-read test ===



=== Append files test ===

This test is essential to Bacula.

I'm going to write one record  in file 0,
   two records in file 1,
 and three records in file 2

btape: btape.c:574-0 Rewound "Drive-1" (/dev/nst0)
btape: btape.c:1907-0 Wrote one record of 64412 bytes.
btape: btape.c:1909-0 Wrote block to device.
btape: btape.c:604-0 Wrote 1 EOF to "Drive-1" (/dev/nst0)
btape: btape.c:1907-0 Wrote one record of 64412 bytes.
btape: btape.c:1909-0 Wrote block to device.
btape: btape.c:1907-0 Wrote one record of 64412 bytes.
btape: btape.c:1909-0 Wrote block to device.
btape: btape.c:604-0 Wrote 1 EOF to "Drive-1" (/dev/nst0)
btape: btape.c:1907-0 Wrote one record of 64412 bytes.
btape: btape.c:1909-0 Wrote block to device.
btape: btape.c:1907-0 Wrote one record of 64412 bytes.
btape: btape.c:1909-0 Wrote block to device.
btape: btape.c:1907-0 Wrote one record of 64412 bytes.
btape: btape.c:1909-0 Wrote block to device.
btape: btape.c:604-0 Wrote 1 EOF to "Drive-1" (/dev/nst0)
btape: btape.c:469-0 open device "Drive-1" (/dev/nst0): OK
btape: btape.c:574-0 Rewound "Drive-1" (/dev/nst0)
btape: btape.c:1420-0 Now moving to end of medium.
btape: btape.c:625-0 Moved to end of medium.
We should be in file 3. I am at file 3. This is correct!

Now the important part, I am going to attempt to append to the tape.

btape: btape.c:1907-0 Wrote one record of 64412 bytes.
btape: btape.c:1909-0 Wrote block to device.
btape: btape.c:604-0 Wrote 1 EOF to "Drive-1" (/dev/nst0)
btape: btape.c:574-0 Rewound "Drive-1" (/dev/nst0)
Done appending, there should be no I/O errors

Doing Bacula scan of blocks:
1 block of 64448 bytes in file 1
End of File mark.
2 blocks of 64448 bytes in file 2
End of File mark.
3 blocks of 64448 bytes in file 3
End of File mark.
1 block of 64448 bytes in file 4
End of File mark.
Total files=4, blocks=7, bytes = 451,136
End scanning the tape.
We should be in file 4. I am at file 4. This is correct!

The above Bacula scan should have output identical to what follows.
Please double check it ...
=== Sample correct output ===
1 block of 64448 bytes in file 1
End of File mark.
2 blocks of 64448 bytes in file 2
End of File mark.
3 blocks of 64448