Damiano -I thank you very much for a quick reply and help!

I don't know this system and how to use the console, so the assumption was that 
me and other users could use BareOS via WEB-UI.
Of course you have a right and I corrected my mistake (Charger Device)!


Currently I have:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

[root@BRZE-BareOS device]# btape /dev/tape/by-id/scsi-32004000e11168106-nst
Tape block granularity is 1024 bytes.
btape: butil.c:274-0 Using device: "/dev/tape/by-id/scsi-32004000e11168106-nst" 
for writing.
btape: btape.c:482-0 open device "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst): OK
*test

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

I'm going to write 10000 records and an EOF
then write 10000 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:1167-0 Wrote 10000 blocks of 64412 bytes.
btape: btape.c:614-0 Wrote 1 EOF to "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst)
btape: btape.c:1183-0 Wrote 10000 blocks of 64412 bytes.
btape: btape.c:614-0 Wrote 1 EOF to "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst)
btape: btape.c:1225-0 Rewind OK.
10000 blocks re-read correctly.
Got EOF on tape.
10000 blocks re-read correctly.
=== Test Succeeded. End Write, rewind, and re-read test ===

btape: btape.c:1294-0 Block position test
btape: btape.c:1306-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:9999
Block 10000 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:9999
Block 20000 re-read correctly.
=== Test Succeeded. End Write, rewind, and re-read test ===



=== Append files test ===

This test is essential to Bareos.

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

btape: btape.c:584-0 Rewound "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst)
btape: btape.c:1926-0 Wrote one record of 64412 bytes.
btape: btape.c:1928-0 Wrote block to device.
btape: btape.c:614-0 Wrote 1 EOF to "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst)
btape: btape.c:1926-0 Wrote one record of 64412 bytes.
btape: btape.c:1928-0 Wrote block to device.
btape: btape.c:1926-0 Wrote one record of 64412 bytes.
btape: btape.c:1928-0 Wrote block to device.
btape: btape.c:614-0 Wrote 1 EOF to "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst)
btape: btape.c:1926-0 Wrote one record of 64412 bytes.
btape: btape.c:1928-0 Wrote block to device.
btape: btape.c:1926-0 Wrote one record of 64412 bytes.
btape: btape.c:1928-0 Wrote block to device.
btape: btape.c:1926-0 Wrote one record of 64412 bytes.
btape: btape.c:1928-0 Wrote block to device.
btape: btape.c:614-0 Wrote 1 EOF to "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst)
btape: btape.c:482-0 open device "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst): OK
btape: btape.c:584-0 Rewound "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst)
btape: btape.c:1438-0 Now moving to end of medium.
btape: btape.c:635-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:1926-0 Wrote one record of 64412 bytes.
btape: btape.c:1928-0 Wrote block to device.
btape: btape.c:614-0 Wrote 1 EOF to "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst)
btape: btape.c:584-0 Rewound "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst)
Done appending, there should be no I/O errors

Doing Bareos 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 Bareos 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 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 sample correct output ===

If the above scan output is not identical to the
sample output, you MUST correct the problem
or Bareos will not be able to write multiple Jobs to
the tape.


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

I'm going to write three records and an EOF
then backup over the EOF and re-read the last record.
Bareos does this after writing the last block on the
tape to verify that the block was written correctly.

This is not an *essential* feature ...

btape: btape.c:584-0 Rewound "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst)
btape: btape.c:820-0 Wrote first record of 64412 bytes.
btape: btape.c:831-0 Wrote second record of 64412 bytes.
btape: btape.c:842-0 Wrote third record of 64412 bytes.
btape: btape.c:614-0 Wrote 1 EOF to "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst)
btape: btape.c:858-0 Backspaced over EOF OK.
btape: btape.c:863-0 Backspace record OK.
btape: btape.c:881-0
Block re-read correct. Test succeeded!
=== End Write, backup, and re-read test ===



=== Forward space files test ===

This test is essential to Bareos.

I'm going to write five files then test forward spacing

