Unable to write backups on a tape library Overland 2000 lto3

53 views
Skip to first unread message

Kiril Churilov

unread,
Oct 7, 2019, 6:49:53 AM10/7/19
to bareos-users
Hi all,
I'm trying to configure bareos with tape library  Overland2000 with two tape drives (old one  model).
All tapes have barcodes on it.
I'm stack with making volumes on tape library,
The tape library is used before.
I don't know what is the condition of all this tapes.
And I don't know are they all empty or used before.
I don't know how to erase a tape in a library.
How to put tape at the start (beginning)   before write.
Can not advance in this area forward 
Googling does not help also.
Please help me 

Some  configuration info 
And error log output.

groups 

So, some info

Tape library; Overland Neo2000, 2 x LTO 3 drives

 uname -a
Linux bareos-cintrol 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5 (2019-06-19) x86_64 GNU/Linux

root@bareos-cintrol:/etc/bareos/bareos-sd.d/storage# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster

root@bareos-cintrol:/etc/bareos/bareos-sd.d/storage# sudo dpkg-query -l |  grep -i bareos
ii  bareos                           18.2.5-144.1                    amd64        Backup Archiving Recovery Open Sourced - metapackage
ii  bareos-bconsole                  18.2.5-144.1                    amd64        Backup Archiving Recovery Open Sourced - text console
ii  bareos-client                    18.2.5-144.1                    amd64        Backup Archiving Recovery Open Sourced - client metapackage
ii  bareos-common                    18.2.5-144.1                    amd64        Backup Archiving Recovery Open Sourced - common files
ii  bareos-database-common           18.2.5-144.1                    amd64        Backup Archiving Recovery Open Sourced - common catalog files
ii  bareos-database-postgresql       18.2.5-144.1                    amd64        Backup Archiving Recovery Open Sourced - PostgreSQL backend
ii  bareos-database-tools            18.2.5-144.1                    amd64        Backup Archiving Recovery Open Sourced - database tools
ii  bareos-director                  18.2.5-144.1                    amd64        Backup Archiving Recovery Open Sourced - director daemon
ii  bareos-filedaemon                18.2.5-144.1                    amd64        Backup Archiving Recovery Open Sourced - file daemon
ii  bareos-storage                   18.2.5-144.1                    amd64        Backup Archiving Recovery Open Sourced - storage daemon
ii  bareos-storage-tape              18.2.5-144.1                    amd64        Backup Archiving Recovery Open Sourced - storage daemon tape support
ii  bareos-tools                     18.2.5-144.1                    amd64        Backup Archiving Recovery Open Sourced - common tools
ii  bareos-webui                     18.2.5-131.1                    all          Backup Archiving Recovery Open Sourced - webui


root@bareos-cintrol:/etc/bareos/bareos-sd.d/storage# cat /etc/bareos/bareos-dir.d/storage/Tape.conf 
Storage {
  Name = Tape
  Address = 172.26.16.89               # N.B. Use a fully qualified name here (do not use "localhost" here).
  Password = "v8QXvRQ5Xvry8PWjh75foohcJSzNl9DfyP8YYz2mq5Jk"
  Device = NEO2000
  Media Type = LTO-3
  Autochanger = Yes
  Maximum Concurrent Jobs = 2
}


root@bareos-cintrol:/etc/bareos/bareos-sd.d/storage# cat /etc/bareos/bareos-sd.d/device/Autochanger.conf 
# Autochanger NEO2000 with two LTO-3 drives
Autochanger {
  Name = "NEO2000"
  Changer Device = /dev/sg6
  Device = nst0
  Device = nst1
  Changer Command = "/usr/lib/bareos/scripts/mtx-changer %c %o %S %a %d"
}

Device {
    Name = "nst0"
    DeviceType = tape
    Description = "HP Ultrium 3-SCSI  LTO-3"
    DriveIndex = 0
    ArchiveDevice = /dev/nst0
    MediaType = LTO-3
    Drive Crypto Enabled = Yes
    Query Crypto Status = Yes
    AutoChanger = yes
    AutomaticMount = yes
    AlwaysOpen = yes
    RemovableMedia = yes
#    LabelMedia = yes
    Autoselect = yes
    RandomAccess = no
    MaximumFileSize = 10GB                  # default: 1000000000 (1GB)
    Spool Directory = /var/spool/bareos/1
    Maximum Spool Size = 450000000000
}

Device {
    Name = "nst1"
    DeviceType = tape
    Description = "IBM ULTRIUM-TD3  LTO-3"
    DriveIndex = 1
    ArchiveDevice = /dev/nst1
    MediaType = LTO-3
    Drive Crypto Enabled = Yes
    Query Crypto Status = Yes
    AutoChanger = yes
    AutomaticMount = yes
    AlwaysOpen = yes
    RemovableMedia = yes
#    LabelMedia = yes
    Autoselect = yes
    RandomAccess = no
    MaximumFileSize = 10GB                  # default: 1000000000 (1GB)
    Spool Directory = /var/spool/bareos/2
    Maximum Spool Size = 450000000000
}

# cat /etc/bareos/bareos-dir.d/fileset/nas03.conf 


FileSet {
  Name = "nas03"
  Description = "Backup all regular filesystems, determined by filesystem type."
  Include {
    Options {
      Signature = MD5
      OneFS = No
      AclSupport = Yes
      XattrSupport = Yes
      Fs Type = "btrfs"
      Fs Type = "ext2"
      Fs Type = "ext3"
      Fs Type = "ext4"
      Fs Type = "reiserfs"
      Fs Type = "jfs"
      Fs Type = "xfs"
      Fs Type = "zfs"
    }
    File = "/mnt/iscsi_share"
  }
  Exclude {
    File = "/var/lib/bareos"
    File = "/var/lib/bareos/storage"
    File = "/proc"
    File = "/tmp"
    File = "/var/tmp"
    File = "/.journal"
    File = "/.fsck"
  }
}

root@bareos-cintrol:/etc/bareos/bareos-sd.d/storage# cat /etc/bareos/bareos-dir.d/client/nas03.conf 
Client {
  Name = nas03
  Address = 172.16.16.90
  Password = Some_cool_Pass2019
}


root@bareos-cintrol:/etc/bareos/bareos-sd.d/storage# cat /etc/bareos/bareos-dir.d/job/nas03-job.conf 
Job {
  Name = nas03-job
  Client = nas03
  JobDefs = nas03DefaultJob
}

root@bareos-cintrol:/etc/bareos/bareos-sd.d/storage# cat /etc/bareos/bareos-dir.d/jobdefs/nas03DefaultJob.conf 
JobDefs {
  Name = "nas03DefaultJob"
  Type = Backup
  Level = Full
  Client = bareos-fd
  FileSet = "nas03"                     # selftest fileset                            (#13)
  Schedule = "Nightly"
  Storage = Tape
  Messages = Standard
  Pool = B2T-full
  Priority = 10
  Write Bootstrap = "/var/lib/bareos/%c.bsr"
  Full Backup Pool = B2T-full                  # write Full Backups into "Full" Pool         (#05)
}

root@bareos-cintrol:/etc/bareos/bareos-sd.d/storage# cat /etc/bareos/bareos-dir.d/schedule/Nightly.conf 
Schedule {
  Name = "Nightly"
  Run = Level=Full Pool=B2T-full Spooldata=yes Priority=11  1st sun at 10:20
}


root@bareos-cintrol:/etc/bareos/bareos-sd.d/storage# lsscsi -g
[0:0:8:0]    enclosu DP       BACKPLANE        1.05  -          /dev/sg0 
[0:2:0:0]    disk    DELL     PERC 5/i         1.03  /dev/sda   /dev/sg1 
[0:2:1:0]    disk    DELL     PERC 5/i         1.03  /dev/sdb   /dev/sg2 
[1:0:0:0]    cd/dvd  HL-DT-ST CD-ROM GCR-8240N 1.10  /dev/sr0   /dev/sg3 
[4:0:1:0]    tape    HP       Ultrium 3-SCSI   G24H  /dev/st0   /dev/sg4 
[4:0:2:0]    tape    IBM      ULTRIUM-TD3      93GP  /dev/st1   /dev/sg5 
[4:0:6:0]    mediumx OVERLAND NEO Series       0616  /dev/sch0  /dev/sg6 

root@bareos-cintrol:~#  mtx -f /dev/sg6 status
  Storage Changer /dev/sg6:2 Drives, 30 Slots ( 1 Import/Export )
