xfs
[Top] [All Lists]

Re: Performance impact of mkfs.xfs vs mkfs.xfs -f

To: xfs@xxxxxxxxxxx
Subject: Re: Performance impact of mkfs.xfs vs mkfs.xfs -f
From: Martin Steigerwald <martin@xxxxxxxxxxxx>
Date: Wed, 26 Aug 2015 09:25:33 +0200
Cc: Dave Chinner <david@xxxxxxxxxxxxx>, "Carlos E. R." <carlos.e.r@xxxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <20150826010923.GX3902@dastard>
References: <CABppvi6GdaTQgqpYJi6RhkpjP9ydTV8-2VV8LF9tHSN63XzWtA@xxxxxxxxxxxxxx> <55DD0AAF.9090401@xxxxxxxxxxxx> <20150826010923.GX3902@dastard>
User-agent: KMail/4.14.5 (Linux/4.2.0-rc5-tp520-btrfstrim+; KDE/4.14.2; x86_64; ; )
Am Mittwoch, 26. August 2015, 11:09:23 schrieb Dave Chinner:
> On Wed, Aug 26, 2015 at 02:39:11AM +0200, Carlos E. R. wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA256
> > 
> > On 2015-08-26 01:43, Dave Chinner wrote:
> > > On Tue, Aug 25, 2015 at 04:09:33PM -0700, Shrinand Javadekar
> > > 
> > > wrote:
> > >> Formatted the new disks with mkfs.xfs. Ran the workload.
> > >> Reformatted the disks with mkfs.xfs -f. Ran the workload.
> > > 
> > > Anyway, please post the output so we can see the differences for
> > > ourselves. What we need is mkfs output in both cases, and xfs_info
> > > 
> > >  output in both cases after mount.
> > 
> > Suggestion (for the OP):
> > 
> > To reformat a third time without "-f", you can reformat as ext4, then
> > format a second time as xfs.
> 
> That doesn't work - mkfs.xfs detects that the device has an ext4
> filesystem on it, and demands you use -f to overwrite it.
> 
> > But to imitate a new disk, you have to
> > zero it with dd.
> 
> Only the first MB or so - enough for blkid not to be able to see a
> filesystem signature on it.

wipefs command.

Thanks,
-- 
Martin

<Prev in Thread] Current Thread [Next in Thread>