[16] | 1 | .TH mmbackup 03/02/06 |
---|
| 2 | mmbackup Command |
---|
| 3 | .SH "Name" |
---|
| 4 | .PP |
---|
| 5 | \fBmmbackup\fR - Backs up a GPFS file system to a backup |
---|
| 6 | server. |
---|
| 7 | .SH "Synopsis" |
---|
| 8 | .PP |
---|
| 9 | \fBmmbackup\fR \fIDevice\fR \fB-n\fR \fIControlFile\fR |
---|
| 10 | [\fB-t\fR {\fBfull\fR | \fB\fIincremental\fR\fR}] \fB[-s |
---|
| 11 | \fR\fISortDir\fR\fB]\fR |
---|
| 12 | .PP |
---|
| 13 | Or, |
---|
| 14 | .PP |
---|
| 15 | \fBmmbackup\fR \fIDevice\fR \fB-R\fR \fB[-s |
---|
| 16 | \fR\fISortDir\fR\fB]\fR |
---|
| 17 | .SH "Description" |
---|
| 18 | .PP |
---|
| 19 | Use the \fBmmbackup\fR command to backup a GPFS file system to a backup |
---|
| 20 | server. mmbackup takes a temporary snapshot named \fB.mmbuSnapshot\fR of |
---|
| 21 | the specified file system, and backs up this snapshot to a back end |
---|
| 22 | data store. |
---|
| 23 | Accordingly, the files backed up by the command will be stored in the directory |
---|
| 24 | \fB/<Device>/.snapshots/.mmbuSnapshot\fR in the remote data store. |
---|
| 25 | The command may be issued from any GPFS node in the cluster to |
---|
| 26 | which the file system being backed up belongs, and on which the file system is |
---|
| 27 | mounted. |
---|
| 28 | .SH "Parameters" |
---|
| 29 | .PP |
---|
| 30 | .RS +3 |
---|
| 31 | \fB\fIDevice\fR |
---|
| 32 | \fR |
---|
| 33 | .RE |
---|
| 34 | .RS +9 |
---|
| 35 | The device name for the file system to be backed up. This must be |
---|
| 36 | the first parameter and must be fully-qualified, such as |
---|
| 37 | \fB/dev/fs0\fR. The device name must be specified; there is no |
---|
| 38 | default value. |
---|
| 39 | .RE |
---|
| 40 | .PP |
---|
| 41 | .RS +3 |
---|
| 42 | \fB-n \fIControlFile\fR |
---|
| 43 | \fR |
---|
| 44 | .RE |
---|
| 45 | .RS +9 |
---|
| 46 | Specifies the file containing the backup control information. The |
---|
| 47 | file must be in the present working directory or the path must be fully |
---|
| 48 | qualified. Each piece of control information must be on a separate line |
---|
| 49 | and correctly qualified. Comment lines are allowed and must begin with |
---|
| 50 | a \fB#\fR in column 1. Empty lines may not contain any blank |
---|
| 51 | characters. Valid lines either contain a \fB#\fR in column 1 |
---|
| 52 | indicating a comment, an \fB=\fR indicating a value is being set, or no |
---|
| 53 | characters at all. |
---|
| 54 | .PP |
---|
| 55 | This option may be specified only if the backup type is \fBfull\fR or |
---|
| 56 | \fBincremental\fR. If the \fB-R\fR option has been specified, |
---|
| 57 | this information is obtained from the control information specified on the |
---|
| 58 | earlier full or incremental \fBmmbackup\fR command that completed with |
---|
| 59 | partial success. |
---|
| 60 | .PP |
---|
| 61 | The allowable qualifiers in the control file are: |
---|
| 62 | .PP |
---|
| 63 | .RS +3 |
---|
| 64 | \fB\fIserverName\fR |
---|
| 65 | \fR |
---|
| 66 | .RE |
---|
| 67 | .RS +9 |
---|
| 68 | The name of the node specified as the backup server qualified with |
---|
| 69 | \fBserverName=\fR. The backup server node may or may not be a GPFS |
---|
| 70 | node, although performance may be improved if it is also a backup client |
---|
| 71 | node. You may specify only one backup server. |
---|
| 72 | .RE |
---|
| 73 | .PP |
---|
| 74 | .RS +3 |
---|
| 75 | \fB\fIclientName\fR |
---|
| 76 | \fR |
---|
| 77 | .RE |
---|
| 78 | .RS +9 |
---|
| 79 | The backup clients, one per line, qualified with |
---|
| 80 | \fBclientName=\fR. The backup client nodes must be a member of the |
---|
| 81 | GPFS cluster where the file system is mounted. For improved performance |
---|
| 82 | it is suggested that multiple backup client nodes be specified. The |
---|
| 83 | maximum number of backup clients supported is 32. |
---|
| 84 | .RE |
---|
| 85 | .PP |
---|
| 86 | .RS +3 |
---|
| 87 | \fB\fInumberOfProcessesPerClient\fR |
---|
| 88 | \fR |
---|
| 89 | .RE |
---|
| 90 | .RS +9 |
---|
| 91 | The number of processes per client qualified with |
---|
| 92 | \fBnumberOfProcessesPerClient=\fR. The number of processes per |
---|
| 93 | client may be specified only once. |
---|
| 94 | .RE |
---|
| 95 | .RE |
---|
| 96 | .SH "Options" |
---|
| 97 | .PP |
---|
| 98 | .RS +3 |
---|
| 99 | \fB-R |
---|
| 100 | \fR |
---|
| 101 | .RE |
---|
| 102 | .RS +9 |
---|
| 103 | Indicates to resume the previous backup that failed with a return code of |
---|
| 104 | 1 (partial success). If the previous backup failed with a return code |
---|
| 105 | of 2 or succeeded with a return code of 0, this option does not succeed and a |
---|
| 106 | new full or incremental backup must be initiated. |
---|
| 107 | .RE |
---|
| 108 | .PP |
---|
| 109 | .RS +3 |
---|
| 110 | \fB-s \fISortDir\fR |
---|
| 111 | \fR |
---|
| 112 | .RE |
---|
| 113 | .RS +9 |
---|
| 114 | Specifies the directory to be used by the \fBsort\fR command for |
---|
| 115 | temporary data. The default is \fB/tmp\fR. |
---|
| 116 | .RE |
---|
| 117 | .PP |
---|
| 118 | .RS +3 |
---|
| 119 | \fB-t {\fBfull\fR | \fB\fIincremental\fR\fR} |
---|
| 120 | \fR |
---|
| 121 | .RE |
---|
| 122 | .RS +9 |
---|
| 123 | Specifies whether to perform a full backup of all of the files in the file |
---|
| 124 | system, or an incremental backup of only those files that have changed since |
---|
| 125 | the last backup was performed. The default is to perform an incremental |
---|
| 126 | backup. The default is \fB-t incremental\fR. |
---|
| 127 | .RE |
---|
| 128 | .SH "Exit status" |
---|
| 129 | .PP |
---|
| 130 | .PP |
---|
| 131 | .RS +3 |
---|
| 132 | \fB0 |
---|
| 133 | \fR |
---|
| 134 | .RE |
---|
| 135 | .RS +9 |
---|
| 136 | Successful completion. |
---|
| 137 | .RE |
---|
| 138 | .PP |
---|
| 139 | .RS +3 |
---|
| 140 | \fB1 |
---|
| 141 | \fR |
---|
| 142 | .RE |
---|
| 143 | .RS +9 |
---|
| 144 | Partially successful completion. Not all of the eligible files were |
---|
| 145 | successfully backed up. The command may be resumed by specifying the |
---|
| 146 | \fB-R\fR option. |
---|
| 147 | .RE |
---|
| 148 | .PP |
---|
| 149 | .RS +3 |
---|
| 150 | \fB2 |
---|
| 151 | \fR |
---|
| 152 | .RE |
---|
| 153 | .RS +9 |
---|
| 154 | A failure occurred that cannot be corrected by resuming the backup. |
---|
| 155 | A new backup must be initiated. |
---|
| 156 | .RE |
---|
| 157 | .SH "Security" |
---|
| 158 | .PP |
---|
| 159 | You must have root authority to run the \fBmmbackup\fR command. |
---|
| 160 | .PP |
---|
| 161 | You may issue the \fBmmbackup\fR command from any node in the cluster |
---|
| 162 | where the file system being backed up is mounted. |
---|
| 163 | .PP |
---|
| 164 | When using the \fBrcp\fR and \fBrsh\fR commands for remote |
---|
| 165 | communication, a properly-configured \fB.rhosts\fR file must exist |
---|
| 166 | in the root user's home directory on each node in the GPFS |
---|
| 167 | cluster. If you have designated the use of a different remote |
---|
| 168 | communication program on either the |
---|
| 169 | \fBmmcrcluster\fR |
---|
| 170 | or the |
---|
| 171 | \fBmmchcluster\fR command, you must |
---|
| 172 | ensure: |
---|
| 173 | .RS +3 |
---|
| 174 | .HP 3 |
---|
| 175 | 1. Proper authorization is granted to all nodes in the GPFS cluster. |
---|
| 176 | .HP 3 |
---|
| 177 | 2. The nodes in the GPFS cluster can communicate without the use of a |
---|
| 178 | password, and without any extraneous messages. |
---|
| 179 | .RE |
---|
| 180 | .SH "Examples" |
---|
| 181 | .PP |
---|
| 182 | These examples use a control file named \fBinputctrl32\fR, which |
---|
| 183 | specifies a backup server, three backup clients, and two processes per client |
---|
| 184 | as shown here: |
---|
| 185 | .sp |
---|
| 186 | .nf |
---|
| 187 | # backup server |
---|
| 188 | serverName=k145n06.kgn.ibm.com |
---|
| 189 | # backup clients |
---|
| 190 | clientName=k14n04.kgn.ibm.com |
---|
| 191 | clientName=k14n05.kgn.ibm.com |
---|
| 192 | clientName=k14n06.kgn.ibm.com |
---|
| 193 | # number of processes per client |
---|
| 194 | numberOfProcessesPerClient=2 |
---|
| 195 | .fi |
---|
| 196 | .sp |
---|
| 197 | .RS +3 |
---|
| 198 | .HP 3 |
---|
| 199 | 1. To perform a full backup of the file system \fB/dev/fs0\fR from node |
---|
| 200 | \fBk145n04\fR, issue this command: |
---|
| 201 | .sp |
---|
| 202 | .nf |
---|
| 203 | mmbackup /dev/fs0 -n inputctrl32 -t full |
---|
| 204 | .fi |
---|
| 205 | .sp |
---|
| 206 | The system displays information similar to: |
---|
| 207 | .sp |
---|
| 208 | .nf |
---|
| 209 | Tue Mar 18 14:03:25 est 2003 mmbackup is still running ... |
---|
| 210 | Tue Mar 18 14:05:55 est 2003 mmbackup is still running ... |
---|
| 211 | tsbackup: full backup finished with complete successs, rc = 0 |
---|
| 212 | mmbackup: Command successfully completed |
---|
| 213 | .fi |
---|
| 214 | .sp |
---|
| 215 | .HP 3 |
---|
| 216 | 2. To perform an incremental backup of the file system \fB/dev/fs0\fR from |
---|
| 217 | node \fBk145n04\fR, issue this command: |
---|
| 218 | .sp |
---|
| 219 | .nf |
---|
| 220 | mmbackup /dev/fs0 -n inputctrl32 -t incremental |
---|
| 221 | .fi |
---|
| 222 | .sp |
---|
| 223 | The system displays information similar to: |
---|
| 224 | .sp |
---|
| 225 | .nf |
---|
| 226 | Tue Mar 18 14:16:15 est 2003 mmbackup is still running ... |
---|
| 227 | tsbackup: incremental backup finished with complete success, |
---|
| 228 | rc = 0 |
---|
| 229 | mmbackup: Command successfully completed |
---|
| 230 | .fi |
---|
| 231 | .sp |
---|
| 232 | .HP 3 |
---|
| 233 | 3. In an unsuccessful attempt to perform a full backup of the file system |
---|
| 234 | \fB/dev/fs0\fR from node \fBk145n04\fR, where the user had issued this |
---|
| 235 | command: |
---|
| 236 | .sp |
---|
| 237 | .nf |
---|
| 238 | mmbackup /dev/fs0 -n inputctrl32 -t full |
---|
| 239 | .fi |
---|
| 240 | .sp |
---|
| 241 | the system displays information similar to: |
---|
| 242 | .sp |
---|
| 243 | .nf |
---|
| 244 | k145n04.kgn.ibm.com: Cannot open /fs0/.mmbuTrans2. |
---|
| 245 | Process 2 on client k145n06 failed in processing its list of |
---|
| 246 | files. |
---|
| 247 | k145n04.kgn.ibm.com: Cannot open /fs0/.mmbuTrans5. |
---|
| 248 | Process 5 on client k145n06 failed in processing its list of |
---|
| 249 | files. |
---|
| 250 | tsbackup: full backup finished with partial success, rc = 1 |
---|
| 251 | mmbackup: 6027-1639 Command failed. Examine previous error |
---|
| 252 | messages to determine the cause. |
---|
| 253 | .fi |
---|
| 254 | .sp |
---|
| 255 | .HP 3 |
---|
| 256 | 4. To resume the job unsuccessfully completed in example 3, issue this |
---|
| 257 | command: |
---|
| 258 | .sp |
---|
| 259 | .nf |
---|
| 260 | mmbackup /dev/fs0 -R |
---|
| 261 | tsbackup: resume of full backup finished with complete success, |
---|
| 262 | rc=0 |
---|
| 263 | mmbackup: Command successfully completed |
---|
| 264 | .fi |
---|
| 265 | .sp |
---|
| 266 | .RE |
---|
| 267 | .SH "Location" |
---|
| 268 | .PP |
---|
| 269 | \fB/usr/lpp/mmfs/bin\fR |
---|
| 270 | .PP |
---|