29.01.2013 Views

GPFS: Administration and Programming Reference - IRA Home

GPFS: Administration and Programming Reference - IRA Home

GPFS: Administration and Programming Reference - IRA Home

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.

mmdefragfs Comm<strong>and</strong><br />

Name<br />

mmdefragfs – Reduces disk fragmentation by increasing the number of full free blocks available to the file<br />

system.<br />

Synopsis<br />

mmdefragfs Device [-i] [-v] [-u BlkUtilPct]<br />

Description<br />

Use the mmdefragfs comm<strong>and</strong> to reduce fragmentation of a file system. The mmdefragfs comm<strong>and</strong><br />

moves existing file system data within a disk to make more efficient use of disk blocks. The data is<br />

migrated to unused subblocks in partially allocated blocks, thereby increasing the number of free full<br />

blocks.<br />

The mmdefragfs comm<strong>and</strong> can be run against a mounted or unmounted file system. However, best<br />

results are achieved when the file system is unmounted. When a file system is mounted, allocation status<br />

may change causing retries to find a suitable unused subblock.<br />

If mmdefragfs is issued on a file that is locked by SANergy, the file is not de-fragmented.<br />

Parameters<br />

Device<br />

Options<br />

The device name of the file system to have fragmentation reduced. File system names need not<br />

be fully-qualified. fs0 is as acceptable as /dev/fs0.<br />

This must be the first parameter.<br />

-i Specifies to query the current disk fragmentation state of the file system. Does not perform the<br />

actual defragmentation of the disks in the file system.<br />

-u BlkUtilPct<br />

The average block utilization goal for the disks in the file system. The mmdefragfs comm<strong>and</strong><br />

reduces the number of allocated blocks by increasing the percent utilization of the remaining<br />

blocks. The comm<strong>and</strong> automatically goes through multiple iterations until BlkUtilPct is achieved on<br />

all of the disks in the file system or until no progress is made in achieving BlkUtilPct from one<br />

iteration to the next, at which point it exits.<br />

-v Specifies that the output is verbose.<br />

Exit status<br />

0 Successful completion.<br />

nonzero A failure has occurred.<br />

Security<br />

You must have root authority to run the mmdefragfs comm<strong>and</strong>.<br />

You may issue the mmdefragfs comm<strong>and</strong> from any node in the <strong>GPFS</strong> cluster.<br />

146 <strong>GPFS</strong>: <strong>Administration</strong> <strong>and</strong> <strong>Programming</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!