source: gpfs_3.1_ker2.6.20/share/man/man8/mmrestripefile.8 @ 173

Last change on this file since 173 was 16, checked in by rock, 17 years ago
File size: 5.6 KB
Line 
1.TH mmrestripefile 02/16/06
2mmrestripefile Command
3.SH "Name"
4.PP
5\fBmmrestripefile\fR - Performs a repair operation over the specified list
6of files.
7.SH "Synopsis"
8.PP
9\fBmmrestripefile\fR {\fB-m\fR | \fB-r\fR | \fB-b\fR |
10\fB-p\fR} {[\fB-F\fR \fIFilenameFile\fR] | \fIFilename\fR
11[\fIFilename\fR...]}
12.SH "Description"
13.PP
14The \fBmmrestripefile\fR command performs a repair operation over the
15specified list of files. The \fB-F\fR flag allows the user to
16specify a file containing the list of file names to be restriped, with one
17file name per line.
18.PP
19The \fBmmrestripefile\fR command attempts to restore the metadata or
20data replication factor of the file.
21.PP
22You must specify one of the four options (\fB-b\fR, \fB-m\fR,
23\fB-p\fR, or \fB-r\fR) to indicate how much file data to move.
24.PP
25If you do not use replication, the \fB-m\fR and \fB-r\fR options are
26equivalent. Their behavior differs only on replicated files.
27After a successful replicate (\fB-r\fR option), all suspended disks are
28empty. A migrate operation, using the \fB-m\fR option, leaves data
29on a suspended disk as long as at least one other replica of the data remains
30on a disk that is not suspended. Restriping a file system includes
31replicating it. The \fB-b\fR option performs all the operations of
32the \fB-m\fR and \fB-r\fR options.
33.PP
34When using SANergy, consider these points:
35.RS +3
36.HP 3
37\(bu If the \fBmmrestripefile\fR command is issued on a file that is locked
38by SANergy, the command waits until it is unlocked before proceeding.
39.HP 3
40\(bu I/O operations from SANergy clients must terminate before using the
41\fBmmrestripefile\fR command. If not, the client applications
42receive an error.
43.RE
44.SH "Parameters"
45.PP
46.RS +3
47\fB\fB-F\fR \fIFilenameFile\fR
48\fR
49.RE
50.RS +9
51Specifies a file containing a list of names of files to be restriped, one
52name per line.
53.RE
54.PP
55.RS +3
56\fB\fIFilename\fR
57\fR
58.RE
59.RS +9
60Specifies the names of one or more files to be restriped.
61.RE
62.SH "Options"
63.PP
64.RS +3
65\fB-b
66\fR
67.RE
68.RS +9
69Rebalances all files across all disks that are not suspended, even if they
70are stopped. Although blocks are allocated on a stopped disk, they are
71not written to a stopped disk, nor are reads allowed from a stopped disk,
72until that disk is started and replicated data is copied onto it. The
73\fBmmrestripefile\fR command rebalances and restripes the file.
74.RE
75.PP
76.RS +3
77\fB-m
78\fR
79.RE
80.RS +9
81Migrates all critical data off any suspended disk in this file
82system. Critical data is all data that would be lost if currently
83suspended disks were removed.
84.RE
85.PP
86.RS +3
87\fB-p
88\fR
89.RE
90.RS +9
91Directs \fBmmrestripefile\fR to repair the file placement within the
92storage pool.
93.PP
94Files assigned to one storage pool, but with data in a different pool, will
95have their data migrated to the correct pool. These files are called
96ill-placed. Utilities, such as the \fBmmchattr\fR command, may change a file's storage
97pool assignment, but not move the data. The \fBmmrestripefile\fR
98command may then be invoked to migrate all of the data at once, rather than
99migrating each file individually. Note that the rebalance operation,
100specified by the \fB-b\fR option, also performs data placement on all
101files, whereas the placement option, specified by \fB-p\fR, rebalances only
102the files that it moves.
103.RE
104.PP
105.RS +3
106\fB-r
107\fR
108.RE
109.RS +9
110Migrates all data off suspended disks. It also restores all
111replicated files in the file system to their designated degree of replication
112when a previous disk failure or removal of a disk has made some replica data
113inaccessible. Use this parameter either immediately after a disk
114failure to protect replicated data against a subsequent failure, or before
115taking a disk offline for maintenance to protect replicated data against
116failure of another disk during the maintenance process.
117.RE
118.SH "Exit status"
119.PP
120.PP
121.RS +3
122\fB0
123\fR
124.RE
125.RS +9
126Successful completion.
127.RE
128.PP
129.RS +3
130\fBnonzero
131\fR
132.RE
133.RS +9
134A failure has occurred.
135.RE
136.SH "Security"
137.PP
138You must have root authority to run the \fBmmrestripefile\fR
139command.
140.PP
141You may issue the \fBmmrestripefile\fR command from any node in the GPFS
142cluster.
143.PP
144When using the \fBrcp\fR and \fBrsh\fR commands for remote
145communication, a properly configured \fB.rhosts\fR file must exist
146in the root user's home directory on each node in the GPFS
147cluster. If you have designated the use of a different remote
148communication program on either the
149\fBmmcrcluster\fR
150or the
151\fBmmchcluster\fR command, you must
152ensure:
153.RS +3
154.HP 3
1551. Proper authorization is granted to all nodes in the GPFS cluster.
156.HP 3
1572. The nodes in the GPFS cluster can communicate without the use of a
158password, and without any extraneous messages.
159.RE
160.SH "Examples"
161.PP
162This example illustrates restriping a file named \fBtestfile0\fR.
163This command confirms that \fBtestfile0\fR is illplaced.
164.sp
165.nf
166mmlsattr -L testfile0
167.fi
168.sp
169.PP
170The system displays output similar to:
171.sp
172.nf
173file name:            testfile0
174metadata replication: 1 max 2
175data replication:     1 max 2
176flags:                illplaced
177storage pool name:    sp5
178fileset name:         root
179snapshot name:
180.fi
181.sp
182.PP
183To correct the problem, issue this command:
184.sp
185.nf
186mmrestripefile -p testfile0
187.fi
188.sp
189.PP
190To confirm the change, issue this command:
191.sp
192.nf
193mmlsattr -L testfile0
194.fi
195.sp
196.PP
197The system displays output similar to:
198.sp
199.nf
200file name:            testfile0
201metadata replication: 1 max 2
202data replication:     1 max 2
203flags:
204storage pool name:    sp5
205fileset name:         root
206snapshot name:
207.fi
208.sp
209.SH "See also"
210.PP
211mmadddisk Command
212.PP
213mmapplypolicy Command
214.PP
215mmchattr Command
216.PP
217mmchdisk Command
218.PP
219mmdeldisk Command
220.PP
221mmrpldisk Command
222.PP
223mmrestripefs Command
224.PP
225.SH "Location"
226.PP
227\fB/usr/lpp/mmfs/bin\fR
228.PP
Note: See TracBrowser for help on using the repository browser.