xfs
[Top] [All Lists]

Re: mount options question

To: Stefan Ring <stefanrin@xxxxxxxxx>
Subject: Re: mount options question
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Fri, 29 Aug 2014 18:37:38 +1000
Cc: weber@xxxxxxxxxx, Xfs <xfs@xxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <CAAxjCEy9UyjDVrTZ4GdRyDy330wUqLGWurzrLAE6-7Q0KdYzvA@xxxxxxxxxxxxxx>
References: <3dc9caf6f9b415f6e4c0ebac1f1626d3@xxxxxxxxxx> <20140827230732.GN20518@dastard> <CAAxjCEy9UyjDVrTZ4GdRyDy330wUqLGWurzrLAE6-7Q0KdYzvA@xxxxxxxxxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
On Fri, Aug 29, 2014 at 08:31:43AM +0200, Stefan Ring wrote:
> On Thu, Aug 28, 2014 at 1:07 AM, Dave Chinner <david@xxxxxxxxxxxxx> wrote:
> > On Wed, Aug 27, 2014 at 12:14:21PM +0200, Marko Weber|8000 wrote:
> >>
> >> sorry dave and all other,
> >>
> >> can you guys recommend me the most stable / best mount options for
> >> my new server with ssd´s and XFS filesystem?
> >>
> >> at moment i would set:  defaults,nobarrier,discard,logbsize=256k,noikeep
> >> or is just "default" the best solution and xfs detect itself whats best.
> >>
> >> can you guide me a bit?
> >>
> >> as eleavtor i set elevator=noop
> >>
> >> i setup disks with linux softraid raid1. On top of the raid is LVM
> >> (for some data partations).
> >>
> >>
> >> would be nice to hear some tipps from you
> >
> > Unless you have specific requirements or have the knowledge to
> > understand how the different options affect behaviour, then just use
> > the defaults.
> 
> Mostly agreed, but using "discard" would be a no-brainer for me. I
> suppose XFS does not automatically switch it on for non-rotational
> storage.

Yup, you're not using your brain. :P

mount -o discard *sucks* on so many levels it is not funny. I don't
recommend that anybody *ever* use it, on XFS, ext4 or btrfs.  Just
use fstrim if you ever need to clean up a SSD.

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx

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