I was getting a message that Bareos is waiting for an appendable volume when running a backup job. No matter what I tried I couldn't run the job successfully and the 'cancel jobid' hung the bconsole (I had to press CTRL+C). Actually though bat I purged the volume but that didn't help either.
/var/log/bareos/bareos.log:
16-Dec 04:19 i7-dir JobId 4083: No prior Full backup Job record found.
16-Dec 04:19 i7-dir JobId 4083: No prior or suitable Full backup found in catalog. Doing FULL backup.
16-Dec 04:19 i7-dir JobId 4083: Start Backup JobId 4083, Job=i7_Backup.2015-12-16_04.19.22_34
16-Dec 04:19 i7-dir JobId 4083: Recycled current volume "BackupTape1"
16-Dec 04:19 i7-dir JobId 4083: Using Device "LTO-2" to write.
16-Dec 04:21 i7-sd JobId 4083: Error: block.c:630 Write error at 0:0 on device "LTO-2" (/dev/nst0). ERR=Invalid argument.
16-Dec 04:21 i7-sd JobId 4083: Error: block.c:644 Write error on fd=6 at file:blk 0:0 on device "LTO-2" (/dev/nst0). ERR=Invalid argument.
16-Dec 04:25 i7-sd JobId 4083: Error: Backspace record at EOT failed. ERR=Input/output error
16-Dec 04:25 i7-sd JobId 4083: Error: label.c:562 Unable to write device "LTO-2" (/dev/nst0): ERR=generic_tape_device.c:726 ioctl MTBSR error on "LTO-2" (/dev/nst0). ERR=Input/output error.
16-Dec 04:25 i7-sd JobId 4083: Marking Volume "BackupTape1" in Error in Catalog.
16-Dec 04:25 i7-sd JobId 4083: Job i7_Backup.2015-12-16_04.19.22_34 is waiting. Cannot find any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage: "LTO-2" (/dev/nst0)
Pool: DailyPool
Media type: LTO-2
So I decided to delete that volume and relabel it. So here is what I did:
# dd if=/dev/urandom of=/dev/st0 bs=16384 count=1024; mt -f /dev/nst0 weof; mt weof
1024+0 records in
1024+0 records out
16777216 bytes (17 MB) copied, 19.4806 s, 861 kB/s
# bconsole
Connecting to Director i7:9101
1000 OK: i7-dir Version: 15.2.2 (16 November 2015)
Enter a period to cancel a command.
*list volumes pool=DailyPool
No results to list.
*label volume=BackupTape1 pool=DailyPool
barcodes encrypt pool= slot= storage= volume=
*label volume=BackupTape1 pool=DailyPool
Using Catalog "MyCatalog"
Automatically selected Storage: LTO-2
Connecting to Storage daemon LTO-2 at i7:9103 ...
Sending label command for Volume "BackupTape1" Slot 0 ...
block.c:630 Write error at 0:0 on device "LTO-2" (/dev/nst0). ERR=Invalid argument.
block.c:644 Write error on fd=5 at file:blk 0:0 on device "LTO-2" (/dev/nst0). ERR=Invalid argument.
Backspace record at EOT failed. ERR=Input/output error
3912 Failed to label Volume: ERR=generic_tape_device.c:726 ioctl MTBSR error on "LTO-2" (/dev/nst0). ERR=Input/output error.
Label command failed for Volume BackupTape1.
Do not forget to mount the drive!!!
*
The configuration is fine. All filesets have been tested, communication between DIR, FD and SD works. But the actual backup doesn't. (the tape is healthy, as well as the device)
I hope someone can help.