View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001370 | bareos-core | General | public | 2021-07-19 09:22 | 2021-09-27 13:57 |
Reporter | Int | Assigned To | bruno-at-bareos | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | Linux | OS | CentOS | OS Version | 7 |
Product Version | 19.2.10 | ||||
Summary | 0001370: btape -c option does not work with storage configuration file | ||||
Description | I 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. | ||||
Tags | No tags attached. | ||||
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 :-) |
|
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. |
|
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 |