From owner-freebsd-fs@freebsd.org Mon Mar 5 20:38:27 2018 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7B0BEF268EE for ; Mon, 5 Mar 2018 20:38:27 +0000 (UTC) (envelope-from bengt.ahlgren@ri.se) Received: from se-out1.mx-wecloud.net (se-out1.mx-wecloud.net [89.221.255.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.mx-wecloud.net", Issuer "GeoTrust SHA256 SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 066816CBDC for ; Mon, 5 Mar 2018 20:38:26 +0000 (UTC) (envelope-from bengt.ahlgren@ri.se) Received: from sp-mail-3.sp.se (unknown [194.218.146.197]) by se-out1.mx-wecloud.net (Postfix) with ESMTPS id 20E5820539F; Mon, 5 Mar 2018 20:38:23 +0000 (UTC) Received: from P142s.sics.se (10.116.0.226) by sp-mail-3.sp.se (10.100.0.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Mon, 5 Mar 2018 21:38:24 +0100 Received: (from bengta@localhost) by P142s.sics.se (8.15.2/8.15.2/Submit) id w25KbeYH001709; Mon, 5 Mar 2018 21:37:40 +0100 (CET) (envelope-from bengt.ahlgren@ri.se) X-Authentication-Warning: P142s.sics.se: bengta set sender to bengt.ahlgren@ri.se using -f From: Bengt Ahlgren To: Karli =?iso-8859-1?Q?Sj=F6berg?= CC: Subject: Re: "PI - Protection Information" drives? In-Reply-To: ("Karli =?iso-8859-1?Q?Sj=F6berg=22's?= message of "Mon, 5 Mar 2018 19:01:05 +0100 (CET)") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (berkeley-unix) Date: Mon, 5 Mar 2018 21:37:39 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.116.0.226] X-ClientProxiedBy: sp-mail-3.sp.se (10.100.0.163) To sp-mail-3.sp.se (10.100.0.163) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=cdiiljLM c=1 sm=1 tr=0 a=L5DDne6A+dD0FbDkt2Fblw==:117 a=L5DDne6A+dD0FbDkt2Fblw==:17 a=sZ8rJzgPlrQA:10 a=8nJEP1OIZ-IA:10 a=v2DPQv5-lfwA:10 a=9sJiun-3AAAA:8 a=SJGkUz6zoyZA-hrs1s8A:9 a=_gFpU0izUA-tIVNw:21 a=3OfQ3edhQFPWTjao:21 a=wPNLvfGTeEIA:10 a=E9LtQix4xlUA:10 a=NxUpaCPaS5wA:10 a=6IWsxHMPXfbp9B873oa7:22 X-Virus-Scanned: clamav-milter 0.99.3 at MailSecurity X-Virus-Status: Clean X-MailSecurity-Status: 0 X-Scanned-By: WeCloud MailSecurity X-MailSecurity-Score: 0 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2018 20:38:27 -0000 Karli Sj=F6berg writes: > Den 5 mars 2018 18:56 skrev Bengt Ahlgren : > > Karli Sj=F6berg writes: > > > Den 5 mars 2018 18:19 skrev Bengt Ahlgren : > > > > I've recently gotten a (Dell-branded) Seagate drive which seems to be > > formatted with something called "Protection Information (PI) type 2". > > > > CDB read/write commands of size 6 seems to work, but any read/write > > commands of size 10 (or larger) do not work: > > > > (da20:mps0:0:11:0): READ(10). CDB: 28 00 00 00 00 00 00 01 00 00=20 > > (da20:mps0:0:11:0): CAM status: SCSI Status Error > > (da20:mps0:0:11:0): SCSI status: Check Condition > > (da20:mps0:0:11:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid comm= and > operation code) > > (da20:mps0:0:11:0): Error 22, Unretryable error > > > > smartctl output says: > > > > =3D=3D=3D START OF INFORMATION SECTION =3D=3D=3D > > Vendor: SEAGATE > > Product: ST600MM0238 > > Revision: BS04 > > Compliance: SPC-4 > > User Capacity: 600,127,266,816 bytes [600 GB] > > Logical block size: 512 bytes > > Formatted with type 2 protection > > LU is fully provisioned > > Rotation Rate: 10000 rpm > > Form Factor: 2.5 inches > > Logical Unit id: XXX > > Serial number: YYY > > Device type: disk > > Transport protocol: SAS (SPL-3) > > Local Time is: Mon Mar 5 17:54:09 2018 CET > > SMART support is: Available - device has SMART capability. > > SMART support is: Enabled > > Temperature Warning: Disabled or Not Supported > > Read Cache is: Enabled > > Writeback Cache is: Disabled > > > > Any advice? Does this "Protection Information" work at all with > > FreeBSD? Or do I simply need to reformat the drive without this "PI" > > stuff? > > > > Had this problem except they were IBM branded. After much googling I f= ound this: > > > https://forums.freenas.org/index.php?threads/scsi-errors-unable-to-wipe-= drives-9240-9211-w-ibm-seagate-disks.43453/#post-287162 >=20=20 > > > > > > PIA if you ask me :) > > Thanks for the pointer! > > Do I need that sg_format utility, or will camcontrol format also do the > right thing? > > Bengt > > No idea, but the 'sg_format' utility is part of the 'sg3_utils' package, = so it's easy enough to > come by. Tried sg_format - it did the trick! Thanks again! Bengt