btape: btape.c:584-0 Rewound "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst)
btape: btape.c:1926-0 Wrote one record of 64412 bytes.
btape: btape.c:1928-0 Wrote block to device.
btape: btape.c:614-0 Wrote 1 EOF to "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst)
btape: btape.c:1926-0 Wrote one record of 64412 bytes.
btape: btape.c:1928-0 Wrote block to device.
btape: btape.c:1926-0 Wrote one record of 64412 bytes.
btape: btape.c:1928-0 Wrote block to device.
btape: btape.c:614-0 Wrote 1 EOF to "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst)
btape: btape.c:1926-0 Wrote one record of 64412 bytes.
btape: btape.c:1928-0 Wrote block to device.
btape: btape.c:1926-0 Wrote one record of 64412 bytes.
btape: btape.c:1928-0 Wrote block to device.
btape: btape.c:1926-0 Wrote one record of 64412 bytes.
btape: btape.c:1928-0 Wrote block to device.
btape: btape.c:614-0 Wrote 1 EOF to "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst)
btape: btape.c:1926-0 Wrote one record of 64412 bytes.
btape: btape.c:1928-0 Wrote block to device.
btape: btape.c:1926-0 Wrote one record of 64412 bytes.
btape: btape.c:1928-0 Wrote block to device.
btape: btape.c:614-0 Wrote 1 EOF to "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst)
btape: btape.c:1926-0 Wrote one record of 64412 bytes.
btape: btape.c:1928-0 Wrote block to device.
btape: btape.c:614-0 Wrote 1 EOF to "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst)
btape: btape.c:584-0 Rewound "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst)
btape: btape.c:1653-0 Now forward spacing 1 file.
We should be in file 1. I am at file 1. This is correct!
btape: btape.c:1665-0 Now forward spacing 2 files.
We should be in file 3. I am at file 3. This is correct!
btape: btape.c:584-0 Rewound "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst)
btape: btape.c:1678-0 Now forward spacing 4 files.
We should be in file 4. I am at file 4. This is correct!

btape: btape.c:1696-0 Now forward spacing 1 more file.
We should be in file 5. I am at file 5. This is correct!

=== End Forward space files test ===


Ah, I see you have an autochanger configured.
To test the autochanger you must have a blank tape
 that I can write on in Slot 1.

Do you wish to continue with the Autochanger test? (y/n): y


=== Autochanger test ===

3301 Issuing autochanger "loaded" command.
Slot 1 loaded. I am going to unload it.
3302 Issuing autochanger "unload 1 0" command.
unload status=OK 0
3303 Issuing autochanger "load 1 0" command.
3303 Autochanger "load 1 0" status is OK.
btape: btape.c:482-0 open device "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst): OK
btape: btape.c:1583-0 Rewound "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst)
btape: btape.c:1590-0 Wrote EOF to "ULT3580-HH5" 
(/dev/tape/by-id/scsi-32004000e11168106-nst)

The test autochanger worked!!

*quit
[root@BRZE-BareOS device]# mtx -f /dev/s2 inquiry
cannot open SCSI device '/dev/s2' - No such file or directory
[root@BRZE-BareOS device]# mtx -f  inquiry
[root@BRZE-BareOS autochanger]# mtx -f 
/dev/tape/by-id/scsi-1IBM_3573-TL_00L2U78BW629_LL0 inquiry
Product Type: Medium Changer
Vendor ID: 'IBM     '
Product ID: '3573-TL         '
Revision: 'E.20'
Attached Changer API: No
[root@BRZE-BareOS autochanger]# mtx -f 
/dev/tape/by-id/scsi-1IBM_3573-TL_00L2U78BW629_LL0 status
  Storage Changer /dev/tape/by-id/scsi-1IBM_3573-TL_00L2U78BW629_LL0:1 Drives, 
