View Issue Details

IDProjectCategoryView StatusLast Update
0001370bareos-coreGeneralpublic2021-09-27 13:57
ReporterInt Assigned Tobruno-at-bareos  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
PlatformLinuxOSCentOSOS Version7
Product Version19.2.10 
Summary0001370: btape -c option does not work with storage configuration file
DescriptionI want to run btape on tapes which were written with a non-default blocksize of 1048576
I found out that I have to use option -c to specify this.
But when running $ btape -c /etc/bareos/bareos-dir.d/storage/Tape.conf
it fails with error:

Tape block granularity is 1024 bytes.
btape: ERROR TERMINATION at lib/parse_conf_state_machine.cc:158
Config error: Keyword "Address" not permitted in this resource.
Perhaps you left the trailing brace off of the previous resource.
            : line 3, col 11 of file /etc/bareos/bareos-dir.d/storage/Tape.conf
  Address = igms07.vision.local


The documentation at https://docs.bareos.org/Appendix/BareosPrograms.html#btape
also does not say much about option -c and which configuration should be specified here.
It should be more specific.
TagsNo tags attached.

Activities

bruno-at-bareos

bruno-at-bareos

2021-09-07 10:33

manager   ~0004254

To properly launch btape, you have to know that -c is looking for a bundled bareos-sd.conf (aka the old way of doing thing) or a subdir called bareos-sd.d (new configuration globbing) into the path given.
So normally all your SD configuration are located under /etc/bareos/bareos-sd.d location so translated to btape give the following

```btape -c /etc/bareos```

you're welcome to propose a PR with improved text for the documentation :-)
bruno-at-bareos

bruno-at-bareos

2021-09-27 13:57

manager   ~0004277

Reviewing the documentation, there's a whole introduction in the chapters tools which mention almost all information.

So in a normal usage, once you've also added to the device configuration the Maximum Block Size and Label Size parameters, stopped the bareos-storage daemon, you should normally just use ```btape MyTape``` when MyTape is the name of your tape drive.

Issue History

Date Modified Username Field Change
2021-07-19 09:22 Int New Issue
2021-09-07 10:33 bruno-at-bareos Note Added: 0004254
2021-09-27 13:49 bruno-at-bareos Assigned To => bruno-at-bareos
2021-09-27 13:49 bruno-at-bareos Status new => assigned
2021-09-27 13:57 bruno-at-bareos Note Added: 0004277
2021-09-27 13:57 bruno-at-bareos Status assigned => closed
2021-09-27 13:57 bruno-at-bareos Resolution open => no change required