From owner-freebsd-scsi@freebsd.org Wed Jul 26 07:57:48 2017 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 1B1B7DB4057 for ; Wed, 26 Jul 2017 07:57:48 +0000 (UTC) (envelope-from emz@norma.perm.ru) Received: from elf.hq.norma.perm.ru (mail.norma.perm.ru [IPv6:2a00:7540:1::5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.norma.perm.ru", Issuer "Vivat-Trade UNIX Root CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7CE407DB32 for ; Wed, 26 Jul 2017 07:57:47 +0000 (UTC) (envelope-from emz@norma.perm.ru) Received: from bsdrookie.norma.com. (net206-94.perm.ertelecom.ru [46.146.206.94] (may be forged)) by elf.hq.norma.perm.ru (8.15.2/8.15.2) with ESMTPS id v6Q7veUu009297 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Wed, 26 Jul 2017 12:57:41 +0500 (YEKT) (envelope-from emz@norma.perm.ru) To: "freebsd-scsi@freebsd.org" From: "Eugene M. Zheganin" Subject: camcontrol sanitize Message-ID: <22536136-e8c0-17c9-5c8d-e8fed11022b7@norma.perm.ru> Date: Wed, 26 Jul 2017 12:57:40 +0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spamd-Result: default: False [1.50 / 25.00] RBL_SPAMHAUS_PBL(2.00)[94.206.146.46.zen.spamhaus.org : 127.0.0.10] HFILTER_HOSTNAME_UNKNOWN(2.50)[] BAYES_HAM(-3.00)[99.99%] DMARC_NA(0.00)[norma.perm.ru] MIME_GOOD(-0.10)[text/plain] R_DKIM_NA(0.00)[] R_SPF_SOFTFAIL(0.00)[~all] RCPT_COUNT_1(0.00)[] MID_RHS_MATCH_FROM(0.00)[] RECEIVED_SPAMHAUS(0.00)[94.206.146.46.zen.spamhaus.org] TO_MATCH_ENVRCPT_ALL(0.00)[] FROM_HAS_DN(0.00)[] TO_DN_EQ_ADDR_ALL(0.00)[] FROM_EQ_ENVFROM(0.00)[] RCVD_COUNT_1(0.00)[] ONCE_RECEIVED(0.10)[] X-Rspamd-Server: localhost X-Rspamd-Scan-Time: 0.75 X-Rspamd-Queue-ID: v6Q7veUu009297 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, 26 Jul 2017 07:57:48 -0000 Hi, Today I wanted to wipe the all data from one of my disks, so I decided to use camcontrol sanitize: # camcontrol sanitize 12:22:0 -a block You are about to REMOVE ALL DATA from the following device: pass16: Fixed Direct Access SPC-4 SCSI device pass16: Serial Number 96GS10T2TB4V pass16: 1200.000MB/s transfers, Command Queueing Enabled Are you SURE you want to do this? (yes/no) yes Current sanitize timeout is 10800 seconds Enter new timeout in seconds or press return to keep the current timeout [10800] camcontrol: Unexpected CAM status 0xe Looks like it failed to do what it should. Was it me issuing something bad (while it's not obvious to me), some bug in SCSI subsystem or bad equipment ? Thanks. Eugene. From owner-freebsd-scsi@freebsd.org Thu Jul 27 01:16:20 2017 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 B5F6CDB5DC9 for ; Thu, 27 Jul 2017 01:16:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A3FE583B8C for ; Thu, 27 Jul 2017 01:16:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v6R1GKnH066019 for ; Thu, 27 Jul 2017 01:16:20 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-scsi@FreeBSD.org Subject: [Bug 218830] [cam] [patch] add CAM pass(4) support for NVMe Date: Thu, 27 Jul 2017 01:16:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-scsi@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 27 Jul 2017 01:16:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218830 Ed Maste changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |In Progress CC| |emaste@freebsd.org --- Comment #2 from Ed Maste --- Committed in r320984 it seems? https://reviews.freebsd.org/rS320984 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-scsi@freebsd.org Thu Jul 27 13:40:38 2017 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 3F169DCB6C9 for ; Thu, 27 Jul 2017 13:40:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2DC8E76A7B for ; Thu, 27 Jul 2017 13:40:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v6RDebhr072600 for ; Thu, 27 Jul 2017 13:40:38 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-scsi@FreeBSD.org Subject: [Bug 218830] [cam] [patch] add CAM pass(4) support for NVMe Date: Thu, 27 Jul 2017 13:40:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ken@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-scsi@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 27 Jul 2017 13:40:38 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218830 --- Comment #3 from Kenneth D. Merry --- Yes, it has been committed. Do we want to MFC it to stable/11? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-scsi@freebsd.org Thu Jul 27 13:55:47 2017 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 2642FDCBC7F for ; Thu, 27 Jul 2017 13:55:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0DAD1772E1 for ; Thu, 27 Jul 2017 13:55:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v6RDtkhm017617 for ; Thu, 27 Jul 2017 13:55:46 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-scsi@FreeBSD.org Subject: [Bug 218830] [cam] [patch] add CAM pass(4) support for NVMe Date: Thu, 27 Jul 2017 13:55:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-scsi@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 27 Jul 2017 13:55:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218830 --- Comment #4 from Ed Maste --- > Yes, it has been committed. Do we want to MFC it to stable/11? That seems reasonable to me, given that NVMe is going to continue to become more popular. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-scsi@freebsd.org Thu Jul 27 15:22:17 2017 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 2D2CBDCD63B for ; Thu, 27 Jul 2017 15:22:17 +0000 (UTC) (envelope-from ken@kdm.org) Received: from mithlond.kdm.org (mithlond.kdm.org [96.89.93.250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "A1-33714", Issuer "A1-33714" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id CE3737E476 for ; Thu, 27 Jul 2017 15:22:16 +0000 (UTC) (envelope-from ken@kdm.org) Received: from mithlond.kdm.org (localhost [127.0.0.1]) by mithlond.kdm.org (8.15.2/8.14.9) with ESMTPS id v6RFM7i9092007 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 27 Jul 2017 11:22:08 -0400 (EDT) (envelope-from ken@mithlond.kdm.org) Received: (from ken@localhost) by mithlond.kdm.org (8.15.2/8.14.9/Submit) id v6RFM749092006; Thu, 27 Jul 2017 11:22:07 -0400 (EDT) (envelope-from ken) Date: Thu, 27 Jul 2017 11:22:07 -0400 From: "Kenneth D. Merry" To: "Eugene M. Zheganin" Cc: "freebsd-scsi@freebsd.org" Subject: Re: camcontrol sanitize Message-ID: <20170727152207.GA91629@mithlond.kdm.org> References: <22536136-e8c0-17c9-5c8d-e8fed11022b7@norma.perm.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <22536136-e8c0-17c9-5c8d-e8fed11022b7@norma.perm.ru> User-Agent: Mutt/1.5.23 (2014-03-12) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (mithlond.kdm.org [127.0.0.1]); Thu, 27 Jul 2017 11:22:08 -0400 (EDT) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mithlond.kdm.org 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, 27 Jul 2017 15:22:17 -0000 On Wed, Jul 26, 2017 at 12:57:40 +0500, Eugene M. Zheganin wrote: > Hi, > > > Today I wanted to wipe the all data from one of my disks, so I decided > to use camcontrol sanitize: > > > # camcontrol sanitize 12:22:0 -a block > You are about to REMOVE ALL DATA from the following device: > pass16: Fixed Direct Access SPC-4 SCSI device > pass16: Serial Number 96GS10T2TB4V > pass16: 1200.000MB/s transfers, Command Queueing Enabled > Are you SURE you want to do this? (yes/no) yes > Current sanitize timeout is 10800 seconds > Enter new timeout in seconds or press > return to keep the current timeout [10800] > camcontrol: Unexpected CAM status 0xe > > > Looks like it failed to do what it should. Was it me issuing something > bad (while it's not obvious to me), some bug in SCSI subsystem or bad > equipment ? CAM status 0xe is a bus reset. Do you see anything in dmesg that might shed more light on it? If you use the -v switch, camcontrol will print out more verbose error information, and should provide text for the error number. What kind of controller are you using? I'm guessing you are using a 12Gb SAS controller given what I see above. What firmware revision is on the controller? The drive is a SATA drive, and SANITIZE is a SCSI command. There are translations defined in the SAT spec to translate SANITIZE to an ATA command. I don't know whether your controller supports those translations or whether the drive supports the underlying ATA BLOCK ERASE EXT command. Ken -- Kenneth Merry ken@FreeBSD.ORG