24 Slots ( 1 Import/Export                        )
Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag = BB0044L5
      Storage Element 1:Empty
      Storage Element 2:Full :VolumeTag=BB0043L5
      Storage Element 3:Full :VolumeTag=BB0042L5
      Storage Element 4:Full :VolumeTag=BB0041L5
      Storage Element 5:Full :VolumeTag=BB0027L5
      Storage Element 6:Full :VolumeTag=BB0026L5
      Storage Element 7:Full :VolumeTag=BB0028L5
      Storage Element 8:Full :VolumeTag=BB0037L5
      Storage Element 9:Full :VolumeTag=BB0036L5
      Storage Element 10:Full :VolumeTag=BB0030L5
      Storage Element 11:Full :VolumeTag=BB0029L5
      Storage Element 12:Full :VolumeTag=BB0032L5
      Storage Element 13:Full :VolumeTag=BB0040L5
      Storage Element 14:Full :VolumeTag=BB0039L5
      Storage Element 15:Full :VolumeTag=BB0038L5
      Storage Element 16:Full :VolumeTag=BB0031L5
      Storage Element 17:Full :VolumeTag=BB0033L5
      Storage Element 18:Full :VolumeTag=BB0034L5
      Storage Element 19:Full :VolumeTag=BB0035L5
      Storage Element 20:Full :VolumeTag=BB0024L5
      Storage Element 21:Full :VolumeTag=BB0025L5
      Storage Element 22:Full :VolumeTag=CLNU58L1
      Storage Element 23:Full :VolumeTag=BB0045L5
      Storage Element 24 IMPORT/EXPORT:Empty


But I still can't run bareos-sr

[root@BRZE-BareOS ~]# systemctl status  bareos-sd
● bareos-sd.service - Bareos Storage Daemon service
   Loaded: loaded (/usr/lib/systemd/system/bareos-sd.service; enabled; vendor 
preset: disabled)
   Active: failed (Result: start-limit) since Sun 2017-03-26 13:12:08 CEST; 
35min ago
     Docs: man:bareos-sd(8)
  Process: 1792 ExecStart=/usr/sbin/bareos-sd (code=exited, status=1/FAILURE)

