Hello!

Sorry for my english i am not good enough!
I'm not hiding that I'm just starting to get to know BareOS!

I'm installed on XenServer 7.1 as VM CentOS 7. To XenServer is connect tape 
library TL3100 and inside is one Drive IBM Ultrium 5.
On CentOS is BareOS 16.2.4. I'm redirect PCI ports from XS to VM (PCI 
PassThrough). I cant run bare-os.sd

Status on VM:

[root@BRZE-BareOS autochanger]# lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] 
(rev 01)
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 01)
00:02.0 VGA compatible controller: Device 1234:1111
00:03.0 SCSI storage controller: XenSource, Inc. Xen Platform Device (rev 02)
00:05.0 Fibre Channel: Emulex Corporation Saturn-X: LightPulse Fibre Channel 
Host Adapter (rev 03)
00:06.0 Fibre Channel: Emulex Corporation Saturn-X: LightPulse Fibre Channel 
Host Adapter (rev 03)

[root@BRZE-BareOS autochanger]# lsscsi -g
[1:0:1:0]    cd/dvd  QEMU     QEMU DVD-ROM     0.10  /dev/sr0   /dev/sg0
[3:0:0:0]    tape    IBM      ULT3580-HH5      G9N1  /dev/st0   /dev/sg1
[3:0:0:1]    mediumx IBM      3573-TL          E.20  /dev/sch0  /dev/sg2

[root@BRZE-BareOS device]# dmesg | grep 3:0:0
[169037.229006] scsi 3:0:0:0: Sequential-Access IBM      ULT3580-HH5      G9N1 
PQ: 0 ANSI: 6
[169037.244229] scsi 3:0:0:1: Medium Changer    IBM      3573-TL          E.20 
PQ: 0 ANSI: 5
[169037.502748] scsi 3:0:0:0: Attached scsi generic sg1 type 1
[169037.502799] scsi 3:0:0:1: Attached scsi generic sg2 type 8
[169037.524809] st 3:0:0:0: Attached scsi tape st0
[169037.524823] st 3:0:0:0: st0: try direct i/o: yes (alignment 4 B)
[169037.546896] ch 3:0:0:1: [ch0] type #1 (mt): 0x1+1 [medium transport]
[169037.546899] ch 3:0:0:1: [ch0] type #2 (st): 0x1000+23 [storage]
[169037.546900] ch 3:0:0:1: [ch0] type #3 (ie): 0x10+1 [import/export]
[169037.546901] ch 3:0:0:1: [ch0] type #4 (dt): 0x101+1 [data transfer]
[169037.567576] ch 3:0:0:1: [ch0] dt 0x101:
[169037.567579] ch 3:0:0:1: [ch0] ID/LUN unknown
[169037.567581] ch 3:0:0:1: [ch0] INITIALIZE ELEMENT STATUS, may take some time 
...
[169037.581512] ch 3:0:0:1: [ch0] ... finished
[169037.581515] ch 3:0:0:1: Attached scsi changer ch0
[188453.769695] scsi 3:0:0:0: Sequential-Access IBM      ULT3580-HH5      G9N1 
PQ: 0 ANSI: 6
[188453.784937] st 3:0:0:0: Attached scsi tape st0
[188453.784939] st 3:0:0:0: st0: try direct i/o: yes (alignment 4 B)
[188453.785000] st 3:0:0:0: Attached scsi generic sg1 type 1
[188453.789834] scsi 3:0:0:1: Medium Changer    IBM      3573-TL          E.20 
PQ: 0 ANSI: 5
[188453.839759] ch 3:0:0:1: [ch0] type #1 (mt): 0x1+1 [medium transport]
[188453.839762] ch 3:0:0:1: [ch0] type #2 (st): 0x1000+23 [storage]
[188453.839764] ch 3:0:0:1: [ch0] type #3 (ie): 0x10+1 [import/export]
[188453.839765] ch 3:0:0:1: [ch0] type #4 (dt): 0x101+1 [data transfer]
[188577.872338] ch 3:0:0:1: [ch0] dt 0x101: READ ELEMENT STATUS failed
[188577.872342] ch 3:0:0:1: [ch0] INITIALIZE ELEMENT STATUS, may take some time 
...
[188577.873579] ch 3:0:0:1: [ch0] ... finished
[188577.873581] ch 3:0:0:1: Attached scsi changer ch0
[188577.874033] ch 3:0:0:1: Attached scsi generic sg2 type 8


[root@BRZE-BareOS autochanger]# cat /proc/scsi/scsi
Attached devices:
Host: scsi1 Channel: 00 Id: 01 Lun: 00
  Vendor: QEMU     Model: QEMU DVD-ROM     Rev: 0.10
  Type:   CD-ROM                           ANSI  SCSI revision: 05
Host: scsi3 Channel: 00 Id: 00 Lun: 00
  Vendor: IBM      Model: ULT3580-HH5      Rev: G9N1
  Type:   Sequential-Access                ANSI  SCSI revision: 06
