xfs
[Top] [All Lists]

Re: external log vs internal log and mkfs.xfs options

To: David Sparks <daves@xxxxxxxxxxxxxxx>
Subject: Re: external log vs internal log and mkfs.xfs options
From: Nathan Scott <nathans@xxxxxxx>
Date: Fri, 4 Feb 2005 11:59:43 +1100
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <4202C6DA.1060809@activestate.com>; from daves@activestate.com on Thu, Feb 03, 2005 at 04:50:34PM -0800
References: <4202C6DA.1060809@activestate.com>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
On Thu, Feb 03, 2005 at 04:50:34PM -0800, David Sparks wrote:
> I'm setting up a SAN with a 1TB partition and am seeking some advice.
> 
> Previously when setting up servers, I would specify options to mkfs.xfs 
> to lower the agcount and create a 32m log, ie for a 33GB partition:
> 
>    mkfs.xfs -d agcount=32 -l size=32m /dev/sda3
> 
> This was based on an article I read at:
> 
>    http://www-106.ibm.com/developerworks/linux/library/l-fs10.html

Aha, thats whos been telling people that!  The article is a bit
out of date now.

> More recently I've not bothered with those options because I read 
> somewhere that the defaults are sane.  (I've never noticed any 
> difference either way)  Are the mkfs.xfs defaults good for a 1TB partition?

Yes, should be just fine.  In fact, from a quick check, current
mkfs will create a 32 AG filesystem on a 1Terabyte device...

# mkfs.xfs -N -dfile,size=1t,name=/dev/null
meta-data=/dev/null              isize=256    agcount=32, agsize=8388608 blks
         =                       sectsz=512  
data     =                       bsize=4096   blocks=268435456, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096  
log      =internal log           bsize=4096   blocks=32768, version=1
         =                       sectsz=512   sunit=0 blks
realtime =none                   extsz=65536  blocks=0, rtextents=0


cheers.

-- 
Nathan


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