1 | .TH mmdelfileset 04/06/06 |
---|
2 | mmdelfileset Command |
---|
3 | .SH "Name" |
---|
4 | .PP |
---|
5 | \fBmmdelfileset\fR - Deletes a GPFS fileset. |
---|
6 | .SH "Synopsis" |
---|
7 | .PP |
---|
8 | \fBmmdelfileset\fR \fIDevice\fR \fIFilesetName\fR \fB[-f]\fR |
---|
9 | .SH "Description" |
---|
10 | .PP |
---|
11 | The \fBmmdelfileset\fR command deletes a GPFS fileset. The |
---|
12 | \fBmmdelfileset\fR command fails if the fileset is currently linked into |
---|
13 | the name space. By default, the \fBmmdelfileset\fR command fails if |
---|
14 | the fileset contains any contents except for an empty root |
---|
15 | directory. |
---|
16 | .PP |
---|
17 | The root fileset cannot be deleted. |
---|
18 | .PP |
---|
19 | If the deleted fileset is included in a snapshot, the fileset is |
---|
20 | deleted from the active file system, but remains part of the file system in a |
---|
21 | deleted state. Filesets in the deleted state are displayed by the |
---|
22 | \fBmmlsfileset\fR command with their |
---|
23 | names in parenthesis. If the \fB-L\fR flag is specified, the latest |
---|
24 | including snapshot is also displayed. A deleted fileset's contents |
---|
25 | are still available in the snapshot (that is, through some path name |
---|
26 | containing a \fB.snapshots\fR component), since it was saved when |
---|
27 | the snapshot was created. |
---|
28 | \fBmmlsfileset\fR command illustrates |
---|
29 | the display of a deleted fileset. When the last snapshot that includes |
---|
30 | the fileset has been deleted, the fileset is fully removed from the file |
---|
31 | system. |
---|
32 | .PP |
---|
33 | The delete operation fails if fileset being deleted is not |
---|
34 | empty. You need to specify \fB-f\fR option to delete a non-empty |
---|
35 | fileset. When \fB-f\fR is specified, all of a fileset's child |
---|
36 | filesets are unlinked, but their content is unaffected. |
---|
37 | .PP |
---|
38 | For information on GPFS filesets, see the chapter |
---|
39 | \fIPolicy-based data management for |
---|
40 | GPFS\fR in |
---|
41 | \fIGeneral Parallel File |
---|
42 | System: Advanced Administration Guide\fR. |
---|
43 | .SH "Parameters" |
---|
44 | .PP |
---|
45 | .RS +3 |
---|
46 | \fB\fIDevice\fR |
---|
47 | \fR |
---|
48 | .RE |
---|
49 | .RS +9 |
---|
50 | The device name of the file system that contains the fileset. |
---|
51 | .PP |
---|
52 | File system names need not be fully-qualified. \fBfs0\fR is as |
---|
53 | acceptable as \fB/dev/fs0\fR. |
---|
54 | .RE |
---|
55 | .PP |
---|
56 | .RS +3 |
---|
57 | \fB\fIFilesetName\fR |
---|
58 | \fR |
---|
59 | .RE |
---|
60 | .RS +9 |
---|
61 | Specifies the name of the fileset to be deleted. |
---|
62 | .RE |
---|
63 | .SH "Options" |
---|
64 | .PP |
---|
65 | .RS +3 |
---|
66 | \fB-f |
---|
67 | \fR |
---|
68 | .RE |
---|
69 | .RS +9 |
---|
70 | Forces the deletion of the fileset. All fileset contents are |
---|
71 | deleted. Any child filesets are first unlinked. |
---|
72 | .RE |
---|
73 | .SH "Exit status" |
---|
74 | .PP |
---|
75 | .PP |
---|
76 | .RS +3 |
---|
77 | \fB0 |
---|
78 | \fR |
---|
79 | .RE |
---|
80 | .RS +9 |
---|
81 | Successful completion. |
---|
82 | .RE |
---|
83 | .PP |
---|
84 | .RS +3 |
---|
85 | \fBnonzero |
---|
86 | \fR |
---|
87 | .RE |
---|
88 | .RS +9 |
---|
89 | A failure has occurred. |
---|
90 | .RE |
---|
91 | .SH "Security" |
---|
92 | .PP |
---|
93 | You must have root authority to run the \fBmmdelfileset\fR |
---|
94 | command. |
---|
95 | .PP |
---|
96 | You may issue the \fBmmdelfileset\fR command from any node in the GPFS |
---|
97 | cluster. |
---|
98 | .PP |
---|
99 | When using the \fBrcp\fR and \fBrsh\fR commands for remote |
---|
100 | communication, a properly configured \fB.rhosts\fR file must exist |
---|
101 | in the root user's home directory on each node in the GPFS |
---|
102 | cluster. If you have designated the use of a different remote |
---|
103 | communication program on either the |
---|
104 | \fBmmcrcluster\fR |
---|
105 | or the |
---|
106 | \fBmmchcluster\fR command, you must |
---|
107 | ensure: |
---|
108 | .RS +3 |
---|
109 | .HP 3 |
---|
110 | 1. Proper authorization is granted to all nodes in the GPFS cluster. |
---|
111 | .HP 3 |
---|
112 | 2. The nodes in the GPFS cluster can communicate without the use of a |
---|
113 | password, and without any extraneous messages. |
---|
114 | .RE |
---|
115 | .SH "Examples" |
---|
116 | .RS +3 |
---|
117 | .HP 3 |
---|
118 | 1. This sequence of commands illustrates what happens when attempting to |
---|
119 | delete a fileset that is linked. |
---|
120 | .RS +3 |
---|
121 | .HP 3 |
---|
122 | a. mmlsfileset gpfs1 |
---|
123 | .sp |
---|
124 | The system displays output similar to: |
---|
125 | .sp |
---|
126 | .nf |
---|
127 | Filesets in file system 'gpfs1': |
---|
128 | Name Status Path\ |
---|
129 | fset1 Linked /gpfs1/fset1\ |
---|
130 | fset2 Unlinked --\ |
---|
131 | \ |
---|
132 | .fi |
---|
133 | .sp |
---|
134 | .HP 3 |
---|
135 | b. mmdelfileset gpfs1 fset1 |
---|
136 | .sp |
---|
137 | The system displays output similar to: |
---|
138 | .sp |
---|
139 | .nf |
---|
140 | Fileset fset1 must be unlinked to be deleted. |
---|
141 | .fi |
---|
142 | .sp |
---|
143 | .HP 3 |
---|
144 | c. mmdelfileset gpfs1 fset2 |
---|
145 | .sp |
---|
146 | The system displays output similar to: |
---|
147 | .sp |
---|
148 | .nf |
---|
149 | Fileset 'fset2' deleted. |
---|
150 | .fi |
---|
151 | .sp |
---|
152 | .HP 3 |
---|
153 | d. To confirm the change, issue this command: |
---|
154 | .sp |
---|
155 | .nf |
---|
156 | mmlsfileset gpfs1 |
---|
157 | .fi |
---|
158 | .sp |
---|
159 | .sp |
---|
160 | The system displays output similar to: |
---|
161 | .sp |
---|
162 | .nf |
---|
163 | Filesets in file system 'gpfs1': |
---|
164 | Name Status Path\ |
---|
165 | fset1 Linked /gpfs1/fset1 |
---|
166 | \ |
---|
167 | .fi |
---|
168 | .sp |
---|
169 | .RE |
---|
170 | .HP 3 |
---|
171 | 2. This sequence of commands illustrates what happens when attempting to |
---|
172 | delete a fileset that contains user files. |
---|
173 | .RS +3 |
---|
174 | .HP 3 |
---|
175 | a. mmlsfileset gpfs1 |
---|
176 | .sp |
---|
177 | The system displays output similar to: |
---|
178 | .sp |
---|
179 | .nf |
---|
180 | Filesets in file system 'gpfs1': |
---|
181 | Name Status Path\ |
---|
182 | fset1 Linked /gpfs1/fset1\ |
---|
183 | fset2 Unlinked --\ |
---|
184 | \ |
---|
185 | .fi |
---|
186 | .sp |
---|
187 | .HP 3 |
---|
188 | b. mmdelfileset gpfs1 fset2 |
---|
189 | .sp |
---|
190 | The system displays output similar to: |
---|
191 | .sp |
---|
192 | .nf |
---|
193 | Fileset 'fset2' contains user files, |
---|
194 | but can be deleted with the "-f" option. |
---|
195 | \ |
---|
196 | .fi |
---|
197 | .sp |
---|
198 | .HP 3 |
---|
199 | c. mmdelfileset gpfs1 fset2 -f |
---|
200 | .sp |
---|
201 | The system displays output similar to: |
---|
202 | .sp |
---|
203 | .nf |
---|
204 | Deleting user files ... |
---|
205 | 83 % complete on Tue Dec 17 11:38:25 2005 |
---|
206 | 86 % complete on Tue Dec 17 11:42:47 2005 |
---|
207 | 88 % complete on Tue Dec 17 11:43:13 2005 |
---|
208 | 91 % complete on Tue Dec 17 11:44:15 2005 |
---|
209 | 94 % complete on Tue Dec 17 11:45:20 2005 |
---|
210 | 97 % complete on Tue Dec 17 11:50:14 2005 |
---|
211 | 100 % complete on Tue Dec 17 11:50:47 2005 |
---|
212 | Fileset 'fset2' deleted. |
---|
213 | \ |
---|
214 | .fi |
---|
215 | .sp |
---|
216 | .HP 3 |
---|
217 | d. To confirm the change, issue this command: |
---|
218 | .sp |
---|
219 | .nf |
---|
220 | mmlsfileset gpfs1 |
---|
221 | .fi |
---|
222 | .sp |
---|
223 | .sp |
---|
224 | The system displays output similar to: |
---|
225 | .sp |
---|
226 | .nf |
---|
227 | Filesets in file system 'gpfs1': |
---|
228 | Name Status Path\ |
---|
229 | fset1 Linked /gpfs1/fset1\ |
---|
230 | \ |
---|
231 | .fi |
---|
232 | .sp |
---|
233 | .RE |
---|
234 | .RE |
---|
235 | .SH "See also" |
---|
236 | .PP |
---|
237 | mmchfileset Command |
---|
238 | .PP |
---|
239 | mmcrfileset Command |
---|
240 | .PP |
---|
241 | mmlinkfileset Command |
---|
242 | .PP |
---|
243 | mmlsfileset Command |
---|
244 | .PP |
---|
245 | mmunlinkfileset Command |
---|
246 | .SH "Location" |
---|
247 | .PP |
---|
248 | \fB/usr/lpp/mmfs/bin\fR |
---|