1defragfs.ocfs2(8) OCFS2 Manual Pages defragfs.ocfs2(8)
2
3
4
6 defragfs.ocfs2 - online defragmenter for ocfs2 filesystem
7
9 defragfs.ocfs2 [-c] [-v] [-l] [-g] [-h][target]...
10
12 defragfs.ocfs2 reduces fragmentation of ocfs2 based file. The file tar‐
13 geted by defragfs.ocfs2 is created on ocfs2 filesystem The targeted
14 file gets more contiguous blocks and improves the file access speed.
15
16 target is a regular file, a directory, or a device that is mounted as
17 ocfs2 filesystem. If target is a directory, defragfs.ocfs2 reduces
18 fragmentation of all files in it. If target is a device, defragfs.ocfs2
19 gets the mount point of it and reduces fragmentation of all files in
20 this mount point.
21
23 -c Print the numbers of files that should be processed
24
25 -v verbose mode, the current fragmentation count and the ideal
26 fragmentation count are printed for each file.
27
28 If this option is specified, target is never defragmented.
29
30 -l defragfs.ocfs2 will run in low io mode, which means it will reg‐
31 ularly yield cpu to allow other processes to run.
32
33 -g defragfs.ocfs2 regularly records the current progress. So if it
34 is interrupted, the next time you run defragfs.ocfs2 with this
35 option, it will resume from the recorded progress. Note that if
36 this option is specified, other options are ignored and replaced
37 by those that were recorded.
38
39 -h Print help info
40
41
43 defragfs.ocfs2 does not support files in lost+found directory. When
44 target is a device or a mount point, defragfs.ocfs2 doesn't defragment
45 files in mount point of other device.
46
47 It is completely not recommended to run against a file while it is ac‐
48 tively in another application. Since the read/write of a file involves
49 a dlm lock, this can result in a performance slowdown to both de‐
50 fragfs.ocfs2 and the application due to contention.
51
52 If the file system's free space is fragmented, or if there is insuffi‐
53 cient free space available, defragfs.ocfs2 may not be able to improve
54 the file's fragmentation.
55
56 Non-privileged users can execute defragfs.ocfs2 to their own file.
57 Therefore, it is desirable to be executed by root user.
58
60 Written by Larry Chen <lchen@suse.com>
61
62
63
64
65Version 1.8.7 January 2012 defragfs.ocfs2(8)