xfs
[Top] [All Lists]

Re: mkfs.xfs options for DAC960 RAID volumes (long)

To: "Kai Leibrandt" <k_leibrandt@xxxxxxxxxxx>
Subject: Re: mkfs.xfs options for DAC960 RAID volumes (long)
From: "Martin K. Petersen" <mkp@xxxxxxxxxxxxx>
Date: 04 Jun 2001 19:32:15 -0400
Cc: <linux-xfs@xxxxxxxxxxx>
In-reply-to: <OE54eYZH589SfBkHqzX0000650b@xxxxxxxxxxx>
Organization: Linuxcare, Inc.
References: <OE54eYZH589SfBkHqzX0000650b@xxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Copyleft)
>>>>> "Kai" == Kai Leibrandt <k_leibrandt@xxxxxxxxxxx> writes:

Kai> In the man page it says that these are to be specified in 512byte
Kai> units, so I'm guessing that I should use -d sunit,swidth8 to
Kai> achieve vaues of 8Kbyte and 64Kbyte respectively, but the output
Kai> of mkfs and xfs_info then tell me sunit is then actually 2 and
Kai> swidthblks... Is the blocking size really 512byte as stated in
Kai> the man page or is it actually the size of a page (i.e. 4Kb with
Kai> ia32 linux)? In that case it would suddenly all fit - 16 blocks
Kai> of 4Kb make 64Kb stripe size...

You have to specify the width in 512 byte sectors while mkfs reports
the values back in terms of the filesystem block size.  So 4KB blocks
in your case.

A bit confusing, yes.  Nathan and I talked about changing it or making
it more obvious at some point but never got around to do it.

komatsu#  mkfs.xfs -f /dev/vg00/lv00
meta-data=/dev/vg00/lv00         isize=256    agcount=10, agsize=262144 blks
data     =                       bsize=4096   blocks=2621440, imaxpct=25
         =                       sunit=16     swidth=80 blks, unwritten=0
naming   =version 2              bsize=4096  
log      =internal log           bsize=4096   blocks=1200
realtime =none                   extsz=327680 blocks=0, rtextents=0

I.e. "blks" after swidth=80 above actually refer to bsize sized
blocks.  Just like on the first line containing the allocation group
size.

-- 
Martin K. Petersen, Principal Linux Consultant, Linuxcare, Inc.
mkp@xxxxxxxxxxxxx, http://www.linuxcare.com/
SGI XFS for Linux Developer, http://oss.sgi.com/projects/xfs/

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