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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

7.4.2 Increasing the file system size<br />

In many instances, the size of a file system needs to be increased because the<br />

demand for storage has increased. In <strong>AIX</strong>, this is a common procedure, and it is<br />

possible to do by using the chfs command, as in the following example:<br />

# chfs -a size=+300000 /u/testfs<br />

Filesystem size changed to 458752<br />

This example shows how the file system testfs is extended with 300000 512-byte<br />

blocks. When the file system is extended, the logical volume holding the JFS is<br />

also extended, with the number of logical partitions that is needed to fulfill the<br />

space request. If the system does not have enough free space, the volume group<br />

can either be extended with an additional physical volume, or the size specified<br />

for the chfs command must be lowered so that it matches the number of free<br />

LPs.<br />

7.4.3 File system verification and recovery<br />

The fsck command checks and interactively repairs inconsistent file systems.<br />

You should run this command before mounting any file system. You must be able<br />

to read the device file on which the file system resides (for example, the /dev/hd0<br />

device).<br />

Normally, the file system is consistent, and the fsck command merely reports on<br />

the number of files, used blocks, and free blocks in the file system. If the file<br />

system is inconsistent, the fsck command displays information about the<br />

inconsistencies found and prompts you for permission to repair them. If the file<br />

system cannot be repaired, restore it from backup.<br />

Mounting an inconsistent file system may result in a system crash. If you do not<br />

specify a file system with the FileSystem parameter, the fsck command will<br />

check all the file systems with the attribute check=TRUE in /etc/filesystems.<br />

Note: By default, the /, /usr, /var, and /tmp file systems have the check<br />

attribute set to false (check=false) in their /etc/filesystems stanzas. The<br />

attribute is set to false for the following reasons:<br />

► The boot process explicitly runs the fsck command on the /, /usr, /var, and<br />

/tmp file systems.<br />

► The /, /usr, /var, and /tmp file systems are mounted when the /etc/rc file is<br />

run. The fsck command will not modify a mounted file system, and fsck<br />

results on mounted file systems are unpredictable.<br />

152 <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!