Host: scsi3 Channel: 00 Id: 00 Lun: 01
  Vendor: IBM      Model: 3573-TL          Rev: E.20
  Type:   Medium Changer                   ANSI  SCSI revision: 05


[root@BRZE-BareOS /]# mtx -f /dev/sg2 status
  Storage Changer /dev/sg2:1 Drives, 24 Slots ( 1 Import/Export )
Data Transfer Element 0:Empty
      Storage Element 1:Full :VolumeTag=BB0044L5
      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
[root@BRZE-BareOS /]# mtx -f /dev/sg1 inquiry
Product Type: Tape Drive
Vendor ID: 'IBM     '
Product ID: 'ULT3580-HH5     '
Revision: 'G9N1'
Attached Changer API: No
[root@BRZE-BareOS /]# mtx -f /dev/sg2 inquiry
Product Type: Medium Changer
Vendor ID: 'IBM     '
Product ID: '3573-TL         '
Revision: 'E.20'
Attached Changer API: No

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

On CentOS is installed Bareos-Dir,Sd,Fd

I have (in location) /etc/bareos/bareos-dir.d/storage files File.conf and 
Tape.conf with the same password (It is correct?)

Storage {
  Name = File
  Address = BareOS
  Password = "b1xMf6sWp5K/wA5TKmVQLdQNBMvqgXW4IRqcBoRdmsfb"
  Device = FileStorage
  Media Type = File
}

Storage {
  Name = Tape
  Address  = BareOS
  Password = "b1xMf6sWp5K/wA5TKmVQLdQNBMvqgXW4IRqcBoRdmsfb"
  Device = 3573-TL
  Media Type = LTO5
}

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

/etc/bareos/bareos-sd.d/autochanger/3573-TL.conf

Autochanger {
  Name = "3573-TL"
  # adapt this, to match your storage loader
  Charger Device = /dev/tape/by-id/scsi-1IBM_3573-TL_00L2U78BW629_LL0
  #Charger Device = /dev/sg2

  Device = ULT3580-HH5

  Changer Command = "/usr/lib/bareos/scripts/mtx-changer %c %o %S %a %d"
}

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

/etc/bareos/bareos-sd.d/device/ULT3580-HH8.conf

Device {

    Name = "ULT3580-HH5"
    DeviceType = tape

    # default:0, only required if the autoloader have multiple drives.
    #DriveIndex = 0

    # if only one drive is available, this is normally /dev/nst0.
    # However, it is advised to access it via id (/dev/tape/by-id/...).
    ArchiveDevice = /dev/tape/by-id/scsi-32004000e11168106-nst
    #ArchiveDevice = /dev/sg1

    # arbitrary string that descripes the the storage media.
    # Bareos uses this to determine, which device can be handle what media.
    MediaType = LTO5

    # enable "Check Labels" if tapes with ANSI/IBM labels
    # should be preserved
    Check Labels = no

    AutoChanger = yes                       # default: no
    AutomaticMount = yes                    # default: no
    MaximumFileSize = 20GB                  # default: 1000000000 (1GB)
}

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;
  Description = "File device. A connecting Director must have the same Name and 
MediaType."
}


xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

[root@BRZE-BareOS autochanger]# 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 autochanger]# 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 01:37:28 CET; 18s 
ago
     Docs: man:bareos-sd(8)
  Process: 27882 ExecStart=/usr/sbin/bareos-sd (code=exited, status=1/FAILURE)
 Main PID: 10127 (code=exited, status=15)

Mar 26 01:37:27 BRZE-BareOS systemd[1]: bareos-sd.service: control process 
exited, code=exited status=1
Mar 26 01:37:27 BRZE-BareOS systemd[1]: Failed to start Bareos Storage Daemon 
service.
Mar 26 01:37:27 BRZE-BareOS systemd[1]: Unit bareos-sd.service entered failed 
state.
Mar 26 01:37:27 BRZE-BareOS systemd[1]: bareos-sd.service failed.
Mar 26 01:37:28 BRZE-BareOS systemd[1]: bareos-sd.service holdoff time over, 
scheduling restart.
Mar 26 01:37:28 BRZE-BareOS systemd[1]: start request repeated too quickly for 
bareos-sd.service
Mar 26 01:37:28 BRZE-BareOS systemd[1]: Failed to start Bareos Storage Daemon 
service.
Mar 26 01:37:28 BRZE-BareOS systemd[1]: Unit bareos-sd.service entered failed 
state.
Mar 26 01:37:28 BRZE-BareOS systemd[1]: bareos-sd.service failed.
[root@BRZE-BareOS autochanger]# btape
Tape block granularity is 1024 bytes.
▒f▒Wbtape: ERROR TERMINATION at parse_conf.c:292
Config error: Keyword "ChargerDevice" not permitted in this resource.
Perhaps you left the trailing brace off of the previous resource.
            : line 4, col 17 of file 
/etc/bareos/bareos-sd.d/autochanger/3573-TL.conf
  Charger Device = /dev/tape/by-id/scsi-1IBM_3573-TL_00L2U78BW629_LL0
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I hope for your understanding, and I'm wainting for help.

-- 
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