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