1 | .TH mmdefragfs 02/16/06 |
---|
2 | mmdefragfs Command |
---|
3 | .SH "Name" |
---|
4 | .PP |
---|
5 | \fBmmdefragfs\fR - Reduces disk fragmentation by increasing the |
---|
6 | number of full free blocks available to the file system. |
---|
7 | .SH "Synopsis" |
---|
8 | .PP |
---|
9 | \fBmmdefragfs\fR \fIDevice\fR [\fB-i\fR] |
---|
10 | [\fB-v\fR] [\fB-u\fR \fIBlkUtilPct\fR] |
---|
11 | .SH "Description" |
---|
12 | .PP |
---|
13 | Use the \fBmmdefragfs\fR command to reduce fragmentation of a file |
---|
14 | system. The \fBmmdefragfs\fR command moves existing file system data |
---|
15 | within a disk to make more efficient use of disk blocks. The data is |
---|
16 | migrated to unused subblocks in partially allocated blocks, thereby increasing |
---|
17 | the number of free full blocks. |
---|
18 | .PP |
---|
19 | The \fBmmdefragfs\fR command can be run against a mounted or unmounted |
---|
20 | file system. However, best results are achieved when the file system is |
---|
21 | unmounted. When a file system is mounted, allocation status may change |
---|
22 | causing retries to find a suitable unused subblock. |
---|
23 | .PP |
---|
24 | If \fBmmdefragfs\fR is issued on a file that is locked by SANergy, the file |
---|
25 | is not de-fragmented. |
---|
26 | .SH "Parameters" |
---|
27 | .PP |
---|
28 | .RS +3 |
---|
29 | \fB\fIDevice\fR |
---|
30 | \fR |
---|
31 | .RE |
---|
32 | .RS +9 |
---|
33 | The device name of the file system to have fragmentation reduced. |
---|
34 | File system names need not be fully-qualified. \fBfs0\fR is as |
---|
35 | acceptable as \fB/dev/fs0\fR. |
---|
36 | .PP |
---|
37 | This must be the first parameter. |
---|
38 | .RE |
---|
39 | .SH "Options" |
---|
40 | .PP |
---|
41 | .RS +3 |
---|
42 | \fB-i |
---|
43 | \fR |
---|
44 | .RE |
---|
45 | .RS +9 |
---|
46 | Specifies to query the current disk fragmentation state of the file |
---|
47 | system. Does not perform the actual defragmentation of the disks in the |
---|
48 | file system. |
---|
49 | .RE |
---|
50 | .PP |
---|
51 | .RS +3 |
---|
52 | \fB-u \fIBlkUtilPct\fR |
---|
53 | \fR |
---|
54 | .RE |
---|
55 | .RS +9 |
---|
56 | The average block utilization goal for the disks in the file |
---|
57 | system. The \fBmmdefragfs\fR command reduces the number of allocated |
---|
58 | blocks by increasing the percent utilization of the remaining blocks. |
---|
59 | The command automatically goes through multiple iterations until |
---|
60 | \fIBlkUtilPct\fR is achieved on all of the disks in the file system or |
---|
61 | until no progress is made in achieving \fIBlkUtilPct\fR from one iteration |
---|
62 | to the next, at which point it exits. |
---|
63 | .RE |
---|
64 | .PP |
---|
65 | .RS +3 |
---|
66 | \fB-v |
---|
67 | \fR |
---|
68 | .RE |
---|
69 | .RS +9 |
---|
70 | Specifies that the output is verbose. |
---|
71 | .RE |
---|
72 | .SH "Exit status" |
---|
73 | .PP |
---|
74 | .PP |
---|
75 | .RS +3 |
---|
76 | \fB0 |
---|
77 | \fR |
---|
78 | .RE |
---|
79 | .RS +9 |
---|
80 | Successful completion. |
---|
81 | .RE |
---|
82 | .PP |
---|
83 | .RS +3 |
---|
84 | \fBnonzero |
---|
85 | \fR |
---|
86 | .RE |
---|
87 | .RS +9 |
---|
88 | A failure has occurred. |
---|
89 | .RE |
---|
90 | .SH "Security" |
---|
91 | .PP |
---|
92 | You must have root authority to run the \fBmmdefragfs\fR command. |
---|
93 | .PP |
---|
94 | You may issue the \fBmmdefragfs\fR command from any node in the GPFS |
---|
95 | cluster. |
---|
96 | .PP |
---|
97 | When using the \fBrcp\fR and \fBrsh\fR commands for remote |
---|
98 | communication, a properly configured \fB.rhosts\fR file must exist |
---|
99 | in the root user's home directory on each node in the GPFS |
---|
100 | cluster. If you have designated the use of a different remote |
---|
101 | communication program on the |
---|
102 | \fBmmcrcluster\fR or the |
---|
103 | \fBmmchcluster\fR command, you must ensure: |
---|
104 | .RS +3 |
---|
105 | .HP 3 |
---|
106 | 1. Proper authorization is granted to all nodes in the GPFS cluster. |
---|
107 | .HP 3 |
---|
108 | 2. The nodes in the GPFS cluster can communicate without the use of a |
---|
109 | password, and without any extraneous messages. |
---|
110 | .RE |
---|
111 | .SH "Examples" |
---|
112 | .RS +3 |
---|
113 | .HP 3 |
---|
114 | 1. To query the fragmentation state of file system \fBfs0\fR, issue this |
---|
115 | command: |
---|
116 | .sp |
---|
117 | .nf |
---|
118 | mmdefragfs fs0 -i |
---|
119 | .fi |
---|
120 | .sp |
---|
121 | .sp |
---|
122 | The system displays information similar to: |
---|
123 | .sp |
---|
124 | .nf |
---|
125 | free subblk free\ |
---|
126 | disk disk size in full subblk in % % |
---|
127 | name in nSubblk blocks fragments free blk blk util |
---|
128 | --------------- --------- --------- --------- -------- ------- |
---|
129 | gpfs68nsd 4390912 4270112 551 97.249 99.544 |
---|
130 | gpfs69nsd 4390912 4271360 490 97.277 99.590 |
---|
131 | --------- --------- --------- ------- |
---|
132 | (total) 8781824 8541472 1041 99.567 |
---|
133 | .fi |
---|
134 | .sp |
---|
135 | .HP 3 |
---|
136 | 2. To reduce fragmentation of the file system \fBfs0\fR on all defined, |
---|
137 | accessible disks that are not stopped or suspended, issue this command: |
---|
138 | .sp |
---|
139 | .nf |
---|
140 | mmdefragfs fs0\ |
---|
141 | .fi |
---|
142 | .sp |
---|
143 | .sp |
---|
144 | The system displays information similar to: |
---|
145 | .sp |
---|
146 | .nf |
---|
147 | free subblk free |
---|
148 | disk in full subblk in % % |
---|
149 | name blocks blk framents free blk blk util |
---|
150 | before after freed before after before after before after |
---|
151 | ---------- ------------------------ ------------- ------------ ------------ |
---|
152 | gpfs57nsd 28896 29888 31 1462 463 50.39 52.12 94.86 98.31 |
---|
153 | gpfs60nsd 41728 43200 46 1834 362 59.49 61.59 93.55 98.66 |
---|
154 | --------------------- -------------- ----------- |
---|
155 | (total) 70624 73088 77 3296 825 93.63 98.84 |
---|
156 | .fi |
---|
157 | .sp |
---|
158 | .HP 3 |
---|
159 | 3. To reduce fragmentation of all files in the file system \fBfs1\fR |
---|
160 | until the disks have an average block utilization percentage higher then 99%, |
---|
161 | issue this command: |
---|
162 | .sp |
---|
163 | .nf |
---|
164 | mmdefragfs fs1 -u 99\ |
---|
165 | .fi |
---|
166 | .sp |
---|
167 | .sp |
---|
168 | The system displays information similar to: |
---|
169 | .sp |
---|
170 | .nf |
---|
171 | WARNING: "fs1" is mounted on 1 nodes(s) and in use on 1 node(s) |
---|
172 | Start processing: iteration 1 Processing Pass 1 of 1 |
---|
173 | Disk Name gpfs57nsd gpfs60nsd |
---|
174 | 6 % complete |
---|
175 | 12 % complete |
---|
176 | 32 % complete |
---|
177 | 38 % complete |
---|
178 | 43 % complete |
---|
179 | 75 % complete |
---|
180 | 81 % complete |
---|
181 | 92 % complete |
---|
182 | 98 % complete |
---|
183 | free subblk free |
---|
184 | disk in full subblk in % % |
---|
185 | name blocks blk fragments free blk blk util |
---|
186 | before after freed before after before after before after\ |
---|
187 | ---------- ------------------------ -------------- ------------ ------------ |
---|
188 | gpfs57nsd 39424 40064 20 1347 589 68.75 69.87 92.48 96.59 |
---|
189 | gpfs60nsd 50688 51456 24 1555 593 72.26 73.36 92.01 96.83\ |
---|
190 | --------------------- -------------- ------------ |
---|
191 | (total) 90112 91520 44 2902 1182 93.63 98.84 |
---|
192 | .fi |
---|
193 | .sp |
---|
194 | .RE |
---|
195 | .SH "See also" |
---|
196 | .PP |
---|
197 | mmdf Command |
---|
198 | .SH "Location" |
---|
199 | .PP |
---|
200 | \fB/usr/lpp/mmfs/bin\fR |
---|
201 | .PP |
---|