1 | .TH mmcrsnapshot 02/16/06 |
---|
2 | mmcrsnapshot Command |
---|
3 | .SH "Name" |
---|
4 | .PP |
---|
5 | \fBmmcrsnapshot\fR - Creates a snapshot of an entire GPFS file system |
---|
6 | at a single point in time. |
---|
7 | .SH "Synopsis" |
---|
8 | .PP |
---|
9 | \fBmmcrsnapshot\fR \fIDevice\fR \fIDirectory\fR |
---|
10 | .SH "Description" |
---|
11 | .PP |
---|
12 | Use the \fBmmcrsnapshot\fR command to create a snapshot of an entire |
---|
13 | GPFS file system at a single point in time. |
---|
14 | .PP |
---|
15 | A snapshot is a copy of the changed user data in the file system. |
---|
16 | System data and existing snapshots are not copied. The snapshot |
---|
17 | function allows a backup or mirror program to run concurrently with user |
---|
18 | updates and still obtain a consistent copy of the file system as of the time |
---|
19 | the copy was created. Snapshots are exact copies of changed data in the |
---|
20 | active files and directories of a file system. Snapshots of a file |
---|
21 | system are read-only and are stored in a \fB.snapshots\fR |
---|
22 | directory. The files and attributes of the file system may be changed |
---|
23 | only in the active copy. |
---|
24 | .PP |
---|
25 | There is a maximum limit of 31 snapshots per file system. Snapshots may |
---|
26 | be deleted only by issuing the |
---|
27 | \fBmmdelsnapshot\fR |
---|
28 | command. The \fB.snapshots\fR directory cannot be |
---|
29 | deleted. |
---|
30 | .PP |
---|
31 | If the \fBmmcrsnapshot\fR command is issued while a conflicting command |
---|
32 | is running, the \fBmmcrsnapshot\fR command waits for that command to |
---|
33 | complete. If the \fBmmcrsnapshot\fR command is running while a |
---|
34 | conflicting command is issued, the conflicting command waits for the |
---|
35 | \fBmmcrsnapshot\fR command to complete. Conflicting operations |
---|
36 | include: |
---|
37 | .RS +3 |
---|
38 | .HP 3 |
---|
39 | 1. Other snapshot commands |
---|
40 | .HP 3 |
---|
41 | 2. Adding, deleting, replacing disks in the file system |
---|
42 | .HP 3 |
---|
43 | 3. Rebalancing, repairing, reducing disk fragmentation in a file system |
---|
44 | .RE |
---|
45 | .PP |
---|
46 | If quorum is lost before the \fBmmcrsnapshot\fR command completes, the |
---|
47 | snapshot is considered partial and will be deleted when quorum is achieved |
---|
48 | again. |
---|
49 | .PP |
---|
50 | Because snapshots are not copies of the entire file system, they should not |
---|
51 | be used as protection against media failures. For protection against |
---|
52 | media failures, see |
---|
53 | \fIGeneral Parallel File |
---|
54 | System: Concepts, Planning, and Installation Guide\fR and search |
---|
55 | on \fIrecoverability considerations\fR. |
---|
56 | .SH "Parameters" |
---|
57 | .PP |
---|
58 | .RS +3 |
---|
59 | \fB\fIDevice\fR |
---|
60 | \fR |
---|
61 | .RE |
---|
62 | .RS +9 |
---|
63 | The device name of the file system for which the snapshot is to be |
---|
64 | created. File system names need not be fully-qualified. |
---|
65 | \fBfs0\fR is just as acceptable as \fB/dev/fs0\fR. |
---|
66 | .PP |
---|
67 | This must be the first parameter. |
---|
68 | .RE |
---|
69 | .PP |
---|
70 | .RS +3 |
---|
71 | \fB\fIDirectory\fR |
---|
72 | \fR |
---|
73 | .RE |
---|
74 | .RS +9 |
---|
75 | The subdirectory name where the snapshots are stored. |
---|
76 | .PP |
---|
77 | This is a subdirectory of the root directory and must be a unique name |
---|
78 | within the root directory. If you do not want to traverse the root to |
---|
79 | access the snapshot you can create a symbolic link to the snapshot by issuing |
---|
80 | the |
---|
81 | \fBmmsnapdir\fR command. |
---|
82 | .RE |
---|
83 | .SH "Options" |
---|
84 | .PP |
---|
85 | NONE |
---|
86 | .SH "Exit status" |
---|
87 | .PP |
---|
88 | .PP |
---|
89 | .RS +3 |
---|
90 | \fB0 |
---|
91 | \fR |
---|
92 | .RE |
---|
93 | .RS +9 |
---|
94 | Successful completion. |
---|
95 | .RE |
---|
96 | .PP |
---|
97 | .RS +3 |
---|
98 | \fBnonzero |
---|
99 | \fR |
---|
100 | .RE |
---|
101 | .RS +9 |
---|
102 | A failure has occurred. |
---|
103 | .RE |
---|
104 | .SH "Security" |
---|
105 | .PP |
---|
106 | You must have root authority to run the \fBmmcrsnapshot\fR |
---|
107 | command. |
---|
108 | .PP |
---|
109 | You may issue the \fBmmcrsnapshot\fR command from any node in the GPFS |
---|
110 | cluster. |
---|
111 | .PP |
---|
112 | When using the \fBrcp\fR and \fBrsh\fR commands for remote |
---|
113 | communication, a properly configured \fB.rhosts\fR file must exist |
---|
114 | in the root user's home directory on each node in the GPFS |
---|
115 | cluster. If you have designated the use of a different remote |
---|
116 | communication program on either the |
---|
117 | \fBmmcrcluster\fR |
---|
118 | or the |
---|
119 | \fBmmchcluster\fR command, you must |
---|
120 | ensure: |
---|
121 | .RS +3 |
---|
122 | .HP 3 |
---|
123 | 1. Proper authorization is granted to all nodes in the GPFS cluster. |
---|
124 | .HP 3 |
---|
125 | 2. The nodes in the GPFS cluster can communicate without the use of a |
---|
126 | password, and without any extraneous messages. |
---|
127 | .RE |
---|
128 | .SH "Examples" |
---|
129 | .PP |
---|
130 | To create a snapshot \fBsnap1\fR, for the file system \fBfs1\fR, |
---|
131 | issue this command: |
---|
132 | .sp |
---|
133 | .nf |
---|
134 | mmcrsnapshot fs1 snap1 |
---|
135 | .fi |
---|
136 | .sp |
---|
137 | .PP |
---|
138 | The output is similar to this: |
---|
139 | .sp |
---|
140 | .nf |
---|
141 | Writing dirty data to disk |
---|
142 | Quiescing all file system operations |
---|
143 | Writing dirty data to disk again |
---|
144 | Creating snapshot. |
---|
145 | Resuming operations. |
---|
146 | .fi |
---|
147 | .sp |
---|
148 | .PP |
---|
149 | Before issuing the command, the directory structure would appear similar |
---|
150 | to: |
---|
151 | .sp |
---|
152 | .nf |
---|
153 | /fs1/file1 |
---|
154 | /fs1/userA/file2 |
---|
155 | /fs1/userA/file3 |
---|
156 | .fi |
---|
157 | .sp |
---|
158 | .PP |
---|
159 | After the command has been issued, the directory structure would appear |
---|
160 | similar to: |
---|
161 | .sp |
---|
162 | .nf |
---|
163 | /fs1/file1 |
---|
164 | /fs1/userA/file2 |
---|
165 | /fs1/userA/file3 |
---|
166 | /fs1/.snapshots/snap1/file1 |
---|
167 | /fs1/.snapshots/snap1/userA/file2 |
---|
168 | /fs1/.snapshots/snap1/userA/file3 |
---|
169 | .fi |
---|
170 | .sp |
---|
171 | .PP |
---|
172 | If a second snapshot were to be created at a later time, the first snapshot |
---|
173 | would remain as is. Snapshots are made only of active file systems, not |
---|
174 | existing snapshots. For example: |
---|
175 | .sp |
---|
176 | .nf |
---|
177 | mmcrsnapshot fs1 snap2 |
---|
178 | .fi |
---|
179 | .sp |
---|
180 | .PP |
---|
181 | The output is similar to this: |
---|
182 | .sp |
---|
183 | .nf |
---|
184 | Writing dirty data to disk |
---|
185 | Quiescing all file system operations |
---|
186 | Writing dirty data to disk again |
---|
187 | Creating snapshot. |
---|
188 | Resuming operations. |
---|
189 | .fi |
---|
190 | .sp |
---|
191 | .PP |
---|
192 | After the command has been issued, the directory structure would appear |
---|
193 | similar to: |
---|
194 | .sp |
---|
195 | .nf |
---|
196 | /fs1/file1 |
---|
197 | /fs1/userA/file2 |
---|
198 | /fs1/userA/file3 |
---|
199 | /fs1/.snapshots/snap1/file1 |
---|
200 | /fs1/.snapshots/snap1/userA/file2 |
---|
201 | /fs1/.snapshots/snap1/userA/file3 |
---|
202 | /fs1/.snapshots/snap2/file1 |
---|
203 | /fs1/.snapshots/snap2/userA/file2 |
---|
204 | /fs1/.snapshots/snap2/userA/file3 |
---|
205 | .fi |
---|
206 | .sp |
---|
207 | .SH "See also" |
---|
208 | .PP |
---|
209 | mmdelsnapshot Command |
---|
210 | .PP |
---|
211 | mmlssnapshot Command |
---|
212 | .PP |
---|
213 | mmrestorefs Command |
---|
214 | .PP |
---|
215 | mmsnapdir Command |
---|
216 | .SH "Location" |
---|
217 | .PP |
---|
218 | \fB/usr/lpp/mmfs/bin\fR |
---|
219 | .PP |
---|