| To: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
|---|---|
| Subject: | Re: df bigger than ls? |
| From: | Brian Candler <B.Candler@xxxxxxxxx> |
| Date: | Thu, 8 Mar 2012 09:59:32 +0000 |
| Cc: | xfs@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from:to :cc:subject:message-id:references:mime-version:content-type :in-reply-to; s=sasl; bh=y9j1kyBRVQCiy9L8Cm9AP1l/LUo=; b=G1Hv9Ky ux6KGYqUSxtfcO0YPcJaCMyvFzbsgeBATVjcuJKpKGsGnxnnj1TCCAQl57GIttvC h49t6ew9lsvUyxivLRDO+20T9SbiVwMvcYi3IKeWUIYRtXfCO7gE4a/SOAlQmNgm qKw1dn5enWXOB5uJrpAqaKYb31cg1v6DNBbQ= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=pobox.com; h=date:from:to:cc :subject:message-id:references:mime-version:content-type :in-reply-to; q=dns; s=sasl; b=OZAoTC+WIrkOmoSrTBF0NTNHx89r+AuhB kvXJo4j+N6ac4MMx/qOdy5vBV6GJ3aZViZ4bHzbQD33veDvmXGldK1dPim6yDdGd fbvxgrfQKVPMEGh7bFf2VIUekfKyThA6wmZzCE5bLcFTCJQuTxNIu2kr58lWM/5P JlQeLHHxIg= |
| In-reply-to: | <20120308085035.GA23992@xxxxxxxx> |
| References: | <20120307155439.GA23360@xxxxxxxx> <20120307171619.GA23557@xxxxxxxx> <4F57A32A.5010704@xxxxxxxxxxx> <20120308085035.GA23992@xxxxxxxx> |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Thu, Mar 08, 2012 at 08:50:35AM +0000, Brian Candler wrote:
> Aha. This may well be what is screwing up gluster's disk usage on a striped
> volume - I believe XFS is preallocating space which is actually going to end
> up being a hole!
Here is a standalone testcase.
$ for i in {0..19}; do dd if=/dev/zero of=testfile bs=128k count=1 seek=$[$i *
12]; done
$ xfs_bmap testfile
testfile:
0: [0..255]: 1465133392..1465133647
1: [256..3071]: hole
2: [3072..5119]: 1465136464..1465138511
3: [5120..6143]: hole
4: [6144..10239]: 1465139536..1465143631
5: [10240..12287]: hole
6: [12288..20479]: 1465145680..1465153871
7: [20480..21503]: hole
8: [21504..37887]: 1465154896..1465171279
9: [37888..39935]: hole
10: [39936..58623]: 1465173328..1465192015
I expected to see: 20 extents of 256 blocks and 19 holes of 2816 blocks.
Regards,
Brian.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: df bigger than ls?, Dave Chinner |
|---|---|
| Next by Date: | Re: df bigger than ls?, Dave Chinner |
| Previous by Thread: | Re: df bigger than ls?, Brian Candler |
| Next by Thread: | Re: df bigger than ls?, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |