From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id 7C0ED7F47 for ; Mon, 31 Aug 2015 22:55:21 -0500 (CDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by relay3.corp.sgi.com (Postfix) with ESMTP id 2996DAC003 for ; Mon, 31 Aug 2015 20:55:17 -0700 (PDT) Received: from smtpproxy21.qq.com (smtpproxy21.qq.com [184.105.206.83]) by cuda.sgi.com with ESMTP id rpLyWmeDcouJ5IAZ (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Mon, 31 Aug 2015 20:55:15 -0700 (PDT) Received: from Jevons-MacBook-Pro.local (unknown [182.48.117.114]) by esmtp4.qq.com (ESMTP) with SMTP id 0 for ; Tue, 01 Sep 2015 11:55:05 +0800 (CST) From: Jevon Qiao Subject: Ask help on an issue 'XFS (sd*): discard failed for extent, error 5' Message-ID: <55E52198.7070607@unitedstack.com> Date: Tue, 1 Sep 2015 11:55:04 +0800 MIME-Version: 1.0 List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============2933151728394143026==" Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: xfs@oss.sgi.com This is a multi-part message in MIME format. --===============2933151728394143026== Content-Type: multipart/alternative; boundary="------------000208040907060202040503" This is a multi-part message in MIME format. --------------000208040907060202040503 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi All, Currently, I notice that there are lot's of errors written in the /var/log/messages file. 2015-08-29T23:58:54.477236+00:00 server-68 kernel: sd 0:0:4:0: [sdc] 2015-08-29T23:58:54.477255+00:00 server-68 kernel: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE 2015-08-29T23:58:54.477256+00:00 server-68 kernel: sd 0:0:4:0: [sdc] 2015-08-29T23:58:54.477257+00:00 server-68 kernel: Sense Key : Illegal Request [current] 2015-08-29T23:58:54.477258+00:00 server-68 kernel: sd 0:0:4:0: [sdc] 2015-08-29T23:58:54.477259+00:00 server-68 kernel: Add. Sense: Invalid field in parameter list 2015-08-29T23:58:54.477260+00:00 server-68 kernel: sd 0:0:4:0: [sdc] CDB: 2015-08-29T23:58:54.477261+00:00 server-68 kernel: Unmap/Read sub-channel: 42 00 00 00 00 00 00 00 18 00 2015-08-29T23:58:54.477263+00:00 server-68 kernel: end_request: critical target error, dev sdc, sector 325046824 2015-08-29T23:58:54.477268+00:00 server-68 kernel: XFS (sdc2): discard failed for extent [0x64815,2021], error 5 Has anyone encountered the same issue before? How can you solve it? Thanks, Jevon --------------000208040907060202040503 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Hi All,

Currently, I notice that there are lot's of errors written in the /var/log/messages file.
2015-08-29T23:58:54.477236+00:00 server-68 kernel: sd 0:0:4:0: [sdc]
2015-08-29T23:58:54.477255+00:00 server-68 kernel: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
2015-08-29T23:58:54.477256+00:00 server-68 kernel: sd 0:0:4:0: [sdc]
2015-08-29T23:58:54.477257+00:00 server-68 kernel: Sense Key : Illegal Request [current]
2015-08-29T23:58:54.477258+00:00 server-68 kernel: sd 0:0:4:0: [sdc]
2015-08-29T23:58:54.477259+00:00 server-68 kernel: Add. Sense: Invalid field in parameter list
2015-08-29T23:58:54.477260+00:00 server-68 kernel: sd 0:0:4:0: [sdc] CDB:
2015-08-29T23:58:54.477261+00:00 server-68 kernel: Unmap/Read sub-channel: 42 00 00 00 00 00 00 00 18 00
2015-08-29T23:58:54.477263+00:00 server-68 kernel: end_request: critical target error, dev sdc, sector 325046824
2015-08-29T23:58:54.477268+00:00 server-68 kernel: XFS (sdc2): discard failed for extent [0x64815,2021], error 5
Has anyone encountered the same issue before? How can you solve it?

Thanks,
Jevon
--------------000208040907060202040503-- --===============2933151728394143026== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs --===============2933151728394143026==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay2.corp.sgi.com [137.38.102.29]) by oss.sgi.com (Postfix) with ESMTP id D7AD77F47 for ; Mon, 31 Aug 2015 23:28:43 -0500 (CDT) Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by relay2.corp.sgi.com (Postfix) with ESMTP id B6042304032 for ; Mon, 31 Aug 2015 21:28:40 -0700 (PDT) Received: from sandeen.net (sandeen.net [63.231.237.45]) by cuda.sgi.com with ESMTP id ax6WKDfHzaVWmRII for ; Mon, 31 Aug 2015 21:28:38 -0700 (PDT) Subject: Re: Ask help on an issue 'XFS (sd*): discard failed for extent, error 5' References: <55E52198.7070607@unitedstack.com> From: Eric Sandeen Message-ID: <55E52975.8020005@sandeen.net> Date: Mon, 31 Aug 2015 23:28:37 -0500 MIME-Version: 1.0 In-Reply-To: <55E52198.7070607@unitedstack.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Jevon Qiao , xfs@oss.sgi.com On 8/31/15 10:55 PM, Jevon Qiao wrote: > Hi All, > > Currently, I notice that there are lot's of errors written in the /var/log/messages file. > > 2015-08-29T23:58:54.477236+00:00 server-68 kernel: sd 0:0:4:0: [sdc] > 2015-08-29T23:58:54.477255+00:00 server-68 kernel: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE > 2015-08-29T23:58:54.477256+00:00 server-68 kernel: sd 0:0:4:0: [sdc] > 2015-08-29T23:58:54.477257+00:00 server-68 kernel: Sense Key : Illegal Request [current] > 2015-08-29T23:58:54.477258+00:00 server-68 kernel: sd 0:0:4:0: [sdc] > 2015-08-29T23:58:54.477259+00:00 server-68 kernel: Add. Sense: Invalid field in parameter list > 2015-08-29T23:58:54.477260+00:00 server-68 kernel: sd 0:0:4:0: [sdc] CDB: > 2015-08-29T23:58:54.477261+00:00 server-68 kernel: Unmap/Read sub-channel: 42 00 00 00 00 00 00 00 18 00 > 2015-08-29T23:58:54.477263+00:00 server-68 kernel: end_request: critical target error, dev sdc, sector 325046824 > 2015-08-29T23:58:54.477268+00:00 server-68 kernel: XFS (sdc2): discard failed for extent [0x64815,2021], error 5 > > Has anyone encountered the same issue before? How can you solve it? Looks like xfs is simply reacting to errors from the storage; I'd try to get to the bottom of why you're getting all those scsi errors. But probably not on the xfs list. :) -Eric > Thanks, > Jevon > > > _______________________________________________ > xfs mailing list > xfs@oss.sgi.com > http://oss.sgi.com/mailman/listinfo/xfs > _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay2.corp.sgi.com [137.38.102.29]) by oss.sgi.com (Postfix) with ESMTP id 81DC37F59 for ; Tue, 1 Sep 2015 07:24:43 -0500 (CDT) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by relay2.corp.sgi.com (Postfix) with ESMTP id 617FD304039 for ; Tue, 1 Sep 2015 05:24:39 -0700 (PDT) Received: from sandeen.net (sandeen.net [63.231.237.45]) by cuda.sgi.com with ESMTP id AG3IJvHpIFAtK1DZ for ; Tue, 01 Sep 2015 05:24:38 -0700 (PDT) Subject: Re: Ask help on an issue 'XFS (sd*): discard failed for extent, error 5' References: <55E52198.7070607@unitedstack.com> <55E52975.8020005@sandeen.net> <55E53C84.1040606@unitedstack.com> From: Eric Sandeen Message-ID: <55E59905.80105@sandeen.net> Date: Tue, 1 Sep 2015 07:24:37 -0500 MIME-Version: 1.0 In-Reply-To: <55E53C84.1040606@unitedstack.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Jevon Qiao , xfs-oss On 9/1/15 12:49 AM, Jevon Qiao wrote: > Hi Eric > > Thank you very much for the prompt response. > On 1/9/15 12:28, Eric Sandeen wrote: >> On 8/31/15 10:55 PM, Jevon Qiao wrote: >>> Hi All, >>> >>> Currently, I notice that there are lot's of errors written in the /var/log/messages file. >>> >>> 2015-08-29T23:58:54.477236+00:00 server-68 kernel: sd 0:0:4:0: [sdc] >>> 2015-08-29T23:58:54.477255+00:00 server-68 kernel: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE >>> 2015-08-29T23:58:54.477256+00:00 server-68 kernel: sd 0:0:4:0: [sdc] >>> 2015-08-29T23:58:54.477257+00:00 server-68 kernel: Sense Key : Illegal Request [current] >>> 2015-08-29T23:58:54.477258+00:00 server-68 kernel: sd 0:0:4:0: [sdc] >>> 2015-08-29T23:58:54.477259+00:00 server-68 kernel: Add. Sense: Invalid field in parameter list >>> 2015-08-29T23:58:54.477260+00:00 server-68 kernel: sd 0:0:4:0: [sdc] CDB: >>> 2015-08-29T23:58:54.477261+00:00 server-68 kernel: Unmap/Read sub-channel: 42 00 00 00 00 00 00 00 18 00 >>> 2015-08-29T23:58:54.477263+00:00 server-68 kernel: end_request: critical target error, dev sdc, sector 325046824 >>> 2015-08-29T23:58:54.477268+00:00 server-68 kernel: XFS (sdc2): discard failed for extent [0x64815,2021], error 5 >>> >>> Has anyone encountered the same issue before? How can you solve it? >> Looks like xfs is simply reacting to errors from the storage; I'd try to get >> to the bottom of why you're getting all those scsi errors. > I just want to understand the meaning of 'XFS (sdc2): discard failed > for extent [0x64815,2021], error 5', does it mean one of the layers > beneath xfs does not support DISCARD? Could you please show me more > clues? "error 5" is EIO. That's as much as I can tell you from the XFS perspective. I don't know what the block/scsi errors mean, exactly; it does seem as if it may not support discard, but it must have advertised that it did, or the discard would not have been issued in the first place. You haven't said what kernel or storage you're on. OTOH, even if you do, it's a scsi/storage issue that the xfs list probably can't help much with. -Eric > Thanks, > Jevon >> But probably not on the xfs list. :) >> >> -Eric >> >>> Thanks, >>> Jevon >>> >>> >>> _______________________________________________ >>> xfs mailing list >>> xfs@oss.sgi.com >>> http://oss.sgi.com/mailman/listinfo/xfs >>> >> _______________________________________________ >> xfs mailing list >> xfs@oss.sgi.com >> http://oss.sgi.com/mailman/listinfo/xfs > > > _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id E5BFB7F5F for ; Tue, 1 Sep 2015 20:34:03 -0500 (CDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by relay3.corp.sgi.com (Postfix) with ESMTP id 8AAC2AC012 for ; Tue, 1 Sep 2015 18:34:03 -0700 (PDT) Received: from smtpbguseast2.qq.com (smtpbguseast2.qq.com [54.204.34.130]) by cuda.sgi.com with ESMTP id zROm8yuHaIDDaLFZ (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Tue, 01 Sep 2015 18:33:57 -0700 (PDT) Subject: Re: Ask help on an issue 'XFS (sd*): discard failed for extent, error 5' References: <55E52198.7070607@unitedstack.com> <55E52975.8020005@sandeen.net> <55E53C84.1040606@unitedstack.com> <55E59905.80105@sandeen.net> From: Jevon Qiao Message-ID: <55E651F9.3020805@unitedstack.com> Date: Wed, 2 Sep 2015 09:33:45 +0800 MIME-Version: 1.0 In-Reply-To: <55E59905.80105@sandeen.net> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Eric Sandeen , xfs-oss On 1/9/15 20:24, Eric Sandeen wrote: > On 9/1/15 12:49 AM, Jevon Qiao wrote: >> Hi Eric >> >> Thank you very much for the prompt response. >> On 1/9/15 12:28, Eric Sandeen wrote: >>> On 8/31/15 10:55 PM, Jevon Qiao wrote: >>>> Hi All, >>>> >>>> Currently, I notice that there are lot's of errors written in the /var/log/messages file. >>>> >>>> 2015-08-29T23:58:54.477236+00:00 server-68 kernel: sd 0:0:4:0: [sdc] >>>> 2015-08-29T23:58:54.477255+00:00 server-68 kernel: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE >>>> 2015-08-29T23:58:54.477256+00:00 server-68 kernel: sd 0:0:4:0: [sdc] >>>> 2015-08-29T23:58:54.477257+00:00 server-68 kernel: Sense Key : Illegal Request [current] >>>> 2015-08-29T23:58:54.477258+00:00 server-68 kernel: sd 0:0:4:0: [sdc] >>>> 2015-08-29T23:58:54.477259+00:00 server-68 kernel: Add. Sense: Invalid field in parameter list >>>> 2015-08-29T23:58:54.477260+00:00 server-68 kernel: sd 0:0:4:0: [sdc] CDB: >>>> 2015-08-29T23:58:54.477261+00:00 server-68 kernel: Unmap/Read sub-channel: 42 00 00 00 00 00 00 00 18 00 >>>> 2015-08-29T23:58:54.477263+00:00 server-68 kernel: end_request: critical target error, dev sdc, sector 325046824 >>>> 2015-08-29T23:58:54.477268+00:00 server-68 kernel: XFS (sdc2): discard failed for extent [0x64815,2021], error 5 >>>> >>>> Has anyone encountered the same issue before? How can you solve it? >>> Looks like xfs is simply reacting to errors from the storage; I'd try to get >>> to the bottom of why you're getting all those scsi errors. >> I just want to understand the meaning of 'XFS (sdc2): discard failed >> for extent [0x64815,2021], error 5', does it mean one of the layers >> beneath xfs does not support DISCARD? Could you please show me more >> clues? > "error 5" is EIO. That's as much as I can tell you from the XFS perspective. > > I don't know what the block/scsi errors mean, exactly; it does seem as > if it may not support discard, but it must have advertised that it did, or > the discard would not have been issued in the first place. Thank you for the further help on this. > You haven't said what kernel or storage you're on. > OTOH, even if you do, it's a scsi/storage issue that the xfs list probably > can't help much with. OK, I see. Thanks, Jevon > -Eric > >> Thanks, >> Jevon >>> But probably not on the xfs list. :) >>> >>> -Eric >>> >>>> Thanks, >>>> Jevon >>>> >>>> >>>> _______________________________________________ >>>> xfs mailing list >>>> xfs@oss.sgi.com >>>> http://oss.sgi.com/mailman/listinfo/xfs >>>> >>> _______________________________________________ >>> xfs mailing list >>> xfs@oss.sgi.com >>> http://oss.sgi.com/mailman/listinfo/xfs >> >> _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs