Date: Thu, 7 May 2015 18:03:26 -0400 From: Dan Langille <dan@langille.org> To: freebsd-scsi@freebsd.org Subject: Re: Dud tapes Message-ID: <8E91F289-EBE1-41C7-AC5E-7891108D8C54@langille.org> In-Reply-To: <DF7DE372-00A8-4012-8C37-37C03747A574@langille.org> References: <DF7DE372-00A8-4012-8C37-37C03747A574@langille.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] > On May 1, 2015, at 9:41 AM, Dan Langille <dan@langille.org> wrote: > > > I'm using Bacula 7.0.5 on FreeBSD 10.1 (bacula-dir) and FreeBSD 9.3 (bacula-sd). > > Sometimes I get dud tapes. Or at least, tapes my tape drive does not like. > > For example: > > ### > 01-May 09:39 crey-sd JobId 205441: End of Volume "FAI022" at 11:11326 on device "DTL03" (/dev/nsa0). Write of 64512 bytes got 49152. > 01-May 09:39 crey-sd JobId 205441: Error: Error writing final EOF to tape. This Volume may not be readable. > tape_dev.c:941 ioctl MTWEOF error on "DTL03" (/dev/nsa0). ERR=Input/output error. > 01-May 09:39 crey-sd JobId 205441: End of medium on Volume "FAI022" Bytes=10,784,406,528 Blocks=167,168 at 01-May-2015 09:39. > 01-May 09:39 crey-sd JobId 205441: 3307 Issuing autochanger "unload slot 2, drive 0" command. > ### > > See also, this from /var/log/messages: > > ### > May 1 09:39:01 knew kernel: (sa0:sym0:0:1:0): WRITE FILEMARKS(6). CDB: 10 00 00 00 01 00 > May 1 09:39:01 knew kernel: (sa0:sym0:0:1:0): CAM status: SCSI Status Error > May 1 09:39:01 knew kernel: (sa0:sym0:0:1:0): SCSI status: Check Condition > May 1 09:39:01 knew kernel: (sa0:sym0:0:1:0): SCSI sense: MEDIUM ERROR asc:c,0 (Write error) > May 1 09:39:01 knew kernel: (sa0:sym0:0:1:0): Command Specific Info: 0x28b4b > May 1 09:39:01 knew kernel: (sa0:sym0:0:1:0): Error 5, Retries exhausted > May 1 09:39:01 knew kernel: (sa0:sym0:0:1:0): WRITE FILEMARKS(6). CDB: 10 00 00 00 02 00 > May 1 09:39:01 knew kernel: (sa0:sym0:0:1:0): CAM status: SCSI Status Error > May 1 09:39:01 knew kernel: (sa0:sym0:0:1:0): SCSI status: Check Condition > May 1 09:39:01 knew kernel: (sa0:sym0:0:1:0): SCSI sense: MEDIUM ERROR asc:c,0 (Write error) > May 1 09:39:01 knew kernel: (sa0:sym0:0:1:0): Command Specific Info: 0x28b4b > May 1 09:39:01 knew kernel: (sa0:sym0:0:1:0): Error 5, Retries exhausted > May 1 09:42:41 knew kernel: (sa0:sym0:0:1:0): WRITE FILEMARKS(6). CDB: 10 00 00 00 01 00 > May 1 09:42:41 knew kernel: (sa0:sym0:0:1:0): CAM status: SCSI Status Error > May 1 09:42:41 knew kernel: (sa0:sym0:0:1:0): SCSI status: Check Condition > May 1 09:42:41 knew kernel: (sa0:sym0:0:1:0): SCSI sense: MEDIUM ERROR asc:c,0 (Write error) > May 1 09:42:41 knew kernel: (sa0:sym0:0:1:0): Command Specific Info: 0x11fb > May 1 09:42:41 knew kernel: (sa0:sym0:0:1:0): Error 5, Retries exhausted > May 1 09:42:41 knew kernel: (sa0:sym0:0:1:0): WRITE FILEMARKS(6). CDB: 10 00 00 00 02 00 > May 1 09:42:41 knew kernel: (sa0:sym0:0:1:0): CAM status: SCSI Status Error > May 1 09:42:41 knew kernel: (sa0:sym0:0:1:0): SCSI status: Check Condition > May 1 09:42:41 knew kernel: (sa0:sym0:0:1:0): SCSI sense: MEDIUM ERROR asc:c,0 (Write error) > May 1 09:42:41 knew kernel: (sa0:sym0:0:1:0): Command Specific Info: 0x11fb > May 1 09:42:41 knew kernel: (sa0:sym0:0:1:0): Error 5, Retries exhausted > ### > > In this case, I will mark the tape as DISABLED and once it is past it's recycling date, I will retire the tape. > > Best practice might be to rerun the backup, but this backup is also on disk. > > What do you usually do with tapes such as this? Is this tape or hardware? I took one of these tapes and tried: $ sudo tar -cf /dev/sa0 * tar: Write error It produced these errors: May 7 21:37:10 knew kernel: (sa0:sym0:0:1:0): WRITE FILEMARKS(6). CDB: 10 00 00 00 02 00 May 7 21:37:10 knew kernel: (sa0:sym0:0:1:0): CAM status: SCSI Status Error May 7 21:37:10 knew kernel: (sa0:sym0:0:1:0): SCSI status: Check Condition May 7 21:37:10 knew kernel: (sa0:sym0:0:1:0): SCSI sense: MEDIUM ERROR asc:c,0 (Write error) May 7 21:37:10 knew kernel: (sa0:sym0:0:1:0): Command Specific Info: 0xbac9 May 7 21:37:10 knew kernel: (sa0:sym0:0:1:0): Error 5, Retries exhausted May 7 21:37:10 knew kernel: (sa0:sym0:0:1:0): failed to write terminating filemark(s) Is this a hardware problem? A tape problem? — Dan Langille http://langille.org/ [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQJ8BAEBCgBmBQJVS+EuXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ1MTE2RjM0ODIzRDdERDM4OTY0OUJBNzdF QjIxNTlERUU5NzI3MzlGAAoJEOshWd7pcnOf2mMP/js7pAawoBLhncB9KWf4JUW/ 6Qx6U4MQO+9kHpKw8/q1auWp8d3/MfKm7oK5sqfHgqzp/0SQRFHtWXaR8EZ/a0E+ hlajcwa9xkV6f5jC6+Q0/LDFFvLQmfrQ0UBe9aBl5DnFtvLdypowPIK3JUXUUFwo vuhZY7nPR7nfMLi0Pc6HmwZmTg6tHUvItRlJsPtV0q0fwjM5NmU2j1EbrTypEtcT BAzj4x+LK0DAhf9M+i+EAzkEUhx5atbd8nDiFCTxv3g0c1y9y9yGClpGKxRodWn6 DUC7UikPmKfNudW+wpW6T3kKFlleyH0fuMWKS0bZdPsKEPiqZQqXDhGojPCq3w26 rJznjRBZGISwGQ7rmH8RjRWqY2f9Nuaju4vL6kH2Y0YP9miOT5QywfqUP8IhdCfA 3R6qLD5on5Q+TKpt76aHjk6KmuSEHAJ9FmkIGVZgWocQsaHTwFmcIgaRfsfFTzgF 4CGQYrlTKtjfnRBzeFKzBriyPo8KOgUqvBnqnflbL8Ji4a86trItprlS46qcJuYN 5PcUNZPbDjuF8dshBjKBOgYTUbldTo9mqed+/RtXibB/mJSHJUP4RxQngnh2sTnQ kpIAL883EKXuDMfQdtLFUrL3wppS8ZV47b0qrHKGelgTI77jCg1GDAw2JlczzueB 2K4L4TnZUWmPgZ7T1sBM =iz1j -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8E91F289-EBE1-41C7-AC5E-7891108D8C54>