Data Transfer Element 0:Empty
Data Transfer Element 1:Empty
      Storage Element 1:Full :VolumeTag=SU0001L1                        
      Storage Element 2:Full :VolumeTag=SU0002L1                        
      Storage Element 3:Full :VolumeTag=SU0003L1                        
      Storage Element 4:Full :VolumeTag=SU0004L1                        
      Storage Element 5:Full :VolumeTag=SU0005L1                        
      Storage Element 6:Full :VolumeTag=SU0008L1                        
      Storage Element 7:Full :VolumeTag=SU0007L1                        
      Storage Element 8:Full :VolumeTag=SU0009L1                        
      Storage Element 9:Full :VolumeTag=SU0010L1                        
      Storage Element 10:Full :VolumeTag=SU0011L1                        
      Storage Element 11:Full :VolumeTag=SU0012L1                        
      Storage Element 12:Full :VolumeTag=SU0013L1                        
      Storage Element 13:Full :VolumeTag=SU0014L1                        
      Storage Element 14:Full :VolumeTag=SU0015L1                        
      Storage Element 15:Empty
      Storage Element 16:Empty
      Storage Element 17:Full :VolumeTag=000008L1                        
      Storage Element 18:Full :VolumeTag=000007L1                        
      Storage Element 19:Full :VolumeTag=000006L1                        
      Storage Element 20:Full :VolumeTag=000005L1                        
      Storage Element 21:Full :VolumeTag=000004L1                        
      Storage Element 22:Full :VolumeTag=000003L1                        
      Storage Element 23:Full :VolumeTag=000001L1                        
      Storage Element 24:Full :VolumeTag=SU0022L1                        
      Storage Element 25:Full :VolumeTag=SU0021L1                        
      Storage Element 26:Full :VolumeTag=SU0020L1                        
      Storage Element 27:Full :VolumeTag=SU0019L1                        
      Storage Element 28:Full :VolumeTag=SU0017L1                        
      Storage Element 29:Full :VolumeTag=SU0016L1                        
      Storage Element 30 IMPORT/EXPORT:Empty

*status storage
The defined Storage resources are:
     1: Tape
     2: File
Select Storage resource (1-2): 1
Connecting to Storage daemon Tape at bareos-cintrol:9103

bareos-sd Version: 18.2.5 (30 January 2019) Linux-4.4.92-6.18-default debian Debian GNU/Linux 9.7 (stretch)
Daemon started 03-Oct-19 04:47. Jobs: run=0, running=0, bareos.org build binary
 Heap: heap=249,856 smbytes=41,370 max_bytes=133,865 bufs=119 max_bufs=122
 Sizes: boffset_t=8 size_t=8 int32_t=4 int64_t=8 mode=0 bwlimit=0kB/s

Running Jobs:
No Jobs running.
====

Jobs waiting to reserve a drive:
====

Terminated Jobs:
 JobId  Level    Files      Bytes   Status   Finished        Name 
===================================================================
    92  Full         69    789.2 K  OK       26-Sep-19 21:10 BackupCatalog
    93  Incr          0         0   OK       27-Sep-19 21:00 backup-bareos-fd
    94  Full         69    803.3 K  OK       27-Sep-19 21:10 BackupCatalog
    95  Diff          0         0   OK       28-Sep-19 21:00 backup-bareos-fd
    96  Incr          0         0   OK       30-Sep-19 21:00 backup-bareos-fd
    97  Full         69    820.6 K  OK       30-Sep-19 21:10 BackupCatalog
    98  Incr          0         0   OK       01-Oct-19 21:00 backup-bareos-fd
    99  Full         69    834.8 K  OK       01-Oct-19 21:10 BackupCatalog
   100  Incr          0         0   OK       02-Oct-19 21:00 backup-bareos-fd
   101  Full         69    848.9 K  OK       02-Oct-19 21:10 BackupCatalog
====

Device status:
Autochanger "NEO2000" with devices:
   "nst0" (/dev/nst0)
   "nst1" (/dev/nst1)

Device "nst0" (/dev/nst0) is not open.
    Drive 0 is not loaded.
==

Device "nst1" (/dev/nst1) is not open.
    Drive 1 is not loaded.
==
====

Used Volume status:
====

====

