From nobody@FreeBSD.org  Thu Dec 20 23:44:51 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5503916A418
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 20 Dec 2007 23:44:51 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 48A2313C44B
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 20 Dec 2007 23:44:51 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id lBKNiRDI020279
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 20 Dec 2007 23:44:27 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id lBKNiRQk020278;
	Thu, 20 Dec 2007 23:44:27 GMT
	(envelope-from nobody)
Message-Id: <200712202344.lBKNiRQk020278@www.freebsd.org>
Date: Thu, 20 Dec 2007 23:44:27 GMT
From: stega <freebsd@stega.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: disk sizing/geometry problem with large array
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         118912
>Category:       kern
>Synopsis:       [2tb] disk sizing/geometry problem with large array
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-fs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 20 23:50:01 UTC 2007
>Closed-Date:    
>Last-Modified:  Mon May 18 04:33:05 UTC 2009
>Originator:     stega
>Release:        6.2
>Organization:
sendmail.com
>Environment:
FreeBSD some.machine.com 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 UTC 2007     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  i386      
>Description:
Dec 14 15:39:46 blahblahblah kernel: atapci0: <Intel ICH5 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x14a0-0x14af at device 31.1 on pci0
Dec 14 15:39:46 blahblahblah kernel: ata0: <ATA channel 0> on atapci0
Dec 14 15:39:46 blahblahblah kernel: ata1: <ATA channel 1> on atapci0
Dec 14 15:39:46 blahblahblah kernel: atapci1: <Intel ICH5 SATA150 controller> port 0x14d0-0x14d7,0x14c4-0x14c7,0x14c8-0x14cf,0x14c0-0x14c3,0x14b0-0x14bf irq 18 at device 31.2 on pci0
Dec 14 15:39:46 blahblahblah kernel: ata2: <ATA channel 0> on atapci1
Dec 14 15:39:46 blahblahblah kernel: ata3: <ATA channel 1> on atapci1     
[snip]
Dec 14 15:39:46 blahblahblah kernel: da0 at twa0 bus 0 target 0 lun 0
Dec 14 15:39:46 blahblahblah kernel: da0: <AMCC 9500S-8    DISK 2.08> Fixed Direct Access SCSI-3 device 
Dec 14 15:39:46 blahblahblah kernel: da0: 100.000MB/s transfers
Dec 14 15:39:46 blahblahblah kernel: da0: 2670213MB (5468596224 512 byte sectors: 255H 63S/T 340404C)
Dec 14 15:39:46 blahblahblah kernel: Trying to mount root from ufs:/dev/da0s1a       

[root@blahblahblah /var/log]# df -H
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/da0s1a     16G     61M     15G     0%    /
devfs          1.0k    1.0k      0B   100%    /dev
/dev/da0s1f    289G    8.2k    266G     0%    /store
/dev/da0s1d    244G    1.5G    223G     1%    /usr
/dev/da0s1e     16G    5.3M     15G     0%    /var

[da0s1f should be 10x what is is reporting as the install was set to use 2.2TB]

[root@blahblahblah /var/log]# disklabel da0s1
# /dev/da0s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a: 32768000        0    4.2BSD     2048 16384 28552 
  b: 32768000 557056000      swap                    
  c: 1173622901        0    unused        0     0         # "raw" part, don't edit
  d: 491520000 32768000    4.2BSD     2048 16384 28544 
  e: 32768000 524288000    4.2BSD     2048 16384 28552 
  f: 583798901 589824000    4.2BSD     2048 16384 28552    
>How-To-Repeat:
Install FreeBSD on to a machine/array configured over 2TB in size.

Reconfiguring the array to a 2x400GB mirror (which now holds /, /usr
and /var) and a 6x400GB raid5 dropped the array disk size down to 1.8
and allowed sysinstall to format it and then I just shoved it in to
fstab manually.  An annoying work around, but for now I'll live.
>Fix:


>Release-Note:
>Audit-Trail:

From: Gary Palmer <gpalmer@freebsd.org>
To: bug-followup@FreeBSD.org, freebsd@stega.org
Cc:  
Subject: Re: kern/118912: [2tb] disk sizing/geometry problem with large array
Date: Fri, 21 Dec 2007 11:15:49 +0000

 See: 
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-adding.html
 
 Quote:
 
 Due to the use of 32-bit integers to store the number of sectors, 
 bsdlabel(8) is limited to 2^32-1 sectors per disk or 2TB in most cases. 
 The fdisk(8) format allows a starting sector of no more than 2^32-1 and 
 a length of no more than 2^32-1, limiting partitions to 2TB and disks to 
 4TB in most cases. The sunlabel(8) format is limited to 2^32-1 sectors 
 per partition and 8 partitions for a total of 16TB. For larger disks, 
 gpt(8) partitions may be used.
 
 
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon May 18 04:32:58 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer(s). 

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