免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1757 | 回复: 0
打印 上一主题 下一主题

[系统管理] xfs文件系统block size 16K时 挂载失败 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-08-22 19:13 |只看该作者 |倒序浏览
本帖最后由 513964839 于 2014-08-22 19:17 编辑

#  mkfs.xfs -f -b size=16384 -L /data /dev/sda8
meta-data=/dev/sda8              isize=256    agcount=4, agsize=13180848 blks
         =                       sectsz=512   attr=2, projid32bit=0
data     =                       bsize=16384  blocks=52723392, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=16384  ascii-ci=0
log      =internal log           bsize=16384  blocks=25743, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=16384  blocks=0, rtextents=0


# mount /dev/sda8 /data                        
mount: Function not implemented


# man mkfs.xfs
OPTIONS
       -b block_size_options
              This  option specifies the fundamental block size of the filesystem.  The valid block_size_options are: log=value or size=value
              and only one can be supplied.  The block size is specified either as a base two logarithm value with log=,  or  in  bytes  with
              size=.  The default value is 4096 bytes (4 KiB), the minimum is 512, and the maximum is 65536 (64 KiB).  XFS on Linux currently
              only supports pagesize or smaller blocks.


xfs文件系统默认块大小是4096bytes,现在想测试一下block size 16KB的情况,但是在挂载的时候挂载不上

补充:
又试了下ext4文件系统,提示:
# mkfs.ext4 -b 16384 -L /data /dev/sda8   
Warning: blocksize 16384 not usable on most systems.
mke2fs 1.41.12 (17-May-2010)
mkfs.ext4: 16384-byte blocks too big for system (max 4096)
Proceed anyway? (y,n) y
Warning: 16384-byte blocks too big for system (max 4096), forced to continue
。。。。
虽然提示 允许的最大是4096,但是 16K还是可以的呢




情况如上,问题如下:
1) mkfs.xfs的时候是可以指定 block size的,但是却挂载不上,是为什么
2)  block size对 xfs和ext4文件系统有什么影响

Ps: 第二个问题有些基础哈,我先去 查查
谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP