Bug 226671 - sa driver error on close
Summary: sa driver error on close
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 10.4-STABLE
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-17 10:47 UTC by Dr. Andreas Haakh
Modified: 2018-03-21 18:35 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dr. Andreas Haakh 2018-03-17 10:47:39 UTC
I upgrading the kernel to r330489 and added:

options MAXPHYS=(1024*1024)
options DFLTPHYS=(1024*1024)

Since then, the following error occured:

echo "gtar -v -c -b 128 -F /root/select_tape -f /dev/nsa0 --sort=name -C /mmed/.zfs/snapshot/backup_2018-03-15 ./" |at -q A now

The log-file from at contains:
./
./Audio/
[...] Much stuff omitted
./Video/DVDs/Cary Grant/HOUSEBOAT.ISO
/usr/local/bin/gtar: /dev/nsa0: Funktion close fehlgeschlagen: Input/output error
2018-03-15 21:06:41 Backup for ... mit gtar-opt -b 128
2018-03-15 21:06:41 Inserting TAR_VOLUME: 2
2018-03-15 21:06:41 Unloading tape: <000112L5:0> to   slot 7
2018-03-15 21:08:41 Loading tape:   <000113L5:0> from slot 8
2018-03-15 21:09:20 Resuming backup!
/usr/local/bin/gtar: /dev/nsa0: Funktion write fehlgeschlagen: Operation not permitted
/usr/local/bin/gtar: Error is not recoverable: exiting now

The kernel is:
[ah@tmaster ~]$ uname -a
FreeBSD tmaster 10.4-STABLE FreeBSD 10.4-STABLE #0 r330489: Tue Mar  6 19:11:47 CET 2018 toor@tmaster:/usr/obj/usr/src/sys/TMASTER amd64
[ah@tmaster ~]$

The select_tape script returns the current tape from the drive to the library, loads the next one into the drive and returns.
Comment 1 Dr. Andreas Haakh 2018-03-21 18:35:06 UTC
Today I tried again to backup my data to tape and I found the following error on the console
(sa0:mps0:0:3:0): 65536-byte tape record bigger than supplied buffer
(sa0:mps0:0:3:0): WRITE FILEMARKS(6). CDB: 10 00 00 00 01 00 
(sa0:mps0:0:3:0): CAM status: SCSI Status Error
(sa0:mps0:0:3:0): SCSI status: Check Condition
(sa0:mps0:0:3:0): SCSI sense: NO SENSE asc:0,7 (Programmable early warning detected)
(sa0:mps0:0:3:0): EOM: Info: 0
(sa0:mps0:0:3:0): Field Replaceable Unit: 48
(sa0:mps0:0:3:0): Error 5, Retries exhausted
(sa0:mps0:0:3:0): failed to write terminating filemark(s)
(sa0:mps0:0:3:0): tape is now frozen- use an OFFLINE, REWIND or MTEOM command to clear this state.
(sa0:mps0:0:3:0): 10240-byte tape record bigger than supplied buffer
(sa0:mps0:0:3:0): tape is now frozen- use an OFFLINE, REWIND or MTEOM command to clear this state.