source: gpfs_3.1_ker2.6.20/share/man/man8/mmchfs.8 @ 84

Last change on this file since 84 was 16, checked in by rock, 17 years ago
File size: 10.2 KB
RevLine 
[16]1.TH mmchfs 12/01/06
2mmchfs Command
3.SH "Name"
4.PP
5\fBmmchfs\fR - Changes the attributes of a GPFS file system.
6.SH "Synopsis"
7.PP
8\fBmmchfs\fR \fIDevice\fR [\fB-A {\fR\fByes\fR | \fBno |
9automount}\fR] [\fB-E {\fR\fByes |
10\fR\fBno\fR\fB}\fR] [\fB-D {\fR\fBnfs4\fR |
11\fBposix\fR\fB}\fR] [\fB-F\fR
12\fIMaxNumInodes\fR[:\fINumInodesToPreallocate\fR]]
13[\fB-k {\fR\fBposix\fR\fB | nfs4 | all}\fR] [\fB-K
14{no | \fR\fBwhenpossible\fR\fB | always}\fR] [\fB-m\fR
15\fIDefaultMetadataReplicas\fR] [\fB-o\fR
16\fIMountOptions\fR] [\fB-Q {yes | \fR\fBno}\fR]
17[\fB-r\fR \fIDefaultDataReplicas\fR] [\fB-S\fR
18\fB{yes\fR\fB | no} ]\fR [\fB-T\fR
19\fIMountpoint\fR] [\fB-V\fR] [\fB-z
20{\fR\fByes\fR \fB| no}\fR]
21.PP
22Or,
23.PP
24\fBmmchfs\fR \fIDevice\fR [\fB-W \fR
25\fINewDeviceName\fR]
26.SH "Description"
27.PP
28Use the \fBmmchfs\fR command to change the attributes of a GPFS file
29system.
30.PP
31All files created after issuing the \fBmmchfs\fR command take on the new
32attributes. Existing files are not affected. Use the
33\fBmmchattr\fR command to change the replication factor of existing
34files.
35.SH "Parameters"
36.PP
37.RS +3
38\fB\fIDevice\fR
39\fR
40.RE
41.RS +9
42The device name of the file system to be changed.
43.PP
44File system names need not be fully-qualified. \fBfs0\fR is as
45acceptable as \fB/dev/fs0\fR. However, file system names must be
46unique across GPFS clusters.
47.PP
48This must be the first parameter.
49.RE
50.SH "Options"
51.PP
52.RS +3
53\fB-A {yes | \fBno\fR | automount}
54\fR
55.RE
56.RS +9
57Indicates when the file system is to be mounted:
58.PP
59.RS +3
60\fByes
61\fR
62.RE
63.RS +9
64When the GPFS daemon starts.
65.RE
66.PP
67.RS +3
68\fBno
69\fR
70.RE
71.RS +9
72Manual mount.
73.RE
74.PP
75.RS +3
76\fBautomount
77\fR
78.RE
79.RS +9
80When the file system is first accessed.
81.RE
82.RE
83.PP
84.RS +3
85\fB-D {nfs4 | \fBposix\fR}
86\fR
87.RE
88.RS +9
89Specifies whether a 'deny-write open lock' will block writes,
90which is expected and required by NFS V4. File systems supporting NFS
91V4 must have \fB-D nfs4\fR set. The option \fB-D posix\fR allows
92NFS writes even in the presence of a deny-write open lock. If you
93intend to export the file system using NFS V4 or Samba, you must use \fB-D
94nfs4\fR. For NFS V3 (or if the file system is not NFS exported at
95all) use \fB-D posix\fR.
96.RE
97.PP
98.RS +3
99\fB-E {yes | \fBno\fR}
100\fR
101.RE
102.RS +9
103Specifies whether to report exact \fBmtime\fR values. If \fB-E
104no\fR is specified, the \fBmtime\fR value is periodically updated.
105If you desire to always display exact modification times, specify the \fB-E
106yes\fR option.
107.RE
108.PP
109.RS +3
110\fB-F \fIMaxNumInodes\fR[:\fINumInodesToPreallocate\fR]
111\fR
112.RE
113.RS +9
114\fIMaxNumInodes\fR specifies the maximum number of files that can be
115created. Allowable values range from the current number of created
116inodes (determined by issuing the \fBmmdf\fR command with the \fB-F\fR
117option), through the maximum number of files possibly supported as constrained
118by the formula:
119.PP
120\fBmaximum number of files = (total file system space/2) / (inode size +
121subblock size)\fR
122.PP
123If your file system has additional disks added or the number of inodes was
124insufficiently sized at file system creation, you may change the number of
125inodes and hence the maximum number of files that can be created.
126.PP
127For file systems that will be doing parallel file creates, if the total
128number of free inodes is not greater than 5% of the total number of inodes,
129there is the potential for slowdown in file system access. Take this
130into consideration when changing your file system.
131.PP
132\fINumInodesToPreallocate\fR specifies the number of inodes that will be
133preallocated by the system right away. If this number is not specified,
134GPFS allocates inodes dynamically as needed.
135.PP
136The \fIMaxNumInodes\fR and \fINumInodesToPreallocate\fR values can be
137specified with a suffix, for example 100K or 2M.
138.RE
139.PP
140.RS +3
141\fB\fB-k {\fR\fBposix\fR\fB | nfs4 | all}\fR
142\fR
143.RE
144.RS +9
145Specifies the type of authorization supported by the file system:
146.PP
147.RS +3
148\fBposix
149\fR
150.RE
151.RS +9
152Traditional GPFS ACLs only (NFS V4 ACLs are not allowed).
153Authorization controls are unchanged from earlier releases.
154.RE
155.PP
156.RS +3
157\fBnfs4
158\fR
159.RE
160.RS +9
161Support for NFS V4 ACLs only. Users are not allowed to assign
162traditional GPFS ACLs to any file system objects (directories and individual
163files).
164.RE
165.PP
166.RS +3
167\fBall
168\fR
169.RE
170.RS +9
171Any supported ACL type is permitted. This includes traditional GPFS
172(\fBposix\fR) and NFS V4 ACLs (\fBnfs4\fR).
173.PP
174The administrator is allowing a mixture of ACL types. For example,
175\fBfileA\fR may have a \fBposix\fR ACL, while \fBfileB\fR in the same
176file system may have an NFS V4 ACL, implying different access characteristics
177for each file depending on the ACL type that is currently assigned.
178.RE
179.PP
180Neither \fBnfs4\fR nor \fBall\fR should be specified here unless the
181file system is going to be exported to NFS V4 clients. NFS V4 ACLs
182affect file attributes (mode) and have access and authorization
183characteristics that are different from traditional GPFS ACLs.
184.RE
185.PP
186.RS +3
187\fB\fB-K {no | \fR\fBwhenpossible\fR\fB | always}\fR
188\fR
189.RE
190.RS +9
191Specifies whether strict replication is to be enforced:
192.PP
193.RS +3
194\fBno
195\fR
196.RE
197.RS +9
198Strict replication is not enforced. GPFS will try to create the
199needed number of replicas, but will still return EOK as long as it can
200allocate at least one replica.
201.RE
202.PP
203.RS +3
204\fBwhenpossible
205\fR
206.RE
207.RS +9
208Strict replication is enforced provided the disk configuration allows
209it. If there is only one failure group, strict replication will not be
210enforced.
211.RE
212.PP
213.RS +3
214\fBalways
215\fR
216.RE
217.RS +9
218Strict replication is enforced.
219.RE
220.RE
221.PP
222.RS +3
223\fB-m \fIDefaultMetaDataReplicas\fR
224\fR
225.RE
226.RS +9
227Changes the default number of metadata replicas. Valid values are 1
228and 2 but cannot exceed the values of \fIMaxMetaDataReplicas\fR set when
229the file system was created.
230.RE
231.PP
232.RS +3
233\fB-o \fIMountOptions\fR
234\fR
235.RE
236.RS +9
237Specifies the mount options to pass to the mount command when mounting the
238file system. For a detailed description of the available mount options,
239see GPFS-specific mount options.
240.RE
241.PP
242.RS +3
243\fB-Q {yes | no}
244\fR
245.RE
246.RS +9
247If \fByes\fR is specified, quotas are activated automatically when the
248file system is mounted. If \fBno\fR is specified, the quota files
249remain in the file system, but are not used.
250.PP
251To activate quota management:
252.RS +3
253.HP 3
2541. Unmount the file system everywhere
255.HP 3
2562. Run the command \fBmmchfs -Q yes\fR
257.HP 3
2583. Remount the file system, activating the new quota files
259.HP 3
2604. Compile inode and disk block statistics using the \fBmmcheckquota\fR
261command. Use these values as a reference to establish realistic quota
262values when issuing the \fBmmedquota\fR and \fBmmdefedquota\fR
263commands.
264.HP 3
2655. For default quotas:
266.RS +3
267.HP 3
268a. Issue the \fBmmdefedquota\fR command to establish default quota values
269.HP 3
270b. Issue the \fBmmdefquotaon -d\fR command to activate default quotas
271.RE
272.HP 3
2736. For explicit quotas:
274.RS +3
275.HP 3
276a. Issue the \fBmmedquota\fR command to establish quota values
277.RE
278.RE
279.PP
280To deactivate quota management:
281.RS +3
282.HP 3
2831. Unmount the file system everywhere
284.HP 3
2852. Run the command \fBmmchfs -Q no\fR
286.HP 3
2873. Remount the file system, deactivating the quota files
288.RE
289.RE
290.PP
291.RS +3
292\fB-r \fIDefaultDataReplicas\fR
293\fR
294.RE
295.RS +9
296Changes the default number of data replicas. Valid values are 1 and
2972 but cannot exceed the values of \fIMaxDataReplicas\fR set when the file
298system was created.
299.RE
300.PP
301.RS +3
302\fB-S {yes | no}
303\fR
304.RE
305.RS +9
306Suppress the periodic updating of the value of \fBatime\fR as reported
307by the \fBgpfs_stat()\fR, \fBgpfs_fstat()\fR, \fBstat()\fR, and
308\fBfstat()\fR calls. If \fByes\fR is specified these calls report
309the last time the file was accessed when the file system was mounted with the
310\fB-S no\fR option.
311.RE
312.PP
313.RS +3
314\fB-T \fIMountpoint\fR
315\fR
316.RE
317.RS +9
318Change the mount point of the file system starting at the next mount of
319the file system.
320.PP
321The file system must be unmounted on all nodes prior to issuing the
322command.
323.RE
324.PP
325.RS +3
326\fB-V
327\fR
328.RE
329.RS +9
330After migration, change the file system format to the latest format
331supported by the currently installed level of GPFS. This causes the
332file system to become permanently incompatible with earlier releases of
333GPFS.
334.PP
335Before issuing the \fB-V\fR option, see the \fIGeneral Parallel File
336System: Concepts, Planning, and Installation Guide\fR and search for
337\fIMigration, coexistence and compatibility\fR.
338.RE
339.PP
340.RS +3
341\fB-W \fINewDeviceName\fR
342\fR
343.RE
344.RS +9
345Assign \fINewDeviceName\fR to be the device name for the file
346system.
347.RE
348.PP
349.RS +3
350\fB-z {yes | no}
351\fR
352.RE
353.RS +9
354Enable or disable DMAPI on the file system. For further information
355on DMAPI for GPFS, see the \fIGeneral Parallel File System: Data
356Management API Guide\fR.
357.RE
358.SH "Exit status"
359.PP
360.PP
361.RS +3
362\fB0
363\fR
364.RE
365.RS +9
366Successful completion.
367.RE
368.PP
369.RS +3
370\fBnonzero
371\fR
372.RE
373.RS +9
374A failure has occurred.
375.RE
376.SH "Security"
377.PP
378You must have root authority to run the \fBmmchfs\fR command.
379.PP
380You may issue the \fBmmchfs\fR command from any node in the GPFS
381cluster.
382.PP
383When using the \fBrcp\fR and \fBrsh\fR commands for remote
384communication, a properly configured \fB.rhosts\fR file must exist
385in the root user's home directory on each node in the GPFS
386cluster. If you have designated the use of a different remote
387communication program on either the \fBmmcrcluster\fR or the
388\fBmmchcluster\fR command, you must ensure:
389.RS +3
390.HP 3
3911. Proper authorization is granted to all nodes in the GPFS cluster.
392.HP 3
3932. The nodes in the GPFS cluster can communicate without the use of a
394password, and without any extraneous messages.
395.RE
396.PP
397When considering data replication for files accessible to SANergy, see
398\fISANergy export considerations\fR in \fIGeneral Parallel File
399System: Advanced Administration Guide\fR.
400.SH "Examples"
401.PP
402To change the default replicas for metadata to 2 and the default replicas
403for data to 2 for new files created in the \fBfs0\fR file system, issue
404this command:
405.sp
406.nf
407mmchfs fs0 -m 2 -r 2
408.fi
409.sp
410.PP
411To confirm the change, issue this command:
412.sp
413.nf
414mmlsfs fs0 -m -r
415.fi
416.sp
417.PP
418The system displays information similar to:
419.sp
420.nf
421flag value          description
422---- -------------- -----------------------------------
423 -m  2              Default number of metadata replicas
424 -r  2              Default number of data replicas
425.fi
426.sp
427.SH "See also"
428.PP
429mmcrfs Command
430.PP
431mmdelfs Command
432.PP
433mmdf Command
434.PP
435mmfsck Command
436.PP
437mmlsfs Command
438.SH "Location"
439.PP
440\fB/usr/lpp/mmfs/bin\fR
Note: See TracBrowser for help on using the repository browser.