View Issue Details

IDProjectCategoryView StatusLast Update
0000400bareos-corestorage daemonpublic2015-03-25 19:19
Reporterpstorz Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSanyOS Version3
Product Version14.2.2 
Summary0000400: btape fill test fails
Description- If device has not set "label media = yes", already the labeling of the testtape fails:

Multiple tape test selected.
20-Jan 09:56 btape JobId 0: Error: block.c:1004 Read error on fd=3 at file:blk 0:0 on device "LTO-1" (/dev/tape/by-id/scsi-350011d00018a5f03-nst). ERR=Cannot allocate memory.
20-Jan 09:56 btape JobId 0: Warning: Device "LTO-1" (/dev/tape/by-id/scsi-350011d00018a5f03-nst) not configured to autolabel Volumes.
Mount Volume "TestVolume1" on device "LTO-1" (/dev/tape/by-id/scsi-350011d00018a5f03-nst) and press return when ready:



When label media = yes is set, the volume labeling works.


Then, the following happens:

Wrote block=780000, file,blk=164,2816 VolBytes=817,889,280,000 rate=107.7 MB/s
Wrote block=785000, file,blk=165,3048 VolBytes=823,132,160,000 rate=107.7 MB/s
Wrote block=790000, file,blk=166,3280 VolBytes=828,375,040,000 rate=107.8 MB/s
20-Jan 00:04 btape JobId 0: End of Volume "TestVolume1" at 167:1101 on device "LTO-1" (/dev/tape/by-id/scsi-350011d00018a5f03-nst). Write of 1048576 bytes got -1.
btape: btape.c:2736-0 Last block at: 167:1100 this_dev_block_num=1101
btape: btape.c:2771-0 End of tape 168:0. Volume Bytes=831,089,803,264. Write rate = 107.7 MB/s
20-Jan 00:04 btape JobId 0: End of medium on Volume "TestVolume1" Bytes=831,089,803,264 Blocks=792,589 at 20-Jan-2015 00:04.
20-Jan 00:04 btape JobId 0: 3307 Issuing autochanger "unload slot 1, drive 0" command.
20-Jan 00:05 btape JobId 0: 3304 Issuing autochanger "load slot 1, drive 0" command.
20-Jan 00:06 btape JobId 0: 3305 Autochanger "load slot 1, drive 0", status is OK.
20-Jan 00:06 btape JobId 0: Volume "TestVolume1" previously written, moving to end of data.
20-Jan 00:06 btape JobId 0: Warning: For Volume "TestVolume1":
The number of files mismatch! Volume=168 Catalog=0
Correcting Catalog
20-Jan 00:06 btape JobId 0: New volume "TestVolume1" mounted on device "LTO-1" (/dev/tape/by-id/scsi-350011d00018a5f03-nst) at 20-Jan-2015 00:06.
20-Jan 00:06 btape JobId 0: End of Volume "TestVolume1" at 168:1 on device "LTO-1" (/dev/tape/by-id/scsi-350011d00018a5f03-nst). Write of 1048576 bytes got -1.
btape: btape.c:2736-0 Last block at: 167:1100 this_dev_block_num=1
btape: btape.c:2771-0 End of tape 169:0. Volume Bytes=1,048,576. Write rate = 135 B/s
20-Jan 00:07 btape JobId 0: End of medium on Volume "TestVolume1" Bytes=1,048,576 Blocks=1 at 20-Jan-2015 00:07.
20-Jan 00:07 btape JobId 0: 3307 Issuing autochanger "unload slot 1, drive 0" command.
20-Jan 00:08 btape JobId 0: 3304 Issuing autochanger "load slot 1, drive 0" command.
20-Jan 00:09 btape JobId 0: 3305 Autochanger "load slot 1, drive 0", status is OK.
20-Jan 00:09 btape JobId 0: Volume "TestVolume1" previously written, moving to end of data.
20-Jan 00:09 btape JobId 0: Warning: For Volume "TestVolume1":
The number of files mismatch! Volume=169 Catalog=0
Correcting Catalog
20-Jan 00:09 btape JobId 0: New volume "TestVolume1" mounted on device "LTO-1" (/dev/tape/by-id/scsi-350011d00018a5f03-nst) at 20-Jan-2015 00:09.
20-Jan 00:09 btape JobId 0: End of Volume "TestVolume1" at 169:1 on device "LTO-1" (/dev/tape/by-id/scsi-350011d00018a5f03-nst). Write of 1048576 bytes got -1.
btape: btape.c:2736-0 Last block at: 167:1100 this_dev_block_num=1
btape: btape.c:2771-0 End of tape 170:0. Volume Bytes=1,048,576. Write rate = 135 B/s
20-Jan 00:09 btape JobId 0: End of medium on Volume "TestVolume1" Bytes=1,048,576 Blocks=1 at 20-Jan-2015 00:09.
20-Jan 00:09 btape JobId 0: 3307 Issuing autochanger "unload slot 1, drive 0" command.


TagsNo tags attached.

Relationships

child of 0000393 closed Release bareos-14.2.3 

Activities

pstorz

pstorz

2015-01-20 10:18

administrator   ~0001201

