免费注册 查看新帖 |

Chinaunix

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

[存储备份] Journaled File System Size Limitations [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-28 14:57 |只看该作者 |倒序浏览

Understanding Journaled File System Size Limitations
The maximum size for a journaled file system (JFS) is defined when the file system is created. When you create a JFS, there are five significant issues to consider:

  • Number of i-nodes


  • Allocation group size


  • File system fragment addressability


  • Journaled file system log size


  • Maximum journaled file system size

    Number of Inodes
    The total number of i-nodes in a file system limits the total number of files and the total size of the file system. The JFS provides the nbpi (number of bytes per i-node) parameter that affects the number of i-nodes in a file system. JFS supports nbpi values of 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, and 131072. The values 32768, 65536, and 131072 only apply to AIX Version 4.2 or later.
    One i-node is created for every NBPI bytes of allocation group space allocated to the filesystem. An allocation group can be partially allocated, though the full number of i-nodes per allocation group is still allocated. NBPI is inversely proportional to the total number of i-nodes in a file system.
    The JFS restricts all file systems to 16M (224) i-nodes.
    Allocation Group Size
    AIX Version 4.2 or later supports various allocation group sizes. The JFS segregates file system space into groupings of i-nodes and disk blocks for user data. These groupings are called allocation groups. The allocation group size can be specified when the file system is created. The allocation group sizes are 8M, 16M, 32M, and 64M. Each allocation group size has an associated npbi range. The ranges are defined by the following table:
    Allocation Group
    Size in Megabytes
          Allowable NBPI Values 8                     512, 1024, 2048, 4096, 8192, 16384 16                          1024, 2048, 4096, 8192, 16384, 32768 32                                2048, 4096, 8192, 16384, 32768, 65536 64                                      4096, 8192, 16384, 32768, 65536, 131072
    File System Fragment Addressability
    The JFS supports four fragment sizes of 512, 1024, 2048, and 4096 byte units of contiguous disk space. The JFS maintains fragment addresses in i-nodes and indirect blocks as 28-bit numbers. Each fragment must be addressable by a number from 0 to (228).
    Journaled File System Log Size Issues
    Another size-related issue is the size of the JFS log. In most instances, multiple journaled file systems use a common log configured to be 4MB in size. For example, after initial installation, all file systems within the root volume group use logical volume hd8 as a common JFS log. The default logical volume partition size is 4MB, and the default log size is one partition, therefore, the root volume group normally contains a 4MB JFS log. When file systems exceed 2GB or when the total amount of file system space using a single log exceeds 2GB, the default log size may not be sufficient. In either case, the log sizes should be scaled upward as the file system size increases. The JFS log is limited to a maximum size of 256MB.
    Maximum Journaled File System Size
    The maximum JFS size is defined when the file system is created. For example, selecting an nbpi ratio of 512 will limit the file system to a size of 8GB (512 * 224 = 8GB). When creating a JFS file system, the factors listed above (nbpi, fragment size, and allocation group size) need to be weighed carefully. The filesystem size limitation is the minimum of NPBI * 224 or Fragment Size * 228


    本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/2984/showart_119261.html
  • 您需要登录后才可以回帖 登录 | 注册

    本版积分规则 发表回复

      

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

    清除 Cookies - ChinaUnix - Archiver - WAP - TOP