Mar 26 13:12:08 BRZE-BareOS systemd[1]: bareos-sd.service: control process 
exited, code=exited status=1
Mar 26 13:12:08 BRZE-BareOS systemd[1]: Failed to start Bareos Storage Daemon 
service.
Mar 26 13:12:08 BRZE-BareOS systemd[1]: Unit bareos-sd.service entered failed 
state.
Mar 26 13:12:08 BRZE-BareOS systemd[1]: bareos-sd.service failed.
Mar 26 13:12:08 BRZE-BareOS systemd[1]: bareos-sd.service holdoff time over, 
scheduling restart.
Mar 26 13:12:08 BRZE-BareOS systemd[1]: start request repeated too quickly for 
bareos-sd.service
Mar 26 13:12:08 BRZE-BareOS systemd[1]: Failed to start Bareos Storage Daemon 
service.
Mar 26 13:12:08 BRZE-BareOS systemd[1]: Unit bareos-sd.service entered failed 
state.
Mar 26 13:12:08 BRZE-BareOS systemd[1]: bareos-sd.service failed.
[root@BRZE-BareOS ~]# systemctl restart bareos-sd
Job for bareos-sd.service failed because the control process exited with error 
code. See "systemctl status bareos-sd.service" and "journalctl -xe" for details.
[root@BRZE-BareOS ~]# journalctl -u bareos-sd
-- Logs begin at Sun 2017-03-26 13:05:11 CEST, end at Sun 2017-03-26 13:47:22 
CEST. --
Mar 26 13:05:27 BRZE-BareOS systemd[1]: Starting Bareos Storage Daemon 
service...
Mar 26 13:05:27 BRZE-BareOS bareos-sd[988]: [52B blob data]
Mar 26 13:05:27 BRZE-BareOS bareos-sd[988]: Config error: Cannot open config 
file "/etc/bareos/bareos-sd.d/*/*.conf": Permission denied
Mar 26 13:05:27 BRZE-BareOS systemd[1]: bareos-sd.service: control process 
exited, code=exited status=1
Mar 26 13:05:27 BRZE-BareOS systemd[1]: Failed to start Bareos Storage Daemon 
service.
Mar 26 13:05:27 BRZE-BareOS systemd[1]: Unit bareos-sd.service entered failed 
state.
Mar 26 13:05:27 BRZE-BareOS systemd[1]: bareos-sd.service failed.
Mar 26 13:05:27 BRZE-BareOS systemd[1]: bareos-sd.service holdoff time over, 
scheduling restart.
Mar 26 13:05:27 BRZE-BareOS systemd[1]: Starting Bareos Storage Daemon 
service...
Mar 26 13:05:27 BRZE-BareOS bareos-sd[1075]: [52B blob data]
Mar 26 13:05:27 BRZE-BareOS bareos-sd[1075]: Config error: Cannot open config 
file "/etc/bareos/bareos-sd.d/*/*.conf": Permission denied
Mar 26 13:05:27 BRZE-BareOS systemd[1]: bareos-sd.service: control process 
exited, code=exited status=1
Mar 26 13:05:27 BRZE-BareOS systemd[1]: Failed to start Bareos Storage Daemon 
service.
Mar 26 13:05:27 BRZE-BareOS systemd[1]: Unit bareos-sd.service entered failed 
state.
Mar 26 13:05:27 BRZE-BareOS systemd[1]: bareos-sd.service failed.
Mar 26 13:05:27 BRZE-BareOS systemd[1]: bareos-sd.service holdoff time over, 
scheduling restart.
Mar 26 13:05:27 BRZE-BareOS systemd[1]: Starting Bareos Storage Daemon 
service...
Mar 26 13:12:08 BRZE-BareOS systemd[1]: bareos-sd.service: control process 
exited, code=exited status=1
Mar 26 13:12:08 BRZE-BareOS systemd[1]: Failed to start Bareos Storage Daemon 
service.
Mar 26 13:12:08 BRZE-BareOS systemd[1]: Unit bareos-sd.service entered failed 
state.
Mar 26 13:12:08 BRZE-BareOS systemd[1]: bareos-sd.service failed.
Mar 26 13:12:08 BRZE-BareOS systemd[1]: bareos-sd.service holdoff time over, 
scheduling restart.
Mar 26 13:12:08 BRZE-BareOS systemd[1]: Starting Bareos Storage Daemon 
service...
Mar 26 13:12:08 BRZE-BareOS systemd[1]: bareos-sd.service: control process 
exited, code=exited status=1
Mar 26 13:12:08 BRZE-BareOS systemd[1]: Failed to start Bareos Storage Daemon 
service.
Mar 26 13:12:08 BRZE-BareOS systemd[1]: Unit bareos-sd.service entered failed 
state.
Mar 26 13:12:08 BRZE-BareOS systemd[1]: bareos-sd.service failed.
Mar 26 13:12:08 BRZE-BareOS systemd[1]: bareos-sd.service holdoff time over, 
scheduling restart.
Mar 26 13:12:08 BRZE-BareOS systemd[1]: Starting Bareos Storage Daemon 
service...
Mar 26 13:12:08 BRZE-BareOS systemd[1]: bareos-sd.service: control process 
exited, code=exited status=1
Mar 26 13:12:08 BRZE-BareOS systemd[1]: Failed to start Bareos Storage Daemon 
service.
Mar 26 13:12:08 BRZE-BareOS systemd[1]: Unit bareos-sd.service entered failed 
state.
Mar 26 13:12:08 BRZE-BareOS systemd[1]: bareos-sd.service failed.
Mar 26 13:12:08 BRZE-BareOS systemd[1]: bareos-sd.service holdoff time over, 
scheduling restart.
Mar 26 13:12:08 BRZE-BareOS systemd[1]: start request repeated too quickly for 
bareos-sd.service
Mar 26 13:12:08 BRZE-BareOS systemd[1]: Failed to start Bareos Storage Daemon 
service.
Mar 26 13:12:08 BRZE-BareOS systemd[1]: Unit bareos-sd.service entered failed 
state.
Mar 26 13:12:08 BRZE-BareOS systemd[1]: bareos-sd.service failed.
Mar 26 13:47:21 BRZE-BareOS systemd[1]: Starting Bareos Storage Daemon 
service...
Mar 26 13:47:21 BRZE-BareOS systemd[1]: bareos-sd.service: control process 
exited, code=exited status=1
Mar 26 13:47:21 BRZE-BareOS systemd[1]: Failed to start Bareos Storage Daemon 
service.
Mar 26 13:47:21 BRZE-BareOS systemd[1]: Unit bareos-sd.service entered failed 
state.
Mar 26 13:47:21 BRZE-BareOS systemd[1]: bareos-sd.service failed.
Mar 26 13:47:21 BRZE-BareOS systemd[1]: bareos-sd.service holdoff time over, 
scheduling restart.
Mar 26 13:47:21 BRZE-BareOS systemd[1]: Starting Bareos Storage Daemon 
service...
Mar 26 13:47:21 BRZE-BareOS systemd[1]: bareos-sd.service: control process 
exited, code=exited status=1
Mar 26 13:47:21 BRZE-BareOS systemd[1]: Failed to start Bareos Storage Daemon 
service.
Mar 26 13:47:21 BRZE-BareOS systemd[1]: Unit bareos-sd.service entered failed 
state.
Mar 26 13:47:21 BRZE-BareOS systemd[1]: bareos-sd.service failed.
Mar 26 13:47:21 BRZE-BareOS systemd[1]: bareos-sd.service holdoff time over, 
scheduling restart.
Mar 26 13:47:21 BRZE-BareOS systemd[1]: Starting Bareos Storage Daemon 
service...
Mar 26 13:47:21 BRZE-BareOS systemd[1]: bareos-sd.service: control process 
exited, code=exited status=1
Mar 26 13:47:21 BRZE-BareOS systemd[1]: Failed to start Bareos Storage Daemon 
service.
Mar 26 13:47:21 BRZE-BareOS systemd[1]: Unit bareos-sd.service entered failed 
state.
Mar 26 13:47:21 BRZE-BareOS systemd[1]: bareos-sd.service failed.
Mar 26 13:47:22 BRZE-BareOS systemd[1]: bareos-sd.service holdoff time over, 
scheduling restart.
Mar 26 13:47:22 BRZE-BareOS systemd[1]: Starting Bareos Storage Daemon 
service...
Mar 26 13:47:22 BRZE-BareOS systemd[1]: bareos-sd.service: control process 
exited, code=exited status=1
Mar 26 13:47:22 BRZE-BareOS systemd[1]: Failed to start Bareos Storage Daemon 
service.
Mar 26 13:47:22 BRZE-BareOS systemd[1]: Unit bareos-sd.service entered failed 
state.
Mar 26 13:47:22 BRZE-BareOS systemd[1]: bareos-sd.service failed.
Mar 26 13:47:22 BRZE-BareOS systemd[1]: bareos-sd.service holdoff time over, 
scheduling restart.
Mar 26 13:47:22 BRZE-BareOS systemd[1]: Starting Bareos Storage Daemon 
service...
Mar 26 13:47:22 BRZE-BareOS systemd[1]: bareos-sd.service: control process 
exited, code=exited status=1
Mar 26 13:47:22 BRZE-BareOS systemd[1]: Failed to start Bareos Storage Daemon 
service.
Mar 26 13:47:22 BRZE-BareOS systemd[1]: Unit bareos-sd.service entered failed 
state.
Mar 26 13:47:22 BRZE-BareOS systemd[1]: bareos-sd.service failed.
Mar 26 13:47:22 BRZE-BareOS systemd[1]: bareos-sd.service holdoff time over, 
scheduling restart.
Mar 26 13:47:22 BRZE-BareOS systemd[1]: start request repeated too quickly for 
bareos-sd.service
Mar 26 13:47:22 BRZE-BareOS systemd[1]: Failed to start Bareos Storage Daemon 
service.
Mar 26 13:47:22 BRZE-BareOS systemd[1]: Unit bareos-sd.service entered failed 
state.
Mar 26 13:47:22 BRZE-BareOS systemd[1]: bareos-sd.service failed.
lines 36-73/73 (END)

xxxxxxxxxxxx
I haven't got permissions?

Config error: Cannot open config file "/etc/bareos/bareos-sd.d/*/*.conf": 
Permission denied

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to