When the label error occurse, the kernel logs:

[4321752.794249] st1: Failed to read 1048576 byte block with 64512 byte transfer.
[4321797.029753] st1: Failed to read 1048576 byte block with 64512 byte transfer.
pstorz

pstorz

2015-01-20 10:38

administrator   ~0001202

Label Media = no was set in the used test configuration, so that is not the problem
pstorz

pstorz

2015-01-22 21:04

administrator   ~0001206

Fix committed to bareos master branch with changesetid 2651.
mvwieringen

mvwieringen

2015-03-25 16:51

developer   ~0001444

Fix committed to bareos2015 bareos-14.2 branch with changesetid 4459.
joergs

joergs

2015-03-25 19:19

developer   ~0001597

Due to the reimport of the Github repository to bugs.bareos.org, the status of some tickets have been changed. These tickets will be closed again.
Sorry for the noise.

Related Changesets

bareos: master 24ef2e0d

2015-01-21 12:47

pstorz

Ported: N/A

Details Diff
Fix btape problem with new reservation logic

btape was not able to reserve the first tape
for reading because dcr->m_will_write was not cleared.
Affected Issues
0000400
mod - src/stored/btape.c Diff File

bareos: bareos-14.2 d3cd86b9

2015-01-21 12:47

Philipp Storz


Committer: Joerg Steffens

Ported: master

Details Diff
Fix btape problem with new reservation logic

btape was not able to reserve the first tape
for reading because dcr->m_will_write was not cleared.
Affected Issues
0000400
mod - src/stored/btape.c Diff File

bareos: master e3e55f14

2015-01-22 13:42

pstorz

Ported: N/A

Details Diff
Make btape use a BTAPE_DCR instead of a DCR

After the changes introduced with commit
8a90b586d9d15838b9b9e5becccc44df109a7755
( Implement the DCR (Device Control Record)
as an inherited class of SMARTALLOC)
, btape used the wrong type of DCR.

Now we use a BTAPE_DCR.

Fixes 0000400: btape fill test fails
Affected Issues
0000400
mod - src/stored/bcopy.c Diff File
mod - src/stored/bextract.c Diff File
mod - src/stored/bls.c Diff File
mod - src/stored/bscan.c Diff File
mod - src/stored/btape.c Diff File
mod - src/stored/butil.c Diff File
mod - src/stored/protos.h Diff File

bareos: bareos-14.2 ce429f8f

2015-01-22 13:42

Philipp Storz


Committer: Joerg Steffens

Ported: master

Details Diff
Make btape use a BTAPE_DCR instead of a DCR

After the changes introduced with commit
8a90b586d9d15838b9b9e5becccc44df109a7755
( Implement the DCR (Device Control Record)
as an inherited class of SMARTALLOC)
, btape used the wrong type of DCR.

Now we use a BTAPE_DCR.

Fixes 0000400: btape fill test fails
Affected Issues
0000400
mod - src/stored/bcopy.c Diff File
mod - src/stored/bextract.c Diff File
mod - src/stored/bls.c Diff File
mod - src/stored/bscan.c Diff File
mod - src/stored/btape.c Diff File
mod - src/stored/butil.c Diff File
mod - src/stored/protos.h Diff File

bareos2015: bareos-14.2 24873052

2015-01-22 13:42

pstorz


Committer: mvwieringen

Ported: N/A

Details Diff
Make btape use a BTAPE_DCR instead of a DCR

After the changes introduced with commit
8a90b586d9d15838b9b9e5becccc44df109a7755
( Implement the DCR (Device Control Record)
as an inherited class of SMARTALLOC)
, btape used the wrong type of DCR.

Now we use a BTAPE_DCR.

Fixes 0000400: btape fill test fails
Affected Issues
0000400
mod - src/stored/bcopy.c Diff File
mod - src/stored/bextract.c Diff File
mod - src/stored/bls.c Diff File
mod - src/stored/bscan.c Diff File
mod - src/stored/btape.c Diff File
mod - src/stored/butil.c Diff File
mod - src/stored/protos.h Diff File

Issue History

Date Modified Username Field Change
2015-01-20 09:57 pstorz New Issue
2015-01-20 10:18 pstorz Note Added: 0001201
2015-01-20 10:38 pstorz Note Added: 0001202
2015-01-22 21:04 pstorz Changeset attached => bareos master e3e55f14
2015-01-22 21:04 pstorz Note Added: 0001206
2015-01-22 21:04 pstorz Status new => resolved
2015-01-22 21:04 pstorz Resolution open => fixed
2015-01-22 21:58 mvwieringen Changeset attached => bareos master 24ef2e0d
2015-01-23 14:12 joergs Relationship added child of 0000393
2015-02-02 10:30 joergs Changeset attached => bareos bareos-14.2 ce429f8f
2015-02-02 10:31 joergs Changeset attached => bareos bareos-14.2 d3cd86b9
2015-03-25 16:51 mvwieringen Changeset attached => bareos2015 bareos-14.2 24873052
2015-03-25 16:51 mvwieringen Note Added: 0001444
2015-03-25 19:19 joergs Note Added: 0001597
2015-03-25 19:19 joergs Status resolved => closed