c4f*_*t0r 5 linux filesystems sles linux-kernel
我正在使用带有 xfs 的 suse 11 服务器并使用“xfs_info / srv”命令我看到了这一点。
xfs_info /srv/
meta-data=/dev/mapper/vg01-srvvol isize=256 agcount=38, agsize=1964032 blks
= sectsz=512 attr=2
data = bsize=4096 blocks=73367552, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal bsize=4096 blocks=3836, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
Run Code Online (Sandbox Code Playgroud)
所以我认为 xfs 知道下划线磁盘 sectsz 的大小,但我现在使用的是 sectsz 为 512 字节的磁盘,但我的问题是,如何使用 ext3/ext4 文件系统找到此类信息?
因为我想尝试使用 sectsz 为 4096 的新磁盘,并且可以确定,ext3/ext4 使用下划线 sectsz。
这是使用一个物理块大小为 4096 的新 ssd 的 xfs_info 的输出:
xfs_info /dev/mapper/vg00-logvol
meta-data=/dev/mapper/vg00-logvol isize=256 agcount=16, agsize=7144576 blks
= sectsz=4096 attr=2, projid32bit=0
data = bsize=4096 blocks=114313216, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal bsize=4096 blocks=55817, version=2
= sectsz=4096 sunit=1 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
Run Code Online (Sandbox Code Playgroud)
$ sudo tune2fs -l /dev/vda1
tune2fs 1.42.8 (20-Jun-2013)
Filesystem volume name: <none>
...
Free inodes: 127696
First block: 1
Block size: 1024
Fragment size: 1024
Reserved GDT blocks: 256
Blocks per group: 8192
...
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
21258 次 |
| 最近记录: |