From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KswqB-0002L8-5X for garchives@archives.gentoo.org; Thu, 23 Oct 2008 09:50:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7E420E03A9; Thu, 23 Oct 2008 09:50:50 +0000 (UTC) Received: from zion.lichtfels.com (zion.lichtfels.com [88.198.33.170]) by pigeon.gentoo.org (Postfix) with ESMTP id 541DBE03A9 for ; Thu, 23 Oct 2008 09:50:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zion.lichtfels.com (Postfix) with ESMTP id 3F8DF184006 for ; Thu, 23 Oct 2008 11:50:43 +0200 (CEST) Received: from zion.lichtfels.com ([127.0.0.1]) by localhost (zion [127.0.0.1]) (amavisd-maia, port 10024) with LMTP id 10746-03 for ; Thu, 23 Oct 2008 11:50:42 +0200 (CEST) Received: from [172.32.99.12] (mail.oops.co.at [213.129.238.225]) by zion.lichtfels.com (Postfix) with ESMTPA id 92678184002 for ; Thu, 23 Oct 2008 11:50:42 +0200 (CEST) Message-ID: <490048F4.8020003@xunil.at> Date: Thu, 23 Oct 2008 11:50:44 +0200 From: "Stefan G. Weichinger" Organization: oops! User-Agent: Thunderbird 2.0.0.17 (X11/20081001) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] md-device too small: where's my mistake? References: <48FF3194.7020809@xunil.at> <200810231111.12539.heiko@xencon.net> In-Reply-To: <200810231111.12539.heiko@xencon.net> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-maia at lichtfels.com X-Archives-Salt: a743e516-d9c4-4eab-9cd2-3a038dc1dad3 X-Archives-Hash: 0e74a1203177af3ca99a9e63b0fe97c8 Heiko Wundram schrieb: > You cannot manage disks >= ~2TB with fdisk (i.e., DOS partition tables), as > they (or rather the on-disk-structure of DOS partition tables) have an > inherent limitation in the maximum number of LBA48-blocks they can address. > > I'd presume that because of this inherent limitation, fdisk is reporting the > wrong total size (2TB+774G+epsilon ~ 3TB; sounds like somewhere someone is > doing a modulo operation, possibly), and completely "off" values for > heads/sectors. > > Anyway, md-devices cannot be partitioned anyway (of course you can write a > partition table on them, but the kernel won't use that to create md2-1,-2, > etc.), so using fdisk is wrong. > > If you want to check the "real" size of the device, don't use fdisk, but > rather use > > blockdev --getsize64 /dev/md2 > > which shows you the byte-count of the corresponding volume, and which I think > will be 3TB, as you want it to be. Nope, it did show the same 774 GB. > If you want to subpartition large devices, use lvm(2), which does not have the > 2TB limitation on size. > > Hope this helps! Thanks for your explanations and suggestions ... but ... I just now received a reply to my posting on the german list, the mistake was that CONFIG_LBD was not set in my kernel. Now I get: # blockdev --getsize64 /dev/md2 2973068230656 # fdisk -l Platte /dev/md2: 2973.0 GByte, 2973068230656 Byte Thanks anyway! Stefan