UFS2 with 4TB disk

Scott Long scottl at samsco.org
Wed Mar 29 10:05:00 UTC 2006


Lutz Rabing wrote:

> hope this is the right list...
> 
> I have a "FreeBSD 6.1-PRERELEASE #0: Tue Mar 21 13:29:33 CET 2006" system
> with an Areca Raid6 controller (12 x 400GB) which presents a 4TB disk (da0)
> to the system:
> 
> da0 at arcmsr0 bus 0 target 7 lun 0
> da0: <Areca ARC-1130-VOL#00 R001> Fixed Direct Access SCSI-3 device 
> da0: 166.666MB/s transfers (83.333MHz, offset 32, 16bit), Tagged Queueing Enabled
> da0: 3814695MB (7812495360 512 byte sectors: 255H 63S/T 486305C)
> 
> when I newfs and label do work when I install the OS. however, after booting the
> system from an usb-stick (da1) and change root-fs to da0 I miss 2TB of storage.
> At least I can't tellif it's there or not. "/usr" should be 3.6TB and shows
> this:
> ---------------------------------------------------------------------------
> Filesystem     Size    Used   Avail Capacity  Mounted on
> /dev/da0s1a    989M     55M    855M     6%    /
> devfs          1.0K    1.0K      0B   100%    /dev
> /dev/da0s1e    1.9G     26K    1.8G     0%    /tmp
> /dev/da0s1f    1.6T    1.6G    1.4T     0%    /usr
> /dev/da0s1d    9.7G     27M    8.9G     0%    /var
> devfs          1.0K    1.0K      0B   100%    /var/named/dev
> 
> 
> The label editor from sysinstall shows this:
> ---------------------------------------------------------------------------
> Disk: da0       Partition name: da0s1   Free: 0 blocks (0MB)
> 
> Part      Mount          Size Newfs   Part      Mount          Size Newfs
> ----      -----          ---- -----   ----      -----          ---- -----
> da0s1a    /            1024MB UFS2   N
> da0s1b    swap         2048MB SWAP
> da0s1d    /var        10240MB UFS2+S N
> da0s1e    /tmp         2048MB UFS2+S N
> da0s1f    /usr         1662GB UFS2+S N
> 
> 
> Output from sysinstall/FDISK:
> ---------------------------------------------------------------------------------
> Disk name:      da0                                    FDISK Partition Editor
> DISK Geometry:  486305 cyls/255 heads/63 sectors = 7812489825 sectors (3814692MB)
> 
> Offset       Size(ST)        End     Name  PType       Desc  Subtype    Flags
> 
>          0         63         62        -     12     unused        0
>         63 3517522466 3517522528    da0s1      8    freebsd      165
> 3517522529 4294972831 7812495359        -     12     unused        0          
> 
> 
> So, my question is, how big is my "/usr" slice? 1.6TB or 3.6TB?
> 
> Thanks,
> Lutz Rabing

The FDISK and bsdlabel schemes simply cannot deal with >2TB.  You'll
need to either put your filesystem directly on the storage device
without and slices/labels, or use GPT to create logical partitions.

Scott



More information about the freebsd-fs mailing list