>>>>> "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/
|