Subject: Re: disklabeling a 5 TB partition!?
To: Markus W Kilbinger <mk@kilbi.de>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: current-users
Date: 08/03/2006 21:21:53
On Thu, Aug 03, 2006 at 06:56:32PM +0200, Markus W Kilbinger wrote:
> Hi!
> 
> I've managed to create a 5 TB raid(4) (level 5) partition out of 8
> 
>   wd0 at atabus0 drive 0: <ST3750640AS>
>   wd0: quirks 2<FORCE_LBA48>
>   wd0: drive supports 16-sector PIO transfers, LBA48 addressing
>   wd0: 698 GB, 1453521 cyl, 16 head, 63 sec, 512 bytes/sect x 1465149168 sectors
>   wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
>   wd0(pdcsata0:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
> 
> sata disks:
> 
>   raid0: RAID Level 5
>   raid0: Components: /dev/wd0a /dev/wd2a /dev/wd5a /dev/wd7a /dev/wd1a /dev/wd3a /dev/wd6a /dev/wd8a
>   raid0: Total Sectors: 10256043392 (5007833 MB)
> 
> Now: How to disklabel this raid0!?
> 
> disklabel(8) complains about
> 
>   raid0: WARNING: raid0: total sector size in disklabel (1666108800) != the size of raid (10256043392)
> 
> So, there seems to be a 2 TB limit with(in) disklabel(8).
> 
> Is there any chance to handle this huge raid0 'disk' with netbsd?

You can't disklabel it. However I've been able to use a >2T partition
by newfs'ing the raw disk device (/dev/raid0d).
wedge(4) is supposed to handle that but I don't know how to use it.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--