source: gpfs_3.1_ker2.6.20/share/man/man8/mmdefragfs.8 @ 16

Last change on this file since 16 was 16, checked in by rock, 16 years ago
File size: 5.7 KB
Line 
1.TH mmdefragfs 02/16/06
2mmdefragfs Command
3.SH "Name"
4.PP
5\fBmmdefragfs\fR - Reduces disk fragmentation by increasing the
6number 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
13Use the \fBmmdefragfs\fR command to reduce fragmentation of a file
14system. The \fBmmdefragfs\fR command moves existing file system data
15within a disk to make more efficient use of disk blocks. The data is
16migrated to unused subblocks in partially allocated blocks, thereby increasing
17the number of free full blocks.
18.PP
19The \fBmmdefragfs\fR command can be run against a mounted or unmounted
20file system. However, best results are achieved when the file system is
21unmounted. When a file system is mounted, allocation status may change
22causing retries to find a suitable unused subblock.
23.PP
24If \fBmmdefragfs\fR is issued on a file that is locked by SANergy, the file
25is not de-fragmented.
26.SH "Parameters"
27.PP
28.RS +3
29\fB\fIDevice\fR
30\fR
31.RE
32.RS +9
33The device name of the file system to have fragmentation reduced.
34File system names need not be fully-qualified. \fBfs0\fR is as
35acceptable as \fB/dev/fs0\fR.
36.PP
37This 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
46Specifies to query the current disk fragmentation state of the file
47system. Does not perform the actual defragmentation of the disks in the
48file system.
49.RE
50.PP
51.RS +3
52\fB-u \fIBlkUtilPct\fR
53\fR
54.RE
55.RS +9
56The average block utilization goal for the disks in the file
57system. The \fBmmdefragfs\fR command reduces the number of allocated
58blocks by increasing the percent utilization of the remaining blocks.
59The command automatically goes through multiple iterations until
60\fIBlkUtilPct\fR is achieved on all of the disks in the file system or
61until no progress is made in achieving \fIBlkUtilPct\fR from one iteration
62to the next, at which point it exits.
63.RE
64.PP
65.RS +3
66\fB-v
67\fR
68.RE
69.RS +9
70Specifies 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
80Successful completion.
81.RE
82.PP
83.RS +3
84\fBnonzero
85\fR
86.RE
87.RS +9
88A failure has occurred.
89.RE
90.SH "Security"
91.PP
92You must have root authority to run the \fBmmdefragfs\fR command.
93.PP
94You may issue the \fBmmdefragfs\fR command from any node in the GPFS
95cluster.
96.PP
97When using the \fBrcp\fR and \fBrsh\fR commands for remote
98communication, a properly configured \fB.rhosts\fR file must exist
99in the root user's home directory on each node in the GPFS
100cluster. If you have designated the use of a different remote
101communication program on the
102\fBmmcrcluster\fR or the
103\fBmmchcluster\fR command, you must ensure:
104.RS +3
105.HP 3
1061. Proper authorization is granted to all nodes in the GPFS cluster.
107.HP 3
1082. The nodes in the GPFS cluster can communicate without the use of a
109password, and without any extraneous messages.
110.RE
111.SH "Examples"
112.RS +3
113.HP 3
1141. To query the fragmentation state of file system \fBfs0\fR, issue this
115command:
116.sp
117.nf
118mmdefragfs fs0 -i
119.fi
120.sp
121.sp
122The system displays information similar to:
123.sp
124.nf
125                         free subblk    free\
126disk            disk size  in full  subblk in      %       %
127name          in nSubblk   blocks   fragments free blk blk util
128--------------- --------- --------- --------- --------  -------
129gpfs68nsd         4390912   4270112       551   97.249   99.544
130gpfs69nsd         4390912   4271360       490   97.277   99.590
131                --------- --------- ---------           -------
132(total)           8781824   8541472      1041            99.567
133.fi
134.sp
135.HP 3
1362. To reduce fragmentation of the file system \fBfs0\fR on all defined,
137accessible disks that are not stopped or suspended, issue this command:
138.sp
139.nf
140mmdefragfs fs0\
141.fi
142.sp
143.sp
144The 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
1593. To reduce fragmentation of all files in the file system \fBfs1\fR
160until the disks have an average block utilization percentage higher then 99%,
161issue this command:
162.sp
163.nf
164mmdefragfs fs1 -u 99\
165.fi
166.sp
167.sp
168The system displays information similar to:
169.sp
170.nf
171WARNING: "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
197mmdf Command
198.SH "Location"
199.PP
200\fB/usr/lpp/mmfs/bin\fR
201.PP
Note: See TracBrowser for help on using the repository browser.