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

Last change on this file since 90 was 16, checked in by rock, 17 years ago
File size: 5.8 KB
RevLine 
[16]1.TH mmdf 02/16/06
2mmdf Command
3.SH "Name"
4.PP
5\fBmmdf\fR - Queries available file space on a GPFS file
6system.
7.SH "Synopsis"
8.PP
9\fBmmdf\fR \fIDevice\fR [\fB-d\fR | \fB-F\fR |
10\fB-m\fR] [\fB-P\fR \fIPoolName\fR] [\fB-q\fR]
11.SH "Description"
12.PP
13Use the \fBmmdf\fR command to display available file space on a
14GPFS file system. For each disk in the GPFS file system, the
15\fBmmdf\fR command displays this information, by failure group and storage
16pool:
17.RS +3
18.HP 3
19\(bu The size of the disk.
20.HP 3
21\(bu The failure group of the disk.
22.HP 3
23\(bu Whether the disk is used to hold data, metadata, or both.
24.HP 3
25\(bu Available space in full blocks.
26.HP 3
27\(bu Available space in fragments.
28.RE
29.PP
30Displayed values are rounded down to a multiple of 1024 bytes. If
31the fragment size used by the file system is not a multiple of 1024 bytes,
32then the displayed values may be lower than the actual values. This can
33result in the display of a total value that exceeds the sum of the rounded
34values displayed for individual disks. The individual values are
35accurate if the fragment size is a multiple of 1024 bytes.
36.PP
37For the file system, the \fBmmdf\fR command displays:
38.RS +3
39.HP 3
40\(bu The total number of inodes and the number available.
41.RE
42.PP
43The \fBmmdf\fR command may be run against a mounted or unmounted file
44system.
45.RS +3
46\fBNote:\fR
47.RE
48.RS +9
49The command is I/O intensive and should be run when the system load is
50light.
51.RE
52.SH "Parameters"
53.PP
54.RS +3
55\fB\fIDevice\fR
56\fR
57.RE
58.RS +9
59The device name of the file system to be queried for available file
60space. File system names need not be fully-qualified.
61\fBfs0\fR is as acceptable as \fB/dev/fs0\fR.
62.PP
63This must be the first parameter.
64.RE
65.SH "Options"
66.PP
67.RS +3
68\fB-d
69\fR
70.RE
71.RS +9
72List only disks that can hold data.
73.RE
74.PP
75.RS +3
76\fB-F
77\fR
78.RE
79.RS +9
80List the number of inodes and how many of them are free.
81.RE
82.PP
83.RS +3
84\fB-m
85\fR
86.RE
87.RS +9
88List only disks that can hold metadata.
89.RE
90.PP
91.RS +3
92\fB-P \fIPoolName\fR
93\fR
94.RE
95.RS +9
96Lists only disks that belong to the requested storage pool.
97.RE
98.PP
99.RS +3
100\fB-q
101\fR
102.RE
103.RS +9
104For quick access to the file space information, list the data collected
105from the most recent synchronization period.
106.PP
107With this flag, the values recorded by the \fBmmdf\fR command are
108synchronized only at the last invocation of the \fBsyncd\fR daemon on the
109node where the command is issued.
110.RE
111.PP
112The default is to list all disks.
113.SH "Exit status"
114.PP
115.PP
116.RS +3
117\fB0
118\fR
119.RE
120.RS +9
121Successful completion.
122.RE
123.PP
124.RS +3
125\fBnonzero
126\fR
127.RE
128.RS +9
129A failure has occurred.
130.RE
131.SH "Security"
132.PP
133If you are a root user:
134.RS +3
135.HP 3
1361. You may issue the \fBmmdf \fR command from any node in the GPFS
137cluster.
138.HP 3
1392.
140When using the \fBrcp\fR and \fBrsh\fR commands for remote
141communication, a properly configured \fB.rhosts\fR file must exist
142in the root user's home directory on each node in the GPFS
143cluster. If you have designated the use of a different remote
144communication program on either the
145\fBmmcrcluster\fR
146or
147\fBmmchcluster\fR command, you must ensure:
148.RS +3
149.HP 3
150a. Proper authorization is granted to all nodes in the GPFS cluster.
151.HP 3
152b. The nodes in the GPFS cluster can communicate without the use of a
153password, and without any extraneous messages.
154.RE
155.RE
156.PP
157If you are a non-root user, you may specify only file systems that belong
158to the same cluster as the node on which the \fBmmdf \fR command was
159issued.
160.SH "Examples"
161.RS +3
162.HP 3
1631. To query all disks in the \fBfs1\fR file system that can hold data,
164issue this command:
165.sp
166.nf
167mmdf fs1 -d
168.fi
169.sp
170.sp
171The system displays information similar to:
172.sp
173.nf
174disk    disk size failure holds   holds  free KB in     free KB
175name      in KB   group  metadata data  full blocks in fragments
176------- --------- ------ -------- ----- ------------- ----------
177gpfs1nsd  8886720    4003 yes     yes   8733184 (98%)   632 (0%)
178gpfs2nsd  8886720    4003 yes     yes   8879360 (100%)  440 (0%)
179gpfs3nsd  8886720    4003 yes     yes   8884224 (100%)  440 (0%)
180gpfs4nsd  8886720    4003 yes     yes   8884224 (100%)  440 (0%)
181gpfs5nsd  8886720    4003 yes     yes   8884224 (100%)  440 (0%)
182         --------                       -------------- ---------
183(total)  44433600                     44265216 (100%)  2392 (0%)
184.fi
185.sp
186.HP 3
1872. To query all disks in the \fBfs1\fR file system that can hold
188metadata, issue this command:
189.sp
190.nf
191mmdf fs1 -m
192.fi
193.sp
194.sp
195The system displays information similar to:
196.sp
197.nf
198disk   disk size failure holds  holds   free KB in   free KB
199name    in KB    group metadata data  full blocks in fragments
200--------  ------- ----- ------- -----  -------------  -----------
201Disks in storage pool: system
202hd2vsdn01  8880128  2   yes     yes   8610304 (97%)  13640 (0%)
203hd3vsdn01  8880128  2   yes     yes   8610816 (97%)  13072 (0%)
204hd4vsdn01  8880128  2   yes     yes   8611840 (97%)  11784 (0%)
205hd5vsdn01  8880128  2   yes     yes   8613120 (97%)  13560 (0%)
206hd18vsdn02 8880128 4005 yes     yes   8657408 (97%)  13816 (0%)
207hd17vsdn02 8880128 4005 yes     yes   8658176 (98%)  12968 (0%)
208          -------------              -------------- -----------
209(pool total) 631430168              619939328 (98%) 629872 (0%)
210Disks in storage pool: sp1
211          -------------            --------------- ------------
212(pool total)         0                      0 (0%)       0 (0%)
213          =============            =============== =============
214(total)       631430168           619939328 (98%)   629872 (0%)
215.fi
216.sp
217.HP 3
2183. To query \fBfs1\fR for inode information, issue this command:
219.sp
220.nf
221mmdf fs1 -F
222.fi
223.sp
224.sp
225The system displays information similar to:
226.sp
227.nf
228Inode Information
229------------------
230Total number of inodes: 33792
231Total number of free inodes: 33752
232.fi
233.sp
234.RE
235.SH "See also"
236.PP
237mmchfs Command
238.PP
239mmcrfs Command
240.PP
241mmdelfs Command
242.PP
243mmlsfs Command
244.SH "Location"
245.PP
246\fB/usr/lpp/mmfs/bin\fR
247.PP
Note: See TracBrowser for help on using the repository browser.