You have messages.
*status slots storage=Tape
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Connecting to Storage daemon Tape at bareos-cintrol:9103 ...
3306 Issuing autochanger "slots" command.
Device "NEO2000" has 30 slots.
Connecting to Storage daemon Tape at bareos-cintrol:9103 ...
3306 Issuing autochanger "listall" command.
 Slot |   Volume Name    |   Status  |  Media Type    |         Pool             |
------+------------------+-----------+----------------+--------------------------|
    1*|         SU0001L1 |         ? |              ? |                        ? |
    2*|         SU0002L1 |         ? |              ? |                        ? |
    3*|         SU0003L1 |         ? |              ? |                        ? |
    4*|         SU0004L1 |         ? |              ? |                        ? |
    5*|         SU0005L1 |         ? |              ? |                        ? |
    6*|         SU0008L1 |         ? |              ? |                        ? |
    7*|         SU0007L1 |         ? |              ? |                        ? |
    8*|         SU0009L1 |         ? |              ? |                        ? |
    9*|         SU0010L1 |         ? |              ? |                        ? |
   10*|         SU0011L1 |         ? |              ? |                        ? |
   11*|         SU0012L1 |         ? |              ? |                        ? |
   12*|         SU0013L1 |         ? |              ? |                        ? |
   13*|         SU0014L1 |         ? |              ? |                        ? |
   14*|         SU0015L1 |         ? |              ? |                        ? |
   15*|                ? |         ? |              ? |                        ? |
   16*|                ? |         ? |              ? |                        ? |
   17*|         000008L1 |         ? |              ? |                        ? |
   18*|         000007L1 |         ? |              ? |                        ? |
   19*|         000006L1 |         ? |              ? |                        ? |
   20*|         000005L1 |         ? |              ? |                        ? |
   21*|         000004L1 |         ? |              ? |                        ? |
   22*|         000003L1 |         ? |              ? |                        ? |
   23*|         000001L1 |         ? |              ? |                        ? |
   24*|         SU0022L1 |         ? |              ? |                        ? |
   25*|         SU0021L1 |         ? |              ? |                        ? |
   26*|         SU0020L1 |         ? |              ? |                        ? |
   27*|         SU0019L1 |         ? |              ? |                        ? |
   28*|         SU0017L1 |         ? |              ? |                        ? |
   29*|         SU0016L1 |         ? |              ? |                        ? |
   30@|                ? |         ? |              ? |                        ? |
*


*update slots storage=Tape
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Connecting to Storage daemon Tape at bareos-cintrol:9103 ...
3306 Issuing autochanger "list" command.
Volume "SU0001L1" not found in catalog. Slot=1 InChanger set to zero.
Volume "SU0002L1" not found in catalog. Slot=2 InChanger set to zero.
Volume "SU0003L1" not found in catalog. Slot=3 InChanger set to zero.
Volume "SU0004L1" not found in catalog. Slot=4 InChanger set to zero.
Volume "SU0005L1" not found in catalog. Slot=5 InChanger set to zero.
Volume "SU0008L1" not found in catalog. Slot=6 InChanger set to zero.
Volume "SU0007L1" not found in catalog. Slot=7 InChanger set to zero.
Volume "SU0009L1" not found in catalog. Slot=8 InChanger set to zero.
Volume "SU0010L1" not found in catalog. Slot=9 InChanger set to zero.
Volume "SU0011L1" not found in catalog. Slot=10 InChanger set to zero.
Volume "SU0012L1" not found in catalog. Slot=11 InChanger set to zero.
Volume "SU0013L1" not found in catalog. Slot=12 InChanger set to zero.
Volume "SU0014L1" not found in catalog. Slot=13 InChanger set to zero.
Volume "SU0015L1" not found in catalog. Slot=14 InChanger set to zero.
Volume "000008L1" not found in catalog. Slot=17 InChanger set to zero.
Volume "000007L1" not found in catalog. Slot=18 InChanger set to zero.
Volume "000006L1" not found in catalog. Slot=19 InChanger set to zero.
Volume "000005L1" not found in catalog. Slot=20 InChanger set to zero.
Volume "000004L1" not found in catalog. Slot=21 InChanger set to zero.
Volume "000003L1" not found in catalog. Slot=22 InChanger set to zero.
Volume "000001L1" not found in catalog. Slot=23 InChanger set to zero.
Volume "SU0022L1" not found in catalog. Slot=24 InChanger set to zero.
Volume "SU0021L1" not found in catalog. Slot=25 InChanger set to zero.
Volume "SU0020L1" not found in catalog. Slot=26 InChanger set to zero.
Volume "SU0019L1" not found in catalog. Slot=27 InChanger set to zero.
Volume "SU0017L1" not found in catalog. Slot=28 InChanger set to zero.
Volume "SU0016L1" not found in catalog. Slot=29 InChanger set to zero.


