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