source: gpfs_3.1_ker2.6.20/share/man/man8/mmbackup.8 @ 90

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