*mount storage=Tape
Connecting to Storage daemon Tape at bareos-cintrol:9103 ...
Select Drive:
     1: Drive 0
     2: Drive 1
Select drive (1-2): 1
Enter autochanger slot: 1
Connecting to Storage daemon Tape at bareos-cintrol:9103 ...
3304 Issuing autochanger "load slot 1, drive 0" command.
3305 Autochanger "load slot 1, drive 0", status is OK.
3001 Mounted Volume: SU0001L1
3001 Device "nst0" (/dev/nst0) is already mounted with Volume "SU0001L1"


*umount storage=Tape
Select Drive:
     1: Drive 0
     2: Drive 1
Select drive (1-2): 1
Connecting to Storage daemon Tape at bareos-cintrol:9103 ...
3307 Issuing autochanger "unload slot 1, drive 0" command.

release storage=Tape




*list volumes
Using Catalog "MyCatalog"
Pool: Scratch
No results to list.
Pool: Incremental
+---------+------------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+---------+
| mediaid | volumename       | volstatus | enabled | volbytes | volfiles | volretention | recycle | slot | inchanger | mediatype | lastwritten         | storage |
+---------+------------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+---------+
|       2 | Incremental-0002 | Append    |       1 |  474,545 |        0 |    2,592,000 |       1 |    0 |         0 | File      | 2019-10-04 21:00:02 | File    |
+---------+------------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+---------+
Pool: Full
+---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+---------+
| mediaid | volumename | volstatus | enabled | volbytes    | volfiles | volretention | recycle | slot | inchanger | mediatype | lastwritten         | storage |
+---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+---------+
|       1 | Full-0001  | Append    |       1 | 245,662,176 |        0 |   31,536,000 |       1 |    0 |         0 | File      | 2019-10-05 21:00:02 | File    |
+---------+------------+-----------+---------+-------------+----------+--------------+---------+------+-----------+-----------+---------------------+---------+
Pool: Differential
+---------+-------------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+---------+
| mediaid | volumename        | volstatus | enabled | volbytes | volfiles | volretention | recycle | slot | inchanger | mediatype | lastwritten         | storage |
+---------+-------------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+---------+
|       3 | Differential-0003 | Append    |       1 |    3,213 |        0 |    7,776,000 |       1 |    0 |         0 | File      | 2019-09-28 21:00:03 | File    |
+---------+-------------------+-----------+---------+----------+----------+--------------+---------+------+-----------+-----------+---------------------+---------+
Pool: B2T-full
No results to list.


*list pools
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
+--------+--------------+---------+---------+----------+---------------+
| poolid | name         | numvols | maxvols | pooltype | labelformat   |
+--------+--------------+---------+---------+----------+---------------+
|      1 | Scratch      |       0 |       0 | Scratch  | *             |
|      2 | Incremental  |       1 |     100 | Backup   | Incremental-  |
|      3 | Full         |       1 |     100 | Backup   | Full-         |
|      4 | Differential |       1 |     100 | Backup   | Differential- |
|      5 | B2T-full     |       0 |     100 | Backup   | Vol           |
+--------+--------------+---------+---------+----------+---------------+
*


*run
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
A job name must be specified.
The defined Job resources are:
     1: RestoreFiles
     2: nas03-job
     3: BackupCatalog
     4: backup-bareos-fd
