From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n5OMOTsP107500 for ; Wed, 24 Jun 2009 17:24:30 -0500 Received: from mail.sandeen.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 4103931F1C2 for ; Wed, 24 Jun 2009 15:24:57 -0700 (PDT) Received: from mail.sandeen.net (sandeen.net [209.173.210.139]) by cuda.sgi.com with ESMTP id 1zBlZe1pJF4oHI4Z for ; Wed, 24 Jun 2009 15:24:57 -0700 (PDT) Message-ID: <4A42A7B7.3040403@sandeen.net> Date: Wed, 24 Jun 2009 17:24:55 -0500 From: Eric Sandeen MIME-Version: 1.0 Subject: Re: mkfs.xfs created filesystem larger than underlying device References: <98D6DBD179F61A46AF5C064829A832A0185042D261@erebus.totalmanaged.com> In-Reply-To: <98D6DBD179F61A46AF5C064829A832A0185042D261@erebus.totalmanaged.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Michael Moody Cc: "xfs@oss.sgi.com" Michael Moody wrote: > Hello all. > > > > I recently created an XFS filesystem on an x86_64 CentOS 5.3 system. I > used all tools in the repository: > > > > Xfsprogs-2.9.4-1 > > Kernel 2.6.18-128.1.10.el5.centos.plus > > > > It is a somewhat complex configuration of: > > > > Areca RAID card with 16 1.5TB drives in a RAID 6 with 1 hotspare (100GB > volume was created for the OS, the rest was one large volume of ~19TB) > > I used pvcreate /dev/sdb to create a physical volume for LVM on the 19TB > volume. > > I then used vgcreate to create a volume group of 17.64TB > > I used lvcreate to create 5 logical volumes, 4x4TB, and 1x1.5TB > > On top of those logical volumes is drbd (/dev/drbd0-/dev/drbd4) > > On top of the drbd volumes, I created a volume group of 17.50TB > (/dev/drbd0-/dev/drbd4) > > I created a logical volume of 17.49TB, upon which was created an xfs > filesystem with no options (mkfs.xfs mkfs.xfs > /dev/Volume1-Rep-Store/Volume1-Replicated -L Replicated) > > The resulting filesystem is larger than the underlying logical volume: > > --- Logical volume --- > > LV Name /dev/Volume1-Rep-Store/Volume1-Replicated > VG Name Volume1-Rep-Store > LV UUID fB0q3f-80Kq-yFuy-NjKl-pmlW-jeiX-uEruWC > LV Write Access read/write > LV Status available > # open 1 > LV Size 17.49 TB > Current LE 4584899 > Segments 5 > Allocation inherit > Read ahead sectors auto > - currently set to 256 > Block device 253:5 > > /dev/mapper/Volume1--Rep--Store-Volume1--Replicated > > 18T 411M 18T 1% /mnt/Volume1 > > Why is this, and how can I fix it? I'm guessing that this is df rounding up. Try df w/o -h, to see how many 1k blocks you have and compare that to the size. If it still looks wrong, can you include xfs_info output for /mnt/Volume1 as well as the contents of /proc/partitions on your system? I'd wager a beer that nothing is wrong, but that if something is wrong, it's not xfs ;) Thanks, -Eric _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs