Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3604284ybn; Fri, 27 Sep 2019 08:40:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSuLcFYjx3txBviCLcsBVLtp4Q2BKG284OgomngHPS2X5g2UrW2uF/fwHXWsrsBoNE1NzL X-Received: by 2002:a50:ed17:: with SMTP id j23mr5240799eds.248.1569598822222; Fri, 27 Sep 2019 08:40:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569598822; cv=none; d=google.com; s=arc-20160816; b=s6bZcwm9fwOSWILlfmlw4cWwULtHsURpcnB+vokLxxIdAk/zUXvPQGJOnSqDHCDW1X 1NNPxPw754zeeDgDLxC+eQuYvajgzG3/GrTzOGMQsPOek+zie8xAO9DS8ps/PZ5M7VXU Pp6ph0Z6eQsWyxauG5W+Q3Mt109PfEku0QBtNUZV+16Add3FP9zaICSKf20ASsBaULy4 WezSNHFloysMtCZA1sPkZ78mj2tgpVGdu7kgUq/ZGe4eat4u0n08Bqh+jdkV6t4GgAYr REhYfzO5yFLao4Xp33XdLU0elhB7TFsZ8K5nvMRMNVm+1D9muBmv8MXLNzdYCosC/9mC k3eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature; bh=57IhBJyef1fR/FRADa/1UwQsGQlMxqvGVBiiCpQwIqk=; b=b/66NNIq9KUk7Dgb2BWWVnAgTIP2koD1/j2yJi9mtZfQZ7KH91XOQw+oDGLCCWoC8T OdxRmFzgOYI2K9BhOHI1MLOAS/q4FcCGPfglHYUChkFzxU0AdgVDdch1dDEc8BYDhYYW xf13UYksjyKm9zlRn4idnin8T1MOAYMPMDcQuoI2ym4zNJrYEBoe/v0rcc0HlM4dqaHF QbcvoNpyf9VcHFfu8TBzWrIM7GlW9tEdXd5EqgKM4vUsKfvvyMkmm3mdGPntdoVj87Ej nfV9N3FHMTeWGuWlrmYOSa6P5FJ43jR+/iUxcBCtwvg2YC3VI34KZyjwPE04V26/JcJ/ g5+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m7jFLR0D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k39si1756035edb.52.2019.09.27.08.39.56; Fri, 27 Sep 2019 08:40:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m7jFLR0D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727952AbfI0PjF (ORCPT + 99 others); Fri, 27 Sep 2019 11:39:05 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:36802 "EHLO mail-wr1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727207AbfI0PjE (ORCPT ); Fri, 27 Sep 2019 11:39:04 -0400 Received: by mail-wr1-f53.google.com with SMTP id y19so3542143wrd.3; Fri, 27 Sep 2019 08:39:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=57IhBJyef1fR/FRADa/1UwQsGQlMxqvGVBiiCpQwIqk=; b=m7jFLR0Del8V/jHv+RvdbJmXMac0aO0Q0joIoDHiDG84oXYYEfhOoy/KVWHC5pxjOE QYqp/AId6qBCgDMNVdWYVCY7P8PzxYJuxjASqCmthvRxyyVC3tlkxUR7CUVZS8AA6S9v YM34EO8ubqKasw+PXhg2epK0kCtOHW8HvgnlIIjYrgo8O7pQZRVyZFwW7Me7uZIVITfJ 4d9fVTFkANNx9924ep7WK4TPlS2EmOr1p/mEEx4kyYHgVe7mNlz/qtmwmOHaB08CE7Ip HRXiz67OxDLW6G0WsCozy7NcuELNpglsNfFlwyXdqmi5btXyeP6tc9tpoCkMyhyXXBfy YEMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=57IhBJyef1fR/FRADa/1UwQsGQlMxqvGVBiiCpQwIqk=; b=nCAEuocWA0oHpwoiefogpXPcFPSBWWnc48HA7CX8mB8wtlpDfkUuI+vTk+Iyw1RHHa BkHY5hDQ4FmQdFIwyUxl5/eur+p8dMQvAwsWwThIkpbVmSaIdENbeLwL3aZc4a4EPo3I X4dYplaCLoWw7D+opGl7XdHz4sn73GUKeiLvrb29CNch0dB8p74xW63djWrYeaiuowQ3 iKIHWtqrb6K7elBxyftaOItQLlsCdV8vY9gPHhBlbL61gE9NnJRGXgfQaLE4RvhBzeZr btLwZZFoj73TDALqfe1tybgoU1CvIcmnieB3FZbLnXlsODFMEzpI7amKg7k+NG3XlMSH 1o8Q== X-Gm-Message-State: APjAAAWHnWuvUO897x+K0Jjf14CwJ6vvJZQDziW22+9KIxygueg7XGJ6 JSJPmjYiZ/iVvOktTbV3Iso4khAla3llgP/pBt2unKG4UmE= X-Received: by 2002:a5d:5352:: with SMTP id t18mr3693775wrv.72.1569598741857; Fri, 27 Sep 2019 08:39:01 -0700 (PDT) MIME-Version: 1.0 From: Richard Weinberger Date: Fri, 27 Sep 2019 17:38:50 +0200 Message-ID: Subject: st: EIO upon almost full tape? To: Kai.Makisara@kolumbus.fi Cc: linux-scsi@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! Recently I got access to a tape library and as a side project I try to turn it into something useful. First tests showed that it seems to work fine until it tried to fill a tape: dd if=/dev/urandom of=/dev/st0 ibs=1M obs=512K After around 1.8TiB dd terminates with EIO and in dmesg I see: [535116.858716] st 0:0:0:0: [st0] Sense Key : Medium Error [current] [535116.858720] st 0:0:0:0: [st0] Add. Sense: Write error [535116.874357] st 0:0:0:0: [st0] Sense Key : Medium Error [current] [535116.874370] st 0:0:0:0: [st0] Add. Sense: Write error [535116.874373] st 0:0:0:0: [st0] Error on write filemark. After a reinsert of the tape it works fine again. But any other attempt to fill it results into EIO. Every single time after ~1.8TiB (-/+ 10GiB) have been written. I expected to terminate dd after around 2.5TiB with ENOSPC. First I thought the tape is bad, but even with a new one I face the same issue. Tape is LTO-6 and drive a IBM ULTRIUM-HH6. Is my test wrong? There is a high chance that I'm doing something horrible wrong, I fear I'm a little too young for tape drives. ;-) Maybe the tape drive is faulty but why is it always failing after 1.8TiB? According to the tape library the drive is good and passes all self-tests. And yes, I have a cleaning tape in my library too. -- Thanks, //richard