1TB issue

Bruce Evans bde at zeta.org.au
Wed Jun 2 03:51:18 PDT 2004


> I'm not sure what the limit of a BSD label is, but it my be 1TB unless
> you can up the block size (512K blocks plus signed ints yeilds 1TB
> limits).  You may want to use fdisk to make a slice for any large
> partitions rather then trying to use disklabel.  On the 2TB system I
> have, I have one slice that is around 40GB that contains a disklabel and
> the partions making up a normal OS install.  A second slice that has a
> 1.8TB UFS file system and no disklabel.

The limit for a bsd label is 2^32-1 sectors (unless geom has broken it).
With the normal sector size of 512 bytes, this gives a limit of 2TB less
512 bytes.  With a larger sector size, the limit is larger.  A sector
size of 2048 is quite reasonable, since this is the default fragment size
for ffs.  This gives a limit of 8TB less 2048 bytes.

The main 1TB limits are that RELENG_4 doesn't support disk addresses
larger than 1TB, and ffs1 is broken for disk addresses larger than 1TB
(disk addresses 31 bytes in units of fragments internally in ffs, so the
limit with the default fragment size of 2048 is 4TB less 2048 bytes, but
things break at 1TB due to bogus parentheses in the conversion from ffs
addresses to disk addresses).

Bruce


More information about the freebsd-scsi mailing list