Hi Maciej,
have you tried /dev/tape/by-id/scsi...-nst ?
This is a a single drive, not a library, right? Is this the first time
you want to use it with Bareos?
Greetings from Berlin,
Kai
Am 10.01.2018 um 11:14 schrieb Maciej Piasecki:
I can't writing in my Ultrim 960
"Bareos requires the nst devices so / dev / nst0 instead of / dev / st0. Shoe"
I tested all devices
"I'm not sure, if this solves the problem. You also get the btape test
program. Have you installed the bareos-storage-tape package?"
Of course
I testing configuration with dir (debian) and file
In email is attached config
from console...
root@desk1:/etc/amanda# less /etc/bareos/bareos-sd.conf
root@desk1:/etc/amanda# btape -v -c /etc/bareos/bareos-sd.conf LTO3
Tape block granularity is 1024 bytes.
btape: butil.c:274-0 Using device: "LTO3" for writing.
.
.
<long waiting>
.
.
^C
root@desk1:/etc# ^C
root@desk1:/etc# ^C
root@desk1:/etc# ^C
root@desk1:/etc# ^C
root@desk1:/etc# ^C
root@desk1:/etc# btape -v -c /etc/bareos/bareos-sd.conf LTO3
Tape block granularity is 1024 bytes.
btape: butil.c:274-0 Using device: "LTO3" for writing.
^C
root@desk1:/etc#
root@desk1:/etc# dmesg |grep nst
[ 7.135053] xc2028 2-0061: creating new instance
root@desk1:/etc# dmesg |grep st0
[ 0.894625] scsi host0: ahci
[ 5.756608] st 6:0:3:0: Attached scsi tape st0
[ 5.756612] st 6:0:3:0: st0: try direct i/o: yes (alignment 512 B)
[ 6.252610] st 6:0:3:0: [st0] Block limits 1 - 16777215 bytes.
root@desk1:/etc#
root@desk1:/etc#
Scanning SCSI subsystem for new devices
Scanning host 0 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs
Scanning for device 0 0 0 0 ...
OLD: Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: KINGSTON SV300S3 Rev: BBF0
Type: Direct-Access ANSI SCSI revision: 05
Scanning host 1 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs
Scanning for device 1 0 0 0 ...
OLD: Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: WDC WD10EZRX-00A Rev: 1A01
Type: Direct-Access ANSI SCSI revision: 05
Scanning host 2 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs
Scanning host 3 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs
Scanning for device 3 0 0 0 ...
OLD: Host: scsi3 Channel: 00 Id: 00 Lun: 00
Vendor: PIONEER Model: BD-RW BDR-207M Rev: 1.21
Type: CD-ROM ANSI SCSI revision: 05
Scanning host 4 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs
Scanning host 5 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs
Scanning host 6 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs
Scanning for device 6 0 3 0 ...
OLD: Host: scsi6 Channel: 00 Id: 03 Lun: 00
Vendor: HP Model: Ultrium 3-SCSI Rev: G66D
Type: Sequential-Access ANSI SCSI revision: 03
My SD config in file (for test - default in Debian config is directory from
files)
-------------
#
# Default Bareos Storage Daemon Configuration file
#
# For Bareos release 12.4.4 (12 June 2013) -- suse SUSE Linux Enterprise
Server 11 (x86_64)
#
# You may need to change the name of your tape drive
# on the "Archive Device" directive in the Device
# resource. If you change the Name and/or the
# "Media Type" in the Device resource, please ensure
# that dird.conf has corresponding changes.
#
Storage { # definition of myself
Name = bareos-storage-sd
Maximum Concurrent Jobs = 20
# remove comment in next line to load plugins from specified directory
# Plugin Directory = /usr/lib64/bareos/plugins
}
#
# List Directors who are permitted to contact Storage daemon
#
Director {
Name = bareos-dir
Password = "ZknJYcTKtHNuCCmc7c827hQVKWT5RKyEhw+tI7PTJ7nv"
}
#
# Restricted Director, used by tray-monitor to get the
# status of the storage daemon
#
Director {
Name = bareos-storage-mon
Password = "ZknJYcTKtHNuCCmc7c827hQVKWT5RKyEhw+tI7PTJ7nv"
Monitor = yes
}
#
# Note, for a list of additional Device templates please
# see the directory <bareos-source>/examples/devices
# Or follow the following link:
#
http://bareos.svn.sourceforge.net/viewvc/bareos/trunk/bareos/examples/devices/
#
#
# Devices supported by this Storage daemon
# To connect, the Director's bareos-dir.conf must have the
# same Name and MediaType.
#
Device {
Name = FileStorage
Media Type = File
Archive Device = /var/lib/bareos/storage
LabelMedia = yes; # lets Bareos label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
#
# An autochanger device with two drives
#
#Autochanger {
# Name = Autochanger
# Device = Drive-1
# Device = Drive-2
# Changer Command = "/usr/lib/bareos/scripts/mtx-changer %c %o %S %a %d"
# Changer Device = /dev/sg0
#}
#Device {
# Name = Drive-1 #
.....
#Device {
# Name = Drive-2 #
# Drive Index = 1
# Media Type = DLT-8000
...
#
# A Linux or Solaris LTO-2 tape drive
#
#Device {
# Name = LTO-2
# Media Type = LTO-2
....
#
# A Linux or Solaris LTO-3 tape drive
#
Device {
Name = LTO3
Media Type = LTO-3
Archive Device = /dev/st0
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
Maximum File Size = 4GB
Changer Command = "/usr/lib/bareos/scripts/mtx-changer %c %o %S %a %d"
# Changer Device = /dev/sg0
AutoChanger = no
# Enable the Alert command only if you have the mtx package loaded
# Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
# If you have smartctl, enable this, it has more info than tapeinfo
# Alert Command = "sh -c 'smartctl -H -l error %c'"
}
#
# A Linux or Solaris LTO-4 tape drive
#
#Device {
# Name = LTO-4
# Media Type = LTO-4
....
#
# A FreeBSD tape drive
#
#Device {
# Name = DDS-4
# Description = "DDS-4 for FreeBSD"
....
#
# Send all messages to the Director,
# mount messages also are sent to the email address
#
Messages {
Name = Standard
director = bareos-dir = all
}
--
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.