Select Job resource (1-4): 2
Run Backup job
JobName:  nas03-job
Level:    Full
Client:   nas03
Format:   Native
FileSet:  nas03
Pool:     B2T-full (From Job FullPool override)
Storage:  Tape (From Pool resource)
When:     2019-10-07 02:13:10
Priority: 10
OK to run? (yes/mod/no): yes
Job queued. JobId=110
*status job=110
Job "110" is not running.
You have messages.
*messages
07-Oct 02:13 bareos-dir JobId 110: Start Backup JobId 110, Job=nas03-job.2019-10-07_02.13.13_05
07-Oct 02:13 bareos-dir JobId 110: Connected Storage daemon at 172.26.16.89:9103, encryption: TLS_CHACHA20_POLY1305_SHA256
07-Oct 02:13 bareos-dir JobId 110: Using Device "nst0" to write.
07-Oct 02:13 bareos-dir JobId 110: Probing client protocol... (result will be saved until config reload)
07-Oct 02:13 bareos-dir JobId 110: Connected Client: nas03 at 172.16.16.90:9102, encryption: PSK-AES256-CBC-SHA
07-Oct 02:13 bareos-dir JobId 110:    Handshake: Immediate TLS 
07-Oct 02:13 nas03-fd JobId 110: Connected Storage daemon at 172.26.16.89:9103, encryption: PSK-AES256-CBC-SHA
07-Oct 02:13 nas03-fd JobId 110: Extended attribute support is enabled
07-Oct 02:13 nas03-fd JobId 110: ACL support is enabled
07-Oct 02:13 bareos-sd JobId 110: Job nas03-job.2019-10-07_02.13.13_05 is waiting. Cannot find any appendable volumes.
Please use the "label" command to create a new Volume for:
    Storage:      "nst0" (/dev/nst0)
    Pool:         B2T-full
    Media type:   LTO-3
*
*
*label
The defined Storage resources are:
     1: Tape
     2: File
Select Storage resource (1-2): 1
Connecting to Storage daemon Tape at 172.26.16.89:9103 ...
Select Drive:
     1: Drive 0
     2: Drive 1
Select drive (1-2): 1
Enter new Volume name: SU0001L1
Enter slot (0 or Enter for none): 
Defined Pools:
     1: Scratch
     2: Incremental
     3: Full
     4: Differential
     5: B2T-full
Select the Pool (1-5): 5
Connecting to Storage daemon Tape at 172.26.16.89:9103 ...
Sending label command for Volume "SU0001L1" Slot 0 ...
No slot defined in catalog (slot=0) for Volume "" on "nst0" (/dev/nst0).
Cartridge change or "update slots" may be required.
3910 Unable to open device ""nst0" (/dev/nst0)": ERR=backends/generic_tape_device.cc:146 Unable to open device "nst0" (/dev/nst0): ERR=No medium found

Label command failed for Volume SU0001L1.
Do not forget to mount the drive!!!


Label command failed for Volume SU0001L1.
Do not forget to mount the drive!!!
*update slots
Automatically selected Storage: Tape
Connecting to Storage daemon Tape at 172.26.16.89:9103 ...
3306 Issuing autochanger "slots" command.
Device "NEO2000" has 30 slots.
Connecting to Storage daemon Tape at 172.26.16.89:9103 ...
3306 Issuing autochanger "list" command.
Volume "SU0001L1" not found in catalog. Slot=1 InChanger set to zero.
Volume "SU0002L1" not found in catalog. Slot=2 InChanger set to zero.
Volume "SU0003L1" not found in catalog. Slot=3 InChanger set to zero.
Volume "SU0004L1" not found in catalog. Slot=4 InChanger set to zero.
Volume "SU0005L1" not found in catalog. Slot=5 InChanger set to zero.
Volume "SU0008L1" not found in catalog. Slot=6 InChanger set to zero.
Volume "SU0007L1" not found in catalog. Slot=7 InChanger set to zero.
Volume "SU0009L1" not found in catalog. Slot=8 InChanger set to zero.
Volume "SU0010L1" not found in catalog. Slot=9 InChanger set to zero.
Volume "SU0011L1" not found in catalog. Slot=10 InChanger set to zero.
Volume "SU0012L1" not found in catalog. Slot=11 InChanger set to zero.
Volume "SU0013L1" not found in catalog. Slot=12 InChanger set to zero.
Volume "SU0014L1" not found in catalog. Slot=13 InChanger set to zero.
Volume "SU0015L1" not found in catalog. Slot=14 InChanger set to zero.
Volume "000008L1" not found in catalog. Slot=17 InChanger set to zero.
Volume "000007L1" not found in catalog. Slot=18 InChanger set to zero.
Volume "000006L1" not found in catalog. Slot=19 InChanger set to zero.
Volume "000005L1" not found in catalog. Slot=20 InChanger set to zero.
Volume "000004L1" not found in catalog. Slot=21 InChanger set to zero.
Volume "000003L1" not found in catalog. Slot=22 InChanger set to zero.
Volume "000001L1" not found in catalog. Slot=23 InChanger set to zero.
Volume "SU0022L1" not found in catalog. Slot=24 InChanger set to zero.
Volume "SU0021L1" not found in catalog. Slot=25 InChanger set to zero.
Volume "SU0020L1" not found in catalog. Slot=26 InChanger set to zero.
Volume "SU0019L1" not found in catalog. Slot=27 InChanger set to zero.
Volume "SU0017L1" not found in catalog. Slot=28 InChanger set to zero.
Volume "SU0016L1" not found in catalog. Slot=29 InChanger set to zero.




