Netapp maxfiles 计算公式

本文深入探讨了WAFL文件系统的特性,包括默认的文件分配策略,即每32KB磁盘空间分配一个文件。通过计算公式,展示了如何确定最大文件数量,并提供了检查NetApp存储中inode的具体方法。同时,文章通过实例解释了最大inode计数的限制及其原因。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Notes

By default, WAFL allocates one file for every 32KB of disk space. The exact number depends on disk geometry. Find out the maximum number by doing the following calculation: (default is one inode per 32KB of space).

 

32KB x [raw volume size in GB X 1024]

Also, type "maxfiles [vol_name] [very large number]" and it will give you the maximum number of inodes that you can have in that volume

example

filer> maxfiles

Volume vol0: maximum number of files is currently 3097061 (3766 used).

filer> maxfiles vol0 900000000000000000000000000000000

Max inode count cannot exceed 24776487

How go to check inodes  in netapp storage:

Filers> df -i

Filesystem               iused      ifree  %iused  Mounted on

/vol/vol0/                7940      17936     31%  /vol/vol0/

/vol/snapvault/             96       5969      2%  /vol/snapvault/

/vol/rac/                  103     274948      0%  /vol/rac/

 

Filer*> df -r inode_vol

Filesystem kbytes used avail reserved Mounted on

 

/vol/inode_vol/ 8388608 108 388500 0 /vol/inode_vol/

/vol/inode_vol/.snapshot 2097152 0 2097152 0 /vol/inode_vol/.snapshot

Filer*> maxfiles inode_vol

Volume inode_vol: maximum number of files is currently 311280 (100 used).

From df/maxfiles and the total vol size without a snapshot, the min/max inode# is expected to be as follows:

• 10485760 KB / 32KB = 327680(min)

• 10485760 KB / 4KB = 2621440(max)

However, the actual values are not as expected and reveal a 5% difference due to maintaining an inode reserve.

Filer*> maxfiles inode_vol 9999999999

maxfiles: The value you entered is invalid;

maximum inode count should be between 311280 and 2490359

327680 - 311280 = 16400(*32KB = 512MB), 2621440 - 2490359 = 131081(*4KB = 512MB), Why is that different?

512MB/10485760KB = 5%, which is inode reserve.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值