What is a recommended XFS sector size for hybrid (512e) advanced format hard drives?
Eric Sandeen
sandeen at sandeen.net
Tue Jan 6 11:02:09 CST 2015
On 1/4/15 6:56 PM, Hillel Lubman wrote:
> Hi.
> Can you please clarify what after all is the recommended sector size
> for such drives and why isn't it a default in mkfs.xfs (since
> supposedly defaults are generally recommended optimal settings unless
> you have some special use case).
It is indeed the default.
[root at sandeen ~]# blockdev --getss --getpbsz /dev/sde
512
4096
[root at sandeen ~]# mkfs.xfs /dev/sde
meta-data=/dev/sde isize=256 agcount=1, agsize=4097 blks
= sectsz=4096 attr=2, projid32bit=0
data = bsize=4096 blocks=4097, imaxpct=25
= sunit=1 swidth=8 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=4096 blocks=1424, version=2
= sectsz=4096 sunit=1 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
however, some drives lie about these sizes, and then mkfs.xfs can't know.
Try the blockdev command above to see.
-Eric
More information about the xfs
mailing list