21.02.2013 Views

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

► Understanding enhanced journaled file system size limitations<br />

The maximum size for an enhanced journaled file system is architecturally<br />

limited to 4 Petabytes. I-nodes are dynamically allocated by JFS2, so you do<br />

not need to consider how many i-nodes you may need when creating a JFS2<br />

file system. You need to consider the size of the file system log.<br />

► Enhanced journaled file system log size issues<br />

In most instances, multiple journaled file systems use a common log<br />

configured to be 4 MB in size. When file systems exceed 2 GB or when the<br />

total amount of file system space using a single log exceeds 2 GB, the default<br />

log size might not be sufficient. In either case, scale log sizes upward as the<br />

file system size increases. The JFS log is limited to a maximum size of 256<br />

MB.<br />

► JFS2 file space allocation<br />

File space allocation is the method by which data is apportioned physical<br />

storage space in the operating system. The kernel allocates disk space to a<br />

file or directory in the form of logical blocks. A logical block refers to the<br />

division of a file or directory contents into 512, 1024, 2048, or 4096 byte units.<br />

When a JFS2 file system is created the logical block size is specified to be<br />

one of 512, 1024, 2048, or 4096 bytes. Logical blocks are not tangible<br />

entities; however, the data in a logical block consumes physical storage<br />

space on the disk. Each file or directory consists of zero or more logical<br />

blocks.<br />

► Full and partial logical blocks<br />

A file or directory may contain full or partial logical blocks. A full logical block<br />

contains 512, 1024, 2048, or 4096 bytes of data, depending on the file system<br />

block size specified when the JFS2 file system was created. Partial logical<br />

blocks occur when the last logical block of a file or directory contains less than<br />

the file system block size of data.<br />

For example, a JFS2 file system with a logical block size of 4096 with a file of<br />

8192 bytes is two logical blocks. The first 4096 bytes reside in the first logical<br />

block and the following 4096 bytes reside in the second logical block.<br />

Likewise, a file of 4608 bytes consists of two logical blocks. However, the last<br />

logical block is a partial logical block containing the last 512 bytes of the file's<br />

data. Only the last logical block of a file can be a partial logical block.<br />

► JFS2 file space allocation<br />

The default block size is 4096 bytes. You can specify smaller block sizes with<br />

the mkfs command during a file system's creation. Allowable fragment sizes<br />

are 512, 1024, 2048, and 4096 bytes. You can use only one block’s size in a<br />

file system.<br />

158 <strong>IBM</strong> ^ Certification Study Guide - <strong>AIX</strong> <strong>5L</strong> <strong>Problem</strong> <strong>Determination</strong> Tools and Techniques

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!