Netapp maxfiles 计算公式

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值