From: Willem Riede <wrlk@riede.org>
To: linux-scsi@vger.kernel.org
Subject: Re: blocksize limitations in scsi tape driver (st) when used with DLT1 tape drives?
Date: Thu, 5 Sep 2002 20:00:41 -0400 [thread overview]
Message-ID: <20020906000041.GW9630@linnie.riede.org> (raw)
In-Reply-To: <3D77D776.7040408@fl.priv.at>; from fl@fl.priv.at on Thu, Sep 05, 2002 at 18:15:18 -0400
On 2002.09.05 18:15 Friedrich Lobenstock wrote:
> Kai Makisara wrote:
> > On Thu, 5 Sep 2002, Friedrich Lobenstock wrote:
> >
> >>Now I told arkeia to use a blocksize of 65536, 32768 and 16384 and it
> >>could not write to the tape. All I got in the log was:
> >>
> >>Sep 4 22:08:41 filesrv kernel: st0: Incorrect block size.
> >>Sep 4 22:08:45 filesrv kernel: st0: Write not multiple of tape block size.
> >
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > The write() byte count from Arkeia is not a multiple of the tape block
> > size. If you use fixed block size, you must take care that this constraint
> > is not violated. When you set the block size to 8192 or something that
> > multiplies to 8192, this constraint is obeyed. If Arkeia sets the block
> > size, I don't know why it does not obey the constraint. Seems to be an
> > application problem.
> >
> > In most cases, it is best to use variable block mode
> > (i.e., mt setblk 0) and let the application to decide the tape block size.
> > In order to have good efficiency, you should make sure that the
> > application uses large enough byte counts in its write() calls, i.e., set
> > the Arkeia block size to 65536.
>
> Hmmm...I whish I could, but LTO and as it seems DLT drives too do not
> cope well with variable block sizes.
>
> All blocksizes greater than 8192 do make troubles. At and below this
> value all is fine.
I had a run in with Arkeia some time ago when used with osst tape devices,
and if I remember correctly, it is best to not tell Arkeia anything about
the block size to use. It will use multiples of 8192 in that case. Given
that you say the DLT drive is happy with 8192 block size that should work.
Regards, Willem Riede.
prev parent reply other threads:[~2002-09-06 0:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <fl@fl.priv.at>
2002-09-05 19:35 ` blocksize limitations in scsi tape driver (st) when used with DLT1 tape drives? Friedrich Lobenstock
2002-09-05 20:02 ` Dag Nygren
2002-09-05 20:59 ` Friedrich Lobenstock
2002-09-05 21:28 ` Kai Makisara
2002-09-05 22:07 ` Dag Nygren
2002-09-05 21:19 ` Kai Makisara
2002-09-05 22:15 ` Friedrich Lobenstock
2002-09-06 0:00 ` Willem Riede [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020906000041.GW9630@linnie.riede.org \
--to=wrlk@riede.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox