From owner-freebsd-scsi@freebsd.org Wed Dec 21 14:42:37 2016 Return-Path: Delivered-To: freebsd-scsi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5A546C8AE10 for ; Wed, 21 Dec 2016 14:42:37 +0000 (UTC) (envelope-from brscvs@gmail.com) Received: from mail-wj0-x241.google.com (mail-wj0-x241.google.com [IPv6:2a00:1450:400c:c01::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E55831ADA for ; Wed, 21 Dec 2016 14:42:36 +0000 (UTC) (envelope-from brscvs@gmail.com) Received: by mail-wj0-x241.google.com with SMTP id o3so3117371wjo.2 for ; Wed, 21 Dec 2016 06:42:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=syuwAFJqp5jL4OS9bfpRcF6UHrzreP6XovsVZbVy2xc=; b=bhmmHd10UIdnR94Jz+ulUlCCWV6Jzl3g+GhJTdc7dJXTjFCA4q8AuUDCry56MN/OKZ rKqi7KqGMFBmag41Mmg+uDCSV2gdPJfXJ0fIiLFORc6/eI9kIT3TgxzdtkizbT1IFSOC fzRZ6W5bHhcrzn3lsOuifcqn7U46XZ7TsG2CtT3JJbSX5xE7YT3GfLrqDjiOn8QG9oVp B+d7yorCjoD+tZAkv8Nu4PGilsZpGVq/b9yMDQiIFmrxsk6N8FdZTNQJzm3LOgRqGv9x ztXq9q5td9ihPvL5SaqVCyC4f2WIvHxakRo+7lKdxyzMJFzqf2Bkz0fgwpH0vXtHZ2oV Tu/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=syuwAFJqp5jL4OS9bfpRcF6UHrzreP6XovsVZbVy2xc=; b=VFoQS42YT4u77ttMvGPwq6uWE2uRxSurug5JFEwWjDSThatSVzxKwQ/DIKZNFw2QQH iRiW2Z5hbSUZJ4nE48vQxeoxb/WHQ2vHsZrX4oIpCo6b6kDfBrBhk29zxylKk7S1nW5m 8cpx8ocYqUR2QO9NvlhGR/dTKHpE0FzmDeGeguhZaQIc46bBnp1eYniwwUymz43bw5BW ouPzUJg37b4NUEot7ukqoiFdxyJ1J64/j6+V7/4m/y/3qdH8dE1x9Y3ssdo88p8Qxevq 667jWRC8JfRhZtfirvsfTySYLsdSeUy0V6juK+eMPs21hxK0U0FtfkR3FQzmU6xJaJzJ hVlQ== X-Gm-Message-State: AIkVDXJCikFFTOUwRFoxn7Hmzkxkrdh7jLH86UTc+dqpewTL0cpIRvswLsdh7xS8b+yckw== X-Received: by 10.195.14.103 with SMTP id ff7mr4554773wjd.126.1482331355170; Wed, 21 Dec 2016 06:42:35 -0800 (PST) Received: from [192.168.1.38] ([78.162.158.12]) by smtp.gmail.com with ESMTPSA id x5sm30901209wje.36.2016.12.21.06.42.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Dec 2016 06:42:34 -0800 (PST) To: freebsd-scsi@freebsd.org From: "baris.cavus" Subject: scsi error at SEAGATE ST1200MM0088 TT31 Message-ID: <718e64f1-ae4b-1090-5d51-49625b3fd7ea@gmail.com> Date: Wed, 21 Dec 2016 17:42:25 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2016 14:42:37 -0000 I have "1.2 TB SEAGATE ST1200MM0088 TT31" on my enclosures connected with lsa 3008 hba . I can't write to disks on Freebsd 10 but I can in centos 7. Any idea what is the reason ?. (da2:mpr0:0:10:0): CAM status: SCSI Status Error (da2:mpr0:0:10:0): SCSI status: Check Condition (da2:mpr0:0:10:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code) (da2:mpr0:0:10:0): Error 22, Unretryable error (da2:mpr0:0:10:0): READ(10). CDB: 28 00 00 00 02 00 00 01 00 00 (da2:mpr0:0:10:0): CAM status: SCSI Status Error (da2:mpr0:0:10:0): SCSI status: Check Condition (da2:mpr0:0:10:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code) (da2:mpr0:0:10:0): Error 22, Unretryable error (da2:mpr0:0:10:0): READ(10). CDB: 28 00 8b ba 08 00 00 01 00 00 (da2:mpr0:0:10:0): CAM status: SCSI Status Error (da2:mpr0:0:10:0): SCSI status: Check Condition (da2:mpr0:0:10:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code) (da2:mpr0:0:10:0): Error 22, Unretryable error (da2:mpr0:0:10:0): READ(10). CDB: 28 00 8b ba 0a 00 00 01 00 00 (da2:mpr0:0:10:0): CAM status: SCSI Status Error (da2:mpr0:0:10:0): SCSI status: Check Condition (da2:mpr0:0:10:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code) (da2:mpr0:0:10:0): Error 22, Unretryable error From owner-freebsd-scsi@freebsd.org Thu Dec 22 06:39:40 2016 Return-Path: Delivered-To: freebsd-scsi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BD28EC8B233 for ; Thu, 22 Dec 2016 06:39:40 +0000 (UTC) (envelope-from brscvs@gmail.com) Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5103BCEA for ; Thu, 22 Dec 2016 06:39:40 +0000 (UTC) (envelope-from brscvs@gmail.com) Received: by mail-wm0-x233.google.com with SMTP id g23so7172332wme.0 for ; Wed, 21 Dec 2016 22:39:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=cgV+d31yJpcUQSIn1gDGTs3MbAx+FY2gZ6CBpxcRPnE=; b=APrVlMgkw6fZtjU/3uOhNrNlKrNNUKqgIoMxxbyebKp+EIzFw1q0I7xicTFDJWxtNF XxTa3Ou/pU7sLlkdl8EbLBIf5dACGc3/HaqDQU8JyMecrtvoFBi7uuJAjTNTMcHl5Qro Z8rJA/foJg4F39nDMfm0KwxXT4GXyK3uu6PSLcODyScDGjnbWuofFkid8+tRqms9LsOY hVF3dC3PTo1TDIZflGN2pN1VVmNZlb4e3SKj4hCvKym/KUcleFsRMlPL3wkEA2CXWl+t 8Y9oJF4WTeoWNNWIYwHFne1kLRUYBA6aAbR81XX2ZxXbF3WPO3UJ7MHtPKv43dx+H5RN u8wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=cgV+d31yJpcUQSIn1gDGTs3MbAx+FY2gZ6CBpxcRPnE=; b=lW6JKPR19ECCx+71lNxjvtWAJR5LQJyrnbgNJICp9EcxJScDHqj4XxBfIxWw8kOPsU AFjS0vo5orLmzJNJJa7BOVAeRc5A8UimLeQ+Kez+2O97H5y7VugY4RH9vZoz/2Rfhnji +2fanUbgWWgA5iYaxyu3ZviC7EFQS6TJJrdhpag02gZfcahLnodchq/PBpG7lD1GC9VU AL416WXVYcTfXXYL7yDmxi55njUH/vIPLcHcbs11fUd+45w5Iwn0f8shXCFFY2XRLrVj 9gJv7LQYUBgOhp7El6UGtJxn8/1sVy8q7Ccw9Gn1/L81uRpufW2bNWEv+foD/kyg035L zHUQ== X-Gm-Message-State: AIkVDXIvdA4HtexzqusTxR0qxbnVXlTgWxEty/Xj6cKQrcRSTtM66M6ny5/hfM99LA8Xug== X-Received: by 10.28.8.12 with SMTP id 12mr4977960wmi.46.1482388777788; Wed, 21 Dec 2016 22:39:37 -0800 (PST) Received: from [192.168.1.38] ([78.162.158.12]) by smtp.gmail.com with ESMTPSA id v202sm30317590wmv.8.2016.12.21.22.39.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Dec 2016 22:39:37 -0800 (PST) Subject: Re: scsi error at SEAGATE ST1200MM0088 TT31 To: freebsd-scsi@freebsd.org References: <718e64f1-ae4b-1090-5d51-49625b3fd7ea@gmail.com> From: "baris.cavus" Message-ID: Date: Thu, 22 Dec 2016 09:39:35 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <718e64f1-ae4b-1090-5d51-49625b3fd7ea@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2016 06:39:40 -0000 I have found the same issue here: https://bugs.freenas.org/issues/14517 `sg_readcap --16 da16` reported "type 2 protection" Protection: prot_en=1, p_type=1, p_i_exponent=0 [type 2 protection] Then we formatted all disks at night and it worked sg_format --format /dev/da16 -f0 Normally DPICZ bit set to 1 in control mode page states it doesn't check the protection but this doesn't work. I would be happy to learn if someone find any other workaround. Thanks, On 21-12-2016 17:42, baris.cavus wrote: > I have "1.2 TB SEAGATE ST1200MM0088 TT31" on my enclosures connected > with lsa 3008 hba . I can't write to disks on Freebsd 10 but I can in > centos 7. Any idea what is the reason ?. > > (da2:mpr0:0:10:0): CAM status: SCSI Status Error > (da2:mpr0:0:10:0): SCSI status: Check Condition > (da2:mpr0:0:10:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid > command operation code) > (da2:mpr0:0:10:0): Error 22, Unretryable error > (da2:mpr0:0:10:0): READ(10). CDB: 28 00 00 00 02 00 00 01 00 00 > (da2:mpr0:0:10:0): CAM status: SCSI Status Error > (da2:mpr0:0:10:0): SCSI status: Check Condition > (da2:mpr0:0:10:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid > command operation code) > (da2:mpr0:0:10:0): Error 22, Unretryable error > (da2:mpr0:0:10:0): READ(10). CDB: 28 00 8b ba 08 00 00 01 00 00 > (da2:mpr0:0:10:0): CAM status: SCSI Status Error > (da2:mpr0:0:10:0): SCSI status: Check Condition > (da2:mpr0:0:10:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid > command operation code) > (da2:mpr0:0:10:0): Error 22, Unretryable error > (da2:mpr0:0:10:0): READ(10). CDB: 28 00 8b ba 0a 00 00 01 00 00 > (da2:mpr0:0:10:0): CAM status: SCSI Status Error > (da2:mpr0:0:10:0): SCSI status: Check Condition > (da2:mpr0:0:10:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid > command operation code) > (da2:mpr0:0:10:0): Error 22, Unretryable error >