From hubert@tournier.org  Sun Jun  6 20:22:10 2010
Return-Path: <hubert@tournier.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 20D1C1065678
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  6 Jun 2010 20:22:10 +0000 (UTC)
	(envelope-from hubert@tournier.org)
Received: from sd-15237.dedibox.fr (sd-15237.dedibox.fr [88.191.73.212])
	by mx1.freebsd.org (Postfix) with ESMTP id E21598FC23
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  6 Jun 2010 20:22:09 +0000 (UTC)
Received: by sd-15237.dedibox.fr (Postfix, from userid 0)
	id 8FC313F5BE; Sun,  6 Jun 2010 22:08:27 +0200 (CEST)
Message-Id: <20100606200827.8FC313F5BE@sd-15237.dedibox.fr>
Date: Sun,  6 Jun 2010 22:08:27 +0200 (CEST)
From: Hubert Tournier <hubert@tournier.org>
Reply-To: Hubert Tournier <hubert@tournier.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: mptutil doesn't support configs over 2TB
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         147572
>Category:       bin
>Synopsis:       [2tb] mptutil(8) doesn't support configs over 2TB
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sbruno
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 06 20:30:06 UTC 2010
>Closed-Date:    Wed Jan 25 21:10:05 UTC 2012
>Last-Modified:  Wed Jan 25 21:10:05 UTC 2012
>Originator:     Hubert Tournier <hubert@frbsd.org>
>Release:        FreeBSD 8.0-RELEASE-p3 amd64
>Organization:
Chuck's corner <http://www.frbsd.org/fr/>
>Environment:
System: FreeBSD panthere 8.0-RELEASE-p3 FreeBSD 8.0-RELEASE-p3 #0: Sat Jun 5 13:50:13 CEST 2010 root@panthere:/usr/obj/usr/src/sys/NOYAU amd64

# dmesg (extract)
mpt0: <LSILogic SAS/SATA Adapter> port 0x1000-0x10ff mem 0xb1910000-0xb1913fff,0xb1900000-0xb190ffff irq 32 at device 0.0 on pci5
mpt0: [ITHREAD]
mpt0: MPI Version=1.5.20.0
mpt0: Capabilities: ( RAID-0 RAID-1E RAID-1 )
mpt0: 0 Active Volumes (2 Max)
mpt0: 0 Hidden Drive Members (14 Max)
ses0 at mpt0 bus 0 target 2 lun 0
ses0: <LSILOGIC SASX28 A.1 7015> Fixed Enclosure Services SCSI-3 device 
ses0: 300.000MB/s transfers
ses0: Command Queueing enabled
ses0: SCSI-3 SES Device
da0 at mpt0 bus 0 target 3 lun 0
da0: <ATA ST31000528AS CC38> Fixed Direct Access SCSI-5 device 
da0: 300.000MB/s transfers
da0: Command Queueing enabled
da0: 953869MB (1953525168 512 byte sectors: 255H 63S/T 121601C)
(+7 other similar drives)

# mptutil show adapter
mpt0 Adapter:
       Board Name: SASWT4I
   Board Assembly: L3-25070-00A
        Chip Name: C1064E
    Chip Revision: UNUSED
      RAID Levels: RAID0, RAID1, RAID1E
    RAID0 Stripes: 64K
   RAID1E Stripes: 64K
 RAID0 Drives/Vol: 2-10
 RAID1 Drives/Vol: 2
RAID1E Drives/Vol: 3-10
# mptutil show config
mpt0 Configuration: 0 volumes, 8 drives
    drive da0 (932G) ONLINE <ST31000528AS CC38> SATA
    drive da1 (932G) ONLINE <ST31000528AS CC38> SATA
    drive da2 (932G) ONLINE <ST31000528AS CC38> SATA
    drive da3 (932G) ONLINE <ST31000528AS CC38> SATA
    drive da4 (932G) ONLINE <ST31000528AS CC38> SATA
    drive da5 (932G) ONLINE <ST31000528AS CC38> SATA
    drive da6 (932G) ONLINE <ST31000528AS CC38> SATA
    drive da7 (932G) ONLINE <ST31000528AS CC38> SATA
# mptutil show drives
mpt0 Physical Drives:
 da0 (  932G) ONLINE <ST31000528AS CC38> SATA bus 0 id 3
 da1 (  932G) ONLINE <ST31000528AS CC38> SATA bus 0 id 4
 da2 (  932G) ONLINE <ST31000528AS CC38> SATA bus 0 id 5
 da3 (  932G) ONLINE <ST31000528AS CC38> SATA bus 0 id 6
 da4 (  932G) ONLINE <ST31000528AS CC38> SATA bus 0 id 7
 da5 (  932G) ONLINE <ST31000528AS CC38> SATA bus 0 id 8
 da6 (  932G) ONLINE <ST31000528AS CC38> SATA bus 0 id 9
 da7 (  932G) ONLINE <ST31000528AS CC38> SATA bus 0 id 10

>Description:
The mptutil utility doesn't seems to support configs over 2 TB.
I created a RAID0 array with disks da1 to da7 (6.4 TB) and got a 0.4 TB volume.


>How-To-Repeat:
# mptutil create raid1 da1,da2,da3,da4,da5,da6,da7


>Fix:
I now use gstripe as a workaround.
The mptutil manual should mention the limitation:

# cd /usr/src/usr.sbin/mptutil
# diff -ruN mptutil.8 mptutil.8.NEW
--- mptutil.8	2009-10-25 02:10:29.000000000 +0100
+++ mptutil.8.NEW	2010-06-06 11:59:53.000000000 +0200
@@ -379,6 +379,8 @@
 .Pp
 Drive configuration commands result in an excessive flood of messages on the
 console.
+.Pp
+This program doesn't handle drives pools above 2 terabytes.
 .Sh HISTORY
 The
 .Nm

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-scsi 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Jun 15 01:32:51 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

Note: there is a patch for the documentation. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=147572 
Responsible-Changed-From-To: freebsd-scsi->sbruno 
Responsible-Changed-By: sbruno 
Responsible-Changed-When: Tue Jun 15 19:02:25 UTC 2010 
Responsible-Changed-Why:  
Reassignment. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=147572 

From: Sean Bruno <sbruno@cecs.pdx.edu>
To: bug-followup@FreeBSD.org, hubert@tournier.org
Cc:  
Subject: Re: bin/147572: [2tb] mptutil(8) doesn't support configs over 2TB
Date: Wed, 16 Jun 2010 14:38:11 -0700

 Spoke with scottl@ about this.  mptutil and mpt both use the version 1
 API from LSI.  The API itself will not support volumes above 2TB.  I've
 adjusted the patch to the man pages accordingly.
 
 If there is no feedback by the end of the week, I'll commit this to head
 and MFC shortly after.
 
 Sean
 
 Index: mptutil.8
 ===================================================================
 --- mptutil.8	(revision 209240)
 +++ mptutil.8	(working copy)
 @@ -384,3 +384,9 @@
  .Pp
  Drive configuration commands result in an excessive flood of messages
 on the
  console.
 +.Pp
 +The mpt version 1 API that is used by mptutil and mpt doesn't support
 volumes
 +above two terabytes.  This is a limitation of the API.
 +.Sh HISTORY
 +The
 +.Nm
 
 

From: John Baldwin <john@baldwin.cx>
To: Sean Bruno <sbruno@cecs.pdx.edu>
Cc: bug-followup@freebsd.org,
 hubert@tournier.org
Subject: Re: bin/147572: [2tb] mptutil(8) doesn't support configs over 2TB
Date: Wed, 16 Jun 2010 17:49:24 -0400

 On Wednesday 16 June 2010 5:38:11 pm Sean Bruno wrote:
 > Spoke with scottl@ about this.  mptutil and mpt both use the version 1
 > API from LSI.  The API itself will not support volumes above 2TB.  I've
 > adjusted the patch to the man pages accordingly.
 > 
 > If there is no feedback by the end of the week, I'll commit this to head
 > and MFC shortly after.
 
 Small suggestions would be to use .Nm instead of mptutil, and 'Xr mpt 4' 
 instead of mpt.  Also, each new sentence in mdoc should always start on a new 
 line.
 
 > Sean
 > 
 > Index: mptutil.8
 > ===================================================================
 > --- mptutil.8	(revision 209240)
 > +++ mptutil.8	(working copy)
 > @@ -384,3 +384,9 @@
 >  .Pp
 >  Drive configuration commands result in an excessive flood of messages
 > on the
 >  console.
 > +.Pp
 > +The mpt version 1 API that is used by mptutil and mpt doesn't support
 > volumes
 > +above two terabytes.  This is a limitation of the API.
 > +.Sh HISTORY
 > +The
 > +.Nm
 > 
 > 
 > 
 
 -- 
 John Baldwin

From: Sean Bruno <seanbru@yahoo-inc.com>
To: bug-followup@FreeBSD.org, hubert@tournier.org
Cc:  
Subject: Re: bin/147572: [2tb] mptutil(8) doesn't support configs over 2TB
Date: Wed, 16 Jun 2010 15:28:33 -0700

 Final, final version.  Applied comments regarding style, improved
 readability and provide direction to work around this issue as described
 by the submitter.
 
 
 Index: mptutil.8
 ===================================================================
 --- mptutil.8	(revision 209240)
 +++ mptutil.8	(working copy)
 @@ -384,3 +384,15 @@
  .Pp
  Drive configuration commands result in an excessive flood of messages
 on the
  console.
 +.Pp
 +The mpt version 1 API that is used by
 +.Nm
 +and 
 +.Xr mpt 4
 +doesn't support volumes above two terabytes.
 +This is a limitation of the API.
 +If you are using this adapter with volumes larger than two terabytes,
 use the adapter in JBOD mode.
 +Utilize
 +.Xr geom 8
 +.Xr zfs 1M
 +or another software volume manager to work around this limitation.
 
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/147572: commit references a PR
Date: Thu, 17 Jun 2010 19:29:11 +0000 (UTC)

 Author: sbruno
 Date: Thu Jun 17 19:28:56 2010
 New Revision: 209266
 URL: http://svn.freebsd.org/changeset/base/209266
 
 Log:
   Expand man page to document the fact that mptutil/mpt doesn't support RAID volumes in excess of 2TB.  Document workaround via geom or zfs
   
   Modified submitter's original patch to reference why this is broken and what to do to work around the issue.
   
   Submitted by:	hubert@tournier.org
   PR:		bin/147572
   Reviewed by:	jhb
   MFC after:	2 weeks
 
 Modified:
   head/usr.sbin/mptutil/mptutil.8
 
 Modified: head/usr.sbin/mptutil/mptutil.8
 ==============================================================================
 --- head/usr.sbin/mptutil/mptutil.8	Thu Jun 17 19:25:05 2010	(r209265)
 +++ head/usr.sbin/mptutil/mptutil.8	Thu Jun 17 19:28:56 2010	(r209266)
 @@ -384,3 +384,15 @@ configurations may not work reliably.
  .Pp
  Drive configuration commands result in an excessive flood of messages on the
  console.
 +.Pp
 +The mpt version 1 API that is used by
 +.Nm
 +and 
 +.Xr mpt 4
 +doesn't support volumes above two terabytes.
 +This is a limitation of the API.
 +If you are using this adapter with volumes larger than two terabytes, use the adapter in JBOD mode.
 +Utilize
 +.Xr geom 8
 +.Xr zfs 1M
 +or another software volume manager to work around this limitation.
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->patched 
State-Changed-By: sbruno 
State-Changed-When: Thu Jun 17 19:38:56 UTC 2010 
State-Changed-Why:  
Applied patch to -CURRENT.  Awaiting 2 week MFC 

http://www.freebsd.org/cgi/query-pr.cgi?pr=147572 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/147572: commit references a PR
Date: Mon, 21 Jun 2010 18:03:24 +0000 (UTC)

 Author: sbruno
 Date: Mon Jun 21 18:01:57 2010
 New Revision: 209399
 URL: http://svn.freebsd.org/changeset/base/209399
 
 Log:
   Syntax, commas and stuff.  Comments from jhb.
   
   PR:		bin/147572
   MFC after:	2 weeks
 
 Modified:
   head/usr.sbin/mptutil/mptutil.8
 
 Modified: head/usr.sbin/mptutil/mptutil.8
 ==============================================================================
 --- head/usr.sbin/mptutil/mptutil.8	Mon Jun 21 15:07:10 2010	(r209398)
 +++ head/usr.sbin/mptutil/mptutil.8	Mon Jun 21 18:01:57 2010	(r209399)
 @@ -393,6 +393,6 @@ doesn't support volumes above two teraby
  This is a limitation of the API.
  If you are using this adapter with volumes larger than two terabytes, use the adapter in JBOD mode.
  Utilize
 -.Xr geom 8
 -.Xr zfs 1M
 +.Xr geom 8 ,
 +.Xr zfs 8 ,
  or another software volume manager to work around this limitation.
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: sbruno 
State-Changed-When: Wed Jan 25 21:01:56 UTC 2012 
State-Changed-Why:  
Fixed in head prior to stable/9 branch at r209266 and r210723 
Changes have been MFC'd to stable/8 in r215534 by jhb@ 

http://www.freebsd.org/cgi/query-pr.cgi?pr=147572 
>Unformatted:
