免费注册 查看新帖 |

Chinaunix

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

在solaris10上,挂接了一个4TB的阵列,请问怎样调节inode数,谢谢! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-04-19 13:24 |只看该作者 |倒序浏览
我的系统是solaris10 ,连接了一个4TB的阵列,在newfs之后发现阵列的inode数,还没有一块146GB硬盘的inode数多呢,请问阵列的inode数可以调吗?怎么调到无限大

论坛徽章:
0
2 [报告]
发表于 2011-04-19 13:34 |只看该作者
bash-3.00# newfs  /dev/rdsk/c2t0d0s0
bash-3.00# mount /dev/dsk/c2t0d0s0 /disk1
bash-3.00# df -F ufs -o i /disk1
Filesystem             iused   ifree  %iused  Mounted on
/dev/dsk/c2t0d0s0          4 4175356     0%   /disk1
bash-3.00#
bash-3.00# umount /disk1


bash-3.00# newfs -T /dev/rdsk/c2t0d0s0
bash-3.00# mount /dev/dsk/c2t0d0s0 /disk1              
bash-3.00# df -F ufs -o i /disk1                 
Filesystem             iused   ifree  %iused  Mounted on
/dev/dsk/c2t0d0s0          4 4175356     0%   /disk1

论坛徽章:
7
荣誉会员
日期:2011-11-23 16:44:17水瓶座
日期:2013-08-28 21:20:16丑牛
日期:2013-10-02 21:01:462015年迎新春徽章
日期:2015-03-04 09:54:45操作系统版块每日发帖之星
日期:2016-06-05 06:20:0015-16赛季CBA联赛之吉林
日期:2016-06-20 08:24:0515-16赛季CBA联赛之四川
日期:2016-08-18 15:02:02
3 [报告]
发表于 2011-04-19 14:19 |只看该作者
用zfs吧,zfs的inode的理论值基本是无限大的。动态inodes数的。

论坛徽章:
0
4 [报告]
发表于 2011-04-19 14:46 |只看该作者
回复 3# nimysun


    楼上的朋友,你能说得详细点吗?ZFS我没有用过,最好能有个实例,谢谢!

论坛徽章:
221
15-16赛季CBA联赛之吉林
日期:2017-12-11 12:51:59黑曼巴
日期:2019-04-12 13:40:0515-16赛季CBA联赛之广东
日期:2019-04-23 10:41:1215-16赛季CBA联赛之辽宁
日期:2019-05-06 13:03:2815-16赛季CBA联赛之山西
日期:2019-05-09 10:56:5815-16赛季CBA联赛之青岛
日期:2019-05-17 13:57:0515-16赛季CBA联赛之新疆
日期:2019-06-10 13:39:0515-16赛季CBA联赛之天津
日期:2019-07-08 15:04:4519周年集字徽章-19
日期:2019-08-27 13:31:2619周年集字徽章-19
日期:2019-08-27 13:31:2619周年集字徽章-周
日期:2019-09-06 18:46:4715-16赛季CBA联赛之天津
日期:2019-02-27 11:24:07
5 [报告]
发表于 2011-04-19 16:16 |只看该作者
man newfs
里面可以自定义

论坛徽章:
0
6 [报告]
发表于 2011-04-19 16:24 |只看该作者
回复 5# yoyosys


   在man newfs 里面我没有找到,-i 、-b 、-T 参数我都是过了,inode数没有变化,请帮忙讲解的细一些!

论坛徽章:
221
15-16赛季CBA联赛之吉林
日期:2017-12-11 12:51:59黑曼巴
日期:2019-04-12 13:40:0515-16赛季CBA联赛之广东
日期:2019-04-23 10:41:1215-16赛季CBA联赛之辽宁
日期:2019-05-06 13:03:2815-16赛季CBA联赛之山西
日期:2019-05-09 10:56:5815-16赛季CBA联赛之青岛
日期:2019-05-17 13:57:0515-16赛季CBA联赛之新疆
日期:2019-06-10 13:39:0515-16赛季CBA联赛之天津
日期:2019-07-08 15:04:4519周年集字徽章-19
日期:2019-08-27 13:31:2619周年集字徽章-19
日期:2019-08-27 13:31:2619周年集字徽章-周
日期:2019-09-06 18:46:4715-16赛季CBA联赛之天津
日期:2019-02-27 11:24:07
7 [报告]
发表于 2011-04-19 16:31 |只看该作者
-i nbpi
                 The number of bytes per inode,  which  specifies
                 the  density  of  inodes in the file system. The
                 number is divided into the  total  size  of  the
                 file system to determine the number of inodes to
                 create.

                 This value should reflect the  expected  average
                 size  of  files  in  the  file  system. If fewer
                 inodes are desired, a larger  number  should  be
                 used.  To  create  more inodes, a smaller number
                 should be given. The default for nbpi is as fol-
                 lows:

                 Disk size                 Density

                 Less than 1GB             2048
                 Less than 2GB             4096
                 Less than 3GB             6144
                 3GB to 1 Tbyte            8192
                 Greater than 1 Tbyte
                    or created with -T     1048576

                 The number of inodes can increase  if  the  file
                 system is expanded with the growfs command.


              用newfs的-i参数重新构建文件系统

论坛徽章:
0
8 [报告]
发表于 2011-04-19 17:44 |只看该作者
回复 7# yoyosys


    bash-3.00# newfs -i 1048576 /dev/rdsk/c2t0d0s0
newfs: /dev/rdsk/c2t0d0s0 last mounted as /disk1
newfs: construct a new file system /dev/rdsk/c2t0d0s0: (y/n)? y
Warning: 2128 sector(s) in last cylinder unallocated
/dev/rdsk/c2t0d0s0:     8188420016 sectors in 1332751 cylinders of 48 tracks, 128 sectors
        3998252.0MB in 9320 cyl groups (143 c/g, 429.00MB/g, 448 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 878752, 1757472, 2636192, 3514912, 4393632, 5272352, 6151072, 7029792,
7908512,
Initializing cylinder groups:
...............................................................................
...............................................................................
............................
super-block backups for last 10 cylinder groups at:
8179695392, 8180574112, 8181452832, 8182331552, 8183210272, 8184088992,
8184967712, 8185846432, 8186725152, 8187603872
bash-3.00#
bash-3.00# mount /dev/dsk/c2t0d0s0 /disk1  
bash-3.00# df -F ufs -o i /disk1           
Filesystem             iused   ifree  %iused  Mounted on
/dev/dsk/c2t0d0s0          4 4175356     0%   /disk1
bash-3.00#

inode数还是没有变,这个 -i 的值不管大小都没有用,我的系统是Solaris 10 10/09 s10s_u8wos_08a SPARC

论坛徽章:
0
9 [报告]
发表于 2011-04-19 18:04 |只看该作者
我试了一下,只有 i= 2097152  ,我的inode才会有变化,其他的结果都不变

bash-3.00# newfs -i 2097152 /dev/rdsk/c2t0d0s0        
newfs: /dev/rdsk/c2t0d0s0 last mounted as /disk1
newfs: construct a new file system /dev/rdsk/c2t0d0s0: (y/n)? y
Warning: 2128 sector(s) in last cylinder unallocated
/dev/rdsk/c2t0d0s0:     8188420016 sectors in 1332751 cylinders of 48 tracks, 128 sectors
        3998252.0MB in 9320 cyl groups (143 c/g, 429.00MB/g, 256 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 878752, 1757472, 2636192, 3514912, 4393632, 5272352, 6151072, 7029792,
7908512,
Initializing cylinder groups:
...............................................................................
...............................................................................
............................
super-block backups for last 10 cylinder groups at:
8179695392, 8180574112, 8181452832, 8182331552, 8183210272, 8184088992,
8184967712, 8185846432, 8186725152, 8187603872
bash-3.00# mount /dev/dsk/c2t0d0s0 /disk1      
bash-3.00# df -F ufs -o i /disk1               
Filesystem             iused   ifree  %iused  Mounted on
/dev/dsk/c2t0d0s0          4 2385916     0%   /disk1

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
10 [报告]
发表于 2011-04-19 23:59 |只看该作者
推荐zfs
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP