source: gpfs_3.1_ker2.6.20/share/man/man8/mmdelfileset.8 @ 16

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