*status client
The defined Client resources are:
     1: nas03
     2: bareos-fd
Select Client (File daemon) resource (1-2): 1
Connecting to Client nas03 at 172.16.16.90:9102
 Handshake: Immediate TLS, Encryption: PSK-AES256-CBC-SHA

nas03-fd Version: 18.2.5 (30 January 2019)  Linux-4.4.92-6.18-default redhat CentOS Linux release 7.6.1810 (Core) 
Daemon started 20-Aug-19 15:42. Jobs: run=0 running=1, bareos.org build binary
 Heap: heap=36,864 smbytes=66,243 max_bytes=66,437 bufs=315 max_bufs=317
 Sizeof: boffset_t=8 size_t=8 debug=0 trace=0 bwlimit=0kB/s

Running Jobs:
JobId 110 Job nas03-job.2019-10-07_02.13.13_05 is running.
    Full Backup Job started: 07-Oct-19 12:13
    Files=0 Bytes=0 Bytes/sec=0 Errors=0
    Bwlimit=0
    Files Examined=0
    SDReadSeqNo=5 fd=5
JobId 111 Job nas03-job.2019-10-07_02.40.11_07 is running.
    Full Backup Job started: 07-Oct-19 12:40
    Files=0 Bytes=0 Bytes/sec=0 Errors=0
    Bwlimit=0
    Files Examined=0
    SDReadSeqNo=5 fd=7
bareos-dir (director) connected at: 07-Oct-19 12:41
====

Terminated Jobs:
====

Running Jobs:
Writing: Full Backup job nas03-job JobId=110 Volume=""
    pool="B2T-full" device="nst0" (/dev/nst0)
    spooling=0 despooling=0 despool_wait=0
    Files=0 Bytes=0 AveBytes/sec=0 LastBytes/sec=0
    FDReadSeqNo=6 in_msg=6 out_msg=4 fd=5
Writing: Full Backup job nas03-job JobId=111 Volume=""
    pool="B2T-full" device="nst0" (/dev/nst0)
    spooling=0 despooling=0 despool_wait=0
    Files=0 Bytes=0 AveBytes/sec=0 LastBytes/sec=0
    FDReadSeqNo=6 in_msg=6 out_msg=4 fd=7
====

Jobs waiting to reserve a drive:
====

Terminated Jobs:
====

Device status:
Autochanger "NEO2000" with devices:
   "nst0" (/dev/nst0)
   "nst1" (/dev/nst1)

Device "nst0" (/dev/nst0) is not open.
    Device is BLOCKED waiting to create a volume for:
       Pool:        B2T-full
       Media type:  LTO-3
    Drive 0 is not loaded.
==

Device "nst1" (/dev/nst1) is not open.
    Drive 1 is not loaded.
==
====

Used Volume status:
====

====




IMG_20190619_115725.jpg
IMG_20190619_123213.jpg

Kiril Churilov

unread,
Oct 7, 2019, 8:04:50 AM10/7/19
to bareos-users
After desperad hours of googling I Found this solution 

Remove any labels from tapes by running

mt -f /dev/nst0 rewind
mt -f /dev/nst0 weof

for each tape.

Witch I reproduced on my own system 

mtx /dev/sg6  list 0 /dev/nst0 0


root@bareos-cintrol:~# /usr/lib/bareos/scripts/mtx-changer /dev/sg6  list 0 /dev/nst0 0
1:SU0001L1
2:SU0002L1
3:SU0003L1
4:SU0004L1
5:SU0005L1
6:SU0008L1
7:SU0007L1
8:SU0009L1
9:SU0010L1
10:SU0011L1
11:SU0012L1
12:SU0013L1
13:SU0014L1
14:SU0015L1
17:000008L1
18:000007L1
19:000006L1
20:000005L1
21:000004L1
22:000003L1
23:000001L1
24:SU0022L1
25:SU0021L1
26:SU0020L1
27:SU0019L1
28:SU0017L1
29:SU0016L1


 /usr/lib/bareos/scripts/mtx-changer /dev/sg6 load 1 /dev/nst0 0
 Loading media from Storage Element 1 into drive 0...done
