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.

lv02 jfs 2 2 1 open/syncd /u/testfs<br />

# rmfs /u/testfs<br />

rmfs: 0506-921 /u/testfs is currently mounted.<br />

# umount /u/testfs<br />

# rmfs /u/testfs<br />

rmlv: Logical volume lv02 is removed.<br />

# lsvg -l testvg<br />

testvg:<br />

LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT<br />

loglv00 jfslog 1 1 1 closed/syncd N/A<br />

This example shows how the file system testfs is removed. The first attempt fails<br />

because the file system is still mounted. The associated logical volume lv02 is<br />

also removed. The jfslog remains defined on the volume group.<br />

7.4.7 Different output from du and df commands<br />

Sometimes du and df commands are used to get a free block value. df is used to<br />

report the total block count, and then the value returned by du -s<br />

/filesystem_name is subtracted from that total to calculate the free block value.<br />

However, this method of calculation yields a value that is greater than the free<br />

block value reported by df. At <strong>AIX</strong> Version 4.1 and later, both df and du default to<br />

512-byte units. Sample output from the du and df commands is below:<br />

# du -s /tmp<br />

152 /tmp<br />

# df /tmp<br />

Filesystem 512-blocks Free %Used Iused %Iused Mounted on<br />

/dev/hd3 24576 23320 6% 33 1% /tmp<br />

Here (total from df) - (used from du) + (false free block count): 24576 - 152 =<br />

24424.<br />

24424 is greater than 23320. The reason for this discrepancy involves the<br />

implementation of du and df. du -s traverses the file tree, adding up the number<br />

of blocks allocated to each directory, symlink, and file as reported by the stat()<br />

system call. This is how du arrives at its total value. df looks at the file system<br />

disk block allocation maps to arrive at its total and free values.<br />

7.4.8 Enhanced journaled file system<br />

The enhanced journaled file system (JFS2) contains several architectural<br />

differences over the standard JFS, including:<br />

► Variable number of i-nodes for enhanced journaled file system<br />

JFS2 allocates i-nodes as needed. Therefore, the number of i-nodes<br />

available is limited by the size of the file system itself.<br />

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