[stgt] Trouble with CA Arcserve and tgt virtual tape

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Tue Nov 15 19:06:06 CET 2011


On Mon, 14 Nov 2011 22:19:49 +0100
Gabriele Mailing <gabriele.mailing at rvmgroup.it> wrote:

> Hello to the list,
> 
> I'm using Debian Squeeze, and succesfully setup a single Ultrium LTO3
> virtual tape.
> Connecting via iscsi to the Debian hosts from ubuntu, /dev/st0 is usable
> and works prefectly.
> 
> Connecting from a Win2k3 host, the device is correctly detected, the
> drivers are installed and the tape drive appears in device manager.
> Unfortunately, the native windowze backup can't use iscsi targets.
> 
> In CA ArcServe 11.5 sp4 and 12 sp1, the tape drive  is detected, I can
> format the virtual tape.
> But when I start a backup, ArcServe fails the job giving the error
> 
> E3895 2011-11-14 22:12:02 Unable to position media. (MEDIA=VIRT01 [S/N:
> ], ID=356C, SEQ=1, EC=CONTROLLER FAILURE or HARDWARE ERROR)
> 
> On the Debian hosts, syslog shows repeated multiple times:
> 
> Nov 14 22:16:23 marstor01 tgtd: tape_rdwr_request(604) io error
> 0x21993d0 11 0 0 0, Success
> 
> Suggestione on how to investigate this problem ?
> Feel free to ask me further data ...

We need to know why SPACE ops fails. Can you apply the following patch
and send the syslog?

Thanks,

diff --git a/usr/bs_ssc.c b/usr/bs_ssc.c
index b80ece8..92a1ef9 100644
--- a/usr/bs_ssc.c
+++ b/usr/bs_ssc.c
@@ -541,13 +541,18 @@ static void tape_rdwr_request(struct scsi_cmd *cmd)
 		code = cmd->scb[1] & 0xf;
 		count = be24_to_2comp(&cmd->scb[2]);
 
+		eprintf("space %d %d\n", code, count);
+
 		if (code == 0) {	/* Logical Blocks */
 			result = space_blocks(cmd, count);
+			eprintf("space result %d\n", result);
 			break;
 		} else if (code == 1) { /* Filemarks */
 			result = space_filemark(cmd, count);
+			eprintf("space result %d\n", result);
 			break;
 		} else if (code == 3) { /* End of data */
+			eprintf("space result %d\n", h->blk_type);
 			while (h->blk_type != BLK_EOD)
 				if (skip_next_header(cmd->dev)) {
 					sense_data_build(cmd, MEDIUM_ERROR,

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list