root@bareos-cintrol:~# mt -f /dev/nst0 rewind
root@bareos-cintrol:~# mt -f /dev/nst0 weof

 /usr/lib/bareos/scripts/mtx-changer /dev/sg6   unload 1 /dev/nst0 0


*status slots
Automatically selected Storage: Tape
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Connecting to Storage daemon Tape at 172.26.16.89:9103 ...
3306 Issuing autochanger "slots" command.
Device "NEO2000" has 30 slots.
Connecting to Storage daemon Tape at 172.26.16.89:9103 ...
*label barcodes 
Automatically selected Storage: Tape
Connecting to Storage daemon Tape at 172.26.16.89:9103 ...
Select Drive:
     1: Drive 0
     2: Drive 1
Select drive (1-2): 1
Connecting to Storage daemon Tape at 172.26.16.89:9103 ...
3306 Issuing autochanger "list" command.
The following Volumes will be labeled:
Slot  Volume
==============
   1  SU0001L1
   2  SU0002L1
   3  SU0003L1
   4  SU0004L1
   5  SU0005L1
   6  SU0008L1
   7  SU0007L1
   8  SU0009L1
   9  SU0010L1
  10  SU0011L1
  11  SU0012L1
  12  SU0013L1
  13  SU0014L1
  14  SU0015L1
  17  000008L1
  18  000007L1
  19  000006L1
  20  000005L1
  21  000004L1
  22  000003L1
  23  000001L1
  24  SU0022L1
  25  SU0021L1
  26  SU0020L1
  27  SU0019L1
  28  SU0017L1
  29  SU0016L1
Do you want to label these Volumes? (yes|no): 1
Invalid response. You must answer yes or no.
Do you want to label these Volumes? (yes|no): yes
Defined Pools:
     1: Scratch
     2: Incremental
     3: Full
     4: Differential
     5: B2T-full
Select the Pool (1-5): 5
Connecting to Storage daemon Tape at 172.26.16.89:9103 ...
Sending label command for Volume "SU0001L1" Slot 1 ...
3304 Issuing autochanger "load slot 1, drive 0" command.
3305 Autochanger "load slot 1, drive 0", status is OK.
3000 OK label. VolBytes=64512 Volume="SU0001L1" Device="nst0" (/dev/nst0)
Catalog record for Volume "SU0001L1", Slot 1 successfully created.
Sending label command for Volume "SU0002L1" Slot 2 ...
3307 Issuing autochanger "unload slot 1, drive 0" command.
3304 Issuing autochanger "load slot 2, drive 0" command.
3305 Autochanger "load slot 2, drive 0", status is OK.
3920 Cannot label Volume because it is already labeled: "SU0005L1"
Label command failed for Volume SU0002L1.
Sending label command for Volume "SU0003L1" Slot 3 ...
3307 Issuing autochanger "unload slot 2, drive 0" command.
3304 Issuing autochanger "load slot 3, drive 0" command.
3305 Autochanger "load slot 3, drive 0", status is OK.
3920 Cannot label Volume because it is already labeled: "SU0003L1"
Label command failed for Volume SU0003L1.
Sending label command for Volume "SU0004L1" Slot 4 ...
3307 Issuing autochanger "unload slot 3, drive 0" command.

Kiril Churilov

unread,
Oct 7, 2019, 8:10:45 AM10/7/19
to bareos-users

*status slots

Automatically selected Storage: Tape

Automatically selected Catalog: MyCatalog

Using Catalog "MyCatalog"

Connecting to Storage daemon Tape at 172.26.16.89:9103 ...

3306 Issuing autochanger "listall" command.

 Slot |   Volume Name    |   Status  |  Media Type    |         Pool             |

------+------------------+-----------+----------------+--------------------------|

    1 |         SU0001L1 |    Append |          LTO-3 |                 B2T-full |

On Monday, October 7, 2019 at 1:49:53 PM UTC+3, Kiril Churilov wrote:
Reply all
Reply to author
Forward
0 new messages