[stgt] Failed to write tape greater than 2Gb

Mark Harvey markh794 at gmail.com
Tue Dec 6 22:26:02 CET 2011


Try again, this time a 'reply all'

2G... Sounds like this is a 32bit setup.

Try adding a "-D_LARGEFILE64_SOURCE" to the CFLAGS in usr/Makefile..

e.g.
Include a
CFLAGS += -D_LARGEFILE64_SOURCE
along with the reset of the CFLAGS += entries (somewhere about line 57).

Cheers
Mark

On Wed, Dec 7, 2011 at 5:07 AM, Gabriele Mailing
<gabriele.mailing at rvmgroup.it> wrote:
> Hello,
> I successfully setup a VTL with tgt under Debian Squeeze that is operable
> with mtx. Loading, unloading, labeling of virtual tapes works perfectly with
> mtx and amanda backup.
> I firstly used the tgt stock deb package, and after I built tgt with the
> current git sources.
> I tried to write to the tape device with tar, but when the image file
> reached 2Gb, tar gave a "Cannot write: Input/output error", and found in
> syslog the error:
>
> Dec  6 18:55:46 bunch tgtd: append_blk(175) Write of EOD blk header failed:
> Invalid argument
> Dec  6 18:55:47 bunch tgtd: tape_rdwr_request(604) io error 0x8badcb8 a 0
> 10240 0, Invalid argument
> Dec  6 18:55:47 bunch tgtd: append_blk(168) Rewrite of blk header failed:
> Invalid argument
>
> I followed the esamples in the docs to build the image files, and the tape
> drive definition is this simple one:
>
>    <backing-store /media/tgt/vtl/cleaning>
>        lun 1
>        device-type tape
>        removable 1
>        vendor_id "HP      "
>        product_id "Ultrium 3-SCSI"
>        product_rev "D21W"
>        scsi_sn "HU012345AB"
>        scsi_id "HP LTO3 ULTRIUM"
>    </backing-store>
>
> Complete targets.conf with the definition of the changer is here:
> http://pastebin.com/c0iG4Nyu
>
> Thank you for your suggestions,
> Gabriele
> --
> 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
--
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