View Issue Details

IDProjectCategoryView StatusLast Update
0000102bareos-coreinstaller / packagespublic2013-02-27 21:27
Reporteruser12Assigned To 
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
PlatformUbuntu 12.04 
Product Version13.1.0 
Summary0000102: mtx-changer reports nothing (no tape) is loaded, even if a tape is loaded
DescriptionCan't run autochanger test due to mtx-changer error
Steps To Reproduceroot@cardtech02:/etc/bareos# btape LTO -d 100
Tape block granularity is 1024 bytes.
btape: stored_conf.c:852-0 Inserting director res: cardtech02-mon
btape: stored_conf.c:852-0 Inserting device res: LTO
btape: crypto_cache.c:55-0 Could not open crypto cache file. /var/lib/bareos/bareos-sd.9103.cryptoc ERR=Datei oder Verzeichnis nicht gefunden
btape: butil.c:285-0 Using device: "LTO" for writing.
btape: dev.c:299-0 init_dev: tape=1 dev_name=/dev/nst0
btape: dev.c:363-0 open dev: type=2 dev_name="LTO" (/dev/nst0) vol= mode=OPEN_READ_ONLY
btape: dev.c:414-0 Open dev: device is tape
26-Feb 16:21 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0" command.
btape: autochanger.c:266-0 Run program=/usr/lib/bareos/scripts/mtx-changer /dev/sg3 loaded 0 /dev/nst0 0
btape: autochanger.c:268-0 run_prog: /usr/lib/bareos/scripts/mtx-changer /dev/sg3 loaded 0 /dev/nst0 0 stat=0 result= Storage Changer /dev/sg3:1 Drives, 9 Slots ( 1 Import/Export )
Data Transfer Element 0:Full (Storage Element 2 Loaded):VolumeTag = E01002L4
      Storage Element 1:Full :VolumeTag=E01001L4
      Storage Element 2:Empty
      Storage Element 3:Full :VolumeTag=E01003L4
      Storage Element 4:Full :VolumeTag=E01004L4
      Storage Element 5:Full :VolumeTag=E01005L4
      Storage Element 6:Full :VolumeTag=E01006L4
      Storage Element 7:Full :VolumeTag=E01007L4
      Storage Element 8:Full :VolumeTag=CLN101L4
      Storage Element 9 IMPORT/EXPORT:Empty
2
26-Feb 16:21 btape JobId 0: 3302 Autochanger "loaded? drive 0", result: nothing loaded.
btape: dev.c:429-0 Try open "LTO" (/dev/nst0) mode=OPEN_READ_ONLY
btape: dev.c:451-0 Rewind after open
btape: dev.c:2366-0 In set_os_device_parameters
btape: dev.c:2372-0 Set block size to zero
btape: dev.c:2388-0 MTSETDRVBUFFER
btape: dev.c:503-0 open dev: tape 3 opened
btape: dev.c:376-0 preserve=0x0 fd=3
btape: dev.c:353-0 Close fd for mode change.
btape: dev.c:363-0 open dev: type=2 dev_name="LTO" (/dev/nst0) vol= mode=OPEN_READ_WRITE
btape: dev.c:414-0 Open dev: device is tape
26-Feb 16:21 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0" command.
btape: autochanger.c:266-0 Run program=/usr/lib/bareos/scripts/mtx-changer /dev/sg3 loaded 0 /dev/nst0 0
btape: autochanger.c:268-0 run_prog: /usr/lib/bareos/scripts/mtx-changer /dev/sg3 loaded 0 /dev/nst0 0 stat=0 result= Storage Changer /dev/sg3:1 Drives, 9 Slots ( 1 Import/Export )
Data Transfer Element 0:Full (Storage Element 2 Loaded):VolumeTag = E01002L4
      Storage Element 1:Full :VolumeTag=E01001L4
      Storage Element 2:Empty
      Storage Element 3:Full :VolumeTag=E01003L4
      Storage Element 4:Full :VolumeTag=E01004L4
      Storage Element 5:Full :VolumeTag=E01005L4
      Storage Element 6:Full :VolumeTag=E01006L4
      Storage Element 7:Full :VolumeTag=E01007L4
      Storage Element 8:Full :VolumeTag=CLN101L4
      Storage Element 9 IMPORT/EXPORT:Empty
2
26-Feb 16:21 btape JobId 0: 3302 Autochanger "loaded? drive 0", result: nothing loaded.
btape: dev.c:429-0 Try open "LTO" (/dev/nst0) mode=OPEN_READ_WRITE
btape: dev.c:451-0 Rewind after open
btape: dev.c:2366-0 In set_os_device_parameters
btape: dev.c:2372-0 Set block size to zero
btape: dev.c:2388-0 MTSETDRVBUFFER
btape: dev.c:503-0 open dev: tape 3 opened
btape: dev.c:376-0 preserve=0x0 fd=3
btape: btape.c:499-0 open device "LTO" (/dev/nst0): OK
TagsNo tags attached.

Activities

user12

2013-02-26 16:30

  ~0000190

btape: btape.c:499-0 open device "LTO" (/dev/nst0): OK
*auto
btape: btape.c:1489-0 Max changer wait = 300 sec

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.
btape: btape.c:1521-0 run_prog: /usr/lib/bareos/scripts/mtx-changer /dev/sg3 loaded 1 /dev/nst0 0 stat=0 result=" Storage Changer /dev/sg3:1 Drives, 9 Slots ( 1 Import/Export )
"
Nothing loaded in the drive. OK.
btape: btape.c:1535-0 Results from loaded query= Storage Changer /dev/sg3:1 Drives, 9 Slots ( 1 Import/Export )

3303 Issuing autochanger "load 1 0" command.
btape: btape.c:1563-0 Changer=/usr/lib/bareos/scripts/mtx-changer /dev/sg3 load 1 /dev/nst0 0
btape: dev.c:1716-0 close_dev "LTO" (/dev/nst0)
btape: dev.c:1912-0 Enter unmount
btape: dev.c:1706-0 Clear volhdr vol=
3993 Bad autochanger command: /usr/lib/bareos/scripts/mtx-changer /dev/sg3 load 1 /dev/nst0 0
3993 result="Drive 0 Full (Storage Element 2 loaded)
": ERR=Child exited with code 1
You must correct this error or the Autochanger will not work.
*

user12

2013-02-27 17:38

  ~0000199

Problem fixed

Issue History

Date Modified Username Field Change
2013-02-26 16:27 user12 New Issue
2013-02-26 16:27 user12 Status new => assigned
2013-02-26 16:27 user12 Assigned To => joergs
2013-02-26 16:30 user12 Note Added: 0000190
2013-02-27 17:38 user12 Target Version 12.4.1 => 13.1.0
2013-02-27 17:38 user12 Fixed in Version 12.4.1 => 13.1.0
2013-02-27 17:38 user12 Note Added: 0000199
2013-02-27 17:38 user12 Status assigned => closed
2013-02-27 17:38 user12 Resolution open => fixed
2013-02-27 21:27 mvwieringen Assigned To joergs =>