9200b2bb01b1ebeb345877b3bb5a3d8f072fa395
[openafs.git] / doc / xml / AdminGuide / auagd010.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <chapter id="HDRWQ174">
3   <title>Managing Volumes</title>
4
5   <para>This chapter explains how to manage the volumes stored on file server machines. The volume is the designated unit of
6   administration in AFS, so managing them is a large part of the administrator's duties.</para>
7
8   <sect1 id="HDRWQ175">
9     <title>Summary of Instructions</title>
10
11     <para>This chapter explains how to perform the following tasks by using the indicated commands:</para>
12
13     <informaltable frame="none">
14       <tgroup cols="2">
15         <colspec colwidth="58*" />
16
17         <colspec colwidth="42*" />
18
19         <tbody>
20           <row>
21             <entry>Create read/write volume</entry>
22
23             <entry><emphasis role="bold">vos create</emphasis></entry>
24           </row>
25
26           <row>
27             <entry>Create read-only volume</entry>
28
29             <entry><emphasis role="bold">vos addsite</emphasis> <emphasis role="bold">and</emphasis> <emphasis role="bold">vos
30             release</emphasis></entry>
31           </row>
32
33           <row>
34             <entry>Create backup volume</entry>
35
36             <entry><emphasis role="bold">vos backup</emphasis></entry>
37           </row>
38
39           <row>
40             <entry>Create many backup volumes at once</entry>
41
42             <entry><emphasis role="bold">vos backupsys</emphasis></entry>
43           </row>
44
45           <row>
46             <entry>Examine VLDB entry</entry>
47
48             <entry><emphasis role="bold">vos listvldb</emphasis></entry>
49           </row>
50
51           <row>
52             <entry>Examine volume header</entry>
53
54             <entry><emphasis role="bold">vos listvol</emphasis></entry>
55           </row>
56
57           <row>
58             <entry>Examine both VLDB entry and volume header</entry>
59
60             <entry><emphasis role="bold">vos examine</emphasis></entry>
61           </row>
62
63           <row>
64             <entry>Display volume's name</entry>
65
66             <entry><emphasis role="bold">fs listquota</emphasis> <emphasis role="bold">or</emphasis> <emphasis role="bold">fs
67             examine</emphasis></entry>
68           </row>
69
70           <row>
71             <entry>Display volume's ID number</entry>
72
73             <entry><emphasis role="bold">fs examine</emphasis> <emphasis role="bold">or</emphasis> <emphasis role="bold">vos
74             examine</emphasis> <emphasis role="bold">or</emphasis> <emphasis role="bold">vos listvol</emphasis></entry>
75           </row>
76
77           <row>
78             <entry>Display partition's size and space available</entry>
79
80             <entry><emphasis role="bold">vos partinfo</emphasis></entry>
81           </row>
82
83           <row>
84             <entry>Display volume's location</entry>
85
86             <entry><emphasis role="bold">fs whereis</emphasis> <emphasis role="bold">or</emphasis> <emphasis role="bold">vos
87             examine</emphasis></entry>
88           </row>
89
90           <row>
91             <entry>Create mount point</entry>
92
93             <entry><emphasis role="bold">fs mkmount</emphasis></entry>
94           </row>
95
96           <row>
97             <entry>Remove mount point</entry>
98
99             <entry><emphasis role="bold">fs rmmount</emphasis></entry>
100           </row>
101
102           <row>
103             <entry>Display mount point</entry>
104
105             <entry><emphasis role="bold">fs lsmount</emphasis></entry>
106           </row>
107
108           <row>
109             <entry>Move read/write volume</entry>
110
111             <entry><emphasis role="bold">vos move</emphasis></entry>
112           </row>
113
114           <row>
115             <entry>Synchronize VLDB with volume headers</entry>
116
117             <entry><emphasis role="bold">vos syncvldb</emphasis> <emphasis role="bold">and</emphasis> <emphasis role="bold">vos
118             syncserv</emphasis></entry>
119           </row>
120
121           <row>
122             <entry>Set volume quota</entry>
123
124             <entry><emphasis role="bold">fs setvol</emphasis> <emphasis role="bold">or</emphasis> <emphasis role="bold">fs
125             setquota</emphasis></entry>
126           </row>
127
128           <row>
129             <entry>Display volume quota</entry>
130
131             <entry><emphasis role="bold">fs quota</emphasis> <emphasis role="bold">or</emphasis> <emphasis role="bold">fs
132             listquota</emphasis> <emphasis role="bold">or</emphasis> <emphasis role="bold">fs examine</emphasis></entry>
133           </row>
134
135           <row>
136             <entry>Display volume's current size</entry>
137
138             <entry><emphasis role="bold">fs listquota</emphasis> <emphasis role="bold">or</emphasis> <emphasis role="bold">fs
139             examine</emphasis></entry>
140           </row>
141
142           <row>
143             <entry>Display list of volumes on a machine/partition</entry>
144
145             <entry><emphasis role="bold">vos listvol</emphasis></entry>
146           </row>
147
148           <row>
149             <entry>Remove read/write volume</entry>
150
151             <entry><emphasis role="bold">vos remove</emphasis> <emphasis role="bold">and</emphasis> <emphasis role="bold">fs
152             rmmount</emphasis></entry>
153           </row>
154
155           <row>
156             <entry>Remove read-only volume</entry>
157
158             <entry><emphasis role="bold">vos remove</emphasis></entry>
159           </row>
160
161           <row>
162             <entry>Remove backup volume</entry>
163
164             <entry><emphasis role="bold">vos remove</emphasis> <emphasis role="bold">and</emphasis> <emphasis role="bold">fs
165             rmmount</emphasis></entry>
166           </row>
167
168           <row>
169             <entry>Remove volume; no VLDB change</entry>
170
171             <entry><emphasis role="bold">vos zap</emphasis></entry>
172           </row>
173
174           <row>
175             <entry>Remove read-only site definition</entry>
176
177             <entry><emphasis role="bold">vos remsite</emphasis></entry>
178           </row>
179
180           <row>
181             <entry>Remove VLDB entry; no volume change</entry>
182
183             <entry><emphasis role="bold">vos delentry</emphasis></entry>
184           </row>
185
186           <row>
187             <entry>Dump volume</entry>
188
189             <entry><emphasis role="bold">vos dump</emphasis></entry>
190           </row>
191
192           <row>
193             <entry>Restore dumped volume</entry>
194
195             <entry><emphasis role="bold">vos restore</emphasis></entry>
196           </row>
197
198           <row>
199             <entry>Rename volume</entry>
200
201             <entry><emphasis role="bold">vos rename</emphasis>, <emphasis role="bold">fs rmmount</emphasis> <emphasis
202             role="bold">and</emphasis> <emphasis role="bold">fs mkmount</emphasis></entry>
203           </row>
204
205           <row>
206             <entry>Unlock volume</entry>
207
208             <entry><emphasis role="bold">vos unlock</emphasis></entry>
209           </row>
210
211           <row>
212             <entry>Unlock multiple volumes</entry>
213
214             <entry><emphasis role="bold">vos unlockvldb</emphasis></entry>
215           </row>
216
217           <row>
218             <entry>Lock volume</entry>
219
220             <entry><emphasis role="bold">vos lock</emphasis></entry>
221           </row>
222         </tbody>
223       </tgroup>
224     </informaltable>
225   </sect1>
226
227   <sect1 id="HDRWQ177">
228     <title>About Volumes</title>
229
230     <indexterm>
231       <primary>volume</primary>
232
233       <secondary>defined</secondary>
234     </indexterm>
235
236     <para>An AFS <emphasis>volume</emphasis> is a logical unit of disk space that functions like a container for the files in an AFS
237     directory, keeping them all together on one partition of a file server machine. To make a volume's contents visible in the
238     cell's file tree and accessible to users, you mount the volume at a directory location in the AFS filespace. The association
239     between the volume and its location in the filespace is called a <emphasis>mount point</emphasis>, and because of AFS's internal
240     workings it looks and acts just like a standard directory element. Users can access and manipulate a volume's contents in the
241     same way they access and manipulate the contents of a standard UNIX directory. For more on the relationship between volumes and
242     directories, see <link linkend="HDRWQ183">About Mounting Volumes</link>.</para>
243
244     <para>Many of an administrator's daily activities involve manipulating volumes, since they are the basic storage and
245     administrative unit of AFS. For a discussion of some of the ways volumes can make your job easier, see <link
246     linkend="HDRWQ179">How Volumes Improve AFS Efficiency</link>.</para>
247
248     <sect2 id="HDRWQ178">
249       <title>The Three Types of Volumes</title>
250
251       <para>There are three types of volumes in AFS, as described in the following list: <itemizedlist>
252           <listitem>
253             <para>The single <emphasis>read/write</emphasis> version of a volume houses the modifiable versions of the files and
254             directories in that volume. It is often referred to as the <emphasis>read/write</emphasis> source because volumes of the
255             other two types are derived from it by a copying procedure called <emphasis>cloning</emphasis>. For instructions on
256             creating read/write volumes, see <link linkend="HDRWQ185">Creating Read/write Volumes</link>.</para>
257
258             <indexterm>
259               <primary>read/write volume</primary>
260
261               <secondary>defined</secondary>
262             </indexterm>
263           </listitem>
264
265           <listitem>
266             <para>A <emphasis>read-only</emphasis> volume is a copy of the read/write source volume and can exist at multiple
267             <emphasis>sites</emphasis> (a site is a particular partition on a particular file server machine). Placing the same data
268             at more than one site is called <emphasis>replication</emphasis>; see <link linkend="HDRWQ179">How Volumes Improve AFS
269             Efficiency</link>. As the name suggests, a read-only volume's contents do not change automatically as the read/write
270             source changes, but only when an administrator issues the <emphasis role="bold">vos release</emphasis> command. For
271             users to have a consistent view of the AFS filespace, all copies of the read-only volume must match each other and their
272             read/write source. All read-only volumes share the same name, which is derived by adding the <emphasis
273             role="bold">.readonly</emphasis> extension to the read/write source's name. For instructions on creating of read-only
274             volumes, see <link linkend="HDRWQ192">Replicating Volumes (Creating Read-only Volumes)</link>.</para>
275
276             <indexterm>
277               <primary>read-only volume</primary>
278
279               <secondary>defined</secondary>
280             </indexterm>
281
282             <indexterm>
283               <primary>site</primary>
284
285               <secondary>volume, defined</secondary>
286             </indexterm>
287
288             <indexterm>
289               <primary>volume</primary>
290
291               <secondary>site, defined</secondary>
292             </indexterm>
293           </listitem>
294
295           <listitem>
296             <para>A <emphasis>backup</emphasis> volume is a clone of the read/write source volume and is stored at the same site as
297             the source. A backup version is useful because it records the state of the read/write source at a certain time, allowing
298             recovery of data that is later mistakenly changed or deleted (for further discussion see <link linkend="HDRWQ179">How
299             Volumes Improve AFS Efficiency</link>). A backup volume's name is derived by adding the <emphasis
300             role="bold">.backup</emphasis> extension to the read/write source's name. For instructions on creating of backup
301             volumes, see <link linkend="HDRWQ201">Creating Backup Volumes</link>.</para>
302
303             <indexterm>
304               <primary>backup volume</primary>
305
306               <secondary>defined</secondary>
307             </indexterm>
308
309             <note>
310               <para>A backup volume is not the same as the backup of a volume transferred to tape using the AFS Backup System,
311               although making a backup version of a volume is usually a stage in the process of backing up the volume to tape. For
312               information on backing up a volume using the AFS Backup System, see <link linkend="HDRWQ296">Backing Up
313               Data</link>.</para>
314             </note>
315           </listitem>
316         </itemizedlist></para>
317
318       <para>As noted, the three types of volumes are related to one another: read-only and backup volumes are both derived from a
319       read/write volume through a process called cloning. Read-only and backup volumes are exact copies of the read/write source at
320       the time they are created.</para>
321     </sect2>
322
323     <sect2 id="HDRWQ179">
324       <title>How Volumes Improve AFS Efficiency</title>
325
326       <indexterm>
327         <primary>volume</primary>
328
329         <secondary>benefits for efficiency</secondary>
330       </indexterm>
331
332       <para>Volumes make your cell easier to manage and more efficient in the following three ways: <itemizedlist>
333           <listitem>
334             <para>Volumes are easy to move between partitions, on the same or different machines, because they are by definition
335             smaller than a partition. Perhaps the most common reasons to move volumes are to balance the load among file server
336             machines or to take advantage of greater disk capacity on certain machines. You can move volumes as often as necessary
337             without disrupting user access to their contents, because the move procedure makes the contents unavailable for only a
338             few seconds. The automatic tracking of volume locations in the Volume Location Database (VLDB) assures that access
339             remains transparent. For instructions on moving volumes, see <link linkend="HDRWQ226">Moving Volumes</link>.</para>
340
341             <indexterm>
342               <primary>volume</primary>
343
344               <secondary>in load balancing</secondary>
345             </indexterm>
346           </listitem>
347
348           <listitem>
349             <para>Volumes are the unit of replication in AFS. <emphasis>Replication</emphasis> refers to creating a read-only clone
350             from the read/write source and distributing of the clone to one or more sites. Replication improves system efficiency
351             because more than one machine can fill requests for popular files. It also boosts system reliability by helping to keep
352             data available in the face of machine or server process outage. In general, volumes containing popular application
353             programs and other files that do not change often are the best candidates for replication, but you can replicate any
354             read/write volume. See <link linkend="HDRWQ192">Replicating Volumes (Creating Read-only Volumes)</link>.</para>
355
356             <indexterm>
357               <primary>volume</primary>
358
359               <secondary>as unit of replication</secondary>
360             </indexterm>
361
362             <indexterm>
363               <primary>replication</primary>
364
365               <secondary>defined</secondary>
366             </indexterm>
367           </listitem>
368
369           <listitem>
370             <indexterm>
371               <primary>volume</primary>
372
373               <secondary>as unit of backup</secondary>
374             </indexterm>
375
376             <para>Volumes are the unit of backup in AFS, in two senses. You can create a backup volume version to preserves the
377             state of a read/write source volume at a specified time. You can mount the backup version in the AFS filespace, enabling
378             users to restore data they have accidentally changed or deleted without administrator assistance, which frees you for
379             more important jobs. If you make a new backup version of user volumes once a day (presumably overwriting the former
380             backup), then users are always be able to retrieve the previous day's version of a file. For instructions, see <link
381             linkend="HDRWQ201">Creating Backup Volumes</link>.</para>
382
383             <para>Backup also refers to using the AFS Backup System to store permanent copies of volume contents on tape or in a
384             special backup data. See <link linkend="HDRWQ248">Configuring the AFS Backup System</link>and <link
385             linkend="HDRWQ283">Backing Up and Restoring AFS Data</link>.</para>
386           </listitem>
387         </itemizedlist></para>
388     </sect2>
389
390     <sect2 id="HDRWQ180">
391       <title>Volume Information in the VLDB</title>
392
393       <para>The Volume Location Database (VLDB) includes entries for every volume in a cell. Perhaps the most important information
394       in the entry is the volume's location, which is key to transparent access to AFS data. When a user opens a file, the Cache
395       Manager consults the Volume Location (VL) Server, which maintains the VLDB, for a list of the file server machines that house
396       the volume containing the file. The Cache Manager then requests the file from the File Server running on one of the relevant
397       file server machines. The file location procedure is invisible to the user, who only needs to know the file's pathname.</para>
398
399       <indexterm>
400         <primary>VLDB</primary>
401
402         <secondary>volume entry</secondary>
403       </indexterm>
404
405       <indexterm>
406         <primary>volume</primary>
407
408         <secondary>entry in VLDB</secondary>
409       </indexterm>
410
411       <indexterm>
412         <primary>entry in VLDB</primary>
413
414         <secondary>for volume</secondary>
415       </indexterm>
416
417       <para>The VLDB volume entry for a read/write volume also contains the pertinent information about the read-only and backup
418       versions, which do not have their own VLDB entries. (The rare exception is a read-only volume that has its own VLDB entry
419       because its read/write source has been removed.) A volume's VLDB entry records the volume's name, the unique volume ID number
420       for each version (read/write, read-only, backup, and releaseClone), a count of the number of sites that house a read/write or
421       read-only version, and a list of the sites.</para>
422
423       <para>To display the VLDB entry for one or more volumes, use the <emphasis role="bold">vos listvldb</emphasis> command as
424       described in <link linkend="HDRWQ218">To display VLDB entries</link>. To display the VLDB entry for a single volume along with
425       its <emphasis>volume header</emphasis>, use the <emphasis role="bold">vos examine</emphasis> command as described in <link
426       linkend="HDRWQ222">To display one volume's VLDB entry and volume header</link>. (See the following section for a description
427       of the volume header.)</para>
428     </sect2>
429
430     <sect2 id="HDRWQ181">
431       <title>The Information in Volume Headers</title>
432
433       <indexterm>
434         <primary>volume</primary>
435
436         <secondary>header</secondary>
437
438         <see>volume header</see>
439       </indexterm>
440
441       <indexterm>
442         <primary>volume header</primary>
443
444         <secondary>about</secondary>
445       </indexterm>
446
447       <para>Whereas all versions of a volume share one VLDB entry, each volume on an AFS server partition has its own volume header,
448       a data structure that maps the files and directories in the volume to physical memory addresses on the partition that stores
449       them. The volume header binds the volume's contents into a logical unit without requiring that they be stored in contiguous
450       memory blocks. The volume header also records the following information about the volume, some of it redundant with the VLDB
451       entry: name, volume ID number, type, size, status (online, offline, or busy), space quota, timestamps for creation date and
452       date of last modification, and number of accesses during the current day.</para>
453
454       <para>To display the volume headers on one or more partitions, use the <emphasis role="bold">vos listvol</emphasis> command as
455       described in <link linkend="HDRWQ220">To display volume headers</link>. To display the VLDB entry for a single volume along
456       with its volume header, use the <emphasis role="bold">vos examine</emphasis> command as described in <link
457       linkend="HDRWQ222">To display one volume's VLDB entry and volume header</link>.</para>
458     </sect2>
459
460     <sect2 id="HDRWQ182">
461       <title>Keeping the VLDB and Volume Headers Synchronized</title>
462
463       <indexterm>
464         <primary>synchrony of VLDB and volume headers</primary>
465
466         <secondary>maintained by VL and Volume Servers</secondary>
467       </indexterm>
468
469       <indexterm>
470         <primary>VLDB</primary>
471
472         <secondary>synchronizing with volume headers</secondary>
473       </indexterm>
474
475       <indexterm>
476         <primary>volume header</primary>
477
478         <secondary>synchronizing with VLDB</secondary>
479       </indexterm>
480
481       <indexterm>
482         <primary>maintaining</primary>
483
484         <secondary>synchrony of VLDB with volume headers</secondary>
485       </indexterm>
486
487       <indexterm>
488         <primary>VL Server</primary>
489
490         <secondary>role in VLDB/volume header synchronization</secondary>
491       </indexterm>
492
493       <indexterm>
494         <primary>Volume Server</primary>
495
496         <secondary>role in VLDB/volume header synchronization</secondary>
497       </indexterm>
498
499       <para>It is vital that the information in the VLDB correspond to the status of the actual volumes on the servers (as recorded
500       in volume headers) as much of the time as possible. If a volume's location information in the VLDB is incorrect, the Cache
501       Manager cannot find access its contents. Whenever you issue a <emphasis role="bold">vos</emphasis> command that changes a
502       volume's status, the Volume Server and VL Server cooperate to keep the volume header and VLDB synchronized. In rare cases, the
503       header and VLDB can diverge, for instance because a <emphasis role="bold">vos</emphasis> operation halts prematurely. For
504       instructions on resynchronizing them, see <link linkend="HDRWQ227">Synchronizing the VLDB and Volume Headers</link>.</para>
505     </sect2>
506
507     <sect2 id="HDRWQ183">
508       <title>About Mounting Volumes</title>
509
510       <indexterm>
511         <primary>mount point</primary>
512
513         <secondary>defined</secondary>
514       </indexterm>
515
516       <indexterm>
517         <primary>volume</primary>
518
519         <secondary>mounting</secondary>
520
521         <tertiary>about</tertiary>
522       </indexterm>
523
524       <indexterm>
525         <primary>mounting</primary>
526
527         <secondary>volume</secondary>
528
529         <tertiary>about</tertiary>
530       </indexterm>
531
532       <para>To make a volume's contents visible in the cell's file tree and accessible to users, you mount the volume at a directory
533       location in the AFS filespace. The association between the volume and its location in the filespace is called a
534       <emphasis>mount point</emphasis>. An AFS mount point looks and functions like a regular UNIX file system directory, but
535       structurally it is more like a symbolic link that tells the Cache Manager the name of the volume associated with the
536       directory. A mount point looks and acts like a directory only because the Cache Manager knows how to interpret it.</para>
537
538       <para>Consider the common case where the Cache Manager needs to retrieve a file requested by an application program. The Cache
539       Manager traverses the file's complete pathname, starting at the AFS root (by convention mounted at the <emphasis
540       role="bold">/afs</emphasis> directory) and continuing to the file. When the Cache Manager encounters (or
541       <emphasis>crosses</emphasis>) a mount point during the traversal, it reads it to learn the name of the volume mounted at that
542       directory location. After obtaining location information about the volume from the Volume Location (VL) Server, the Cache
543       Manager fetches the indicated volume and opens its <emphasis>root directory</emphasis>. The root directory of a volume lists
544       all the files, subdirectories, and mount points that reside in it. The Cache Manager scans the root directory listing for the
545       next element in the pathname. It continues down the path, using this method to interpret any other mount points it encounters,
546       until it reaches the volume that houses the requested file.</para>
547
548       <indexterm>
549         <primary>root directory</primary>
550       </indexterm>
551
552       <indexterm>
553         <primary>Cache Manager</primary>
554
555         <secondary>as interpreter of mount points</secondary>
556       </indexterm>
557
558       <para>Mount points act as the glue that connects the AFS file space, creating the illusion of a single, seamless file tree
559       even when volumes reside on many different file server machines. A volume's contents are visible and accessible when the
560       volume is mounted at a directory location, and are not accessible at all if the volume is not mounted.</para>
561
562       <para>You can mount a volume at more than one location in the file tree, but this is not recommended for two reasons. First,
563       it distorts the hierarchical nature of the filespace. Second, the Cache Manager can become confused about which pathname it
564       followed to reach the file (causing unpredictable output from the <emphasis role="bold">pwd</emphasis> command, for example).
565       However, if you mount a volume at more than one directory, the access control list (ACL) associated with the volume's root
566       directory applies to all of the mount points.</para>
567
568       <indexterm>
569         <primary>mount point</primary>
570
571         <secondary>creating multiple per volume</secondary>
572       </indexterm>
573
574       <indexterm>
575         <primary>volume</primary>
576
577         <secondary>mounting</secondary>
578
579         <tertiary>more than once</tertiary>
580       </indexterm>
581
582       <para>There are several types of mount points, each of which the Cache Manager handles in a different way and each of which is
583       appropriate for a different purpose. See <link linkend="HDRWQ208">Mounting Volumes</link>.</para>
584     </sect2>
585
586     <sect2 id="HDRWQ184">
587       <title>About Volume Names</title>
588
589       <indexterm>
590         <primary>volume</primary>
591
592         <secondary>name</secondary>
593
594         <see>volume name</see>
595       </indexterm>
596
597       <indexterm>
598         <primary>length restriction on volume names</primary>
599       </indexterm>
600
601       <para>A read/write volume's name can be up to 22 characters in length. The Volume Server automatically adds the <emphasis
602       role="bold">.readonly</emphasis> and <emphasis role="bold">.backup</emphasis> extensions to read-only and backup volumes
603       respectively. Do not explicitly add the extensions to volume names, even if they are appropriate.</para>
604
605       <para>It is conventional for a volume's name to indicate the type of data it houses. For example, it is conventional to name
606       all user volumes <emphasis role="bold">user</emphasis>.username where username is the user's login name. Similarly, many cells
607       elect to put system binaries in volumes with names that begin with the system type code. For a list of other naming
608       conventions, see <link linkend="HDRWQ44">Creating Volumes to Simplify Administration</link>.</para>
609
610       <indexterm>
611         <primary>conventions</primary>
612
613         <secondary>volume names</secondary>
614       </indexterm>
615
616       <indexterm>
617         <primary>volume name</primary>
618
619         <secondary>conventions</secondary>
620       </indexterm>
621     </sect2>
622   </sect1>
623
624   <sect1 id="HDRWQ185">
625     <title>Creating Read/write Volumes</title>
626
627     <indexterm>
628       <primary>creating</primary>
629
630       <secondary>read/write volume</secondary>
631     </indexterm>
632
633     <indexterm>
634       <primary>volume</primary>
635
636       <secondary>read/write</secondary>
637
638       <see>read/write volume</see>
639     </indexterm>
640
641     <indexterm>
642       <primary>read/write volume</primary>
643
644       <secondary>creating</secondary>
645     </indexterm>
646
647     <para>A read/write volume is the most basic type of volume, and must exist before you can create read-only or backup versions of
648     it. When you issue the <emphasis role="bold">vos create</emphasis> command to create a read/write volume, the VL Server creates
649     a VLDB entry for it which records the name you specify, assigns a read/write volume ID number, and reserves the next two
650     consecutive volume ID numbers for read-only and backup versions that possibly are to be created later. At the same time, the
651     Volume Server creates a volume header at the site you designate, allocating space on disk to record the name of the volume's
652     root directory. The name is filled in when you issue the <emphasis role="bold">fs mkmount</emphasis> command to mount the
653     volume, and matches the mount point name. The following is also recorded in the volume header: <itemizedlist>
654         <listitem>
655           <para>An initial ACL associated with the volume's root directory. By default it grants all seven AFS access permissions to
656           the <emphasis role="bold">system:administrators</emphasis> group. After you mount the volume, you can use the <emphasis
657           role="bold">fs setacl</emphasis> command to add other entries and to remove or change the entry for the <emphasis
658           role="bold">system:administrators</emphasis> group. See <link linkend="HDRWQ573">Setting ACL Entries</link>.</para>
659
660           <indexterm>
661             <primary>default</primary>
662
663             <secondary>ACL</secondary>
664           </indexterm>
665
666           <indexterm>
667             <primary>ACL</primary>
668
669             <secondary>default on new volume</secondary>
670           </indexterm>
671         </listitem>
672
673         <listitem>
674           <para>A space quota, which limits the amount of disk space the read/write version of the volume can use on the file server
675           partition. The default is of 5000 kilobyte blocks, but you can use the <emphasis role="bold">-maxquota</emphasis> argument
676           to the <emphasis role="bold">vos create</emphasis> command to set a different quota.</para>
677
678           <para>To change the quota after creation, use the <emphasis role="bold">fs setquota</emphasis> command as described in
679           <link linkend="HDRWQ234">Setting and Displaying Volume Quota and Current Size</link>.</para>
680
681           <indexterm>
682             <primary>volume quota</primary>
683
684             <secondary>default for new volume</secondary>
685           </indexterm>
686
687           <indexterm>
688             <primary>default</primary>
689
690             <secondary>volume quota</secondary>
691           </indexterm>
692         </listitem>
693       </itemizedlist></para>
694
695     <sect2 id="Header_212">
696       <title>To create (and mount) a read/write volume</title>
697
698       <orderedlist>
699         <listitem>
700           <para>Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, issue
701           the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To
702           display the users in the UserList file</link>. <programlisting>
703    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
704 </programlisting></para>
705         </listitem>
706
707         <listitem>
708           <para>Verify that you have the <emphasis role="bold">a</emphasis>( <emphasis role="bold">administer</emphasis>), <emphasis
709           role="bold">i</emphasis>( <emphasis role="bold">insert</emphasis>), and <emphasis role="bold">l</emphasis>( <emphasis
710           role="bold">lookup</emphasis>) permissions on the ACL of the directory where you plan to mount the volume. If necessary,
711           issue the <emphasis role="bold">fs listacl</emphasis> command, which is fully described in <link
712           linkend="HDRWQ572">Displaying ACLs</link>. <programlisting>
713    % <emphasis role="bold">fs listacl</emphasis> [&lt;<emphasis>dir/file path</emphasis>&gt;]</programlisting></para>
714
715           <para>Members of the <emphasis role="bold">system:administrators</emphasis> group always implicitly have the <emphasis
716           role="bold">a</emphasis>( <emphasis role="bold">administer</emphasis>) and by default also the <emphasis
717           role="bold">l</emphasis>( <emphasis role="bold">lookup</emphasis>) permission on every ACL and can use the <emphasis
718           role="bold">fs setacl</emphasis> command to grant other rights as necessary.</para>
719
720           <indexterm>
721             <primary>commands</primary>
722
723             <secondary>vos partinfo</secondary>
724           </indexterm>
725
726           <indexterm>
727             <primary>vos commands</primary>
728
729             <secondary>partinfo</secondary>
730           </indexterm>
731         </listitem>
732
733         <listitem>
734           <para><anchor id="LIWQ186" />Select a site (disk partition on a file server machine) for the new volume. To verify that
735           the site has enough free space to house the volume (now, or if it grows to use its entire quota), issue the <emphasis
736           role="bold">vos partinfo</emphasis> command.</para>
737
738           <note>
739             <para>The partition-related statistics in this command's output do not always agree with the corresponding values in the
740             output of the standard UNIX <emphasis role="bold">df</emphasis> command. The statistics reported by this command can be
741             up to five minutes old, because the Cache Manager polls the File Server for partition information at that frequency.
742             Also, on some operating systems, the <emphasis role="bold">df</emphasis> command's report of partition size includes
743             reserved space not included in this command's calculation, and so is likely to be about 10% larger.</para>
744           </note>
745
746           <programlisting>
747    % <emphasis role="bold">vos partinfo</emphasis> &lt;<emphasis>machine name</emphasis>&gt; [&lt;<emphasis>partition name</emphasis>&gt;]</programlisting>
748
749           <para>where <variablelist>
750               <varlistentry>
751                 <term><emphasis role="bold">p</emphasis></term>
752
753                 <listitem>
754                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">partinfo</emphasis>.</para>
755                 </listitem>
756               </varlistentry>
757
758               <varlistentry>
759                 <term><emphasis role="bold">machine name</emphasis></term>
760
761                 <listitem>
762                   <para>Specifies the file server machine for which to display partition size and usage.</para>
763                 </listitem>
764               </varlistentry>
765
766               <varlistentry>
767                 <term><emphasis role="bold">partition name</emphasis></term>
768
769                 <listitem>
770                   <para>Names one partition for which to display partition size and usage. If you omit it, the output displays the
771                   size and space available for all partitions on the machine.</para>
772                 </listitem>
773               </varlistentry>
774             </variablelist></para>
775         </listitem>
776
777         <listitem>
778           <para><anchor id="LIWQ187" />Select a volume name, taking note of the information in <link linkend="HDRWQ184">About Volume
779           Names</link>.</para>
780
781           <indexterm>
782             <primary>vos commands</primary>
783
784             <secondary>create</secondary>
785
786             <tertiary>basic instructions</tertiary>
787           </indexterm>
788
789           <indexterm>
790             <primary>commands</primary>
791
792             <secondary>vos create</secondary>
793
794             <tertiary>basic instructions</tertiary>
795           </indexterm>
796         </listitem>
797
798         <listitem>
799           <para><anchor id="LIWQ188" />Issue the <emphasis role="bold">vos create</emphasis> command to create the volume.
800           <programlisting>
801    % <emphasis role="bold">vos create</emphasis> &lt;<replaceable>machine name</replaceable>&gt; &lt;<replaceable>partition name</replaceable>&gt; &lt;<replaceable>volume name</replaceable>&gt; \
802         [<emphasis role="bold">-maxquota</emphasis> &lt;<replaceable>initial quota (KB)</replaceable>&gt;]
803 </programlisting></para>
804
805           <para>where <variablelist>
806               <varlistentry>
807                 <term><emphasis role="bold">cr</emphasis></term>
808
809                 <listitem>
810                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">create</emphasis>.</para>
811                 </listitem>
812               </varlistentry>
813
814               <varlistentry>
815                 <term><emphasis role="bold">machine name</emphasis></term>
816
817                 <listitem>
818                   <para>Specifies the file server machine on which to place the volume.</para>
819                 </listitem>
820               </varlistentry>
821
822               <varlistentry>
823                 <term><emphasis role="bold">partition name</emphasis></term>
824
825                 <listitem>
826                   <para>Specifies the disk partition on which to place the volume.</para>
827                 </listitem>
828               </varlistentry>
829
830               <varlistentry>
831                 <term><emphasis role="bold">volume name</emphasis></term>
832
833                 <listitem>
834                   <para>Names the volume. It can be up to 22 alphanumeric and punctuation characters in length. Your cell possibly
835                   has naming conventions for volumes, such as beginning user volume names with the string <emphasis
836                   role="bold">user</emphasis> and using the period to separate parts of the name.</para>
837                 </listitem>
838               </varlistentry>
839
840               <varlistentry>
841                 <term><emphasis role="bold">-maxquota</emphasis></term>
842
843                 <listitem>
844                   <para>Sets the volume's quota, as a number of kilobyte blocks. If you omit this argument, the quota is set to 5000
845                   kilobyte blocks.</para>
846                 </listitem>
847               </varlistentry>
848             </variablelist></para>
849
850           <indexterm>
851             <primary>mounting</primary>
852
853             <secondary>read/write volume</secondary>
854           </indexterm>
855
856           <indexterm>
857             <primary>read/write volume</primary>
858
859             <secondary>mounting</secondary>
860           </indexterm>
861
862           <indexterm>
863             <primary>commands</primary>
864
865             <secondary>fs mkmount</secondary>
866           </indexterm>
867
868           <indexterm>
869             <primary>fs commands</primary>
870
871             <secondary>mkmount</secondary>
872
873             <tertiary>for read/write volume</tertiary>
874           </indexterm>
875         </listitem>
876
877         <listitem>
878           <anchor id="LIWQ189" />
879
880           <para><emphasis role="bold">(Optional)</emphasis> Issue the <emphasis role="bold">fs mkmount</emphasis> command to mount
881           the volume in the filespace. For complete syntax, see <link linkend="HDRWQ212">To create a regular or read/write mount
882           point</link>. <programlisting>
883    % <emphasis role="bold">fs mkmount</emphasis> &lt;<emphasis>directory</emphasis>&gt; &lt;<emphasis>volume name</emphasis>&gt;</programlisting></para>
884         </listitem>
885
886         <listitem>
887           <para><emphasis role="bold">(Optional)</emphasis> Issue the <emphasis role="bold">fs lsmount</emphasis> command to verify
888           that the mount point refers to the correct volume. Complete instructions appear in <link linkend="HDRWQ211">To display a
889           mount point</link>. <programlisting>
890    % <emphasis role="bold">fs lsmount</emphasis> &lt;<emphasis>directory</emphasis>&gt;</programlisting></para>
891         </listitem>
892
893         <listitem>
894           <para><emphasis role="bold">(Optional)</emphasis> Issue the <emphasis role="bold">fs setvol</emphasis> command with the
895           <emphasis role="bold">-offlinemsg</emphasis> argument to record auxiliary information about the volume in its volume
896           header. For example, you can record who owns the volume or where you have mounted it in the filespace. To display the
897           information, use the <emphasis role="bold">fs examine</emphasis> command. <programlisting>
898    % <emphasis role="bold">fs setvol</emphasis> &lt;<replaceable>dir/file path</replaceable>&gt; <emphasis role="bold">-offlinemsg </emphasis> &lt;<replaceable>offline message</replaceable>&gt;
899 </programlisting></para>
900
901           <para>where <variablelist>
902               <varlistentry>
903                 <term><emphasis role="bold">sv</emphasis></term>
904
905                 <listitem>
906                   <para>Is an acceptable alias for <emphasis role="bold">setvol</emphasis>(and <emphasis role="bold">setv</emphasis>
907                   the shortest acceptable abbreviation).</para>
908                 </listitem>
909               </varlistentry>
910
911               <varlistentry>
912                 <term><emphasis role="bold">dir/file path</emphasis></term>
913
914                 <listitem>
915                   <para>Names the mount point of the volume with which to associate the message. Partial pathnames are interpreted
916                   relative to the current working directory.</para>
917
918                   <para>Specify the read/write path to the mount point, to avoid the failure that results when you attempt to change
919                   a read-only volume. By convention, you indicate the read/write path by placing a period before the cell name at
920                   the pathname's second level (for example, <emphasis role="bold">/afs/.abc.com</emphasis>). For further discussion
921                   of the concept of read/write and read-only paths through the filespace, see <link linkend="HDRWQ209">The Rules of
922                   Mount Point Traversal</link>.</para>
923                 </listitem>
924               </varlistentry>
925
926               <varlistentry>
927                 <term><emphasis role="bold">-offlinemsg</emphasis></term>
928
929                 <listitem>
930                   <para>Specifies up to 128 characters of auxiliary information to record in the volume header.</para>
931                 </listitem>
932               </varlistentry>
933             </variablelist></para>
934         </listitem>
935       </orderedlist>
936     </sect2>
937   </sect1>
938
939   <sect1 id="HDRWQ190">
940     <title>About Clones and Cloning</title>
941
942     <indexterm>
943       <primary>cloning</primary>
944
945       <secondary>defined</secondary>
946     </indexterm>
947
948     <indexterm>
949       <primary>clone</primary>
950     </indexterm>
951
952     <indexterm>
953       <primary>vnode index</primary>
954     </indexterm>
955
956     <indexterm>
957       <primary>backup volume</primary>
958
959       <secondary>space-saving nature of</secondary>
960     </indexterm>
961
962     <para>To create a backup or read-only volume, the Volume Server begins by <emphasis>cloning</emphasis> the read/write source
963     volume to create a <emphasis>clone</emphasis>. The Volume Server creates the clone automatically when you issue the <emphasis
964     role="bold">vos backup</emphasis> or <emphasis role="bold">vos backupsys</emphasis> command (for a backup volume) or the
965     <emphasis role="bold">vos release</emphasis> command (for a read-only volume). No special action is required on your
966     part.</para>
967
968     <para>A clone is not a copy of the data in the read/write source volume, but rather a copy of the read/write volume's
969     <emphasis>vnode index</emphasis>. The vnode index is a table of pointers between the files and directories in the volume and the
970     physical disk blocks on the partition where the data resides. From the clone, backup and read-only volumes are created in the
971     following manner: <itemizedlist>
972         <listitem>
973           <para>A read-only volume that occupies the same partition as its read/write source (also known as a <emphasis>read-only
974           clone</emphasis>), and a backup volume, are created by attaching a volume header to the clone. These volumes initially
975           consume very little disk space, because the clone portion (the vnode index) points to exactly the same files as the
976           read/write volume, as illustrated in <link linkend="FIGWQ191">Figure 1</link>. The file sharing is possible only because
977           the clone is on the same partition as the read/write source volume. When a file in the read/write volume is deleted, it is
978           not actually removed from the partition, because the backup or read-only clone still points to it. Similarly, when a file
979           in the read/write is changed, the entire original file is preserved on disk because the clone still points to it, and the
980           read/write volume's vnode index changes to point to newly space for the changed file. When this happens, the backup or
981           read-only volume is said to grow or start occupying actual disk space.</para>
982         </listitem>
983
984         <listitem>
985           <para>A read-only volume that does not occupy the same site as the read/write source is a copy of the clone and of all of
986           the data in the read/write source volume. It occupies the same amount of disk space as the read/write volume did at the
987           time the read-only volume was created.</para>
988         </listitem>
989       </itemizedlist></para>
990
991     <figure id="FIGWQ191" label="1">
992       <title>File Sharing Between the Read/write Source and a Clone Volume</title>
993
994       <mediaobject>
995         <imageobject>
996           <imagedata fileref="vnode.png" scale="50" />
997         </imageobject>
998       </mediaobject>
999     </figure>
1000
1001     <indexterm>
1002       <primary>replication</primary>
1003
1004       <secondary>detailed discussion</secondary>
1005     </indexterm>
1006
1007     <indexterm>
1008       <primary>volume</primary>
1009
1010       <secondary>replicating</secondary>
1011     </indexterm>
1012
1013     <indexterm>
1014       <primary>volume</primary>
1015
1016       <secondary>read-only</secondary>
1017
1018       <see>read-only volume</see>
1019     </indexterm>
1020
1021     <indexterm>
1022       <primary>read-only volume</primary>
1023
1024       <secondary>creating</secondary>
1025     </indexterm>
1026
1027     <indexterm>
1028       <primary>creating</primary>
1029
1030       <secondary>read-only volume</secondary>
1031     </indexterm>
1032
1033     <indexterm>
1034       <primary>cloning</primary>
1035
1036       <secondary>for replication</secondary>
1037     </indexterm>
1038
1039     <indexterm>
1040       <primary>read/write volume</primary>
1041
1042       <secondary>cloning</secondary>
1043
1044       <tertiary>for replication</tertiary>
1045     </indexterm>
1046   </sect1>
1047
1048   <sect1 id="HDRWQ192">
1049     <title>Replicating Volumes (Creating Read-only Volumes)</title>
1050
1051     <para><emphasis>Replication</emphasis> refers to creating a read-only copy of a read/write volume and distributing the copy to
1052     one or more additional file server machines. Replication makes a volume's contents accessible on more than one file server
1053     machine, which increases data availability. It can also increase system efficiency by reducing load on the network and File
1054     Server. Network load is reduced if a client machine's server preference ranks lead the Cache Manager to access the copy of a
1055     volume stored on the closest file server machine. Load on the File Server is reduced because it issues only one callback for all
1056     data fetched from a read-only volume, as opposed to a callback for each file fetched from a read/write volume. The single
1057     callback is sufficient for an entire read-only volume because the volume does not change except in response to administrator
1058     action, whereas each read/write file can change at any time.</para>
1059
1060     <indexterm>
1061       <primary>stages in volume replication</primary>
1062     </indexterm>
1063
1064     <indexterm>
1065       <primary>site definition stage in replication</primary>
1066     </indexterm>
1067
1068     <indexterm>
1069       <primary>replication</primary>
1070
1071       <secondary>site definition stage</secondary>
1072     </indexterm>
1073
1074     <indexterm>
1075       <primary>release stage in replication</primary>
1076     </indexterm>
1077
1078     <indexterm>
1079       <primary>replication</primary>
1080
1081       <secondary>release stage</secondary>
1082     </indexterm>
1083
1084     <para>Replicating a volume requires issuing two commands. First, use the <emphasis role="bold">vos addsite</emphasis> command to
1085     add one or more read-only site definitions to the volume's VLDB entry (a <emphasis>site</emphasis> is a particular partition on
1086     a file server machine). Then use the <emphasis role="bold">vos release</emphasis> command to clone the read/write source volume
1087     and distribute the clone to the defined read-only sites. You issue the <emphasis role="bold">vos addsite</emphasis> only once
1088     for each read-only site, but must reissue the <emphasis role="bold">vos release</emphasis> command every time the read/write
1089     volume's contents change and you want to update the read-only volumes.</para>
1090
1091     <para>For users to have a consistent view of the file system, the release of updated volume contents to read-only sites must be
1092     atomic: either all read-only sites receive the new version of the volume, or all sites keep the version they currently have. The
1093     <emphasis role="bold">vos release</emphasis> command is designed to ensure that all copies of the volume's read-only version
1094     match both the read/write source and each other. In cases where problems such as machine or server process outages prevent
1095     successful completion of the release operation, AFS uses two mechanisms to alert you.</para>
1096
1097     <indexterm>
1098       <primary>replication</primary>
1099
1100       <secondary>determining success of</secondary>
1101     </indexterm>
1102
1103     <indexterm>
1104       <primary>determining</primary>
1105
1106       <secondary>success of replication</secondary>
1107     </indexterm>
1108
1109     <indexterm>
1110       <primary>replication</primary>
1111
1112       <secondary>need for all-or-nothing release</secondary>
1113     </indexterm>
1114
1115     <indexterm>
1116       <primary>all-or-nothing release of read-only volumes</primary>
1117     </indexterm>
1118
1119     <indexterm>
1120       <primary>read-only volume</primary>
1121
1122       <secondary>need for atomic release</secondary>
1123     </indexterm>
1124
1125     <indexterm>
1126       <primary>releasing</primary>
1127
1128       <secondary>read-only volume, need for atomicity</secondary>
1129     </indexterm>
1130
1131     <indexterm>
1132       <primary>ReleaseClone</primary>
1133     </indexterm>
1134
1135     <indexterm>
1136       <primary>replication</primary>
1137
1138       <secondary>role of ReleaseClone</secondary>
1139     </indexterm>
1140
1141     <indexterm>
1142       <primary>New release site flag in VLDB</primary>
1143
1144       <secondary>as indicator of failed replication</secondary>
1145     </indexterm>
1146
1147     <indexterm>
1148       <primary>Old release site flag in VLDB</primary>
1149
1150       <secondary>as indicator of failed replication</secondary>
1151     </indexterm>
1152
1153     <indexterm>
1154       <primary>clone</primary>
1155
1156       <secondary>forcing creation of new</secondary>
1157     </indexterm>
1158
1159     <indexterm>
1160       <primary>replication</primary>
1161
1162       <secondary>forcing creation of new clone</secondary>
1163     </indexterm>
1164
1165     <indexterm>
1166       <primary>vos commands</primary>
1167
1168       <secondary>release</secondary>
1169
1170       <tertiary>forcing new cloning with -f flag</tertiary>
1171     </indexterm>
1172
1173     <indexterm>
1174       <primary>releasing</primary>
1175
1176       <secondary>read-only volume, forcing new cloning</secondary>
1177     </indexterm>
1178
1179     <para>First, the command interpreter generates an error message on the standard error stream naming each read-only site that did
1180     not receive the new volume version. Second, during the release operation the Volume Location (VL) Server marks site definitions
1181     in the VLDB entry with flags (<computeroutput>New release</computeroutput> and <computeroutput>Old release</computeroutput>)
1182     that indicate whether or not the site has the new volume version. If any flags remain after the operation completes, it was not
1183     successful. The Cache Manager refuses to access a read-only site marked with the <computeroutput>Old release</computeroutput>
1184     flag, which potentially imposes a greater load on the sites marked with the <computeroutput>New release</computeroutput> flag.
1185     It is important to investigate and eliminate the cause of the failure and then to issue the <emphasis role="bold">vos
1186     release</emphasis> command as many times as necessary to complete the release without errors.</para>
1187
1188     <para>The pattern of site flags remaining in the volume's VLDB entry after a failed release operation can help determine the
1189     point at which the operation failed. Use the <emphasis role="bold">vos examine</emphasis> or <emphasis role="bold">vos
1190     listvldb</emphasis> command to display the VLDB entry. The VL Server sets the flags in concert with the Volume Server's
1191     operations, as follows: <orderedlist>
1192         <listitem>
1193           <para>Before the operation begins, the VL Server sets the <computeroutput>New release</computeroutput> flag on the
1194           read/write site definition in the VLDB entry and the <computeroutput>Old release</computeroutput> flag on read-only site
1195           definitions (unless the read-only site has been defined since the last release operation and has no actual volume, in
1196           which case its site flag remains <computeroutput>Not released</computeroutput>).</para>
1197         </listitem>
1198
1199         <listitem>
1200           <para>If necessary, the Volume Server creates a temporary copy (a <emphasis>clone</emphasis>) of the read/write source
1201           called the ReleaseClone (see the following discussion of when the Volume Server does or does not create a new
1202           ReleaseClone.) It assigns the ReleaseClone its own volume ID number, which the VL Server records in the
1203           <computeroutput>RClone</computeroutput> field of the source volume's VLDB entry.</para>
1204         </listitem>
1205
1206         <listitem>
1207           <para>The Volume Server distributes a copy of the ReleaseClone to each read-only site defined in the VLDB entry. As the
1208           site successfully receives the new clone, the VL Server sets the site's flag in the VLDB entry to <computeroutput>New
1209           release</computeroutput>.</para>
1210         </listitem>
1211
1212         <listitem>
1213           <para>When all the read-only copies are successfully released, the VL Server clears all the <computeroutput>New
1214           release</computeroutput> site flags. The ReleaseClone is no longer needed, so the Volume Server deletes it and the VL
1215           Server erases its ID from the VLDB entry.</para>
1216         </listitem>
1217       </orderedlist></para>
1218
1219     <para>By default, the Volume Server determines automatically whether or not it needs to create a new ReleaseClone: <itemizedlist>
1220         <listitem>
1221           <para>If there are no flags (<computeroutput>New release</computeroutput>, <computeroutput>Old release</computeroutput>,
1222           or <computeroutput>Not released</computeroutput>) on site definitions in the VLDB entry, the previous <emphasis
1223           role="bold">vos release</emphasis> command completed successfully and all read-only sites currently have the same volume.
1224           The Volume Server infers that the current <emphasis role="bold">vos release</emphasis> command was issued because the
1225           read/write volume has changed. The Volume Server creates a new ReleaseClone and distributes it to all of the read-only
1226           sites.</para>
1227         </listitem>
1228
1229         <listitem>
1230           <para>If any site definition in the VLDB entry is marked with a flag, either the previous release operation did not
1231           complete successfully or a new read-only site was defined since the last release. The Volume Server does not create a new
1232           ReleaseClone, instead distributing the existing ReleaseClone to sites marked with the <computeroutput>Old
1233           release</computeroutput> or <computeroutput>Not released</computeroutput> flag. As previously noted, the VL Server marks
1234           each VLDB site definition with the <computeroutput>New release</computeroutput> flag as the site receives the
1235           ReleaseClone, and clears all flags after all sites successfully receive it.</para>
1236         </listitem>
1237       </itemizedlist></para>
1238
1239     <para>To override the default behavior, forcing the Volume Server to create and release a new ReleaseClone to the read-only
1240     sites, include the <emphasis role="bold">-f</emphasis> flag. This is appropriate if, for example, the data at the read/write
1241     site has changed since the existing ReleaseClone was created during the previous release operation.</para>
1242
1243     <sect2 id="HDRWQ193">
1244       <title>Using Read-only Volumes Effectively</title>
1245
1246       <indexterm>
1247         <primary>criteria for replicating volumes</primary>
1248       </indexterm>
1249
1250       <indexterm>
1251         <primary>replication</primary>
1252
1253         <secondary>suitable types of volumes</secondary>
1254       </indexterm>
1255
1256       <indexterm>
1257         <primary>suitability of volumes for replication</primary>
1258       </indexterm>
1259
1260       <indexterm>
1261         <primary>read/write volume</primary>
1262
1263         <secondary>types suitable for replication</secondary>
1264       </indexterm>
1265
1266       <para>For maximum effectiveness, replicate only volumes that satisfy two criteria: <itemizedlist>
1267           <listitem>
1268             <para>The volume's contents are heavily used. Examples include a volume housing binary files for text editors or other
1269             popular application programs, and volumes mounted along heavily traversed directory paths such as the paths leading to
1270             user home directories. It is an inefficient use of disk space to replicate volumes for which the demand is low enough
1271             that a single File Server can easily service all requests.</para>
1272           </listitem>
1273
1274           <listitem>
1275             <para>The volume's contents change infrequently. As noted, file system consistency demands that the contents of
1276             read-only volumes must match each other and their read/write source at all times. Each time the read/write volume
1277             changes, you must issue the <emphasis role="bold">vos release</emphasis> command to update the read-only volumes. This
1278             can become tedious (and easy to forget) if the read/write volume changes frequently.</para>
1279           </listitem>
1280         </itemizedlist></para>
1281
1282       <indexterm>
1283         <primary>mounting</primary>
1284
1285         <secondary>read-only volume</secondary>
1286       </indexterm>
1287
1288       <indexterm>
1289         <primary>read-only volume</primary>
1290
1291         <secondary>mounting</secondary>
1292       </indexterm>
1293
1294       <para>Explicitly mounting a read-only volume (creating a mount point that names a volume with a <emphasis
1295       role="bold">.readonly</emphasis> extension) is not generally necessary or appropriate. The Cache Manager has a built-in bias
1296       to access the read-only version of a replicated volume whenever possible. As described in more detail in <link
1297       linkend="HDRWQ209">The Rules of Mount Point Traversal</link>, when the Cache Manager encounters a mount point it reads the
1298       volume name inside it and contacts the VL Server for a list of the sites that house the volume. In the normal case, if the
1299       mount point resides in a read-only volume and names a read/write volume (one that does not have a <emphasis
1300       role="bold">.readonly</emphasis> or <emphasis role="bold">.backup</emphasis> extension), the Cache Manager always attempts to
1301       access a read-only copy of the volume. Thus there is normally no reason to force the Cache Manager to access a read-only
1302       volume by mounting it explicitly.</para>
1303
1304       <para>It is a good practice to place a read-only volume at the read/write site, for a couple of reasons. First, the read-only
1305       volume at the read/write site requires only a small amount of disk space, because it is a clone rather a copy of all of the
1306       data (see <link linkend="HDRWQ190">About Clones and Cloning</link>). Only if a large number of files are removed or changed in
1307       the read/write volume does the read-only copy occupy much disk space. That normally does not happen because the appropriate
1308       response to changes in a replicated read/write volume is to reclone it. The other reason to place a read-only volume at the
1309       read/write site is that the Cache Manager does not attempt to access the read/write version of a replicated volume if all
1310       read-only copies become inaccessible. If the file server machine housing the read/write volume is the only accessible machine,
1311       the Cache Manager can access the data only if there is a read-only copy at the read/write site.</para>
1312
1313       <para>The number of read-only sites to define depends on several factors. Perhaps the main trade-off is between the level of
1314       demand for the volume's contents and how much disk space you are willing to use for multiple copies of the volume. Of course,
1315       each prospective read-only site must have enough available space to accommodate the volume. The limit on the number of
1316       read-only copies of a volume is determined by the maximum number of site definitions in a volume's VLDB entry, which is
1317       defined in the <emphasis> OpenAFS Release Notes</emphasis>. The site housing the read/write and backup versions of the volume
1318       counts as one site, and each read-only site counts as an additional site (even the read-only site defined on the same file
1319       server machine and partition as the read/write site counts as a separate site). Note also that the Volume Server permits only
1320       one read-only copy of a volume per file server machine.</para>
1321     </sect2>
1322
1323     <sect2 id="Header_216">
1324       <title>Replication Scenarios</title>
1325
1326       <indexterm>
1327         <primary>variations possible</primary>
1328
1329         <secondary>in replication</secondary>
1330       </indexterm>
1331
1332       <indexterm>
1333         <primary>replication</primary>
1334
1335         <secondary>variations possible in</secondary>
1336       </indexterm>
1337
1338       <indexterm>
1339         <primary>possible variations</primary>
1340
1341         <secondary>on replication</secondary>
1342       </indexterm>
1343
1344       <para>The instructions in the following section explain how to replicate a volume for which no read-only sites are currently
1345       defined. However, you can also use the instructions in other common situations: <itemizedlist>
1346           <listitem>
1347             <para>If you are releasing a new clone to sites that already exist, you can skip Step <link linkend="LIWQ196">2</link>.
1348             It can still be useful to issue the <emphasis role="bold">vos examine</emphasis> command, however, to verify that the
1349             desired read-only sites are defined.</para>
1350           </listitem>
1351
1352           <listitem>
1353             <para>If you are adding new read-only sites to existing ones, perform all of the steps. In Step <link
1354             linkend="LIWQ197">3</link>, issue the <emphasis role="bold">vos addsite</emphasis> command for the new sites
1355             only.</para>
1356           </listitem>
1357
1358           <listitem>
1359             <para>If you are defining sites but do not want to release a clone to them yet, stop after Step <link
1360             linkend="LIWQ197">3</link>and continue when you are ready.</para>
1361           </listitem>
1362
1363           <listitem>
1364             <para>If you are removing one or more sites before releasing a new clone to the remaining sites, follow the instructions
1365             for site removal in <link linkend="HDRWQ235">Removing Volumes and their Mount Points</link>and then start with Step
1366             <link linkend="LIWQ198">4</link>.</para>
1367           </listitem>
1368         </itemizedlist></para>
1369     </sect2>
1370
1371     <sect2 id="HDRWQ194">
1372       <title>To replicate a read/write volume (create a read-only volume)</title>
1373
1374       <indexterm>
1375         <primary>read-only volume</primary>
1376
1377         <secondary>creating</secondary>
1378
1379         <tertiary>instructions</tertiary>
1380       </indexterm>
1381
1382       <indexterm>
1383         <primary>read/write volume</primary>
1384
1385         <secondary>replication instructions</secondary>
1386       </indexterm>
1387
1388       <orderedlist>
1389         <listitem>
1390           <para><anchor id="LIWQ195" />Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis>
1391           file. If necessary, issue the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link
1392           linkend="HDRWQ593">To display the users in the UserList file</link>. <programlisting>
1393    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
1394 </programlisting></para>
1395         </listitem>
1396
1397         <listitem>
1398           <para><anchor id="LIWQ196" />Select one or more sites at which to replicate the volume. There are several factors to
1399           consider: <itemizedlist>
1400               <listitem>
1401                 <para>How many sites are already defined. As previously noted, it is usually appropriate to define a read-only site
1402                 at the read/write site. Also, the Volume Server permits only one read-only copy of a volume per file server machine.
1403                 To display the volume's current sites, issue the <emphasis role="bold">vos examine</emphasis> command, which is
1404                 described fully in <link linkend="HDRWQ221">Displaying One Volume's VLDB Entry and Volume Header</link>.
1405                 <programlisting>
1406    % <emphasis role="bold">vos examine</emphasis> &lt;<replaceable>volume name or ID</replaceable>&gt;
1407 </programlisting></para>
1408
1409                 <para>The final lines of output display the volume's site definitions from the VLDB.</para>
1410               </listitem>
1411
1412               <listitem>
1413                 <para>Whether your cell dedicates any file server machines to housing read-only volumes only. In general, only very
1414                 large cells use read-only server machines.</para>
1415               </listitem>
1416
1417               <listitem>
1418                 <para>Whether a site has enough free space to accommodate the volume. A read-only volume requires the same amount of
1419                 space as the read/write version (unless it is at the read/write site itself). The first line of output from the
1420                 <emphasis role="bold">vos examine</emphasis> command displays the read/write volume's current size in kilobyte
1421                 blocks, as shown in <link linkend="HDRWQ221">Displaying One Volume's VLDB Entry and Volume Header</link>.</para>
1422
1423                 <para>To display the amount of space available on a file server machine's partitions, use the <emphasis
1424                 role="bold">vos partinfo</emphasis> command, which is described fully in <link linkend="HDRWQ185">Creating
1425                 Read/write Volumes</link>.</para>
1426
1427                 <programlisting>
1428    % <emphasis role="bold">vos partinfo</emphasis> &lt;<replaceable>machine name</replaceable>&gt; [&lt;<replaceable>partition name</replaceable>&gt;]
1429 </programlisting>
1430               </listitem>
1431             </itemizedlist></para>
1432
1433           <indexterm>
1434             <primary>read-only volume</primary>
1435
1436             <secondary>defining site for in VLDB</secondary>
1437           </indexterm>
1438
1439           <indexterm>
1440             <primary>defining</primary>
1441
1442             <secondary>read-only site in VLDB</secondary>
1443           </indexterm>
1444
1445           <indexterm>
1446             <primary>adding</primary>
1447
1448             <secondary>read-only site definition in VLDB</secondary>
1449           </indexterm>
1450
1451           <indexterm>
1452             <primary>VLDB</primary>
1453
1454             <secondary>defining read-only site in</secondary>
1455           </indexterm>
1456
1457           <indexterm>
1458             <primary>commands</primary>
1459
1460             <secondary>vos addsite</secondary>
1461           </indexterm>
1462
1463           <indexterm>
1464             <primary>vos commands</primary>
1465
1466             <secondary>addsite</secondary>
1467           </indexterm>
1468         </listitem>
1469
1470         <listitem>
1471           <para><anchor id="LIWQ197" />Issue the <emphasis role="bold">vos addsite</emphasis> command to define each new read-only
1472           site in the VLDB. <programlisting>
1473    % <emphasis role="bold">vos addsite</emphasis> &lt;<replaceable>machine name</replaceable>&gt; &lt;<replaceable>partition name</replaceable>&gt; &lt;<replaceable>volume name or ID</replaceable>&gt;
1474 </programlisting></para>
1475
1476           <para>where <variablelist>
1477               <varlistentry>
1478                 <term><emphasis role="bold">ad</emphasis></term>
1479
1480                 <listitem>
1481                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">addsite</emphasis>.</para>
1482                 </listitem>
1483               </varlistentry>
1484
1485               <varlistentry>
1486                 <term><emphasis role="bold">machine name</emphasis></term>
1487
1488                 <listitem>
1489                   <para>Defines the file server machine for the new site.</para>
1490                 </listitem>
1491               </varlistentry>
1492
1493               <varlistentry>
1494                 <term><emphasis role="bold">partition name</emphasis></term>
1495
1496                 <listitem>
1497                   <para>Names a disk partition on the machine machine name.</para>
1498                 </listitem>
1499               </varlistentry>
1500
1501               <varlistentry>
1502                 <term><emphasis role="bold">volume name or ID</emphasis></term>
1503
1504                 <listitem>
1505                   <para>Identifies the read/write volume to be replicated, either by its complete name or its volume ID
1506                   number.</para>
1507                 </listitem>
1508               </varlistentry>
1509             </variablelist></para>
1510         </listitem>
1511
1512         <listitem>
1513           <para><anchor id="LIWQ198" /><emphasis role="bold">(Optional)</emphasis> Verify that the <emphasis
1514           role="bold">fs</emphasis> process (which incorporates the Volume Server) is functioning normally on each file server
1515           machine where you have defined a read-only site, and that the <emphasis role="bold">vlserver</emphasis> process (the
1516           Volume Location Server) is functioning correctly on each database server machine. Knowing that they are functioning
1517           eliminates two possible sources of failure for the release. Issue the <emphasis role="bold">bos status</emphasis> command
1518           on each file server machine housing a read-only site for this volume and on each database server machine. The command is
1519           described fully in <link linkend="HDRWQ158">Displaying Process Status and Information from the BosConfig File</link>.
1520           <programlisting>
1521    % <emphasis role="bold">bos status</emphasis> &lt;<replaceable>machine name</replaceable>&gt; <emphasis role="bold">fs vlserver</emphasis>
1522 </programlisting></para>
1523
1524           <indexterm>
1525             <primary>releasing</primary>
1526
1527             <secondary>read-only volume</secondary>
1528           </indexterm>
1529
1530           <indexterm>
1531             <primary>read-only volume</primary>
1532
1533             <secondary>releasing</secondary>
1534           </indexterm>
1535
1536           <indexterm>
1537             <primary>commands</primary>
1538
1539             <secondary>vos release</secondary>
1540
1541             <tertiary>basic instructions</tertiary>
1542           </indexterm>
1543
1544           <indexterm>
1545             <primary>vos commands</primary>
1546
1547             <secondary>release</secondary>
1548
1549             <tertiary>basic instructions</tertiary>
1550           </indexterm>
1551         </listitem>
1552
1553         <listitem>
1554           <para><anchor id="LIWQ199" />Issue the <emphasis role="bold">vos release</emphasis> command to clone the read/write source
1555           volume and distribute the clone to each read-only site. <programlisting>
1556    % <emphasis role="bold">vos release</emphasis> &lt;<replaceable>volume name or ID</replaceable>&gt; [<emphasis role="bold">-f</emphasis>]
1557 </programlisting></para>
1558
1559           <para>where <variablelist>
1560               <varlistentry>
1561                 <term><emphasis role="bold">rel</emphasis></term>
1562
1563                 <listitem>
1564                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">release</emphasis>.</para>
1565                 </listitem>
1566               </varlistentry>
1567
1568               <varlistentry>
1569                 <term><emphasis role="bold">volume name or ID</emphasis></term>
1570
1571                 <listitem>
1572                   <para>Identifies the read/write volume to clone, either by its complete name or volume ID number. The read-only
1573                   version is given the same name with a <emphasis role="bold">.readonly</emphasis> extension. All read-only copies
1574                   share the same read-only volume ID number.</para>
1575                 </listitem>
1576               </varlistentry>
1577
1578               <varlistentry>
1579                 <term><emphasis role="bold">-f</emphasis></term>
1580
1581                 <listitem>
1582                   <para>Creates and releases a brand new clone.</para>
1583                 </listitem>
1584               </varlistentry>
1585             </variablelist></para>
1586         </listitem>
1587
1588         <listitem>
1589           <anchor id="LIWQ200" />
1590
1591           <para><emphasis role="bold">(Optional)</emphasis> Issue the <emphasis role="bold">vos examine</emphasis> command to verify
1592           that no site definition in the VLDB entry is marked with an <computeroutput>Old release</computeroutput> or
1593           <computeroutput>New release</computeroutput> flag. The command is described fully in <link linkend="HDRWQ221">Displaying
1594           One Volume's VLDB Entry and Volume Header</link>. <programlisting>
1595    % <emphasis role="bold">vos examine</emphasis> &lt;<replaceable>volume name or ID</replaceable>&gt;
1596 </programlisting></para>
1597         </listitem>
1598       </orderedlist>
1599
1600       <para>If any flags appear in the output from Step <link linkend="LIWQ200">6</link>, repeat Steps <link
1601       linkend="LIWQ198">4</link>and <link linkend="LIWQ199">5</link>until the Volume Server does not produce any error messages
1602       during the release operation and the flags no longer appear. Do not issue the <emphasis role="bold">vos release</emphasis>
1603       command when you know that the read/write site or any read-only site is inaccessible due to network, machine or server process
1604       outage.</para>
1605     </sect2>
1606   </sect1>
1607
1608   <sect1 id="HDRWQ201">
1609     <title>Creating Backup Volumes</title>
1610
1611     <indexterm>
1612       <primary>read/write volume</primary>
1613
1614       <secondary>cloning</secondary>
1615
1616       <tertiary>for backup version</tertiary>
1617     </indexterm>
1618
1619     <indexterm>
1620       <primary>cloning</primary>
1621
1622       <secondary>for backup</secondary>
1623     </indexterm>
1624
1625     <indexterm>
1626       <primary>creating</primary>
1627
1628       <secondary>backup volume</secondary>
1629     </indexterm>
1630
1631     <indexterm>
1632       <primary>volume</primary>
1633
1634       <secondary>backup</secondary>
1635
1636       <see>backup volume</see>
1637     </indexterm>
1638
1639     <indexterm>
1640       <primary>backup volume</primary>
1641
1642       <secondary>creating</secondary>
1643     </indexterm>
1644
1645     <para>A <emphasis>backup volume</emphasis> is a clone that resides at the same site as its read/write source (to review the
1646     concept of cloning, see <link linkend="HDRWQ190">About Clones and Cloning</link>). Creating a backup version of a volume has two
1647     purposes: <itemizedlist>
1648         <listitem>
1649           <para>It is by convention the first step when dumping a volume's contents to tape with the AFS Backup System. A volume is
1650           inaccessible while it is being dumped, so instead of dumping the read/write volume, you create and dump a backup version.
1651           Users do not normally access the backup version, so it is unlikely that the dump will disturb them. For more details, see
1652           <link linkend="HDRWQ296">Backing Up Data</link>.</para>
1653         </listitem>
1654
1655         <listitem>
1656           <para>It enables users to restore mistakenly deleted or changed data themselves, freeing you for more crucial tasks. The
1657           backup version captures the state of its read/write source at the time the backup is made, and its contents cannot change.
1658           Mount the backup version in the filespace so that users can restore a file to its state at the time you made the backup.
1659           See <link linkend="HDRWQ204">Making the Contents of Backup Volumes Available to Users</link>.</para>
1660         </listitem>
1661       </itemizedlist></para>
1662
1663     <indexterm>
1664       <primary>creating</primary>
1665
1666       <secondary>multiple backup volumes at once</secondary>
1667     </indexterm>
1668
1669     <indexterm>
1670       <primary>volume</primary>
1671
1672       <secondary>creating backup version of many at once</secondary>
1673     </indexterm>
1674
1675     <indexterm>
1676       <primary>backup volume</primary>
1677
1678       <secondary>creating multiple at once</secondary>
1679     </indexterm>
1680
1681     <sect2 id="HDRWQ202">
1682       <title>Backing Up Multiple Volumes at Once</title>
1683
1684       <para>The <emphasis role="bold">vos backupsys</emphasis> command creates a backup version of many read/write volumes at once.
1685       This command is useful when preparing for large-scale backups to tape using the AFS Backup System.</para>
1686
1687       <para>To clone every read/write volume listed in the VLDB, omit all of the command's options. Otherwise, combine the command's
1688       options to clone various groups of volumes. The options use one of two basic criteria to select volumes: location (the
1689       <emphasis role="bold">-server</emphasis> and <emphasis role="bold">-partition</emphasis> arguments) or presence in the volume
1690       name of one of a set of specified character strings (the <emphasis role="bold">-prefix</emphasis>, <emphasis
1691       role="bold">-exclude</emphasis>, and <emphasis role="bold">-xprefix</emphasis> options).</para>
1692
1693       <para>To clone only volumes that reside on one file server machine, include the <emphasis role="bold">-server</emphasis>
1694       argument. To clone only volumes that reside on one partition, combine the <emphasis role="bold">-server</emphasis> and
1695       <emphasis role="bold">-partition</emphasis> arguments. The <emphasis role="bold">-partition</emphasis> argument can also be
1696       used alone to clone volumes that reside on the indicated partition on every file server machine. These arguments can be
1697       combined with those that select volumes based on their names.</para>
1698
1699       <para>Combine the <emphasis role="bold">-prefix</emphasis>, <emphasis role="bold">-exclude</emphasis>, and <emphasis
1700       role="bold">-xprefix</emphasis> options (with or without the <emphasis role="bold">-server</emphasis> and <emphasis
1701       role="bold">-partition</emphasis> arguments) in the indicated ways to select volumes based on character strings contained in
1702       their names: <itemizedlist>
1703           <listitem>
1704             <para>To clone every read/write volume at the specified location whose name includes one of a set of specified character
1705             strings (for example, begins with <emphasis role="bold">user.</emphasis> or includes the string <emphasis
1706             role="bold">afs</emphasis>), use the <emphasis role="bold">-prefix</emphasis> argument or combine the <emphasis
1707             role="bold">-xprefix</emphasis> and <emphasis role="bold">-exclude</emphasis> options.</para>
1708           </listitem>
1709
1710           <listitem>
1711             <para>To clone every read/write volume at the specified location except those whose name includes one of a set of
1712             specified character strings, use the <emphasis role="bold">-xprefix</emphasis> argument or combine the <emphasis
1713             role="bold">-prefix</emphasis> and <emphasis role="bold">-exclude</emphasis> options.</para>
1714           </listitem>
1715
1716           <listitem>
1717             <para>To clone every read/write volume at the specified location whose name includes one of one of a set of specified
1718             character strings, except those whose names include one of a different set of specified character strings, combine the
1719             <emphasis role="bold">-prefix</emphasis> and <emphasis role="bold">-xprefix</emphasis> arguments. The command creates a
1720             list of all volumes that match the <emphasis role="bold">-prefix</emphasis> argument and then removes from the list the
1721             volumes that match the <emphasis role="bold">-xprefix</emphasis> argument. For effective results, the strings specified
1722             by the <emphasis role="bold">-xprefix</emphasis> argument must designate a subset of the volumes specified by the
1723             <emphasis role="bold">-prefix</emphasis> argument.</para>
1724
1725             <para>If the <emphasis role="bold">-exclude</emphasis> flag is combined with the <emphasis
1726             role="bold">-prefix</emphasis> and <emphasis role="bold">-xprefix</emphasis> arguments, the command creates a list of
1727             all volumes that do not match the <emphasis role="bold">-prefix</emphasis> argument and then adds to the list any
1728             volumes that match the <emphasis role="bold">-xprefix</emphasis> argument. As when the <emphasis
1729             role="bold">-exclude</emphasis> flag is not used, the result is effective only if the strings specified by the <emphasis
1730             role="bold">-xprefix</emphasis> argument designate a subset of the volumes specified by the <emphasis
1731             role="bold">-prefix</emphasis> argument.</para>
1732           </listitem>
1733         </itemizedlist></para>
1734
1735       <para>The <emphasis role="bold">-prefix</emphasis> and <emphasis role="bold">-xprefix</emphasis> arguments both accept
1736       multiple values, which can be used to define disjoint groups of volumes. Each value can be one of two types: <orderedlist>
1737           <listitem>
1738             <para>A simple character string, which matches volumes whose name begin with the string. All characters are interpreted
1739             literally (that is, characters that potentially have special meaning to the command shell, such as the period, have only
1740             their literal meaning).</para>
1741           </listitem>
1742
1743           <listitem>
1744             <para>A regular expression, which matches volumes whose names contain the expressions. Place a caret ( <emphasis
1745             role="bold">^</emphasis>) at the beginning of the expression, and enclose the entire string in single quotes ( <emphasis
1746             role="bold">'</emphasis> <emphasis role="bold">'</emphasis>). Explaining regular expressions is outside the scope of
1747             this reference page; see the UNIX manual page for <emphasis role="bold">regexp(5)</emphasis> or (for a brief
1748             introduction) <link linkend="HDRWQ265">Defining and Displaying Volume Sets and Volume Entries</link>. As an example, the
1749             following expression matches volumes that have the string <emphasis role="bold">aix</emphasis> anywhere in their names:
1750             <programlisting>
1751   <emphasis role="bold">-prefix '^.*aix'</emphasis>
1752           </programlisting></para>
1753           </listitem>
1754         </orderedlist></para>
1755
1756       <para>To display a list of the volumes to be cloned, without actually cloning them, include the <emphasis
1757       role="bold">-dryrun</emphasis> flag. To display a statement that summarizes the criteria being used to select volume, include
1758       the <emphasis role="bold">-verbose</emphasis> flag.</para>
1759
1760       <para>To back up a single volume, use the <emphasis role="bold">vos backup</emphasis> command, which employs a more
1761       streamlined technique for finding a single volume.</para>
1762
1763       <indexterm>
1764         <primary>automating</primary>
1765
1766         <secondary>creation of backup volumes</secondary>
1767       </indexterm>
1768
1769       <indexterm>
1770         <primary>backup volume</primary>
1771
1772         <secondary>automating creation of</secondary>
1773       </indexterm>
1774
1775       <indexterm>
1776         <primary>volume</primary>
1777
1778         <secondary>automating creation of backup version</secondary>
1779       </indexterm>
1780
1781       <indexterm>
1782         <primary>backup volume</primary>
1783
1784         <secondary>suggested schedule for creation of</secondary>
1785       </indexterm>
1786
1787       <indexterm>
1788         <primary>scheduling</primary>
1789
1790         <secondary>creation of backup volumes</secondary>
1791       </indexterm>
1792
1793       <indexterm>
1794         <primary>cron-type server process</primary>
1795
1796         <secondary>used to automate volume backup</secondary>
1797       </indexterm>
1798     </sect2>
1799
1800     <sect2 id="HDRWQ203">
1801       <title>Automating Creation of Backup Volumes</title>
1802
1803       <para>Most cells find that it is best to make a new backup version of relevant volumes each day. It is best to create the
1804       backup versions at a time when usage is low, because the backup operation causes the read/write volume to be unavailable
1805       momentarily.</para>
1806
1807       <para>You can either issue the necessary the <emphasis role="bold">vos backupsys</emphasis> or <emphasis role="bold">vos
1808       backup</emphasis> commands at the console or create a <emphasis role="bold">cron</emphasis> entry in the <emphasis
1809       role="bold">BosConfig</emphasis> file on a file server machine, which eliminates the need for an administrator to initiate the
1810       backup operation.</para>
1811
1812       <para>The following example command creates a <emphasis role="bold">cron</emphasis> process called <emphasis
1813       role="bold">backupusers</emphasis> in the <emphasis role="bold">/usr/afs/local/BosConfig</emphasis> file on the machine
1814       <emphasis role="bold">fs3.abc.com</emphasis>. The process runs every day at 1:00 a.m. to create a backup version of every
1815       volume in the cell whose name starts with the string <emphasis role="bold">user</emphasis>. The <emphasis
1816       role="bold">-localauth</emphasis> flag enables the process to invoke the privileged <emphasis role="bold">vos
1817       backupsys</emphasis> command while unauthenticated. Note that the <emphasis role="bold">-cmd</emphasis> argument specifies a
1818       complete pathname for the <emphasis role="bold">vos</emphasis> binary, because the PATH environment variable for the BOS
1819       Server (running as the local superuser <emphasis role="bold">root</emphasis>) generally does not include the path to AFS
1820       binaries. <programlisting>
1821    % <emphasis role="bold">bos create fs3.abc.com backupusers cron</emphasis>\ 
1822   <emphasis role="bold">-cmd "/usr/afs/bin/vos backupsys -prefix user -localauth" "1:00"</emphasis>
1823 </programlisting></para>
1824
1825       <indexterm>
1826         <primary>mounting</primary>
1827
1828         <secondary>backup volume</secondary>
1829       </indexterm>
1830
1831       <indexterm>
1832         <primary>backup volume</primary>
1833
1834         <secondary>mounting</secondary>
1835       </indexterm>
1836
1837       <indexterm>
1838         <primary>OldFiles directory</primary>
1839
1840         <secondary>as mount point for backup volume</secondary>
1841       </indexterm>
1842     </sect2>
1843
1844     <sect2 id="HDRWQ204">
1845       <title>Making the Contents of Backup Volumes Available to Users</title>
1846
1847       <para>As noted, a backup volume preserves the state of the read/write source at the time the backup is created. Many cells
1848       choose to mount backup volumes so that users can access and restore data they have accidentally deleted or changed since the
1849       last backup was made, without having to request help from administrators. The most sensible place to mount the backup version
1850       of a user volume is at a subdirectory of the user's home directory. Suitable names for this directory include <emphasis
1851       role="bold">OldFiles</emphasis> and <emphasis role="bold">Backup</emphasis>. The subdirectory looks just like the user's own
1852       home directory as it was at the time the backup was created, with all files and subdirectories in the same relative
1853       positions.</para>
1854
1855       <para>If you do create and mount backup volumes for your users, inform users of their existence. The <emphasis> OpenAFS User
1856       Guide</emphasis> does not mention backup volumes because making them available to users is optional. Explain to users how
1857       often you make a new backup, so they know what they can recover. Remind them also that the data in their backup volume cannot
1858       change; however, they can use the standard UNIX <emphasis role="bold">cp</emphasis> command to copy it into their home volume
1859       and modify it there. Reassure users that the data in their backup volumes does not count against their read/write volume
1860       quota.</para>
1861     </sect2>
1862
1863     <sect2 id="HDRWQ205">
1864       <title>To create and mount a backup volume</title>
1865
1866       <orderedlist>
1867         <listitem>
1868           <para>Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, issue
1869           the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To
1870           display the users in the UserList file</link>. <programlisting>
1871    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
1872 </programlisting></para>
1873         </listitem>
1874
1875         <listitem>
1876           <para>Verify that you have the <emphasis role="bold">insert</emphasis>( <emphasis role="bold">i</emphasis>) and <emphasis
1877           role="bold">administer</emphasis>( <emphasis role="bold">a</emphasis>) permissions on the ACL of the directory in which
1878           you wish to mount the volume. If necessary, issue the <emphasis role="bold">fs listacl</emphasis> command, which is fully
1879           described in <link linkend="HDRWQ572">Displaying ACLs</link>. <programlisting>
1880    % <emphasis role="bold">fs listacl</emphasis> [&lt;<replaceable>dir/file path</replaceable>&gt;]
1881 </programlisting></para>
1882
1883           <para>Members of the <emphasis role="bold">system:administrators</emphasis> group always implicitly have the <emphasis
1884           role="bold">a</emphasis>( <emphasis role="bold">administer</emphasis>) and by default also the <emphasis
1885           role="bold">l</emphasis>( <emphasis role="bold">lookup</emphasis>) permission on every ACL and can use the <emphasis
1886           role="bold">fs setacl</emphasis> command to grant other rights as necessary.</para>
1887
1888           <indexterm>
1889             <primary>commands</primary>
1890
1891             <secondary>vos backup</secondary>
1892           </indexterm>
1893
1894           <indexterm>
1895             <primary>vos commands</primary>
1896
1897             <secondary>backup</secondary>
1898           </indexterm>
1899         </listitem>
1900
1901         <listitem>
1902           <para><anchor id="LIWQ206" />Issue the <emphasis role="bold">vos backup</emphasis> command to create a backup version of a
1903           read/write source volume. The message shown confirms the success of the backup operation. <programlisting>
1904    % <emphasis role="bold">vos backup</emphasis> &lt;<replaceable>volume name or ID</replaceable>&gt; Created backup volume for volume name or ID
1905 </programlisting></para>
1906
1907           <para>where <variablelist>
1908               <varlistentry>
1909                 <term><emphasis role="bold">backup</emphasis></term>
1910
1911                 <listitem>
1912                   <para>Must be typed in full.</para>
1913                 </listitem>
1914               </varlistentry>
1915
1916               <varlistentry>
1917                 <term><emphasis role="bold">volume name or ID</emphasis></term>
1918
1919                 <listitem>
1920                   <para>Identifies the read/write volume to back up, either by its complete name or volume ID number. The backup
1921                   volume has the same name with the addition of the <emphasis role="bold">.backup</emphasis> extension. It has its
1922                   own volume ID number.</para>
1923                 </listitem>
1924               </varlistentry>
1925             </variablelist></para>
1926
1927           <indexterm>
1928             <primary>commands</primary>
1929
1930             <secondary>fs mkmount</secondary>
1931
1932             <tertiary>when mounting backup volume</tertiary>
1933           </indexterm>
1934
1935           <indexterm>
1936             <primary>fs commands</primary>
1937
1938             <secondary>mkmount</secondary>
1939
1940             <tertiary>when mounting backup volume</tertiary>
1941           </indexterm>
1942         </listitem>
1943
1944         <listitem>
1945           <para><anchor id="LIWQ207" /><emphasis role="bold">(Optional)</emphasis> Issue the <emphasis role="bold">fs
1946           mkmount</emphasis> to mount the backup volume. While this step is optional, Cache Managers cannot access the volume's
1947           contents if it is not mounted. <programlisting>
1948    % <emphasis role="bold">fs mkmount</emphasis> &lt;<replaceable>directory</replaceable>&gt; &lt;<replaceable>volume name</replaceable>&gt; <emphasis
1949                 role="bold">.backup</emphasis>
1950 </programlisting></para>
1951
1952           <para>where <variablelist>
1953               <varlistentry>
1954                 <term><emphasis role="bold">mk</emphasis></term>
1955
1956                 <listitem>
1957                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">mkmount</emphasis>.</para>
1958                 </listitem>
1959               </varlistentry>
1960
1961               <varlistentry>
1962                 <term><emphasis role="bold">directory</emphasis></term>
1963
1964                 <listitem>
1965                   <para>Names the mount point to create. Do not create a file or directory of the same name beforehand. Partial
1966                   pathnames are interpreted relative to the current working directory. For the backup version of a user volume, the
1967                   conventional location is the user's home directory.</para>
1968                 </listitem>
1969               </varlistentry>
1970
1971               <varlistentry>
1972                 <term><emphasis role="bold">volume name</emphasis>.backup</term>
1973
1974                 <listitem>
1975                   <para>Is the full name of the backup volume.</para>
1976                 </listitem>
1977               </varlistentry>
1978             </variablelist></para>
1979         </listitem>
1980
1981         <listitem>
1982           <para><emphasis role="bold">(Optional)</emphasis> Issue the <emphasis role="bold">fs lsmount</emphasis> command to verify
1983           that the mount point refers to the correct volume. Complete instructions appear in <link linkend="HDRWQ211">To display a
1984           mount point</link>. <programlisting>
1985    % <emphasis role="bold">fs lsmount</emphasis> &lt;<replaceable>directory</replaceable>&gt;
1986 </programlisting></para>
1987         </listitem>
1988       </orderedlist>
1989
1990       <indexterm>
1991         <primary>commands</primary>
1992
1993         <secondary>vos backupsys</secondary>
1994       </indexterm>
1995
1996       <indexterm>
1997         <primary>vos commands</primary>
1998
1999         <secondary>backupsys</secondary>
2000       </indexterm>
2001     </sect2>
2002
2003     <sect2 id="Header_223">
2004       <title>To create multiple backup volumes at once</title>
2005
2006       <orderedlist>
2007         <listitem>
2008           <para>Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, issue
2009           the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To
2010           display the users in the UserList file</link>. <programlisting>
2011    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
2012 </programlisting></para>
2013         </listitem>
2014
2015         <listitem>
2016           <para>Issue the <emphasis role="bold">vos backupsys</emphasis> command to create a backup version of every read/write
2017           volume that shares the same prefix or site. The effects of combining the three arguments are described in <link
2018           linkend="HDRWQ202">Backing Up Multiple Volumes at Once</link>. <programlisting>
2019    % <emphasis role="bold">vos backupsys</emphasis> [<emphasis role="bold">-prefix</emphasis> &lt;<replaceable>common prefix on volume(s)</replaceable>&gt;+] \ 
2020         [<emphasis role="bold">-server</emphasis> &lt;<replaceable>machine name</replaceable>&gt;] [<emphasis role="bold">-partition</emphasis> &lt;<replaceable>partition name</replaceable>&gt;] \
2021         [<emphasis role="bold">-exclude</emphasis>] [<emphasis role="bold">-xprefix</emphasis> &lt;<replaceable>negative prefix on volume(s)</replaceable>&gt;+] \
2022         [<emphasis role="bold">-dryrun</emphasis>] [<emphasis role="bold">-verbose</emphasis>]
2023 </programlisting></para>
2024
2025           <para>where <variablelist>
2026               <varlistentry>
2027                 <term><emphasis role="bold">backups</emphasis></term>
2028
2029                 <listitem>
2030                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">backupsys</emphasis>.</para>
2031                 </listitem>
2032               </varlistentry>
2033
2034               <varlistentry>
2035                 <term><emphasis role="bold">-prefix</emphasis></term>
2036
2037                 <listitem>
2038                   <para>Specifies one or more simple character strings or regular expressions of any length; a volume whose name
2039                   includes the string is placed on the list of volumes to be cloned. Include field separators (such as periods) if
2040                   appropriate. This argument can be combined with any combination of the <emphasis role="bold">-server</emphasis>,
2041                   <emphasis role="bold">-partition</emphasis>, <emphasis role="bold">-exclude</emphasis>, and <emphasis
2042                   role="bold">-xprefix</emphasis> options.</para>
2043                 </listitem>
2044               </varlistentry>
2045
2046               <varlistentry>
2047                 <term><emphasis role="bold">-server</emphasis></term>
2048
2049                 <listitem>
2050                   <para>Specifies the file server machine housing the volumes to backup. Can be combined with any combination of the
2051                   <emphasis role="bold">-prefix</emphasis>, <emphasis role="bold">-partition</emphasis>, <emphasis
2052                   role="bold">-exclude</emphasis>, and <emphasis role="bold">-xprefix</emphasis> options.</para>
2053                 </listitem>
2054               </varlistentry>
2055
2056               <varlistentry>
2057                 <term><emphasis role="bold">-partition</emphasis></term>
2058
2059                 <listitem>
2060                   <para>Specifies the partition housing the volumes you wish to backup. Can be combined with any combination of the
2061                   <emphasis role="bold">-prefix</emphasis>, <emphasis role="bold">-server</emphasis>, <emphasis
2062                   role="bold">-exclude</emphasis>, and <emphasis role="bold">-xprefix</emphasis> options.</para>
2063                 </listitem>
2064               </varlistentry>
2065
2066               <varlistentry>
2067                 <term><emphasis role="bold">-exclude</emphasis></term>
2068
2069                 <listitem>
2070                   <para>Indicates that all volumes except those indicated with the <emphasis role="bold">-prefix</emphasis> argument
2071                   are to be backed up. The <emphasis role="bold">-prefix</emphasis> argument must be provided along with this one.
2072                   Can also be combined with any combination of the <emphasis role="bold">-prefix</emphasis>, <emphasis
2073                   role="bold">-server</emphasis>, and <emphasis role="bold">-partition</emphasis> arguments; or with both the
2074                   <emphasis role="bold">-prefix</emphasis> and <emphasis role="bold">-xprefix</emphasis> arguments, but not with the
2075                   <emphasis role="bold">-xprefix</emphasis> argument alone.</para>
2076                 </listitem>
2077               </varlistentry>
2078
2079               <varlistentry>
2080                 <term><emphasis role="bold">-xprefix</emphasis></term>
2081
2082                 <listitem>
2083                   <para>Specifies one or more simple character strings or regular expressions of any length; a volume whose name
2084                   does not include the string is placed on the list of volumes to be cloned. Can be combined with any combination of
2085                   the <emphasis role="bold">-prefix</emphasis>, <emphasis role="bold">-server</emphasis>, and <emphasis
2086                   role="bold">-partition</emphasis> arguments; in addition, it can be combined with both the <emphasis
2087                   role="bold">-prefix</emphasis> and <emphasis role="bold">-exclude</emphasis> options, but not with the <emphasis
2088                   role="bold">-exclude</emphasis> flag alone.</para>
2089                 </listitem>
2090               </varlistentry>
2091
2092               <varlistentry>
2093                 <term><emphasis role="bold">-dryrun</emphasis></term>
2094
2095                 <listitem>
2096                   <para>Displays on the standard output stream a list of the volumes to be cloned, without actually cloning
2097                   them.</para>
2098                 </listitem>
2099               </varlistentry>
2100
2101               <varlistentry>
2102                 <term><emphasis role="bold">-verbose</emphasis></term>
2103
2104                 <listitem>
2105                   <para>Displays on the standard output stream a statement that summarizes the criteria being used to select
2106                   volumes, if combined with the <emphasis role="bold">-dryrun</emphasis> flag; otherwise, traces the cloning
2107                   operation for each volume.</para>
2108                 </listitem>
2109               </varlistentry>
2110             </variablelist></para>
2111         </listitem>
2112       </orderedlist>
2113     </sect2>
2114   </sect1>
2115
2116   <sect1 id="HDRWQ208">
2117     <title>Mounting Volumes</title>
2118
2119     <indexterm>
2120       <primary>mounting</primary>
2121
2122       <secondary>volume</secondary>
2123
2124       <tertiary>general instructions</tertiary>
2125     </indexterm>
2126
2127     <para>Mount points make the contents of AFS volumes visible and accessible in the AFS filespace, as described in <link
2128     linkend="HDRWQ183">About Mounting Volumes</link>. This section discusses in more detail how the Cache Manager handles mount
2129     points as it traverses the filespace. It describes the three types of mount points, their purposes, and how to distinguish
2130     between them, and provides instructions for creating, removing, and examining mount points.</para>
2131
2132     <sect2 id="HDRWQ209">
2133       <title>The Rules of Mount Point Traversal</title>
2134
2135       <para>The Cache Manager observes three basic rules as it traverses the AFS filespace and encounters mount points:
2136       <itemizedlist>
2137           <listitem>
2138             <para><emphasis role="bold">Rule 1:</emphasis> Access Backup and Read-only Volumes When Specified</para>
2139
2140             <para>When the Cache Manager encounters a mount point that specifies a volume with either a <emphasis
2141             role="bold">.readonly</emphasis> or a <emphasis role="bold">.backup</emphasis> extension, it accesses that type of
2142             volume only. If a mount point does not have either a <emphasis role="bold">.backup</emphasis> or <emphasis
2143             role="bold">.readonly</emphasis> extension, the Cache Manager uses Rules 2 and 3.</para>
2144
2145             <para>For example, the Cache Manager never accesses the read/write version of a volume if the mount point names the
2146             backup version. If the specified version is inaccessible, the Cache Manager reports an error.</para>
2147           </listitem>
2148
2149           <listitem>
2150             <para><emphasis role="bold">Rule 2:</emphasis> Follow the Read-only Path When Possible</para>
2151
2152             <para>If a mount point resides in a read-only volume and the volume that it references is replicated, the Cache Manager
2153             attempts to access a read-only copy of the volume; if the referenced volume is not replicated, the Cache Manager
2154             accesses the read/write copy. The Cache Manager is thus said to prefer a <emphasis>read-only</emphasis> path through the
2155             filespace, accessing read-only volumes when they are available.</para>
2156
2157             <para>The Cache Manager starts on the read-only path in the first place because it always accesses a read-only copy of
2158             the <emphasis role="bold">root.afs</emphasis> volume if it exists; the volume is mounted at the root of a cell's AFS
2159             filespace (named <emphasis role="bold">/afs</emphasis> by convention). That is, if the <emphasis
2160             role="bold">root.afs</emphasis> volume is replicated, the Cache Manager attempts to access a read-only copy of it rather
2161             than the read/write copy. This rule then keeps the Cache Manager on a read-only path as long as each successive volume
2162             is replicated. The implication is that both the <emphasis role="bold">root.afs</emphasis> and <emphasis
2163             role="bold">root.cell</emphasis> volumes must be replicated for the Cache Manager to access replicated volumes mounted
2164             below them in the AFS filespace. The volumes are conventionally mounted at the <emphasis role="bold">/afs</emphasis> and
2165             <emphasis role="bold">/afs/</emphasis><replaceable>cellname</replaceable> directories, respectively.</para>
2166           </listitem>
2167
2168           <listitem>
2169             <para><emphasis role="bold">Rule 3:</emphasis> Once on a Read/write Path, Stay There</para>
2170
2171             <para>If a mount point resides in a read/write volume and the volume name does not have a <emphasis
2172             role="bold">.readonly</emphasis> or a <emphasis role="bold">.backup</emphasis> extension, the Cache Manager attempts to
2173             access only the a read/write version of the volume. The access attempt fails with an error if the read/write version is
2174             inaccessible, even if a read-only version is accessible. In this situation the Cache Manager is said to be on a
2175             <emphasis>read/write path</emphasis> and cannot switch back to the read-only path unless mount point explicitly names a
2176             volume with a <emphasis role="bold">.readonly</emphasis> extension. (Cellular mount points are an important exception to
2177             this rule, as explained in the following discussion.</para>
2178           </listitem>
2179         </itemizedlist></para>
2180     </sect2>
2181
2182     <sect2 id="HDRWQ210">
2183       <title>The Three Types of Mount Points</title>
2184
2185       <para>AFS uses three types of mount points, each appropriate for a different purpose because of how the Cache Manager handles
2186       them. <itemizedlist>
2187           <listitem>
2188             <para>When the Cache Manager crosses a <emphasis>regular</emphasis> mount point, it obeys all three of the mount point
2189             traversal rules previously described.</para>
2190
2191             <indexterm>
2192               <primary>regular mount point</primary>
2193
2194               <secondary></secondary>
2195
2196               <see>mount point</see>
2197             </indexterm>
2198
2199             <indexterm>
2200               <primary>mount point</primary>
2201
2202               <secondary>regular</secondary>
2203
2204               <tertiary>described</tertiary>
2205             </indexterm>
2206
2207             <para>AFS performs best when the vast majority of mount points in the filespace are regular, because the mount point
2208             traversal rules promote the most efficient use of both replicated and nonreplicated volumes. Because there are likely to
2209             be multiple read-only copies of a replicated volume, it makes sense for the Cache Manager to access one of them rather
2210             than the single read/write version, and the second rule leads it to do so. If a volume is not replicated, the third rule
2211             means that the Cache Manager still accesses the read/write volume when that is the only type available. In other words,
2212             a regular mount point does not force the Cache Manager always to access read-only volumes (it is explicitly not a
2213             "read-only mount point").</para>
2214
2215             <para>To create a regular mount point, use the <emphasis role="bold">fs mkmount</emphasis> command as described in <link
2216             linkend="HDRWQ212">To create a regular or read/write mount point</link>.</para>
2217
2218             <note>
2219               <para>To enable the Cache Manager to access the read-only version of a replicated volume named by a regular mount
2220               point, all volumes that are mounted above it in the pathname must also be replicated. That is the only way the Cache
2221               Manager can stay on a read-only path to the target volume.</para>
2222             </note>
2223           </listitem>
2224
2225           <listitem>
2226             <para>When the Cache Manager crosses a <emphasis>read/write</emphasis> mount point, it attempts to access only the
2227             volume version named in the mount point. If the volume name is the base (read/write) form, without a <emphasis
2228             role="bold">.readonly</emphasis> or <emphasis role="bold">.backup</emphasis> extension, the Cache Manager accesses the
2229             read/write version of the volume, even if it is replicated. In other words, the Cache Manager disregards the second
2230             mount point traversal rule when crossing a read/write mount point: it switches to the read/write path through the
2231             filespace.</para>
2232
2233             <indexterm>
2234               <primary>read/write mount point</primary>
2235
2236               <secondary></secondary>
2237
2238               <see>mount point</see>
2239             </indexterm>
2240
2241             <indexterm>
2242               <primary>mount point</primary>
2243
2244               <secondary>read/write</secondary>
2245
2246               <tertiary>described</tertiary>
2247             </indexterm>
2248
2249             <para>It is conventional to create only one read/write mount point in a cell's filespace, using it to mount the cell's
2250             <emphasis role="bold">root.cell</emphasis> volume just below the AFS filespace root (by convention, <emphasis
2251             role="bold">/afs/.</emphasis><replaceable>cellname</replaceable>). As indicated, it is conventional to place a period at
2252             the start of the read/write mount point's name (for example, <emphasis role="bold">/afs/.abc.com</emphasis>). The period
2253             distinguishes the read/write mount point from the regular mount point for the <emphasis role="bold">root.cell</emphasis>
2254             volume at the same level. This is the only case in which it is conventional to create two mount points for the same
2255             volume. A desirable side effect of this naming convention for this read/write mount point is that it does not appear in
2256             the output of the UNIX <emphasis role="bold">ls</emphasis> command unless the <emphasis role="bold">-a</emphasis> flag
2257             is included, essentially hiding it from regular users who have no use for it.</para>
2258
2259             <para>The existence of a single read/write mount point at this point in the filespace provides access to the read/write
2260             version of every volume when necessary, because it puts the Cache Manager on a read/write path right at the top of the
2261             filespace. At the same time, the regular mount point for the <emphasis role="bold">root.cell</emphasis> volume puts the
2262             Cache Manager on a read-only path most of the time.</para>
2263
2264             <para>Using a read/write mount point for a read-only or backup volume is acceptable, but unnecessary. The first rule of
2265             mount point traversal already specifies that the Cache Manager accesses them if the volume name in a regular mount point
2266             has a <emphasis role="bold">.readonly</emphasis> or <emphasis role="bold">.backup</emphasis> extension.</para>
2267
2268             <para>To create a read/write mount point, use the <emphasis role="bold">-rw</emphasis> flag on the <emphasis
2269             role="bold">fs mkmount</emphasis> command as described in <link linkend="HDRWQ212">To create a regular or read/write
2270             mount point</link>.</para>
2271           </listitem>
2272
2273           <listitem>
2274             <para>When the Cache Manager crosses a <emphasis>cellular</emphasis> mount point, it accesses the indicated volume in
2275             the specified cell, which is normally a foreign cell. (If the mount point does not name a cell along with the volume,
2276             the Cache Manager accesses the volume in the cell where the mount point resides.) When crossing a regular cellular mount
2277             point, the Cache Manager disregards the third mount point traversal rule. Instead, it accesses a read-only version of
2278             the volume if it is replicated, even if the volume that houses the mount point is read/write.</para>
2279
2280             <para>It is inappropriate to circumvent this behavior by creating a read/write cellular mount point, because traversing
2281             the read/write path imposes an unfair load on the foreign cell's file server machines. The File Server must issue a
2282             callback for each file fetched from the read/write volume, rather than single callback required for a read-only volume.
2283             In any case, only a cell's own administrators generally need to access the read/write versions of replicated
2284             volumes.</para>
2285
2286             <indexterm>
2287               <primary>cellular mount point</primary>
2288
2289               <secondary></secondary>
2290
2291               <see>mount point</see>
2292             </indexterm>
2293
2294             <indexterm>
2295               <primary>mount point</primary>
2296
2297               <secondary>cellular</secondary>
2298
2299               <tertiary>described</tertiary>
2300             </indexterm>
2301
2302             <indexterm>
2303               <primary>mounting</primary>
2304
2305               <secondary>foreign volume in local cell</secondary>
2306             </indexterm>
2307
2308             <para>It is conventional to create cellular mount points only at the second level in a cell's filespace, using them to
2309             mount foreign cells' <emphasis role="bold">root.cell</emphasis> volumes just below the AFS filespace root (by
2310             convention, at <emphasis role="bold">/afs/</emphasis><replaceable>foreign_cellname</replaceable>). The mount point
2311             enables local users to access the foreign cell's filespace, assuming they have the necessary permissions on the ACL of
2312             the volume's root directory and that there is an entry for the foreign cell in each local client machine's <emphasis
2313             role="bold">/usr/vice/etc/CellServDB</emphasis> file, as described in <link linkend="HDRWQ406">Maintaining Knowledge of
2314             Database Server Machines</link>.</para>
2315
2316             <para>Creating cellular mount points at other levels in the filespace and mounting foreign volumes other than the
2317             <emphasis role="bold">root.cell</emphasis> volume is not generally appropriate. It can be confusing to users if the
2318             Cache Manager switches between cells at various points in a pathname.</para>
2319
2320             <para>To create a regular cellular mount point, use the <emphasis role="bold">-cell</emphasis> argument to specify the
2321             cell name, as described in <link linkend="HDRWQ213">To create a cellular mount point</link>.</para>
2322           </listitem>
2323         </itemizedlist></para>
2324
2325       <para>To examine a mount point, use the <emphasis role="bold">fs lsmount</emphasis> command as described in <link
2326       linkend="HDRWQ211">To display a mount point</link>. The command's output uses distinct notation to identify regular,
2327       read/write, and cellular mount points. To remove a mount point, use the <emphasis role="bold">fs rmmount</emphasis> command as
2328       described in <link linkend="HDRWQ215">To remove a mount point</link>.</para>
2329     </sect2>
2330
2331     <sect2 id="Header_227">
2332       <title>Creating a mount point in a foreign cell</title>
2333
2334       <para>Creating a mount point in a foreign cell's filespace (as opposed to mounting a foreign volume in the local cell) is
2335       basically the same as creating a mount point in the local filespace. The differences are that the <emphasis role="bold">fs
2336       mkmount</emphasis> command's directory argument specifies a pathname in the foreign cell rather than the local cell, and you
2337       must have the required permissions on the ACL of the foreign directory where you are creating the mount point. The <emphasis
2338       role="bold">fs mkmount</emphasis> command's <emphasis role="bold">-cell</emphasis> argument always specifies the cell in which
2339       the volume resides, not the cell in which to create the mount point.</para>
2340     </sect2>
2341
2342     <sect2 id="HDRWQ211">
2343       <title>To display a mount point</title>
2344
2345       <indexterm>
2346         <primary>displaying</primary>
2347
2348         <secondary>mount point</secondary>
2349       </indexterm>
2350
2351       <indexterm>
2352         <primary>mount point</primary>
2353
2354         <secondary>displaying</secondary>
2355       </indexterm>
2356
2357       <indexterm>
2358         <primary>mount point</primary>
2359
2360         <secondary>distinguishing different types</secondary>
2361       </indexterm>
2362
2363       <indexterm>
2364         <primary>commands</primary>
2365
2366         <secondary>fs lsmount</secondary>
2367       </indexterm>
2368
2369       <indexterm>
2370         <primary>fs commands</primary>
2371
2372         <secondary>lsmount</secondary>
2373       </indexterm>
2374
2375       <orderedlist>
2376         <listitem>
2377           <para>Issue the <emphasis role="bold">fs lsmount</emphasis> command. <programlisting>
2378    % <emphasis role="bold">fs lsmount</emphasis> &lt;<replaceable>directory</replaceable>&gt;
2379 </programlisting></para>
2380
2381           <para>where <variablelist>
2382               <varlistentry>
2383                 <term><emphasis role="bold">ls</emphasis></term>
2384
2385                 <listitem>
2386                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">lsmount</emphasis>.</para>
2387                 </listitem>
2388               </varlistentry>
2389
2390               <varlistentry>
2391                 <term><emphasis role="bold">directory</emphasis></term>
2392
2393                 <listitem>
2394                   <para>Names the mount point to display.</para>
2395                 </listitem>
2396               </varlistentry>
2397             </variablelist></para>
2398         </listitem>
2399       </orderedlist>
2400
2401       <para>If the specified directory is a mount point, the output is of the following form:</para>
2402
2403       <programlisting>
2404    'directory' is a mount point for volume 'volume name'
2405 </programlisting>
2406
2407       <para>For a regular mount point, a number sign (<computeroutput>#</computeroutput>) precedes the volume name string, as in the
2408       following example command issued on a client machine in the <emphasis role="bold">abc.com</emphasis> cell.</para>
2409
2410       <programlisting>
2411    % <emphasis role="bold">fs lsmount /afs/abc.com/usr/terry</emphasis>
2412    '/afs/abc.com/usr/terry' is a mount point for volume '#user.terry'
2413 </programlisting>
2414
2415       <para>For a read/write mount point, a percent sign (<computeroutput>%</computeroutput>) precedes the volume name string, as in
2416       the following example command issued on a client machine in the <emphasis role="bold">abc.com</emphasis> cell. The cell's
2417       administrators have followed the convention of preceding the read/write mount point's name with a period.</para>
2418
2419       <programlisting>
2420    % <emphasis role="bold">fs lsmount /afs/.abc.com</emphasis>
2421    '/afs/.abc.com' is a mount point for volume '%root.cell'
2422 </programlisting>
2423
2424       <para>For a cellular mount point, a cell name and colon (<computeroutput>:</computeroutput>) follow the number or percent sign
2425       and precede the volume name string, as in the following example command issued on a client machine in the <emphasis
2426       role="bold">abc.com</emphasis> cell.</para>
2427
2428       <programlisting>
2429    % <emphasis role="bold">fs lsmount /afs/ghi.gov</emphasis>
2430    '/afs/ghi.gov' is a mount point for volume '#ghi.gov:root.cell'
2431 </programlisting>
2432
2433       <para>For a symbolic link to a mount point, the output is of the form shown in the following example command issued on a
2434       client machine in the <emphasis role="bold">abc.com</emphasis> cell.</para>
2435
2436       <programlisting>
2437    % <emphasis role="bold">fs lsmount /afs/abc</emphasis>
2438    '/afs/abc' is a symbolic link, leading to a mount point for volume '#root.cell'
2439 </programlisting>
2440
2441       <para>If the directory is not a mount point or is not in AFS, the output reads as follows.</para>
2442
2443       <programlisting>
2444    'directory' is not a mount point.
2445 </programlisting>
2446
2447       <para>If the output is garbled, it is possible that the mount point has become corrupted in the local cache. Use the <emphasis
2448       role="bold">fs flushmount</emphasis> command as described in <link linkend="HDRWQ413">To flush one or more mount
2449       points</link>. This forces the Cache Manager to refetch the mount point.</para>
2450     </sect2>
2451
2452     <sect2 id="HDRWQ212">
2453       <title>To create a regular or read/write mount point</title>
2454
2455       <indexterm>
2456         <primary>creating</primary>
2457
2458         <secondary>read/write or regular mount point</secondary>
2459       </indexterm>
2460
2461       <indexterm>
2462         <primary>mount point</primary>
2463
2464         <secondary>creating read/write or regular</secondary>
2465       </indexterm>
2466
2467       <indexterm>
2468         <primary>mount point</primary>
2469
2470         <secondary>regular</secondary>
2471
2472         <tertiary>creating</tertiary>
2473       </indexterm>
2474
2475       <indexterm>
2476         <primary>mount point</primary>
2477
2478         <secondary>read/write</secondary>
2479
2480         <tertiary>creating</tertiary>
2481       </indexterm>
2482
2483       <indexterm>
2484         <primary>commands</primary>
2485
2486         <secondary>fs mkmount</secondary>
2487
2488         <tertiary>general instructions</tertiary>
2489       </indexterm>
2490
2491       <indexterm>
2492         <primary>fs commands</primary>
2493
2494         <secondary>mkmount</secondary>
2495
2496         <tertiary>general instructions</tertiary>
2497       </indexterm>
2498
2499       <orderedlist>
2500         <listitem>
2501           <para>Verify that you have the <emphasis role="bold">i</emphasis>( <emphasis role="bold">insert</emphasis>) and <emphasis
2502           role="bold">a</emphasis>( <emphasis role="bold">administer</emphasis>) permissions on the ACL of the directory where you
2503           are placing the mount point. If necessary, issue the <emphasis role="bold">fs listacl</emphasis> command, which is fully
2504           described in <link linkend="HDRWQ572">Displaying ACLs</link>. <programlisting>
2505    % <emphasis role="bold">fs listacl</emphasis> [&lt;<replaceable>dir/file path</replaceable>&gt;]
2506 </programlisting></para>
2507         </listitem>
2508
2509         <listitem>
2510           <para>Issue the <emphasis role="bold">fs mkmount</emphasis> command to create the mount point. Include the <emphasis
2511           role="bold">-rw</emphasis> flag if creating a read/write mount point. <programlisting>
2512    % <emphasis role="bold">fs mkmount</emphasis> &lt;<replaceable>directory</replaceable>&gt; &lt;<replaceable>volume name</replaceable>&gt; [<emphasis
2513                 role="bold">-rw</emphasis>]
2514 </programlisting></para>
2515
2516           <para>where <variablelist>
2517               <varlistentry>
2518                 <term><emphasis role="bold">mk</emphasis></term>
2519
2520                 <listitem>
2521                   <para>Is the shortest acceptable abbreviation for <emphasis role="bold">mkmount</emphasis>.</para>
2522                 </listitem>
2523               </varlistentry>
2524
2525               <varlistentry>
2526                 <term><emphasis role="bold">directory</emphasis></term>
2527
2528                 <listitem>
2529                   <para>Names the mount point to create. A file or directory with the same name cannot already exist. A partial
2530                   pathname is interpreted relative to the current working directory.</para>
2531
2532                   <para>Specify the read/write path to the mount point, to avoid the failure that results when you attempt to create
2533                   a new mount point in a read-only volume. By convention, you indicate the read/write path by placing a period
2534                   before the cell name at the pathname's second level (for example, <emphasis role="bold">/afs/.abc.com</emphasis>).
2535                   For further discussion of the concept of read/write and read-only paths through the filespace, see <link
2536                   linkend="HDRWQ209">The Rules of Mount Point Traversal</link>.</para>
2537                 </listitem>
2538               </varlistentry>
2539
2540               <varlistentry>
2541                 <term><emphasis role="bold">volume name</emphasis></term>
2542
2543                 <listitem>
2544                   <para>Specifies the volume's full name, including the <emphasis role="bold">.backup</emphasis> or <emphasis
2545                   role="bold">.readonly</emphasis> extension for a backup or read-only volume, if appropriate.</para>
2546                 </listitem>
2547               </varlistentry>
2548
2549               <varlistentry>
2550                 <term><emphasis role="bold">-rw</emphasis></term>
2551
2552                 <listitem>
2553                   <para>Creates a read/write mount point.</para>
2554                 </listitem>
2555               </varlistentry>
2556             </variablelist></para>
2557         </listitem>
2558       </orderedlist>
2559     </sect2>
2560
2561     <sect2 id="HDRWQ213">
2562       <title>To create a cellular mount point</title>
2563
2564       <indexterm>
2565         <primary>creating</primary>
2566
2567         <secondary>cellular mount point</secondary>
2568       </indexterm>
2569
2570       <indexterm>
2571         <primary>mount point</primary>
2572
2573         <secondary>creating cellular</secondary>
2574       </indexterm>
2575
2576       <indexterm>
2577         <primary>mount point</primary>
2578
2579         <secondary>cellular</secondary>
2580
2581         <tertiary>creating</tertiary>
2582       </indexterm>
2583
2584       <orderedlist>
2585         <listitem>
2586           <para>Verify that you have the <emphasis role="bold">i</emphasis>( <emphasis role="bold">insert</emphasis>) and <emphasis
2587           role="bold">a</emphasis>( <emphasis role="bold">administer</emphasis>) permissions on the ACL of the directory where you
2588           are placing the mount point. If necessary, issue the <emphasis role="bold">fs listacl</emphasis> command, which is fully
2589           described in <link linkend="HDRWQ572">Displaying ACLs</link>. <programlisting>
2590    % <emphasis role="bold">fs listacl</emphasis> [&lt;<replaceable>dir/file path</replaceable>&gt;]
2591 </programlisting></para>
2592         </listitem>
2593
2594         <listitem>
2595           <para><anchor id="LIWQ214" />If you are mounting one or more foreign cells' <emphasis role="bold">root.cell</emphasis>
2596           volume at the second level in your filespace and your cell's <emphasis role="bold">root.afs</emphasis> volume is
2597           replicated, you must create a temporary mount point for the <emphasis role="bold">root.afs</emphasis> volume's read/write
2598           version in a directory on which the ACL grants you the <emphasis role="bold">i</emphasis> and <emphasis
2599           role="bold">a</emphasis> permissions. The following command creates a mount point called <emphasis
2600           role="bold">new_cells</emphasis> in your cell's <emphasis role="bold">/afs/.</emphasis><replaceable>cellname</replaceable>
2601           directory (the entry point to the read/write path in your cell).</para>
2602
2603           <para>Substitute your cell's name for cellname.</para>
2604
2605           <programlisting>
2606    % <emphasis role="bold">cd /afs/.</emphasis><replaceable>cellname</replaceable>
2607    % <emphasis role="bold">fs mkmount new_cells root.afs</emphasis>
2608    % <emphasis role="bold">cd new_cells</emphasis>
2609 </programlisting>
2610         </listitem>
2611
2612         <listitem>
2613           <para>Issue the <emphasis role="bold">fs mkmount</emphasis> command with the <emphasis role="bold">-cell</emphasis>
2614           argument to create a cellular mount point. Repeat the command for each cellular mount point as required. <programlisting>
2615    % <emphasis role="bold">fs mkmount</emphasis> &lt;<replaceable>directory</replaceable>&gt; &lt;<replaceable>volume name</replaceable>&gt; <emphasis
2616                 role="bold">-cell</emphasis> &lt;<replaceable>cell name</replaceable>&gt;
2617 </programlisting></para>
2618
2619           <para>where <variablelist>
2620               <varlistentry>
2621                 <term><emphasis role="bold">mk</emphasis></term>
2622
2623                 <listitem>
2624                   <para>Is the shortest acceptable abbreviation for <emphasis role="bold">mkmount</emphasis>.</para>
2625                 </listitem>
2626               </varlistentry>
2627
2628               <varlistentry>
2629                 <term><emphasis role="bold">directory</emphasis></term>
2630
2631                 <listitem>
2632                   <para>Names the mount point to create. A file or directory with the same name cannot already exist. A partial
2633                   pathname is interpreted relative to the current working directory. If you are mounting a foreign cell's <emphasis
2634                   role="bold">root.cell</emphasis> volume, the standard value for this argument is the cell's complete Internet
2635                   domain name.</para>
2636                 </listitem>
2637               </varlistentry>
2638
2639               <varlistentry>
2640                 <term><emphasis role="bold">volume name</emphasis></term>
2641
2642                 <listitem>
2643                   <para>Specifies the volume's full name, usually <emphasis role="bold">root.cell</emphasis> for a cellular mount
2644                   point.</para>
2645                 </listitem>
2646               </varlistentry>
2647
2648               <varlistentry>
2649                 <term><emphasis role="bold">-cell</emphasis></term>
2650
2651                 <listitem>
2652                   <para>Specifies the complete Internet domain name of the cell in which the volume resides.</para>
2653                 </listitem>
2654               </varlistentry>
2655             </variablelist></para>
2656         </listitem>
2657
2658         <listitem>
2659           <para>If you performed the instructions in Step <link linkend="LIWQ214">2</link>, issue the <emphasis role="bold">vos
2660           release</emphasis> command to release the new version of the <emphasis role="bold">root.afs</emphasis> volume to its
2661           read-only sites. (This command requires that you be listed in your cell's <emphasis
2662           role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, verify by issuing the <emphasis role="bold">bos
2663           listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To display the users in the UserList
2664           file</link>.)</para>
2665
2666           <para>Also issue the <emphasis role="bold">fs checkvolumes</emphasis> command to force the local Cache Manager to access
2667           the new replica of the <emphasis role="bold">root.afs</emphasis> volume. If desired, you can also remove the temporary
2668           <emphasis role="bold">new_cells</emphasis> mount point from the <emphasis
2669           role="bold">/afs/.</emphasis><replaceable>cellname</replaceable> directory.</para>
2670
2671           <programlisting>
2672    % <emphasis role="bold">vos release root.afs</emphasis>
2673    % <emphasis role="bold">fs checkvolumes</emphasis>
2674    % <emphasis role="bold">cd /afs/.</emphasis><replaceable>cellname</replaceable>
2675    % <emphasis role="bold">fs rmmount new_cells</emphasis>
2676 </programlisting>
2677
2678           <para>For your users to access a newly mounted foreign cell, you must also create an entry for it in each client machine's
2679           local <emphasis role="bold">/usr/vice/etc/CellServDB</emphasis> file and either reboot the machine or use the <emphasis
2680           role="bold">fs newcell</emphasis> command to insert the entry directly into its kernel memory. See the instructions in
2681           <link linkend="HDRWQ406">Maintaining Knowledge of Database Server Machines</link>.</para>
2682         </listitem>
2683       </orderedlist>
2684     </sect2>
2685
2686     <sect2 id="HDRWQ215">
2687       <title>To remove a mount point</title>
2688
2689       <indexterm>
2690         <primary>removing</primary>
2691
2692         <secondary>mount point</secondary>
2693       </indexterm>
2694
2695       <indexterm>
2696         <primary>unmounting</primary>
2697
2698         <secondary>volume</secondary>
2699       </indexterm>
2700
2701       <indexterm>
2702         <primary>mount point</primary>
2703
2704         <secondary>removing</secondary>
2705       </indexterm>
2706
2707       <indexterm>
2708         <primary>commands</primary>
2709
2710         <secondary>fs rmmount</secondary>
2711       </indexterm>
2712
2713       <indexterm>
2714         <primary>fs commands</primary>
2715
2716         <secondary>rmmount</secondary>
2717       </indexterm>
2718
2719       <orderedlist>
2720         <listitem>
2721           <para>Verify that you have the <emphasis role="bold">d</emphasis>( <emphasis role="bold">delete</emphasis>) permission on
2722           the ACL of the directory from which you are removing the mount point. If necessary, issue the <emphasis role="bold">fs
2723           listacl</emphasis> command, which is fully described in <link linkend="HDRWQ572">Displaying ACLs</link>. <programlisting>
2724    % <emphasis role="bold">fs listacl</emphasis> [&lt;<replaceable>dir/file path</replaceable>&gt;]
2725 </programlisting></para>
2726
2727           <para>Members of the <emphasis role="bold">system:administrators</emphasis> group always implicitly have the <emphasis
2728           role="bold">a</emphasis>( <emphasis role="bold">administer</emphasis>) and by default also the <emphasis
2729           role="bold">l</emphasis>( <emphasis role="bold">lookup</emphasis>) permission on every ACL and can use the <emphasis
2730           role="bold">fs setacl</emphasis> command to grant other rights as necessary.</para>
2731         </listitem>
2732
2733         <listitem>
2734           <para>Issue the <emphasis role="bold">fs rmmount</emphasis> command to remove the mount point. The volume still exists,
2735           but its contents are inaccessible if this is the only mount point for it. <programlisting>
2736    % <emphasis role="bold">fs rmmount</emphasis> &lt;<replaceable>directory</replaceable>&gt;
2737 </programlisting></para>
2738
2739           <para>where <variablelist>
2740               <varlistentry>
2741                 <term><emphasis role="bold">rm</emphasis></term>
2742
2743                 <listitem>
2744                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">rmmount</emphasis>.</para>
2745                 </listitem>
2746               </varlistentry>
2747
2748               <varlistentry>
2749                 <term><emphasis role="bold">directory</emphasis></term>
2750
2751                 <listitem>
2752                   <para>Names the mount point to remove. A partial pathname is interpreted relative to the current working
2753                   directory.</para>
2754
2755                   <para>Specify the read/write path to the mount point, to avoid the failure that results when you attempt to delete
2756                   a mount point from a read-only volume. By convention, you indicate the read/write path by placing a period before
2757                   the cell name at the pathname's second level (for example, <emphasis role="bold">/afs/.abc.com</emphasis>). For
2758                   further discussion of the concept of read/write and read-only paths through the filespace, see <link
2759                   linkend="HDRWQ209">The Rules of Mount Point Traversal</link>.</para>
2760                 </listitem>
2761               </varlistentry>
2762             </variablelist></para>
2763         </listitem>
2764       </orderedlist>
2765     </sect2>
2766   </sect1>
2767
2768   <sect1 id="HDRWQ216">
2769     <title>Displaying Information About Volumes</title>
2770
2771     <indexterm>
2772       <primary>displaying</primary>
2773
2774       <secondary>volume information</secondary>
2775     </indexterm>
2776
2777     <indexterm>
2778       <primary>volume</primary>
2779
2780       <secondary>displaying information about</secondary>
2781     </indexterm>
2782
2783     <para>This section explains how to display information about volumes. If you know a volume's name or volume ID number, there are
2784     commands for displaying its VLDB entry, its volume header, or both. Other commands display the name or location of the volume
2785     that contains a specified file or directory.</para>
2786
2787     <para>For instructions on displaying a volume's quota, see <link linkend="HDRWQ234">Setting and Displaying Volume Quota and
2788     Current Size</link>.</para>
2789
2790     <sect2 id="HDRWQ217">
2791       <title>Displaying VLDB Entries</title>
2792
2793       <indexterm>
2794         <primary>displaying</primary>
2795
2796         <secondary>volume's VLDB entry</secondary>
2797       </indexterm>
2798
2799       <indexterm>
2800         <primary>VLDB</primary>
2801
2802         <secondary>displaying volume entry</secondary>
2803       </indexterm>
2804
2805       <indexterm>
2806         <primary>volume entry (VLDB)</primary>
2807
2808         <secondary>displaying</secondary>
2809       </indexterm>
2810
2811       <indexterm>
2812         <primary>locked VLDB entry</primary>
2813
2814         <secondary>displaying</secondary>
2815       </indexterm>
2816
2817       <para>The <emphasis role="bold">vos listvldb</emphasis> command displays the VLDB entry for the volumes indicated by the
2818       combination of arguments you provide. The possibilities are listed here from most to least inclusive: <itemizedlist>
2819           <listitem>
2820             <para>To display every entry in the VLDB, provide no arguments. It can take a long time to generate the output,
2821             depending on the number of entries.</para>
2822           </listitem>
2823
2824           <listitem>
2825             <para>To display every VLDB entry that mentions a specific file server machine as the site of a volume, specify the
2826             machine's name with the <emphasis role="bold">-server</emphasis> argument.</para>
2827           </listitem>
2828
2829           <listitem>
2830             <para>To display every VLDB entry that mentions a certain partition on any file server machine as the site of a volume,
2831             specify the partition name with the <emphasis role="bold">-partition</emphasis> argument.</para>
2832           </listitem>
2833
2834           <listitem>
2835             <para>To display every VLDB entry that mentions a certain partition on a certain file server machine as the site of a
2836             volume, combine the <emphasis role="bold">-server</emphasis> and <emphasis role="bold">-partition</emphasis>
2837             arguments.</para>
2838           </listitem>
2839
2840           <listitem>
2841             <para>To display a single VLDB entry, specify a volume name or ID number with the <emphasis role="bold">-name</emphasis>
2842             argument.</para>
2843           </listitem>
2844
2845           <listitem>
2846             <para>To display the VLDB entry only for volumes with locked VLDB entries, use the <emphasis
2847             role="bold">-locked</emphasis> flag with any of the site definitions mentioned previously.</para>
2848           </listitem>
2849         </itemizedlist></para>
2850
2851       <indexterm>
2852         <primary>commands</primary>
2853
2854         <secondary>vos listvldb</secondary>
2855
2856         <tertiary>syntax</tertiary>
2857       </indexterm>
2858
2859       <indexterm>
2860         <primary>vos commands</primary>
2861
2862         <secondary>listvldb</secondary>
2863
2864         <tertiary>syntax</tertiary>
2865       </indexterm>
2866     </sect2>
2867
2868     <sect2 id="HDRWQ218">
2869       <title>To display VLDB entries</title>
2870
2871       <orderedlist>
2872         <listitem>
2873           <para>Issue the <emphasis role="bold">vos listvldb</emphasis> command. <programlisting>
2874    % <emphasis role="bold">vos listvldb</emphasis> [<emphasis role="bold">-name</emphasis> &lt;<replaceable>volume name or ID</replaceable>&gt;] [<emphasis
2875                 role="bold">-server</emphasis> &lt;<replaceable>machine name</replaceable>&gt;] \
2876         [<emphasis role="bold">-partition</emphasis> &lt;<replaceable>partition name</replaceable>&gt;] [<emphasis role="bold">-locked</emphasis>]
2877 </programlisting></para>
2878
2879           <para>where <variablelist>
2880               <varlistentry>
2881                 <term><emphasis role="bold">listvl</emphasis></term>
2882
2883                 <listitem>
2884                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">listvldb</emphasis>.</para>
2885                 </listitem>
2886               </varlistentry>
2887
2888               <varlistentry>
2889                 <term><emphasis role="bold">-name</emphasis></term>
2890
2891                 <listitem>
2892                   <para>Identifies one volume either by its complete name or volume ID number. Do not combine this argument with the
2893                   <emphasis role="bold">-server</emphasis> or <emphasis role="bold">-partition</emphasis> arguments.</para>
2894                 </listitem>
2895               </varlistentry>
2896
2897               <varlistentry>
2898                 <term><emphasis role="bold">-server</emphasis></term>
2899
2900                 <listitem>
2901                   <para>Specifies a file server machine. Combine this argument with the <emphasis role="bold">-partition</emphasis>
2902                   argument if desired, but not with the <emphasis role="bold">-name</emphasis> argument.</para>
2903                 </listitem>
2904               </varlistentry>
2905
2906               <varlistentry>
2907                 <term><emphasis role="bold">-partition</emphasis></term>
2908
2909                 <listitem>
2910                   <para>Specifies a partition. Combine this argument with the <emphasis role="bold">-server</emphasis> argument if
2911                   desired, but not with the <emphasis role="bold">-name</emphasis> argument.</para>
2912                 </listitem>
2913               </varlistentry>
2914
2915               <varlistentry>
2916                 <term><emphasis role="bold">-locked</emphasis></term>
2917
2918                 <listitem>
2919                   <para>Displays only locked VLDB entries. Combine this flag with any of the other options.</para>
2920                 </listitem>
2921               </varlistentry>
2922             </variablelist></para>
2923         </listitem>
2924       </orderedlist>
2925
2926       <para>The VLDB entry for each volume includes the following information: <itemizedlist>
2927           <listitem>
2928             <para>The base (read/write) volume name. The read-only and backup versions have the same name with a <emphasis
2929             role="bold">.readonly</emphasis> and <emphasis role="bold">.backup</emphasis> extension, respectively.</para>
2930           </listitem>
2931
2932           <listitem>
2933             <para>The volume ID numbers allocated to the versions of the volume that actually exist, in fields labeled
2934             <computeroutput>RWrite</computeroutput> for the read/write, <computeroutput>ROnly</computeroutput> for the read-only,
2935             <computeroutput>Backup</computeroutput> for the backup, and <computeroutput>RClone</computeroutput> for the
2936             ReleaseClone. (If a field does not appear, the corresponding version of the volume does not exist.) The appearance of
2937             the <computeroutput>RClone</computeroutput> field normally indicates that a release operation did not complete
2938             successfully; the <computeroutput>Old release</computeroutput> and <computeroutput>New release</computeroutput> flags
2939             often also appear on one or more of the site definition lines described just following.</para>
2940
2941             <indexterm>
2942               <primary>site</primary>
2943
2944               <secondary>count in VLDB</secondary>
2945             </indexterm>
2946
2947             <indexterm>
2948               <primary>VLDB</primary>
2949
2950               <secondary>site count for volume</secondary>
2951             </indexterm>
2952           </listitem>
2953
2954           <listitem>
2955             <para>The number of sites that house a read/write or read-only copy of the volume, following the string
2956             <computeroutput>number of sites -&gt;</computeroutput>.</para>
2957
2958             <indexterm>
2959               <primary>type flag for volume</primary>
2960
2961               <secondary>VLDB entry</secondary>
2962             </indexterm>
2963
2964             <indexterm>
2965               <primary>VLDB</primary>
2966
2967               <secondary>volume type flags</secondary>
2968             </indexterm>
2969
2970             <indexterm>
2971               <primary>release</primary>
2972
2973               <secondary>status flags on site definitions in VLDB entry</secondary>
2974             </indexterm>
2975
2976             <indexterm>
2977               <primary>VLDB</primary>
2978
2979               <secondary>release status flags in volume entry</secondary>
2980             </indexterm>
2981
2982             <indexterm>
2983               <primary>status flag</primary>
2984
2985               <secondary>release, on site definitions in VLDB entry</secondary>
2986             </indexterm>
2987           </listitem>
2988
2989           <listitem>
2990             <para>A line for each site that houses a read/write or read-only copy of the volume, specifying the file server machine,
2991             partition, and type of volume (<computeroutput>RW</computeroutput> for read/write or <computeroutput>RO</computeroutput>
2992             for read-only). If a backup version exists, it is understood to share the read/write site. Several flags can appear with
2993             a site definition: <variablelist>
2994                 <indexterm>
2995                   <primary>Not released</primary>
2996
2997                   <secondary>status flag on site definition in VLDB entry</secondary>
2998                 </indexterm>
2999
3000                 <varlistentry>
3001                   <term><computeroutput>Not released</computeroutput></term>
3002
3003                   <listitem>
3004                     <para>Indicates that the <emphasis role="bold">vos release</emphasis> command has not been issued since the
3005                     <emphasis role="bold">vos addsite</emphasis> command was used to define the read-only site.</para>
3006
3007                     <indexterm>
3008                       <primary>Old release</primary>
3009
3010                       <secondary>status flag on site definition in VLDB entry</secondary>
3011                     </indexterm>
3012                   </listitem>
3013                 </varlistentry>
3014
3015                 <varlistentry>
3016                   <term><computeroutput>Old release</computeroutput></term>
3017
3018                   <listitem>
3019                     <para>Indicates that a <emphasis role="bold">vos release</emphasis> command did not complete successfully,
3020                     leaving the previous, obsolete version of the volume at this site.</para>
3021
3022                     <indexterm>
3023                       <primary>New release</primary>
3024
3025                       <secondary>status flag on site definition in VLDB entry</secondary>
3026                     </indexterm>
3027                   </listitem>
3028                 </varlistentry>
3029
3030                 <varlistentry>
3031                   <term><computeroutput>New release</computeroutput></term>
3032
3033                   <listitem>
3034                     <para>Indicates that a <emphasis role="bold">vos release</emphasis> command did not complete successfully, but
3035                     that this site did receive the correct new version of the volume.</para>
3036                   </listitem>
3037                 </varlistentry>
3038               </variablelist></para>
3039           </listitem>
3040
3041           <listitem>
3042             <para>If the VLDB entry is locked, the string <computeroutput>Volume is currently LOCKED</computeroutput>.</para>
3043           </listitem>
3044         </itemizedlist></para>
3045
3046       <para>For further discussion of the <computeroutput>New release</computeroutput> and <computeroutput>Old
3047       release</computeroutput> flags, see <link linkend="HDRWQ192">Replicating Volumes (Creating Read-only Volumes)</link>.</para>
3048
3049       <para>An example of this command and its output for a single volume:</para>
3050
3051       <programlisting>
3052    % <emphasis role="bold">vos listvldb user.terry</emphasis>
3053    user.terry
3054        RWrite: 50489902    Backup: 50489904
3055        number of sites -&gt; 1
3056           server fs3.abc.com partition /vicepc RW Site
3057 </programlisting>
3058     </sect2>
3059
3060     <sect2 id="HDRWQ219">
3061       <title>Displaying Volume Headers</title>
3062
3063       <indexterm>
3064         <primary>displaying</primary>
3065
3066         <secondary>volume header</secondary>
3067       </indexterm>
3068
3069       <indexterm>
3070         <primary>volume header</primary>
3071
3072         <secondary>displaying</secondary>
3073
3074         <tertiary>only</tertiary>
3075       </indexterm>
3076
3077       <para>The <emphasis role="bold">vos listvol</emphasis> command displays the volume header for every volume on one or all
3078       partitions on a file server machine. The <emphasis role="bold">vos</emphasis> command interpreter obtains the information from
3079       the Volume Server on the specified machine. You can control the amount of information displayed by including one of the
3080       <emphasis role="bold">-fast</emphasis>, the <emphasis role="bold">-long</emphasis>, or the <emphasis
3081       role="bold">-extended</emphasis> flags described following the instructions in <link linkend="HDRWQ220">To display volume
3082       headers</link>.</para>
3083
3084       <para>To display a single volume's volume header of one volume only, use the <emphasis role="bold">vos examine</emphasis>
3085       command as described in <link linkend="HDRWQ221">Displaying One Volume's VLDB Entry and Volume Header</link>.</para>
3086
3087       <indexterm>
3088         <primary>commands</primary>
3089
3090         <secondary>vos listvol</secondary>
3091
3092         <tertiary>syntax</tertiary>
3093       </indexterm>
3094
3095       <indexterm>
3096         <primary>vos commands</primary>
3097
3098         <secondary>listvol</secondary>
3099
3100         <tertiary>syntax</tertiary>
3101       </indexterm>
3102     </sect2>
3103
3104     <sect2 id="HDRWQ220">
3105       <title>To display volume headers</title>
3106
3107       <orderedlist>
3108         <listitem>
3109           <para>Issue the <emphasis role="bold">vos listvol</emphasis> command. <programlisting>
3110    % <emphasis role="bold">vos listvol</emphasis> &lt;<replaceable>machine name</replaceable>&gt; [&lt;<replaceable>partition name</replaceable>&gt;] [<emphasis
3111                 role="bold">-fast</emphasis>] [<emphasis role="bold">-long</emphasis>] [<emphasis role="bold">-extended</emphasis>]
3112 </programlisting></para>
3113
3114           <para>where <variablelist>
3115               <varlistentry>
3116                 <term><emphasis role="bold">listvo</emphasis></term>
3117
3118                 <listitem>
3119                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">listvol</emphasis>.</para>
3120                 </listitem>
3121               </varlistentry>
3122
3123               <varlistentry>
3124                 <term><emphasis role="bold">machine name</emphasis></term>
3125
3126                 <listitem>
3127                   <para>Names the file server machine for which to display volume headers. Provide this argument alone or with the
3128                   partition name argument.</para>
3129                 </listitem>
3130               </varlistentry>
3131
3132               <varlistentry>
3133                 <term><emphasis role="bold">partition name</emphasis></term>
3134
3135                 <listitem>
3136                   <para>Names one partition on the file server machine named by the machine name argument, which must be provided
3137                   along with this one.</para>
3138                 </listitem>
3139               </varlistentry>
3140
3141               <varlistentry>
3142                 <term><emphasis role="bold">-fast</emphasis></term>
3143
3144                 <listitem>
3145                   <para>Displays only the volume ID numbers of relevant volumes. Do not combine this flag with the <emphasis
3146                   role="bold">-long</emphasis> or <emphasis role="bold">-extended</emphasis> flag.</para>
3147                 </listitem>
3148               </varlistentry>
3149
3150               <varlistentry>
3151                 <term><emphasis role="bold">-long</emphasis></term>
3152
3153                 <listitem>
3154                   <para>Displays more detailed information about each volume. Do not combine this flag with the <emphasis
3155                   role="bold">-fast</emphasis> or <emphasis role="bold">-extended</emphasis> flag.</para>
3156                 </listitem>
3157               </varlistentry>
3158
3159               <varlistentry>
3160                 <term><emphasis role="bold">-extended</emphasis></term>
3161
3162                 <listitem>
3163                   <para>Displays all of the information displayed by the <emphasis role="bold">-long</emphasis> flag, plus tables of
3164                   statistics about reads and writes to the files in the volume. Do not combine this flag with the <emphasis
3165                   role="bold">-fast</emphasis> or <emphasis role="bold">-long</emphasis> flag.</para>
3166                 </listitem>
3167               </varlistentry>
3168             </variablelist></para>
3169         </listitem>
3170       </orderedlist>
3171
3172       <para>The output is ordered alphabetically by volume name and by default provides the following information on a single line
3173       for each volume: <itemizedlist>
3174           <listitem>
3175             <para>Name</para>
3176           </listitem>
3177
3178           <listitem>
3179             <para>Volume ID number</para>
3180
3181             <indexterm>
3182               <primary>type flag for volume</primary>
3183
3184               <secondary>volume header</secondary>
3185             </indexterm>
3186           </listitem>
3187
3188           <listitem>
3189             <para>Type (the flag is <computeroutput>RW</computeroutput> for read/write, <computeroutput>RO</computeroutput> for
3190             read-only, <computeroutput>BK</computeroutput> for backup)</para>
3191           </listitem>
3192
3193           <listitem>
3194             <para>Size in kilobytes (<computeroutput>1024</computeroutput> equals a megabyte)</para>
3195           </listitem>
3196
3197           <listitem>
3198             <para>Number of files in the volume, if the <emphasis role="bold">-extended</emphasis> flag is provided</para>
3199
3200             <indexterm>
3201               <primary>status flags in volume header</primary>
3202             </indexterm>
3203           </listitem>
3204
3205           <listitem>
3206             <para>Status on the file server machine, which is one of the following: <variablelist>
3207                 <indexterm>
3208                   <primary>On-line status flag in volume header</primary>
3209                 </indexterm>
3210
3211                 <varlistentry>
3212                   <term><computeroutput>On-line</computeroutput></term>
3213
3214                   <listitem>
3215                     <para>The volume is completely accessible to Cache Managers.</para>
3216
3217                     <indexterm>
3218                       <primary>Off-line status flag in volume header</primary>
3219                     </indexterm>
3220                   </listitem>
3221                 </varlistentry>
3222
3223                 <varlistentry>
3224                   <term><computeroutput>Off-line</computeroutput></term>
3225
3226                   <listitem>
3227                     <para>The volume is not accessible to Cache Managers, but does not seem to be corrupted. This status appears
3228                     while a volume is being dumped, for example.</para>
3229
3230                     <indexterm>
3231                       <primary>needs salvage status flag in volume header</primary>
3232                     </indexterm>
3233                   </listitem>
3234                 </varlistentry>
3235
3236                 <varlistentry>
3237                   <term><computeroutput>Off-line**needs salvage**</computeroutput></term>
3238
3239                   <listitem>
3240                     <para>The volume is not accessible to Cache Managers, because it seems to be corrupted. Use the <emphasis
3241                     role="bold">bos salvage</emphasis> or <emphasis role="bold">salvager</emphasis> command to repair the
3242                     corruption.</para>
3243                   </listitem>
3244                 </varlistentry>
3245               </variablelist></para>
3246           </listitem>
3247         </itemizedlist></para>
3248
3249       <para>If the following message appears instead of the previously listed information, it indicates that a volume is not
3250       accessible to Cache Managers or the <emphasis role="bold">vos</emphasis> command interpreter, for example because a clone is
3251       being created.</para>
3252
3253       <programlisting>
3254    **** Volume volume_ID is busy ****
3255 </programlisting>
3256
3257       <para>If the following message appears instead of the previously listed information, it indicates that the File Server is
3258       unable to attach the volume, perhaps because it is seriously corrupted. The <emphasis role="bold">FileLog</emphasis> and
3259       <emphasis role="bold">VolserLog</emphasis> log files in the <emphasis role="bold">/usr/afs/logs</emphasis> directory on the
3260       file server machine possibly provide additional information; use the <emphasis role="bold">bos getlog</emphasis> command to
3261       display them.</para>
3262
3263       <programlisting>
3264    **** Could not attach volume volume_ID ****
3265 </programlisting>
3266
3267       <para>(For instructions on salvaging a corrupted or unattached volume, see <link linkend="HDRWQ232">Salvaging
3268       Volumes</link>.)</para>
3269
3270       <para>The information about individual volumes is bracketed by summary lines. The first line of output specifies the number of
3271       volumes in the listing. The last line of output summarizes the number of volumes that are online, offline, and busy, as in the
3272       following example:</para>
3273
3274       <programlisting>
3275    % <emphasis role="bold">vos listvol  fs2.abc.com /vicepb</emphasis>
3276    Total number of volumes on server fs2.abc.com \
3277                                        partition /vicepb : 66
3278    sys                  1969534847 RW       1582 K On-line
3279    sys.backup           1969535105 BK       1582 K On-line
3280          .                   .     .         .   .    .
3281          .                   .     .         .   .    .
3282    user.pat             1969534536 RW      17518 K On-line
3283    user.pat.backup      1969534538 BK      17537 K On-line
3284    Total volumes onLine 66 ; Total volumes offLine 0 ;  Total busy 0
3285 </programlisting>
3286
3287       <para><emphasis role="bold">Output with the -fast Flag</emphasis></para>
3288
3289       <indexterm>
3290         <primary>vos commands</primary>
3291
3292         <secondary>listvol</secondary>
3293
3294         <tertiary>output with -fast flag</tertiary>
3295       </indexterm>
3296
3297       <para>If you include the <emphasis role="bold">-fast</emphasis> flag displays only the volume ID number of each volume,
3298       arranged in increasing numerical order, as in the following example. The final line (which summarizes the number of on-line,
3299       off-line, and busy volumes) is omitted.</para>
3300
3301       <programlisting>
3302    % <emphasis role="bold">vos listvol fs3.abc.com /vicepa -f</emphasis>
3303    Total number of volumes on server fs3.abc.com  \
3304                                        partition /vicepa: 37
3305    50489902
3306    50489904
3307       .
3308       .
3309    35970325
3310    49732810
3311 </programlisting>
3312
3313       <para><emphasis role="bold">Output with the -long Flag</emphasis></para>
3314
3315       <indexterm>
3316         <primary>vos commands</primary>
3317
3318         <secondary>listvol</secondary>
3319
3320         <tertiary>output with -long flag</tertiary>
3321       </indexterm>
3322
3323       <para>When you include the <emphasis role="bold">-long</emphasis> flag, , the output for each volume includes all of the
3324       information in the default listing plus the following. Each item in this list corresponds to a separate line of output:
3325       <itemizedlist>
3326           <listitem>
3327             <para>The file server machine and partition that house the volume, as determined by the command interpreter as the
3328             command runs, rather than derived from the VLDB or the volume header.</para>
3329
3330             <indexterm>
3331               <primary>read/write volume</primary>
3332
3333               <secondary>ID number in volume header</secondary>
3334             </indexterm>
3335
3336             <indexterm>
3337               <primary>read-only volume</primary>
3338
3339               <secondary>ID number in volume header</secondary>
3340             </indexterm>
3341
3342             <indexterm>
3343               <primary>backup volume</primary>
3344
3345               <secondary>ID number in volume header</secondary>
3346             </indexterm>
3347
3348             <indexterm>
3349               <primary>ReleaseClone volume</primary>
3350
3351               <secondary>ID number in volume header</secondary>
3352             </indexterm>
3353
3354             <indexterm>
3355               <primary>RWrite field in volume header</primary>
3356             </indexterm>
3357
3358             <indexterm>
3359               <primary>ROnly field in volume header</primary>
3360             </indexterm>
3361
3362             <indexterm>
3363               <primary>Backup field in volume header</primary>
3364             </indexterm>
3365
3366             <indexterm>
3367               <primary>RClone field in volume header</primary>
3368             </indexterm>
3369           </listitem>
3370
3371           <listitem>
3372             <para>The volume ID numbers associated with the various versions of the volume: read/write
3373             (<computeroutput>RWrite</computeroutput>), read-only (<computeroutput>ROnly</computeroutput>), backup
3374             (<computeroutput>Backup</computeroutput>), and ReleaseClone (<computeroutput>RClone</computeroutput>). One of them
3375             matches the volume ID number that appears on the first line of the volume's output. If the value in the
3376             <computeroutput>RWrite</computeroutput>, <computeroutput>ROnly</computeroutput>, or
3377             <computeroutput>Backup</computeroutput> field is <computeroutput>0</computeroutput> (zero), there is no volume of that
3378             type. If there is currently no ReleaseClone, the <computeroutput>RClone</computeroutput> field does not appear at
3379             all.</para>
3380
3381             <indexterm>
3382               <primary>volume quota</primary>
3383
3384               <secondary>recorded in volume header</secondary>
3385             </indexterm>
3386
3387             <indexterm>
3388               <primary>MaxQuota field in volume header</primary>
3389             </indexterm>
3390           </listitem>
3391
3392           <listitem>
3393             <para>The maximum space quota allotted to the read/write copy of the volume, expressed in kilobyte blocks in the
3394             <computeroutput>MaxQuota</computeroutput> field.</para>
3395
3396             <indexterm>
3397               <primary>creation date</primary>
3398
3399               <secondary>recorded in volume header</secondary>
3400             </indexterm>
3401
3402             <indexterm>
3403               <primary>volume</primary>
3404
3405               <secondary>Creation date in volume header</secondary>
3406             </indexterm>
3407           </listitem>
3408
3409           <listitem>
3410             <para>The date and time the volume was created, in the <computeroutput>Creation</computeroutput> field. If the volume
3411             has been restored with the <emphasis role="bold">backup diskrestore</emphasis>, <emphasis role="bold">backup
3412             volrestore</emphasis>, or <emphasis role="bold">vos restore</emphasis> command, this is the restore time.</para>
3413
3414             <indexterm>
3415               <primary>update date</primary>
3416
3417               <secondary>recorded in volume header</secondary>
3418             </indexterm>
3419
3420             <indexterm>
3421               <primary>volume</primary>
3422
3423               <secondary>Last Update date in volume header</secondary>
3424             </indexterm>
3425           </listitem>
3426
3427           <listitem>
3428             <para>The date and time when the contents of the volume last changed, in the <computeroutput>Last
3429             Update</computeroutput> field. For read-only and backup volumes, it matches the timestamp in the
3430             <computeroutput>Creation</computeroutput> field.</para>
3431
3432             <indexterm>
3433               <primary>access</primary>
3434
3435               <secondary>count, in volume header</secondary>
3436             </indexterm>
3437
3438             <indexterm>
3439               <primary>volume</primary>
3440
3441               <secondary>counter in header for number of accesses</secondary>
3442             </indexterm>
3443           </listitem>
3444
3445           <listitem>
3446             <para>The number of times the volume has been accessed for a fetch or store operation since the later of the two
3447             following times: <itemizedlist>
3448                 <listitem>
3449                   <para>12:00 a.m. on the day the command is issued</para>
3450                 </listitem>
3451
3452                 <listitem>
3453                   <para>The last time the volume changed location</para>
3454                 </listitem>
3455               </itemizedlist></para>
3456           </listitem>
3457         </itemizedlist></para>
3458
3459       <para>An example of the output when the <emphasis role="bold">-long</emphasis> flag is included:</para>
3460
3461       <programlisting>
3462    % <emphasis role="bold">vos listvol fs2.abc.com b -long</emphasis>
3463    Total number of volumes on server fs2.abc.com
3464                                        partition /vicepb: 66
3465          .                   .      .         .   .    .
3466          .                   .      .         .   .    .
3467    user.pat             1969534536 RW      17518 K On-line
3468         fs2.abc.com /vicepb
3469         RWrite 1969534536 ROnly 0        Backup 1969534538
3470         MaxQuota      20000 K
3471         Creation    Mon Jun 12 09:02:25 1989
3472         Last Update Thu Jan  4 17:39:34 1990
3473         1573 accesses in the past day (i.e., vnode references)
3474    user.pat.backup      1969534538 BK      17537 K On-line
3475         fs2.abc.com /vicepb
3476         RWrite 1969534536 ROnly 0        Backup 1969534538
3477         MaxQuota      20000 K
3478         Creation    Fri Jan  5 06:37:59 1990
3479         Last Update Fri Jan  5 06:37:59 1990
3480         0 accesses in the past day (i.e., vnode references)
3481             .               .         .     .       .
3482             .               .         .     .       .
3483    Total volumes onLine 66 ; Total volumes offLine 0 ; Total busy 0
3484 </programlisting>
3485
3486       <para><emphasis role="bold">Output with the -extended Flag</emphasis></para>
3487
3488       <indexterm>
3489         <primary>vos commands</primary>
3490
3491         <secondary>listvol</secondary>
3492
3493         <tertiary>output with -extended flag</tertiary>
3494       </indexterm>
3495
3496       <para>When you include the <emphasis role="bold">-extended</emphasis> flag, the output for each volume includes all of the
3497       information reported with the <emphasis role="bold">-long</emphasis> flag, plus two tables of statistics: <itemizedlist>
3498           <listitem>
3499             <para>The table labeled <computeroutput>Raw Read/Write Stats</computeroutput> table summarizes the number of times the
3500             volume has been accessed for reading or writing.</para>
3501           </listitem>
3502
3503           <listitem>
3504             <para>The table labeled <computeroutput>Writes Affecting Authorship</computeroutput> table contains information on
3505             writes made to files and directories in the specified volume.</para>
3506           </listitem>
3507         </itemizedlist></para>
3508
3509       <para>An example of the output when the <emphasis role="bold">-extended</emphasis> flag is included:</para>
3510
3511       <programlisting>
3512    % <emphasis role="bold">vos listvol fs3.abc.com a -extended</emphasis>
3513    common.bboards   1969535592 RW    23149 K used 9401 files On-line
3514        fs3.abc.com /vicepa
3515        RWrite 1969535592 ROnly          0 Backup 1969535594
3516        MaxQuota      30000 K
3517        Creation    Mon Mar  8 14:26:05 1999
3518        Last Update Mon Apr 26 09:20:43 1999
3519        11533 accesses in the past day (i.e., vnode references)
3520                          Raw Read/Write Stats
3521              |-------------------------------------------|
3522              |    Same Network     |    Diff Network     |
3523              |----------|----------|----------|----------|
3524              |  Total   |   Auth   |   Total  |   Auth   |
3525              |----------|----------|----------|----------|
3526    Reads     |      151 |      151 |     1092 |     1068 |
3527    Writes    |        3 |        3 |      324 |      324 |
3528              |-------------------------------------------|
3529                       Writes Affecting Authorship
3530              |-------------------------------------------|
3531              |   File Authorship   | Directory Authorship|
3532              |----------|----------|----------|----------|
3533              |   Same   |   Diff   |    Same  |   Diff   |
3534              |----------|----------|----------|----------|
3535    0-60 sec  |       92 |        0 |      100 |        4 |
3536    1-10 min  |        1 |        0 |       14 |        6 |
3537    10min-1hr |        0 |        0 |       19 |        4 |
3538    1hr-1day  |        1 |        0 |       13 |        0 |
3539    1day-1wk  |        1 |        0 |        1 |        0 |
3540    &gt; 1wk     |        0 |        0 |        0 |        0 |
3541              |-------------------------------------------|
3542 </programlisting>
3543     </sect2>
3544
3545     <sect2 id="HDRWQ221">
3546       <title>Displaying One Volume's VLDB Entry and Volume Header</title>
3547
3548       <indexterm>
3549         <primary>displaying</primary>
3550
3551         <secondary>VLDB entry</secondary>
3552
3553         <tertiary>with volume header</tertiary>
3554       </indexterm>
3555
3556       <indexterm>
3557         <primary>displaying</primary>
3558
3559         <secondary>VLDB entry with volume header</secondary>
3560       </indexterm>
3561
3562       <indexterm>
3563         <primary>VLDB</primary>
3564
3565         <secondary>displaying entry</secondary>
3566
3567         <tertiary>with volume header</tertiary>
3568       </indexterm>
3569
3570       <indexterm>
3571         <primary>entry in VLDB</primary>
3572
3573         <secondary>displaying, with volume header</secondary>
3574       </indexterm>
3575
3576       <indexterm>
3577         <primary>displaying</primary>
3578
3579         <secondary>volume header</secondary>
3580
3581         <tertiary>with VLDB entry</tertiary>
3582       </indexterm>
3583
3584       <indexterm>
3585         <primary>displaying</primary>
3586
3587         <secondary>volume header with VLDB entry</secondary>
3588       </indexterm>
3589
3590       <indexterm>
3591         <primary>volume header</primary>
3592
3593         <secondary>displaying</secondary>
3594
3595         <tertiary>with VLDB entry</tertiary>
3596       </indexterm>
3597
3598       <para>The <emphasis role="bold">vos examine</emphasis> command displays information from both the VLDB and the volume header
3599       for a single volume. There is some redundancy in the information from the two sources, which allows you to compare the VLDB
3600       and volume header.</para>
3601
3602       <para>Because the volume header for each version of a volume (read/write, read-only, and backup) is different, you can specify
3603       which one to display. Include the <emphasis role="bold">.readonly</emphasis> or <emphasis role="bold">.backup</emphasis>
3604       extension on the volume name or ID argument as appropriate. The information from the VLDB is the same for all three
3605       versions.</para>
3606
3607       <indexterm>
3608         <primary>commands</primary>
3609
3610         <secondary>vos examine</secondary>
3611
3612         <tertiary>basic instructions</tertiary>
3613       </indexterm>
3614
3615       <indexterm>
3616         <primary>vos commands</primary>
3617
3618         <secondary>examine</secondary>
3619
3620         <tertiary>basic instructions</tertiary>
3621       </indexterm>
3622     </sect2>
3623
3624     <sect2 id="HDRWQ222">
3625       <title>To display one volume's VLDB entry and volume header</title>
3626
3627       <orderedlist>
3628         <listitem>
3629           <para>Issue the <emphasis role="bold">vos examine</emphasis> command. <programlisting>
3630    % <emphasis role="bold">vos examine</emphasis> &lt;<replaceable>volume name or ID</replaceable>&gt;
3631 </programlisting></para>
3632
3633           <para>where <variablelist>
3634               <varlistentry>
3635                 <term><emphasis role="bold">e</emphasis></term>
3636
3637                 <listitem>
3638                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">examine</emphasis>.</para>
3639                 </listitem>
3640               </varlistentry>
3641
3642               <varlistentry>
3643                 <term><emphasis role="bold">volume name or ID</emphasis></term>
3644
3645                 <listitem>
3646                   <para>Identifies one volume either by its complete name or volume ID number. It can be a read/write, read-only, or
3647                   backup type. Use the <emphasis role="bold">.backup</emphasis> or <emphasis role="bold">.readonly</emphasis>
3648                   extension if appropriate.</para>
3649                 </listitem>
3650               </varlistentry>
3651             </variablelist></para>
3652         </listitem>
3653       </orderedlist>
3654
3655       <para>The top part of the output displays the same information from a volume header as the <emphasis role="bold">vos
3656       listvol</emphasis> command with the <emphasis role="bold">-long</emphasis> flag, as described following the instructions in
3657       <link linkend="HDRWQ220">To display volume headers</link>. If you specify the read-only version of the volume and it exists at
3658       more than one site, the output includes all of them. The bottom part of the output lists the same information from the VLDB as
3659       the <emphasis role="bold">vos listvldb</emphasis> command, as described following the instructions in <link
3660       linkend="HDRWQ218">To display VLDB entries</link>.</para>
3661
3662       <para>Below is an example for a volume whose VLDB entry is currently locked.</para>
3663
3664       <programlisting>
3665    % <emphasis role="bold">vos examine user.terry</emphasis>
3666    user.terry                    536870981 RW   3459 K On-line
3667        fs3.abc.com /vicepa
3668        Write 5360870981   ROnly          0  Backup 536870983
3669        MaxQuota      40000 K
3670        Creation    Mon Jun 12 15:22:06 1989
3671        Last Update Fri Jun 16 09:34:35 1989
3672        5719 accesses in the past day (i.e., vnode references)
3673        RWrite: 5360870981   Backup: 536870983
3674        number of sites -&gt; 1
3675           server fs3.abc.com partition /vicepa RW Site
3676        Volume is currently LOCKED
3677 </programlisting>
3678     </sect2>
3679
3680     <sect2 id="HDRWQ223">
3681       <title>Displaying the Name or Location of the Volume that Contains a File</title>
3682
3683       <para>This section explains how to learn the name, volume ID number, or location of the volume that contains a file or
3684       directory.</para>
3685
3686       <para>You can also use one piece of information about a volume (for example, its name) to obtain other information about it
3687       (for example, its location). The following list points you to the relevant instructions: <itemizedlist>
3688           <indexterm>
3689             <primary>translating</primary>
3690
3691             <secondary>volume name to ID number</secondary>
3692           </indexterm>
3693
3694           <indexterm>
3695             <primary>learning</primary>
3696
3697             <secondary>volume ID</secondary>
3698
3699             <tertiary>given volume name</tertiary>
3700           </indexterm>
3701
3702           <indexterm>
3703             <primary>volume name</primary>
3704
3705             <secondary>translating</secondary>
3706
3707             <tertiary>to volume ID number</tertiary>
3708           </indexterm>
3709
3710           <indexterm>
3711             <primary>volume ID number</primary>
3712
3713             <secondary>learning</secondary>
3714
3715             <tertiary>from volume name</tertiary>
3716           </indexterm>
3717
3718           <indexterm>
3719             <primary>vos commands</primary>
3720
3721             <secondary>examine</secondary>
3722
3723             <tertiary>to learn volume ID</tertiary>
3724           </indexterm>
3725
3726           <indexterm>
3727             <primary>translating</primary>
3728
3729             <secondary>volume ID number to name</secondary>
3730           </indexterm>
3731
3732           <indexterm>
3733             <primary>learning</primary>
3734
3735             <secondary>volume name</secondary>
3736
3737             <tertiary>given volume ID number</tertiary>
3738           </indexterm>
3739
3740           <indexterm>
3741             <primary>volume name</primary>
3742
3743             <secondary>learning</secondary>
3744
3745             <tertiary>from volume ID number</tertiary>
3746           </indexterm>
3747
3748           <indexterm>
3749             <primary>volume ID number</primary>
3750
3751             <secondary>translating</secondary>
3752
3753             <tertiary>to volume name</tertiary>
3754           </indexterm>
3755
3756           <indexterm>
3757             <primary>vos commands</primary>
3758
3759             <secondary>examine</secondary>
3760
3761             <tertiary>to learn volume name</tertiary>
3762           </indexterm>
3763
3764           <listitem>
3765             <para>To use a volume's name to learn the volume ID numbers of all its existing versions, use the <emphasis
3766             role="bold">vos examine</emphasis> command as described in <link linkend="HDRWQ222">To display one volume's VLDB entry
3767             and volume header</link>.</para>
3768
3769             <para>You can also use the command to learn a volume's name by providing its ID number.</para>
3770           </listitem>
3771
3772           <listitem>
3773             <para>To use a volume's name or ID number to learn its location, use the <emphasis role="bold">vos listvldb</emphasis>
3774             command as described in <link linkend="HDRWQ218">To display VLDB entries</link>.</para>
3775
3776             <indexterm>
3777               <primary>translating</primary>
3778
3779               <secondary>volume name/ID number to volume location</secondary>
3780             </indexterm>
3781
3782             <indexterm>
3783               <primary>learning</primary>
3784
3785               <secondary>volume location</secondary>
3786
3787               <tertiary>given volume name/ID number</tertiary>
3788             </indexterm>
3789
3790             <indexterm>
3791               <primary>volume name</primary>
3792
3793               <secondary>translating</secondary>
3794
3795               <tertiary>to volume location</tertiary>
3796             </indexterm>
3797
3798             <indexterm>
3799               <primary>volume ID number</primary>
3800
3801               <secondary>translating</secondary>
3802
3803               <tertiary>to volume location</tertiary>
3804             </indexterm>
3805
3806             <indexterm>
3807               <primary>volume location</primary>
3808
3809               <secondary>learning from volume name/ID number</secondary>
3810             </indexterm>
3811
3812             <indexterm>
3813               <primary>vos commands</primary>
3814
3815               <secondary>listvldb</secondary>
3816
3817               <tertiary>to learn volume location</tertiary>
3818             </indexterm>
3819           </listitem>
3820         </itemizedlist></para>
3821
3822       <indexterm>
3823         <primary>translating</primary>
3824
3825         <secondary>directory/file name to volume name</secondary>
3826       </indexterm>
3827
3828       <indexterm>
3829         <primary>learning</primary>
3830
3831         <secondary>volume name</secondary>
3832
3833         <tertiary>given directory/file name</tertiary>
3834       </indexterm>
3835
3836       <indexterm>
3837         <primary>directory/file name</primary>
3838
3839         <secondary>translating to volume name</secondary>
3840       </indexterm>
3841
3842       <indexterm>
3843         <primary>volume name</primary>
3844
3845         <secondary>learning</secondary>
3846
3847         <tertiary>from directory/file name</tertiary>
3848       </indexterm>
3849
3850       <indexterm>
3851         <primary>commands</primary>
3852
3853         <secondary>fs listquota</secondary>
3854       </indexterm>
3855
3856       <indexterm>
3857         <primary>fs commands</primary>
3858
3859         <secondary>listquota</secondary>
3860       </indexterm>
3861
3862       <sect3 id="HDRWQ224">
3863         <title>To display the name of the volume that contains a file</title>
3864
3865         <orderedlist>
3866           <listitem>
3867             <para>Issue the <emphasis role="bold">fs listquota</emphasis> command. <programlisting>
3868    % <emphasis role="bold">fs listquota</emphasis> [&lt;<replaceable>dir/file path</replaceable>&gt;]
3869 </programlisting></para>
3870
3871             <para>where <variablelist>
3872                 <varlistentry>
3873                   <term><emphasis role="bold">lq</emphasis></term>
3874
3875                   <listitem>
3876                     <para>Is an acceptable alias for <emphasis role="bold">listquota</emphasis>(and <emphasis
3877                     role="bold">listq</emphasis> the shortest acceptable abbreviation).</para>
3878                   </listitem>
3879                 </varlistentry>
3880
3881                 <varlistentry>
3882                   <term><emphasis role="bold">dir/file path</emphasis></term>
3883
3884                   <listitem>
3885                     <para>Names a directory or file housed in the volume for which to display the name. Partial pathnames are
3886                     interpreted relative to the current working directory, which is the default if this argument is omitted.</para>
3887                   </listitem>
3888                 </varlistentry>
3889               </variablelist></para>
3890           </listitem>
3891         </orderedlist>
3892
3893         <para>The following is an example of the output:</para>
3894
3895         <programlisting>
3896    % <emphasis role="bold">fs listquota /afs/abc.com/usr/terry</emphasis>
3897    Volume Name     Quota    Used    % Used   Partition
3898    user.terry      15000    5071       34%         86%
3899 </programlisting>
3900
3901         <indexterm>
3902           <primary>translating</primary>
3903
3904           <secondary>directory/file name to volume ID number</secondary>
3905         </indexterm>
3906
3907         <indexterm>
3908           <primary>learning</primary>
3909
3910           <secondary>volume ID</secondary>
3911
3912           <tertiary>given directory/file name</tertiary>
3913         </indexterm>
3914
3915         <indexterm>
3916           <primary>directory/file name</primary>
3917
3918           <secondary>translating to volume ID number</secondary>
3919         </indexterm>
3920
3921         <indexterm>
3922           <primary>volume ID number</primary>
3923
3924           <secondary>learning from directory/file name</secondary>
3925         </indexterm>
3926
3927         <indexterm>
3928           <primary>commands</primary>
3929
3930           <secondary>fs examine</secondary>
3931         </indexterm>
3932
3933         <indexterm>
3934           <primary>fs commands</primary>
3935
3936           <secondary>examine</secondary>
3937         </indexterm>
3938       </sect3>
3939
3940       <sect3 id="HDRWQ225">
3941         <title>To display the ID number of the volume that contains a file</title>
3942
3943         <orderedlist>
3944           <listitem>
3945             <para>Issue the <emphasis role="bold">fs examine</emphasis> command. <programlisting>
3946    % <emphasis role="bold">fs examine</emphasis> [&lt;<replaceable>dir/file path</replaceable>&gt;]
3947 </programlisting></para>
3948
3949             <para>where <variablelist>
3950                 <varlistentry>
3951                   <term><emphasis role="bold">exa</emphasis></term>
3952
3953                   <listitem>
3954                     <para>Is the shortest acceptable abbreviation of <emphasis role="bold">examine</emphasis>.</para>
3955                   </listitem>
3956                 </varlistentry>
3957
3958                 <varlistentry>
3959                   <term><emphasis role="bold">dir/file path</emphasis></term>
3960
3961                   <listitem>
3962                     <para>Names a directory or file housed in the volume for which to display the volume ID. Partial pathnames are
3963                     interpreted relative to the current working directory, which is the default if this argument is omitted.</para>
3964                   </listitem>
3965                 </varlistentry>
3966               </variablelist></para>
3967           </listitem>
3968         </orderedlist>
3969
3970         <para>The following example illustrates how the output reports the volume ID number in the
3971         <computeroutput>vid</computeroutput> field.</para>
3972
3973         <programlisting>
3974    % <emphasis role="bold">fs examine /afs/abc.com/usr/terry</emphasis>
3975    Volume status for vid = 50489902 named user.terry
3976    Current maximum quota is 15000
3977    Current blocks used are 5073
3978    The partition has 46383 blocks available out of 333305
3979 </programlisting>
3980
3981         <note>
3982           <para>The partition-related statistics in this command's output do not always agree with the corresponding values in the
3983           output of the standard UNIX <emphasis role="bold">df</emphasis> command. The statistics reported by this command can be up
3984           to five minutes old, because the Cache Manager polls the File Server for partition information at that frequency. Also, on
3985           some operating systems, the <emphasis role="bold">df</emphasis> command's report of partition size includes reserved space
3986           not included in this command's calculation, and so is likely to be about 10% larger.</para>
3987         </note>
3988
3989         <indexterm>
3990           <primary>translating</primary>
3991
3992           <secondary>directory/file name to volume location</secondary>
3993         </indexterm>
3994
3995         <indexterm>
3996           <primary>learning</primary>
3997
3998           <secondary>volume location</secondary>
3999
4000           <tertiary>given directory/file name</tertiary>
4001         </indexterm>
4002
4003         <indexterm>
4004           <primary>directory/file name</primary>
4005
4006           <secondary>translating to volume location</secondary>
4007         </indexterm>
4008
4009         <indexterm>
4010           <primary>volume location</primary>
4011
4012           <secondary>learning from directory/file name</secondary>
4013         </indexterm>
4014
4015         <indexterm>
4016           <primary>volume</primary>
4017
4018           <secondary>location</secondary>
4019
4020           <see>volume location</see>
4021         </indexterm>
4022
4023         <indexterm>
4024           <primary>commands</primary>
4025
4026           <secondary>fs whereis</secondary>
4027         </indexterm>
4028
4029         <indexterm>
4030           <primary>fs commands</primary>
4031
4032           <secondary>whereis</secondary>
4033         </indexterm>
4034       </sect3>
4035
4036       <sect3 id="Header_242">
4037         <title>To display the location of the volume that contains a file</title>
4038
4039         <orderedlist>
4040           <listitem>
4041             <para>Issue the <emphasis role="bold">fs whereis</emphasis> command to display the name of the file server machine that
4042             houses the volume containing a file or directory. <programlisting>
4043    % <emphasis role="bold">fs whereis</emphasis> [&lt;<replaceable>dir/file path</replaceable>&gt;]
4044 </programlisting></para>
4045
4046             <para>where <variablelist>
4047                 <varlistentry>
4048                   <term><emphasis role="bold">whe</emphasis></term>
4049
4050                   <listitem>
4051                     <para>Is the shortest acceptable abbreviation of <emphasis role="bold">whereis</emphasis>.</para>
4052                   </listitem>
4053                 </varlistentry>
4054
4055                 <varlistentry>
4056                   <term><emphasis role="bold">dir/file path</emphasis></term>
4057
4058                   <listitem>
4059                     <para>Names a directory or file for which to report the location. Partial pathnames are interpreted relative to
4060                     the current working directory, which is the default if this argument is omitted.</para>
4061                   </listitem>
4062                 </varlistentry>
4063               </variablelist></para>
4064
4065             <para>The output displays the file server machine that houses the volume containing the file, as in the following
4066             example:</para>
4067
4068             <programlisting>
4069    % <emphasis role="bold">fs whereis /afs/abc.com/user/terry</emphasis>
4070    File /afs/abc.com/usr/terry is on host fs2.abc.com
4071 </programlisting>
4072           </listitem>
4073
4074           <listitem>
4075             <para>If you also want to know which partition houses the volume, first issue the <emphasis role="bold">fs
4076             listquota</emphasis> command to display the volume's name. For complete syntax, see <link linkend="HDRWQ224">To display
4077             the name of the volume that contains a file</link>. <programlisting>
4078    % <emphasis role="bold">fs listquota</emphasis> [&lt;<replaceable>dir/file path</replaceable>&gt;]
4079 </programlisting></para>
4080
4081             <para>Then issue the <emphasis role="bold">vos listvldb</emphasis> command, providing the volume name as the volume name
4082             or ID argument. For complete syntax and a description of the output, see <link linkend="HDRWQ218">To display VLDB
4083             entries</link>.</para>
4084
4085             <programlisting>
4086    % <emphasis role="bold">vos listvldb</emphasis> &lt;<replaceable>volume name or ID</replaceable>&gt;
4087 </programlisting>
4088           </listitem>
4089         </orderedlist>
4090       </sect3>
4091     </sect2>
4092   </sect1>
4093
4094   <sect1 id="HDRWQ226">
4095     <title>Moving Volumes</title>
4096
4097     <indexterm>
4098       <primary>moving</primary>
4099
4100       <secondary>volume</secondary>
4101     </indexterm>
4102
4103     <indexterm>
4104       <primary>volume</primary>
4105
4106       <secondary>moving</secondary>
4107     </indexterm>
4108
4109     <para>There are three main reasons to move volumes: <itemizedlist>
4110         <listitem>
4111           <para>To place volumes on other partitions or machines temporarily while repairing or replacing a disk or file server
4112           machine.</para>
4113         </listitem>
4114
4115         <listitem>
4116           <para><indexterm>
4117               <primary>disk partition</primary>
4118
4119               <secondary>moving volumes to reduce overcrowding</secondary>
4120             </indexterm> <indexterm>
4121               <primary>overcrowding of disk partition</primary>
4122
4123               <secondary>moving volumes to reduce</secondary>
4124             </indexterm> <indexterm>
4125               <primary>overcrowding of disk partition</primary>
4126
4127               <secondary>effect on users</secondary>
4128             </indexterm> <indexterm>
4129               <primary>failure</primary>
4130
4131               <secondary>of file storage due to full partition</secondary>
4132             </indexterm> <indexterm>
4133               <primary>file storage</primary>
4134
4135               <secondary>failed due to partition crowding</secondary>
4136             </indexterm> To free space on a partition that is becoming overcrowded. One symptom of overcrowding is that users cannot
4137           to save files even though the relevant volume is below its quota. The following error message confirms the problem:
4138           <programlisting>
4139    afs: failed to store file (partition full)
4140 </programlisting></para>
4141
4142           <para>You can track available space on AFS server partitions by using the <emphasis role="bold">scout</emphasis> or
4143           <emphasis role="bold">afsmonitor</emphasis> programs described in <link linkend="HDRWQ323">Monitoring and Auditing AFS
4144           Performance</link>.</para>
4145         </listitem>
4146
4147         <listitem>
4148           <para>A file server machine is becoming overloaded because it houses many more volumes than other machines of the same
4149           size, or has volumes with more popular files in them.</para>
4150         </listitem>
4151       </itemizedlist></para>
4152
4153     <indexterm>
4154       <primary>read/write volume</primary>
4155
4156       <secondary>moving</secondary>
4157     </indexterm>
4158
4159     <indexterm>
4160       <primary>backup volume</primary>
4161
4162       <secondary>removed by read/write move</secondary>
4163     </indexterm>
4164
4165     <para>To move a read/write volume, use the <emphasis role="bold">vos move</emphasis> command as described in the following
4166     instructions. Before attempting to move the volume, the <emphasis role="bold">vos</emphasis> command interpreter verifies that
4167     there is enough free space for it on the destination partition. If not, it does not attempt the move operation and prints the
4168     following message.</para>
4169
4170     <programlisting>
4171    vos: no space on target partition destination_part to move volume volume
4172 </programlisting>
4173
4174     <para>To move a read-only volume, you actually remove the volume from the current site by issuing the <emphasis role="bold">vos
4175     remove</emphasis> command as described in <link linkend="HDRWQ236">To remove a volume and unmount it</link>. Then define a new
4176     site and release the volume to it by issuing the <emphasis role="bold">vos addsite</emphasis> and <emphasis role="bold">vos
4177     release</emphasis> commands as described in <link linkend="HDRWQ194">To replicate a read/write volume (create a read-only
4178     volume)</link>.</para>
4179
4180     <indexterm>
4181       <primary>read-only volume</primary>
4182
4183       <secondary>moving</secondary>
4184     </indexterm>
4185
4186     <indexterm>
4187       <primary>backup volume</primary>
4188
4189       <secondary>moving</secondary>
4190     </indexterm>
4191
4192     <para>A backup volume always resides at the same site as its read/write source volume, so you cannot move a backup volume except
4193     as part of moving the read/write source. The <emphasis role="bold">vos move</emphasis> command automatically deletes the backup
4194     version when you move a read/write volume. To create a new backup volume at the new site as soon as the move operation
4195     completes, issue the <emphasis role="bold">vos backup</emphasis> command as described in <link linkend="HDRWQ205">To create and
4196     mount a backup volume</link>.</para>
4197
4198     <indexterm>
4199       <primary>commands</primary>
4200
4201       <secondary>vos move</secondary>
4202
4203       <tertiary>basic instructions</tertiary>
4204     </indexterm>
4205
4206     <indexterm>
4207       <primary>vos commands</primary>
4208
4209       <secondary>move</secondary>
4210
4211       <tertiary>basic instructions</tertiary>
4212     </indexterm>
4213
4214     <sect2 id="Header_244">
4215       <title>To move a read/write volume</title>
4216
4217       <orderedlist>
4218         <listitem>
4219           <para>Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, issue
4220           the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To
4221           display the users in the UserList file</link>. <programlisting>
4222    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
4223 </programlisting></para>
4224         </listitem>
4225
4226         <listitem>
4227           <para>Issue the <emphasis role="bold">vos move</emphasis> command to move the volume. Type it on a single line; it appears
4228           on multiple lines here only for legibility. <programlisting>
4229    % <emphasis role="bold">vos move</emphasis> &lt;<replaceable>volume name or ID</replaceable>&gt; \ &lt;<replaceable>machine name on source</replaceable>&gt;
4230           &lt;<replaceable>partition name on source </replaceable>&gt; \ &lt;<replaceable>machine name on destination</replaceable>&gt; &lt;partition name on
4231           destination&gt;
4232 </programlisting></para>
4233
4234           <para>where <variablelist>
4235               <varlistentry>
4236                 <term><emphasis role="bold">m</emphasis></term>
4237
4238                 <listitem>
4239                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">move</emphasis>.</para>
4240                 </listitem>
4241               </varlistentry>
4242
4243               <varlistentry>
4244                 <term><emphasis role="bold">volume name or ID</emphasis></term>
4245
4246                 <listitem>
4247                   <para>Specifies the name or volume ID number of the read/write volume to move.</para>
4248                 </listitem>
4249               </varlistentry>
4250
4251               <varlistentry>
4252                 <term><emphasis role="bold">machine name on source</emphasis></term>
4253
4254                 <listitem>
4255                   <para>Names the file server machine currently housing the volume.</para>
4256                 </listitem>
4257               </varlistentry>
4258
4259               <varlistentry>
4260                 <term><emphasis role="bold">partition name on source</emphasis></term>
4261
4262                 <listitem>
4263                   <para>Names the partition currently housing the volume.</para>
4264                 </listitem>
4265               </varlistentry>
4266
4267               <varlistentry>
4268                 <term><emphasis role="bold">machine name on destination</emphasis></term>
4269
4270                 <listitem>
4271                   <para>Names the file server machine to which to move the volume.</para>
4272                 </listitem>
4273               </varlistentry>
4274
4275               <varlistentry>
4276                 <term><emphasis role="bold">partition name on destination</emphasis></term>
4277
4278                 <listitem>
4279                   <para>Names the partition to which to move the volume.</para>
4280                 </listitem>
4281               </varlistentry>
4282             </variablelist></para>
4283
4284           <note>
4285             <para>It is best not to halt a <emphasis role="bold">vos move</emphasis> operation before it completes, because parts of
4286             the volume can be left on both the source and destination machines. For more information, see the command's reference
4287             page in the <emphasis>OpenAFS Administration Reference</emphasis>.</para>
4288           </note>
4289         </listitem>
4290
4291         <listitem>
4292           <para><emphasis role="bold">(Optional)</emphasis> Issue the <emphasis role="bold">vos listvldb</emphasis> command to
4293           confirm the success of the move. Complete instructions appear in <link linkend="HDRWQ218">To display VLDB entries</link>.
4294           <programlisting>
4295    % <emphasis role="bold">vos listvldb</emphasis> &lt;<replaceable>volume name or ID</replaceable>&gt;
4296 </programlisting></para>
4297         </listitem>
4298
4299         <listitem>
4300           <para>If a backup version existed at the read/write volume's previous site, create a new backup at the new site by issuing
4301           the <emphasis role="bold">vos backup</emphasis> command, which is fully described in <link linkend="HDRWQ205">To create
4302           and mount a backup volume</link>. <programlisting>
4303    % <emphasis role="bold">vos backup</emphasis> &lt;<replaceable>volume name or ID</replaceable>&gt;
4304 </programlisting></para>
4305         </listitem>
4306       </orderedlist>
4307     </sect2>
4308   </sect1>
4309
4310   <sect1 id="HDRWQ227">
4311     <title>Synchronizing the VLDB and Volume Headers</title>
4312
4313     <indexterm>
4314       <primary>VLDB</primary>
4315
4316       <secondary>synchronizing with volume headers</secondary>
4317     </indexterm>
4318
4319     <indexterm>
4320       <primary>volume header</primary>
4321
4322       <secondary>synchronizing with VLDB</secondary>
4323     </indexterm>
4324
4325     <indexterm>
4326       <primary>volume</primary>
4327
4328       <secondary>synchronizing VLDB and volume header</secondary>
4329     </indexterm>
4330
4331     <para>AFS can provide transparent file access because the Volume Location Database (VLDB) constantly tracks volume locations.
4332     When the Cache Manager needs a file, it contacts the Volume Location (VL) Server, which reads the VLDB for the current location
4333     of the volume containing the file. Therefore, the VLDB must accurately reflect the state of volumes on the file server machines
4334     at all times. The Volume Server and VL Server automatically update a volume's VLDB entry when its status changes during a
4335     <emphasis role="bold">vos</emphasis> operation, by performing the following series of steps. <orderedlist>
4336         <listitem>
4337           <para><anchor id="LIWQ228" />The VL Server locks the VLDB entry. The lock advises other operations not to manipulate any
4338           of the volume versions (read/write, read-only, or backup), which prevents the inconsistency that can result from multiple
4339           simultaneous operations.</para>
4340         </listitem>
4341
4342         <listitem>
4343           <para><indexterm>
4344               <primary>intention flag in VLDB entry</primary>
4345             </indexterm> <indexterm>
4346               <primary>VLDB</primary>
4347
4348               <secondary>intention flag set by VL Server</secondary>
4349             </indexterm> <anchor id="LIWQ229" />The VL Server sets an <emphasis>intention flag</emphasis> in the VLDB entry that
4350           indicates the kind of operation to be performed. This flag never appears in VLDB listings because it is for internal use
4351           only. In case the operation terminates prematurely, this flag tells the Salvager which operation was interrupted. (The
4352           Salvager then determines the steps necessary either to complete the operation or return the volume to a previous
4353           consistent state. For more information on salvaging, see <link linkend="HDRWQ232">Salvaging Volumes</link>.)</para>
4354         </listitem>
4355
4356         <listitem>
4357           <para><anchor id="LIWQ230" />The Volume Server manipulates the volume. It usually sets the
4358           <computeroutput>Off-line</computeroutput> flag in the volume header, which makes the volume inaccessible to the File
4359           Server and other Volume Server operations during the manipulation. When the operation completes, the volume is again
4360           marked <computeroutput>On-line</computeroutput>.</para>
4361         </listitem>
4362
4363         <listitem>
4364           <para><anchor id="LIWQ231" />The VL Server records any changes resulting from the operation in the VLDB entry. Once the
4365           operation is complete, it removes the intention flag set in Step <link linkend="LIWQ229">2</link>and releases the lock set
4366           in Step <link linkend="LIWQ228">1</link>.</para>
4367         </listitem>
4368       </orderedlist></para>
4369
4370     <para>If a <emphasis role="bold">vos</emphasis> operation fails while the Volume Server is manipulating the volume
4371     (corresponding to Step <link linkend="LIWQ230">3</link>), the volume can be left in an intermediate state, which is termed
4372     <emphasis>corruption</emphasis>. In this case, the <computeroutput>Off-line</computeroutput> or <computeroutput>Off-line**needs
4373     salvage**</computeroutput> marker usually appears at the end of the first line of output from the <emphasis role="bold">vos
4374     examine</emphasis> command. To repair the corruption, run the Salvager before attempting to resynchronize the VLDB and volume
4375     headers. For salvaging instructions, see <link linkend="HDRWQ232">Salvaging Volumes</link>.</para>
4376
4377     <para>More commonly, an interruption while flags are being set or removed (corresponding to Step <link
4378     linkend="LIWQ228">1</link>, Step <link linkend="LIWQ229">2</link>, or Step <link linkend="LIWQ231">4</link>) causes a
4379     discrepancy between the VLDB and volume headers. To resynchronize the VLDB and volumes, use the <emphasis role="bold">vos
4380     syncvldb</emphasis> and <emphasis role="bold">vos syncserv</emphasis> commands. To achieve complete VLDB consistency, it is best
4381     to run the <emphasis role="bold">vos syncvldb</emphasis> command on all file server machines in the cell, and then run the
4382     <emphasis role="bold">vos syncserv</emphasis> command on all file server machines in the cell.</para>
4383
4384     <indexterm>
4385       <primary>symptoms</primary>
4386
4387       <secondary>of VLDB/volume header desynchronization</secondary>
4388     </indexterm>
4389
4390     <indexterm>
4391       <primary>desynchronization of VLDB/volume headers</primary>
4392
4393       <secondary>symptoms of</secondary>
4394     </indexterm>
4395
4396     <indexterm>
4397       <primary>synchrony of VLDB and volume headers</primary>
4398
4399       <secondary>symptoms of lack of</secondary>
4400     </indexterm>
4401
4402     <para>There are several symptoms that indicate a volume operation failed: <itemizedlist>
4403         <listitem>
4404           <para>Error messages on the standard error stream or in server process log files indicate that an operation terminated
4405           abnormally. Perhaps you had to halt the operation before it completed (for instance, by using a signal such as <emphasis
4406           role="bold">Ctrl-c</emphasis>), or a file server machine or server process was not functioning when the operation ran. To
4407           determine if a machine or process is still not functioning, issue the <emphasis role="bold">bos status</emphasis> command
4408           as described in <link linkend="HDRWQ158">Displaying Process Status and Information from the BosConfig File</link>.</para>
4409         </listitem>
4410
4411         <listitem>
4412           <para>A subsequent <emphasis role="bold">vos</emphasis> operation fails because a previous failure left a VLDB entry
4413           locked. Sometimes an error message reports that a volume is locked. To display a list of locked volumes, use the <emphasis
4414           role="bold">-locked</emphasis> flag on the <emphasis role="bold">vos listvldb</emphasis> command as described in <link
4415           linkend="HDRWQ217">Displaying VLDB Entries</link>.</para>
4416
4417           <para>If the only problem with a volume is that its VLDB entry is locked, you probably do not need to synchronize the
4418           entire VLDB. Instead use the <emphasis role="bold">vos unlock</emphasis> or <emphasis role="bold">vos
4419           unlockvldb</emphasis> command to unlock the entry, as described in <link linkend="HDRWQ247">Unlocking and Locking VLDB
4420           Entries</link>.</para>
4421         </listitem>
4422
4423         <listitem>
4424           <para>A subsequent <emphasis role="bold">vos</emphasis> operation fails because a previous failure left a volume marked as
4425           offline. To check a volume's current status, check the first line of output from the <emphasis role="bold">vos
4426           examine</emphasis> command as described in <link linkend="HDRWQ221">Displaying One Volume's VLDB Entry and Volume
4427           Header</link>.</para>
4428         </listitem>
4429       </itemizedlist></para>
4430
4431     <indexterm>
4432       <primary>synchrony of VLDB and volume headers</primary>
4433
4434       <secondary>restoring</secondary>
4435     </indexterm>
4436
4437     <indexterm>
4438       <primary>restoring</primary>
4439
4440       <secondary>synchrony of VLDB and volume headers</secondary>
4441     </indexterm>
4442
4443     <indexterm>
4444       <primary>desynchronization of VLDB/volume headers</primary>
4445
4446       <secondary>fixing</secondary>
4447     </indexterm>
4448
4449     <indexterm>
4450       <primary>Salvager</primary>
4451
4452       <secondary>running before VLDB/volume header resynchronization</secondary>
4453     </indexterm>
4454
4455     <indexterm>
4456       <primary>vos commands</primary>
4457
4458       <secondary>syncvldb</secondary>
4459
4460       <tertiary>effect</tertiary>
4461     </indexterm>
4462
4463     <para>The <emphasis role="bold">vos syncvldb</emphasis> command corrects the information in the Volume Location Database (VLDB)
4464     either about all volumes housed on a file server machine, about the volumes on just one partition, or about a single volume. If
4465     checking about one or more partitions, the command contacts the Volume Server to obtain a list of the volumes that actually
4466     reside on each partition. It then obtains the VLDB entry for each volume from the VL Server. It changes the VLDB entry as
4467     necessary to reflect the state of the volume on the partition. For example, it creates or updates a VLDB entry when it finds a
4468     volume for which the VLDB entry is missing or incomplete. However, if there is already a VLDB entry that defines a different
4469     location for the volume, or there are irreconcilable conflicts with other VLDB entries, it instead writes a message about the
4470     conflict to the standard error stream. The command never removes volumes from the file server machine.</para>
4471
4472     <para>When checking a single volume's VLDB entry, the command also automatically performs the operations invoked by the
4473     <emphasis role="bold">vos syncserv</emphasis> command: it not only verifies that the VLDB entry is correct for the specified
4474     volume type (read/write, backup, or read-only), but also checks that any related volume types mentioned in the VLDB entry
4475     actually exist at the site listed in the entry.</para>
4476
4477     <indexterm>
4478       <primary>vos commands</primary>
4479
4480       <secondary>syncserv</secondary>
4481
4482       <tertiary>effect</tertiary>
4483     </indexterm>
4484
4485     <para>The <emphasis role="bold">vos syncserv</emphasis> command verifies that each volume type (read/write, read-only, and
4486     backup) mentioned in a VLDB entry actually exists at the site indicated in the entry. It checks all VLDB entries that mention a
4487     site either on any of a file server machine's partitions or on one partition. Note that command can end up inspecting sites
4488     other than on the specified machine or partition, if there are read-only versions of the volume at sites other than the
4489     read/write site.</para>
4490
4491     <para>The command alters any incorrect information in the VLDB, unless there is an irreconcilable conflict with other VLDB
4492     entries. In that case, it writes a message to the standard error stream instead. The command never removes volumes from their
4493     sites.</para>
4494
4495     <indexterm>
4496       <primary>commands</primary>
4497
4498       <secondary>vos syncvldb</secondary>
4499     </indexterm>
4500
4501     <indexterm>
4502       <primary>vos commands</primary>
4503
4504       <secondary>syncvldb</secondary>
4505
4506       <tertiary>syntax</tertiary>
4507     </indexterm>
4508
4509     <indexterm>
4510       <primary>commands</primary>
4511
4512       <secondary>vos syncserv</secondary>
4513     </indexterm>
4514
4515     <indexterm>
4516       <primary>vos commands</primary>
4517
4518       <secondary>syncserv</secondary>
4519
4520       <tertiary>syntax</tertiary>
4521     </indexterm>
4522
4523     <sect2 id="Header_246">
4524       <title>To synchronize the VLDB with volume headers</title>
4525
4526       <orderedlist>
4527         <listitem>
4528           <para>Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, issue
4529           the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To
4530           display the users in the UserList file</link>. <programlisting>
4531    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
4532 </programlisting></para>
4533         </listitem>
4534
4535         <listitem>
4536           <para><anchor id="LIVOL-SYNCVL" />Issue the <emphasis role="bold">vos syncvldb</emphasis> command to make the VLDB reflect
4537           the true state of all volumes on a machine or partition, or the state of one volume.</para>
4538
4539           <note>
4540             <para>To synchronize the VLDB completely, issue the command repeatedly, substituting each file server machine in your
4541             cell for the <emphasis role="bold">-server</emphasis> argument in turn and omitting the <emphasis
4542             role="bold">-partition</emphasis> and <emphasis role="bold">-volume</emphasis> arguments, before proceeding to Step
4543             <link linkend="LIVOL-SYNCSR">3</link>.</para>
4544           </note>
4545
4546           <programlisting>
4547    % <emphasis role="bold">vos syncvldb -server</emphasis> &lt;<replaceable>machine name</replaceable>&gt; [<emphasis role="bold">-partition</emphasis> &lt;<replaceable>partition name</replaceable>&gt;] \
4548         [<emphasis role="bold">-volume</emphasis> &lt;<replaceable>volume name or ID</replaceable>&gt;] [<emphasis role="bold">-verbose &gt;&gt;</emphasis> file]
4549 </programlisting>
4550
4551           <para>where <variablelist>
4552               <varlistentry>
4553                 <term><emphasis role="bold">syncv</emphasis></term>
4554
4555                 <listitem>
4556                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">syncvldb</emphasis>.</para>
4557                 </listitem>
4558               </varlistentry>
4559
4560               <varlistentry>
4561                 <term><emphasis role="bold">-server</emphasis></term>
4562
4563                 <listitem>
4564                   <para>Names the file server machine housing the volumes for which to verify VLDB entries. If you are also
4565                   providing the <emphasis role="bold">-volume</emphasis> argument, this argument must name the machine where the
4566                   volume actually resides.</para>
4567                 </listitem>
4568               </varlistentry>
4569
4570               <varlistentry>
4571                 <term><emphasis role="bold">-partition</emphasis></term>
4572
4573                 <listitem>
4574                   <para>Identifies the partition (on the file server machine specified by the <emphasis
4575                   role="bold">-server</emphasis> argument) housing the volumes for which to verify VLDB entries. In general, it is
4576                   best to omit this argument so that either the VLDB entries for all volumes on a server machine are corrected (if
4577                   you do not provide the <emphasis role="bold">-volume</emphasis> argument), or so that you do not need to guarantee
4578                   that the partition actually houses the volume named by the <emphasis role="bold">-volume</emphasis>
4579                   argument.</para>
4580                 </listitem>
4581               </varlistentry>
4582
4583               <varlistentry>
4584                 <term><emphasis role="bold">-volume</emphasis></term>
4585
4586                 <listitem>
4587                   <para>Specifies the name or volume ID number of a single volume for which to verify the VLDB entry.</para>
4588                 </listitem>
4589               </varlistentry>
4590
4591               <varlistentry>
4592                 <term><emphasis role="bold">-verbose &gt;&gt; file</emphasis></term>
4593
4594                 <listitem>
4595                   <para>Directs a detailed trace to the file called file, which can be either in AFS or on the local disk of the
4596                   machine on which you are issuing the command. The command often writes a large amount of output to the standard
4597                   output stream; writing it to a file enables you to examine the output more carefully.</para>
4598                 </listitem>
4599               </varlistentry>
4600             </variablelist></para>
4601         </listitem>
4602
4603         <listitem>
4604           <para><anchor id="LIVOL-SYNCSR" />Issue the <emphasis role="bold">vos syncserv</emphasis> command to inspect each volume
4605           for which the VLDB lists a version at the specified site.</para>
4606
4607           <note>
4608             <para>To synchronize the VLDB completely, issue the command repeatedly, substituting each file server machine in your
4609             cell for the machine name argument in turn and omitting the partition name argument.</para>
4610           </note>
4611
4612           <programlisting>
4613    % <emphasis role="bold">vos syncserv</emphasis> &lt;<replaceable>machine name</replaceable>&gt; [&lt;<replaceable>partition name</replaceable>&gt;] [<emphasis
4614               role="bold">-v &gt;&gt;</emphasis> file]
4615 </programlisting>
4616
4617           <para>where <variablelist>
4618               <varlistentry>
4619                 <term><emphasis role="bold">syncs</emphasis></term>
4620
4621                 <listitem>
4622                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">syncserv</emphasis>.</para>
4623                 </listitem>
4624               </varlistentry>
4625
4626               <varlistentry>
4627                 <term><emphasis role="bold">machine name</emphasis></term>
4628
4629                 <listitem>
4630                   <para>Names the file server machine mentioned in each VLDB entry to check.</para>
4631                 </listitem>
4632               </varlistentry>
4633
4634               <varlistentry>
4635                 <term><emphasis role="bold">partition name</emphasis></term>
4636
4637                 <listitem>
4638                   <para>Identifies the partition mentioned in each VLDB entry to check. If synchronizing the entire VLDB, omit this
4639                   argument.</para>
4640                 </listitem>
4641               </varlistentry>
4642
4643               <varlistentry>
4644                 <term><emphasis role="bold">-v &gt;&gt; file</emphasis></term>
4645
4646                 <listitem>
4647                   <para>Directs a detailed trace to the file called file, which can be either in AFS or on the local disk of the
4648                   machine on which you are issuing the command. The command often writes a large amount of output to the standard
4649                   output stream; writing it to a file enables you to examine the output more carefully.</para>
4650                 </listitem>
4651               </varlistentry>
4652             </variablelist></para>
4653         </listitem>
4654       </orderedlist>
4655     </sect2>
4656   </sect1>
4657
4658   <sect1 id="HDRWQ232">
4659     <title>Salvaging Volumes</title>
4660
4661     <indexterm>
4662       <primary>volume</primary>
4663
4664       <secondary>salvaging</secondary>
4665     </indexterm>
4666
4667     <indexterm>
4668       <primary>corruption</primary>
4669
4670       <secondary>symptoms and types</secondary>
4671     </indexterm>
4672
4673     <indexterm>
4674       <primary>symptoms</primary>
4675
4676       <secondary>volume corruption</secondary>
4677     </indexterm>
4678
4679     <indexterm>
4680       <primary>volume</primary>
4681
4682       <secondary>symptoms of corruption</secondary>
4683     </indexterm>
4684
4685     <indexterm>
4686       <primary>Salvager</primary>
4687
4688       <secondary>instructions for invoking</secondary>
4689     </indexterm>
4690
4691     <indexterm>
4692       <primary>file server machine</primary>
4693
4694       <secondary>salvaging volumes</secondary>
4695     </indexterm>
4696
4697     <indexterm>
4698       <primary>salvaging</primary>
4699
4700       <secondary>volumes</secondary>
4701     </indexterm>
4702
4703     <indexterm>
4704       <primary>partition</primary>
4705
4706       <secondary>salvaging all volumes</secondary>
4707     </indexterm>
4708
4709     <para>An unexpected interruption while the Volume Server or File Server is manipulating the data in a volume can leave the
4710     volume in an intermediate state (<emphasis>corrupted</emphasis>), rather than just creating a discrepancy between the
4711     information in the VLDB and volume headers. For example, the failure of the operation that saves changes to a file (by
4712     overwriting old data with new) can leave the old and new data mixed together on the disk.</para>
4713
4714     <para>If an operation halts because the Volume Server or File Server exits unexpectedly, the BOS Server automatically shuts down
4715     all components of the <emphasis role="bold">fs</emphasis> process and invokes the Salvager. The Salvager checks for and repairs
4716     any inconsistencies it can. Sometimes, however, there are symptoms of the following sort, which indicate corruption serious
4717     enough to create problems but not serious enough to cause the File Server component to fail. In these cases you can invoke the
4718     Salvager yourself by issuing the <emphasis role="bold">bos salvage</emphasis> command. <itemizedlist>
4719         <listitem>
4720           <para><emphasis role="bold">Symptom:</emphasis> A file appears in the output of the <emphasis role="bold">ls</emphasis>
4721           command, but attempts to access the file fail with messages indicating that it does not exist.</para>
4722
4723           <para><emphasis role="bold">Possible cause:</emphasis> The Volume Server or File Server exited in the middle of a
4724           file-creation operation, after changing the directory structure, but before actually storing data. (Other possible causes
4725           are that the ACL on the directory does not grant the permissions you need to access the file, or there is a process,
4726           machine, or network outage. Check for these causes before assuming the file is corrupted.)</para>
4727
4728           <para><emphasis role="bold">Salvager's solution:</emphasis> Remove the file's entry from the directory structure.</para>
4729         </listitem>
4730
4731         <listitem>
4732           <para><emphasis role="bold">Symptom:</emphasis> A volume is marked <computeroutput>Off-line</computeroutput> in the output
4733           from the <emphasis role="bold">vos examine</emphasis> and <emphasis role="bold">vos listvol</emphasis> commands, or
4734           attempts to access the volume fail.</para>
4735
4736           <para><emphasis role="bold">Possible cause:</emphasis> Two files or versions of a file are sharing the same disk blocks
4737           because of an interrupted operation. The File Server and Volume Server normally refuse to attach volumes that exhibit this
4738           type of corruption, because it can be very dangerous. If the Volume Server or File Server do attach the volume but are
4739           unsure of the status of the affected disk blocks, they sometimes try to write yet more data there. When they cannot
4740           perform the write, the data is lost. This effect can cascade, causing loss of all data on a partition.</para>
4741
4742           <para><emphasis role="bold">Salvager's solution:</emphasis> Delete the data from the corrupted disk blocks in preference
4743           to losing an entire partition.</para>
4744         </listitem>
4745
4746         <listitem>
4747           <para><emphasis role="bold">Symptom:</emphasis> There is less space available on the partition than you expect based on
4748           the size statistic reported for each volume by the <emphasis role="bold">vos listvol</emphasis> command.</para>
4749
4750           <para><emphasis role="bold">Possible cause:</emphasis> There are orphaned files and directories. An
4751           <emphasis>orphaned</emphasis> element is completely inaccessible because it is not referenced by any directory that can
4752           act as its parent (is higher in the file tree). An orphaned element is not counted in the calculation of a volume's size
4753           (or against its quota), even though it occupies space on the server partition.</para>
4754
4755           <para><emphasis role="bold">Salvager's solution:</emphasis> By default, print a message to the <emphasis
4756           role="bold">/usr/afs/logs/SalvageLog</emphasis> file reporting how many orphans were found and the approximate number of
4757           kilobytes they are consuming. You can use the <emphasis role="bold">-orphans</emphasis> argument to remove or attach
4758           orphaned elements instead. See <link linkend="HDRWQ233">To salvage volumes</link>.</para>
4759         </listitem>
4760       </itemizedlist></para>
4761
4762     <para>When you notice symptoms such as these, use the <emphasis role="bold">bos salvage</emphasis> command to invoke the
4763     Salvager before corruption spreads. (Even though it operates on volumes, the command belongs to the <emphasis
4764     role="bold">bos</emphasis> suite because the BOS Server must coordinate the shutdown and restart of the Volume Server and File
4765     Server with the Salvager. It shuts them down before the Salvager starts, and automatically restarts them when the salvage
4766     operation finishes.)</para>
4767
4768     <para>All of the AFS data stored on a file server machine is inaccessible during the salvage of one or more partitions. If you
4769     salvage just one volume, it alone is inaccessible.</para>
4770
4771     <para>When processing one or more partitions, the command restores consistency to corrupted read/write volumes where possible.
4772     For read-only or backup volumes, it inspects only the volume header: <itemizedlist>
4773         <listitem>
4774           <para>If the volume header is corrupted, the Salvager removes the volume completely and records the removal in its log
4775           file, <emphasis role="bold">/usr/afs/logs/SalvageLog</emphasis>. Issue the <emphasis role="bold">vos release</emphasis> or
4776           <emphasis role="bold">vos backup</emphasis> command to create the read-only or backup volume again.</para>
4777         </listitem>
4778
4779         <listitem>
4780           <para>If the volume header is intact, the Salvager skips the volume (does not check for corruption in the contents).
4781           However, if the File Server notices corruption as it initializes, it sometimes refuses to attach the volume or bring it
4782           online. In this case, it is simplest to remove the volume by issuing the <emphasis role="bold">vos remove</emphasis> or
4783           <emphasis role="bold">vos zap</emphasis> command. Then issue the <emphasis role="bold">vos release</emphasis> or <emphasis
4784           role="bold">vos backup</emphasis> command to create it again.</para>
4785         </listitem>
4786       </itemizedlist></para>
4787
4788     <para>Combine the <emphasis role="bold">bos salvage</emphasis> command's arguments as indicated to salvage different numbers of
4789     volumes: <itemizedlist>
4790         <listitem>
4791           <para>To salvage all volumes on a file server machine, combine the <emphasis role="bold">-server</emphasis> argument and
4792           the <emphasis role="bold">-all</emphasis> flag.</para>
4793         </listitem>
4794
4795         <listitem>
4796           <para>To salvage all volumes on one partition, combine the <emphasis role="bold">-server</emphasis> and <emphasis
4797           role="bold">-partition</emphasis> arguments.</para>
4798         </listitem>
4799
4800         <listitem>
4801           <para>To salvage only one read/write volume, combine the <emphasis role="bold">-server</emphasis>, <emphasis
4802           role="bold">-partition</emphasis>, and <emphasis role="bold">-volume</emphasis> arguments. Only that volume is
4803           inaccessible to Cache Managers, because the BOS Server does not shutdown the File Server and Volume Server processes
4804           during the salvage of a single volume. Do not name a read-only or backup volume with the <emphasis
4805           role="bold">-volume</emphasis> argument. Instead, remove the volume, using the <emphasis role="bold">vos remove</emphasis>
4806           or <emphasis role="bold">vos zap</emphasis> command. Then create a new copy of the volume with the <emphasis
4807           role="bold">vos release</emphasis> or <emphasis role="bold">vos backup</emphasis> command.</para>
4808         </listitem>
4809       </itemizedlist></para>
4810
4811     <para>The Salvager always writes a trace to the <emphasis role="bold">/usr/afs/logs/SalvageLog</emphasis> file on the file
4812     server machine where it runs. To record the trace in another file as well (either in AFS or on the local disk of the machine
4813     where you issue the <emphasis role="bold">bos salvage</emphasis> command), name the file with the <emphasis
4814     role="bold">-file</emphasis> argument. Or, to display the trace on the standard output stream as it is written to the <emphasis
4815     role="bold">/usr/afs/logs/SalvageLog</emphasis> file, include the <emphasis role="bold">-showlog</emphasis> flag.</para>
4816
4817     <para>By default, multiple Salvager subprocesses run in parallel: one for each partition up to four, and four subprocesses for
4818     four or more partitions. To increase or decrease the number of subprocesses running in parallel, provide a positive integer
4819     value for the <emphasis role="bold">-parallel</emphasis> argument.</para>
4820
4821     <para>If there is more than one server partition on a physical disk, the Salvager by default salvages them serially to avoid the
4822     inefficiency of constantly moving the disk head from one partition to another. However, this strategy is often not ideal if the
4823     partitions are configured as logical volumes that span multiple disks. To force the Salvager to salvage logical volumes in
4824     parallel, provide the string <emphasis role="bold">all</emphasis> as the value for the <emphasis
4825     role="bold">-parallel</emphasis> argument. Provide a positive integer to specify the number of subprocesses to run in parallel
4826     (for example, <emphasis role="bold">-parallel 5all</emphasis> for five subprocesses), or omit the integer to run up to four
4827     subprocesses, depending on the number of logical volumes being salvaged.</para>
4828
4829     <para>The Salvager creates temporary files as it runs, by default writing them to the partition it is salvaging. The number of
4830     files can be quite large, and if the partition is too full to accommodate them, the Salvager terminates without completing the
4831     salvage operation (it always removes the temporary files before exiting). Other Salvager subprocesses running at the same time
4832     continue until they finish salvaging all other partitions where there is enough disk space for temporary files. To complete the
4833     interrupted salvage, reissue the command against the appropriate partitions, adding the <emphasis role="bold">-tmpdir</emphasis>
4834     argument to redirect the temporary files to a local disk directory that has enough space.</para>
4835
4836     <para>The <emphasis role="bold">-orphans</emphasis> argument controls how the Salvager handles orphaned files and directories
4837     that it finds on server partitions it is salvaging. An orphaned element is completely inaccessible because it is not referenced
4838     by the vnode of any directory that can act as its parent (is higher in the filespace). Orphaned objects occupy space on the
4839     server partition, but do not count against the volume's quota.</para>
4840
4841     <para>During the salvage, the output of the <emphasis role="bold">bos status</emphasis> command reports the following auxiliary
4842     status for the <emphasis role="bold">fs</emphasis> process:</para>
4843
4844     <programlisting>
4845    Salvaging file system
4846 </programlisting>
4847
4848     <indexterm>
4849       <primary>bos commands</primary>
4850
4851       <secondary>salvage</secondary>
4852     </indexterm>
4853
4854     <indexterm>
4855       <primary>commands</primary>
4856
4857       <secondary>bos salvage</secondary>
4858     </indexterm>
4859
4860     <sect2 id="HDRWQ233">
4861       <title>To salvage volumes</title>
4862
4863       <orderedlist>
4864         <listitem>
4865           <para>Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, issue
4866           the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To
4867           display the users in the UserList file</link>. <programlisting>
4868    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
4869 </programlisting></para>
4870         </listitem>
4871
4872         <listitem>
4873           <para>Issue the <emphasis role="bold">bos salvage</emphasis> command to salvage one or more volumes. <programlisting>
4874    % <emphasis role="bold">bos salvage  -server</emphasis> &lt;<replaceable>machine name</replaceable>&gt;  [<emphasis role="bold">-partition</emphasis> &lt;<replaceable>salvage partition</replaceable>&gt;]  \
4875                   [<emphasis role="bold">-volume</emphasis> &lt;<replaceable>salvage volume number or volume name</replaceable>&gt;]  \
4876                   [<emphasis role="bold">-file</emphasis> salvage log output file]  [<emphasis role="bold">-all</emphasis>]  [<emphasis
4877                 role="bold">-showlog</emphasis>]  \
4878                   [<emphasis role="bold">-parallel</emphasis> &lt;<replaceable># of max parallel partition salvaging</replaceable>&gt;]  \
4879                   [<emphasis role="bold">-tmpdir</emphasis> &lt;<replaceable>directory to place tmp files</replaceable>&gt;]  \
4880                   [<emphasis role="bold">-orphans</emphasis> &lt;<emphasis role="bold">ignore</emphasis> | <emphasis role="bold">remove</emphasis> | <emphasis
4881                 role="bold">attach</emphasis> &gt;]
4882 </programlisting></para>
4883
4884           <para>where <variablelist>
4885               <varlistentry>
4886                 <term><emphasis role="bold">-server</emphasis></term>
4887
4888                 <listitem>
4889                   <para>Names the file server machine on which to salvage volumes. This argument can be combined either with the
4890                   <emphasis role="bold">-all</emphasis> flag, the <emphasis role="bold">-partition</emphasis> argument, or both the
4891                   <emphasis role="bold">-partition</emphasis> and <emphasis role="bold">-volume</emphasis> arguments.</para>
4892                 </listitem>
4893               </varlistentry>
4894
4895               <varlistentry>
4896                 <term><emphasis role="bold">-partition</emphasis></term>
4897
4898                 <listitem>
4899                   <para>Names a single partition on which to salvage all volumes. The <emphasis role="bold">-server</emphasis>
4900                   argument must be provided along with this one.</para>
4901                 </listitem>
4902               </varlistentry>
4903
4904               <varlistentry>
4905                 <term><emphasis role="bold">-volume</emphasis></term>
4906
4907                 <listitem>
4908                   <para>Specifies the name or volume ID number of one read/write volume to salvage. Combine this argument with the
4909                   <emphasis role="bold">-server</emphasis> and <emphasis role="bold">-partition</emphasis> arguments.</para>
4910                 </listitem>
4911               </varlistentry>
4912
4913               <varlistentry>
4914                 <term><emphasis role="bold">-file</emphasis></term>
4915
4916                 <listitem>
4917                   <para>Specifies the complete pathname of a file into which to write a trace of the salvage operation, in addition
4918                   to the <emphasis role="bold">/usr/afs/logs/SalvageLog</emphasis> file on the server machine. If the file pathname
4919                   is local, the trace is written to the specified file on the local disk of the machine where the <emphasis
4920                   role="bold">bos salvage</emphasis> command is issued. If the <emphasis role="bold">-volume</emphasis> argument is
4921                   included, the file can be in AFS, though not in the volume being salvaged. Do not combine this argument with the
4922                   <emphasis role="bold">-showlog</emphasis> flag.</para>
4923                 </listitem>
4924               </varlistentry>
4925
4926               <varlistentry>
4927                 <term><emphasis role="bold">-all</emphasis></term>
4928
4929                 <listitem>
4930                   <para>Salvages all volumes on all of the partitions on the machine named by the <emphasis
4931                   role="bold">-server</emphasis> argument.</para>
4932                 </listitem>
4933               </varlistentry>
4934
4935               <varlistentry>
4936                 <term><emphasis role="bold">-showlog</emphasis></term>
4937
4938                 <listitem>
4939                   <para>Displays the trace of the salvage operation on the standard output stream, as well as writing it to the
4940                   <emphasis role="bold">/usr/afs/logs/SalvageLog</emphasis> file.</para>
4941                 </listitem>
4942               </varlistentry>
4943
4944               <varlistentry>
4945                 <term><emphasis role="bold">-parallel</emphasis></term>
4946
4947                 <listitem>
4948                   <para>Specifies the maximum number of Salvager subprocesses to run in parallel. Provide one of three values:
4949                   <itemizedlist>
4950                       <listitem>
4951                         <para>An integer from the range <emphasis role="bold">1</emphasis> to <emphasis role="bold">32</emphasis>. A
4952                         value of <emphasis role="bold">1</emphasis> means that a single Salvager process salvages the partitions
4953                         sequentially.</para>
4954                       </listitem>
4955
4956                       <listitem>
4957                         <para>The string <emphasis role="bold">all</emphasis> to run up to four Salvager subprocesses in parallel on
4958                         partitions formatted as logical volumes that span multiple physical disks. Use this value only with such
4959                         logical volumes.</para>
4960                       </listitem>
4961
4962                       <listitem>
4963                         <para>The string <emphasis role="bold">all</emphasis> followed immediately (with no intervening space) by an
4964                         integer from the range <emphasis role="bold">1</emphasis> to <emphasis role="bold">32</emphasis>, to run the
4965                         specified number of Salvager subprocesses in parallel on partitions formatted as logical volumes. Use this
4966                         value only with such logical volumes.</para>
4967                       </listitem>
4968                     </itemizedlist></para>
4969
4970                   <para>The BOS Server never starts more Salvager subprocesses than there are partitions, and always starts only one
4971                   process to salvage a single volume. If this argument is omitted, up to four Salvager subprocesses run in
4972                   parallel.</para>
4973                 </listitem>
4974               </varlistentry>
4975
4976               <varlistentry>
4977                 <term><emphasis role="bold">-tmpdir</emphasis></term>
4978
4979                 <listitem>
4980                   <para>Specifies the full pathname of a local disk directory to which the Salvager process writes temporary files
4981                   as it runs. By default, it writes them to the partition it is currently salvaging.</para>
4982                 </listitem>
4983               </varlistentry>
4984
4985               <varlistentry>
4986                 <term><emphasis role="bold">-orphans</emphasis></term>
4987
4988                 <listitem>
4989                   <para>Controls how the Salvager handles orphaned files and directories. Choose one of the following three values:
4990                   <variablelist>
4991                       <varlistentry>
4992                         <term><emphasis role="bold">ignore</emphasis></term>
4993
4994                         <listitem>
4995                           <para>Leaves the orphaned objects on the disk, but prints a message to the <emphasis
4996                           role="bold">/usr/afs/logs/SalvageLog</emphasis> file reporting how many orphans were found and the
4997                           approximate number of kilobytes they are consuming. This is the default if you omit the <emphasis
4998                           role="bold">-orphans</emphasis> argument.</para>
4999                         </listitem>
5000                       </varlistentry>
5001
5002                       <varlistentry>
5003                         <term><emphasis role="bold">remove</emphasis></term>
5004
5005                         <listitem>
5006                           <para>Removes the orphaned objects, and prints a message to the <emphasis
5007                           role="bold">/usr/afs/logs/SalvageLog</emphasis> file reporting how many orphans were removed and the
5008                           approximate number of kilobytes they were consuming.</para>
5009                         </listitem>
5010                       </varlistentry>
5011
5012                       <varlistentry>
5013                         <term><emphasis role="bold">attach</emphasis></term>
5014
5015                         <listitem>
5016                           <para>Attaches the orphaned objects by creating a reference to them in the vnode of the volume's root
5017                           directory. Since each object's actual name is now lost, the Salvager assigns each one a name of the
5018                           following form: <simplelist>
5019                               <member><emphasis role="bold">_ _ORPHANFILE_ _.</emphasis> index for files</member>
5020
5021                               <member><emphasis role="bold">_ _ORPHANDIR_ _.</emphasis> index for directories</member>
5022                             </simplelist></para>
5023
5024                           <para>where index is a two-digit number that uniquely identifies each object. The orphans are charged
5025                           against the volume's quota and appear in the output of the <emphasis role="bold">ls</emphasis> command
5026                           issued against the volume's root directory.</para>
5027                         </listitem>
5028                       </varlistentry>
5029                     </variablelist></para>
5030                 </listitem>
5031               </varlistentry>
5032             </variablelist></para>
5033         </listitem>
5034       </orderedlist>
5035     </sect2>
5036   </sect1>
5037
5038   <sect1 id="HDRWQ234">
5039     <title>Setting and Displaying Volume Quota and Current Size</title>
5040
5041     <indexterm>
5042       <primary>volume</primary>
5043
5044       <secondary>quota</secondary>
5045
5046       <see>volume quota</see>
5047     </indexterm>
5048
5049     <indexterm>
5050       <primary>default</primary>
5051
5052       <secondary>volume quota</secondary>
5053     </indexterm>
5054
5055     <para>Every AFS volume has an associated quota which limits the volume's size. The default quota for a newly created volume is
5056     5,000 kilobyte blocks (slightly less that 5 MB). When a volume reaches its quota, the File Server rejects attempts to create new
5057     files or directories in it. If an application is writing data into an existing file in a full volume, the File Server allows a
5058     defined overage (by default, 1 MB). (You can use the <emphasis role="bold">fileserver</emphasis> command's <emphasis
5059     role="bold">-spare</emphasis> or <emphasis role="bold">-pctspare</emphasis> argument to change the default overage; see the
5060     command's reference page in the <emphasis>OpenAFS Administration Reference</emphasis>.)</para>
5061
5062     <para>To set a quota other than 5000 KB as you create a volume, include the <emphasis role="bold">-maxquota</emphasis> argument
5063     to the <emphasis role="bold">vos create</emphasis> command, as described in <link linkend="HDRWQ185">Creating Read/write
5064     Volumes</link>. To modify an existing volume's quota, issue either the <emphasis role="bold">fs setquota</emphasis> or the
5065     <emphasis role="bold">fs setvol</emphasis> command as described in the following instructions. Do not set an existing volume's
5066     quota lower than its current size.</para>
5067
5068     <para>In general, smaller volumes are easier to administer than larger ones. If you need to move volumes, say for load-balancing
5069     purposes, it is easier to find enough free space on other partitions for small volumes. Move operations complete more quickly
5070     for small volumes, reducing the potential for outages or other errors to interrupt the move. AFS supports a maximum volume size,
5071     which can vary for different AFS releases; see the <emphasis> OpenAFS Release Notes</emphasis> for the version you are using.
5072     Also, the size of a partition or logical places an absolute limit on volume size, because a volume cannot span multiple
5073     partitions or logical volumes.</para>
5074
5075     <para>It is generally safe to overpack partitions by putting more volumes on them than can actually fit if all the volumes reach
5076     their maximum quota. However, only experience determines to what degree overpacking works in your cell. It depends on what kind
5077     of quota you assign to volumes (particularly user volumes, which are more likely than system volumes to grow unpredictably) and
5078     how much information people generate and store in comparison to their quota.</para>
5079
5080     <para>There are several commands that display a volume's quota, as described in the following instructions. They differ in how
5081     much related information they produce.</para>
5082
5083     <sect2 id="Header_250">
5084       <title>To set quota for a single volume</title>
5085
5086       <indexterm>
5087         <primary>maximum volume quota</primary>
5088       </indexterm>
5089
5090       <indexterm>
5091         <primary>setting</primary>
5092
5093         <secondary>volume quota</secondary>
5094
5095         <tertiary>on single volume</tertiary>
5096       </indexterm>
5097
5098       <indexterm>
5099         <primary>volume quota</primary>
5100
5101         <secondary>setting</secondary>
5102
5103         <tertiary>on single volume</tertiary>
5104       </indexterm>
5105
5106       <indexterm>
5107         <primary>commands</primary>
5108
5109         <secondary>fs setquota</secondary>
5110       </indexterm>
5111
5112       <indexterm>
5113         <primary>fs commands</primary>
5114
5115         <secondary>setquota</secondary>
5116       </indexterm>
5117
5118       <orderedlist>
5119         <listitem>
5120           <para>Verify that you belong to the <emphasis role="bold">system:administrators</emphasis> group. If necessary, issue the
5121           <emphasis role="bold">pts membership</emphasis> command, which is fully described in <link linkend="HDRWQ587">To display
5122           the members of the system:administrators group</link>. <programlisting>
5123    % <emphasis role="bold">pts membership system:administrators</emphasis>
5124 </programlisting></para>
5125         </listitem>
5126
5127         <listitem>
5128           <para>Issue the <emphasis role="bold">fs setquota</emphasis> command to set the volume's maximum quota. <programlisting>
5129    % <emphasis role="bold">fs setquota</emphasis> [&lt;<replaceable>dir/file path</replaceable>&gt;] <emphasis role="bold">-max</emphasis> &lt;<replaceable>max quota in kbytes</replaceable>&gt;
5130 </programlisting></para>
5131
5132           <para>where <variablelist>
5133               <varlistentry>
5134                 <term><emphasis role="bold">sq</emphasis></term>
5135
5136                 <listitem>
5137                   <para>Is an acceptable alias for <emphasis role="bold">setquota</emphasis>.</para>
5138                 </listitem>
5139               </varlistentry>
5140
5141               <varlistentry>
5142                 <term><emphasis role="bold">dir/file path</emphasis></term>
5143
5144                 <listitem>
5145                   <para>Names a file or directory in the volume for which to set the indicated quota. Partial pathnames are
5146                   interpreted relative to the current working directory, which is the default if you omit this argument.</para>
5147
5148                   <para>Specify the read/write path to the file or directory, to avoid the failure that results when you attempt to
5149                   change a read-only volume. By convention, you indicate the read/write path by placing a period before the cell
5150                   name at the pathname's second level (for example, <emphasis role="bold">/afs/.abc.com</emphasis>). For further
5151                   discussion of the concept of read/write and read-only paths through the filespace, see <link
5152                   linkend="HDRWQ209">The Rules of Mount Point Traversal</link>.</para>
5153                 </listitem>
5154               </varlistentry>
5155
5156               <varlistentry>
5157                 <term><emphasis role="bold">max quota in kbytes</emphasis></term>
5158
5159                 <listitem>
5160                   <para>Sets the volume's quota, expressed in kilobyte blocks ( <emphasis role="bold">1024</emphasis> equals a
5161                   megabyte). A value of <emphasis role="bold">0</emphasis> grants an unlimited quota, but the size of the partition
5162                   imposes an absolute limit. You must include the <emphasis role="bold">-max</emphasis> switch if omitting the
5163                   dir/file path argument (to set the quota on the volume that houses the current working directory).</para>
5164                 </listitem>
5165               </varlistentry>
5166             </variablelist></para>
5167         </listitem>
5168       </orderedlist>
5169     </sect2>
5170
5171     <sect2 id="Header_251">
5172       <title>To set maximum quota on one or more volumes</title>
5173
5174       <indexterm>
5175         <primary>setting</primary>
5176
5177         <secondary>volume quota</secondary>
5178
5179         <tertiary>on multiple volumes</tertiary>
5180       </indexterm>
5181
5182       <indexterm>
5183         <primary>volume quota</primary>
5184
5185         <secondary>setting</secondary>
5186
5187         <tertiary>on multiple volumes</tertiary>
5188       </indexterm>
5189
5190       <indexterm>
5191         <primary>commands</primary>
5192
5193         <secondary>fs setvol</secondary>
5194       </indexterm>
5195
5196       <indexterm>
5197         <primary>fs commands</primary>
5198
5199         <secondary>setvol</secondary>
5200       </indexterm>
5201
5202       <orderedlist>
5203         <listitem>
5204           <para>Verify that you belong to the <emphasis role="bold">system:administrators</emphasis> group. If necessary, issue the
5205           <emphasis role="bold">pts membership</emphasis> command, which is fully described in <link linkend="HDRWQ587">To display
5206           the members of the system:administrators group</link>. <programlisting>
5207    % <emphasis role="bold">pts membership system:administrators</emphasis>
5208 </programlisting></para>
5209         </listitem>
5210
5211         <listitem>
5212           <para>Issue the <emphasis role="bold">fs setvol</emphasis> command to set the quota on one or more volumes.
5213           <programlisting>
5214    % <emphasis role="bold">fs setvol</emphasis> [&lt;<replaceable>dir/file path</replaceable>&gt;+] <emphasis role="bold">-max</emphasis> &lt;<replaceable>disk space quota in 1K units</replaceable>&gt;
5215 </programlisting></para>
5216
5217           <para>where <variablelist>
5218               <varlistentry>
5219                 <term><emphasis role="bold">sv</emphasis></term>
5220
5221                 <listitem>
5222                   <para>Is an acceptable alias for <emphasis role="bold">setvol</emphasis>.</para>
5223                 </listitem>
5224               </varlistentry>
5225
5226               <varlistentry>
5227                 <term><emphasis role="bold">dir/file path</emphasis></term>
5228
5229                 <listitem>
5230                   <para>Names one file or directory that resides in each volume for which to set the indicated quota. Partial
5231                   pathnames are interpreted relative to the current working directory, which is the default if you omit this
5232                   argument.</para>
5233                 </listitem>
5234               </varlistentry>
5235
5236               <varlistentry>
5237                 <term><emphasis role="bold">disk space quota in 1K units</emphasis></term>
5238
5239                 <listitem>
5240                   <para>Sets the maximum quota on each volume, expressed in kilobytes blocks ( <emphasis role="bold">1024</emphasis>
5241                   equals a megabyte). A value of <emphasis role="bold">0</emphasis> grants an unlimited quota, but the size of the
5242                   partition does impose an absolute limit.</para>
5243                 </listitem>
5244               </varlistentry>
5245             </variablelist></para>
5246         </listitem>
5247       </orderedlist>
5248
5249       <indexterm>
5250         <primary>commands</primary>
5251
5252         <secondary>fs quota</secondary>
5253       </indexterm>
5254
5255       <indexterm>
5256         <primary>fs commands</primary>
5257
5258         <secondary>quota</secondary>
5259       </indexterm>
5260
5261       <indexterm>
5262         <primary>displaying</primary>
5263
5264         <secondary>volume quota</secondary>
5265
5266         <tertiary>percent used</tertiary>
5267       </indexterm>
5268
5269       <indexterm>
5270         <primary>volume quota</primary>
5271
5272         <secondary>displaying</secondary>
5273
5274         <tertiary>percent used</tertiary>
5275       </indexterm>
5276     </sect2>
5277
5278     <sect2 id="Header_252">
5279       <title>To display percent quota used</title>
5280
5281       <orderedlist>
5282         <listitem>
5283           <para>Issue the <emphasis role="bold">fs quota</emphasis> command. <programlisting>
5284    % <emphasis role="bold">fs quota</emphasis> [&lt;<replaceable>dir/file path</replaceable>&gt;+]
5285 </programlisting></para>
5286
5287           <para>where <variablelist>
5288               <varlistentry>
5289                 <term><emphasis role="bold">q</emphasis></term>
5290
5291                 <listitem>
5292                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">quota</emphasis>.</para>
5293                 </listitem>
5294               </varlistentry>
5295
5296               <varlistentry>
5297                 <term><emphasis role="bold">dir/file path</emphasis></term>
5298
5299                 <listitem>
5300                   <para>Names a directory or file in each volume for which to display percent quota used. Partial pathnames are
5301                   interpreted relative to the current working directory, which is the default if you omit this argument.</para>
5302                 </listitem>
5303               </varlistentry>
5304             </variablelist></para>
5305         </listitem>
5306       </orderedlist>
5307
5308       <para>The following example illustrates the output produced by this command:</para>
5309
5310       <programlisting>
5311    % <emphasis role="bold">fs quota /afs/abc.com/usr/terry</emphasis>
5312    34% of quota used.
5313 </programlisting>
5314
5315       <indexterm>
5316         <primary>commands</primary>
5317
5318         <secondary>fs listquota</secondary>
5319       </indexterm>
5320
5321       <indexterm>
5322         <primary>fs commands</primary>
5323
5324         <secondary>listquota</secondary>
5325       </indexterm>
5326
5327       <indexterm>
5328         <primary>displaying</primary>
5329
5330         <secondary>volume quota</secondary>
5331
5332         <tertiary>with volume size</tertiary>
5333       </indexterm>
5334
5335       <indexterm>
5336         <primary>volume quota</primary>
5337
5338         <secondary>displaying</secondary>
5339
5340         <tertiary>with volume size</tertiary>
5341       </indexterm>
5342
5343       <indexterm>
5344         <primary>displaying</primary>
5345
5346         <secondary>volume size</secondary>
5347       </indexterm>
5348
5349       <indexterm>
5350         <primary>volume</primary>
5351
5352         <secondary>size, displaying</secondary>
5353       </indexterm>
5354     </sect2>
5355
5356     <sect2 id="Header_253">
5357       <title>To display quota, current size, and other information</title>
5358
5359       <orderedlist>
5360         <listitem>
5361           <para>Issue the <emphasis role="bold">fs listquota</emphasis> command. <programlisting>
5362    % <emphasis role="bold">fs listquota</emphasis> [&lt;<replaceable>dir/file path</replaceable>&gt;+]
5363 </programlisting></para>
5364
5365           <para>where <variablelist>
5366               <varlistentry>
5367                 <term><emphasis role="bold">lq</emphasis></term>
5368
5369                 <listitem>
5370                   <para>Is an alias for <emphasis role="bold">listquota</emphasis>.</para>
5371                 </listitem>
5372               </varlistentry>
5373
5374               <varlistentry>
5375                 <term><emphasis role="bold">dir/file path</emphasis></term>
5376
5377                 <listitem>
5378                   <para>Names a directory or file in each volume for which to display quota along with volume name and current space
5379                   usage. Partial pathnames are interpreted relative to the current working directory, which is the default if you
5380                   omit this argument.</para>
5381                 </listitem>
5382               </varlistentry>
5383             </variablelist></para>
5384         </listitem>
5385       </orderedlist>
5386
5387       <para>As illustrated in the following example, the output reports the volume's name, its quota and current size (both in
5388       kilobyte units), the percent quota used, and the percentage of space on the volume's host partition that is used.</para>
5389
5390       <programlisting>
5391    % <emphasis role="bold">fs listquota /afs/abc.com/usr/terry</emphasis>
5392    Volume Name     Quota    Used    % Used   Partition
5393    user.terry      15000    5071       34%         86%
5394 </programlisting>
5395
5396       <indexterm>
5397         <primary>displaying</primary>
5398
5399         <secondary>volume quota</secondary>
5400
5401         <tertiary>with volume &amp; partition info</tertiary>
5402       </indexterm>
5403
5404       <indexterm>
5405         <primary>displaying</primary>
5406
5407         <secondary>volume size</secondary>
5408       </indexterm>
5409
5410       <indexterm>
5411         <primary>volume quota</primary>
5412
5413         <secondary>displaying</secondary>
5414
5415         <tertiary>with volume &amp;partition info</tertiary>
5416       </indexterm>
5417
5418       <indexterm>
5419         <primary>displaying</primary>
5420
5421         <secondary>disk partition size</secondary>
5422       </indexterm>
5423
5424       <indexterm>
5425         <primary>disk partition</primary>
5426
5427         <secondary>displaying size of single</secondary>
5428       </indexterm>
5429
5430       <indexterm>
5431         <primary>commands</primary>
5432
5433         <secondary>fs examine</secondary>
5434       </indexterm>
5435
5436       <indexterm>
5437         <primary>fs commands</primary>
5438
5439         <secondary>examine</secondary>
5440       </indexterm>
5441     </sect2>
5442
5443     <sect2 id="Header_254">
5444       <title>To display quota, current size, and more partition information</title>
5445
5446       <orderedlist>
5447         <listitem>
5448           <para>Issue the <emphasis role="bold">fs examine</emphasis> command. <programlisting>
5449    % <emphasis role="bold">fs examine</emphasis> [&lt;<replaceable>dir/file path</replaceable>&gt;+]
5450 </programlisting></para>
5451
5452           <para>where <variablelist>
5453               <varlistentry>
5454                 <term><emphasis role="bold">exa</emphasis></term>
5455
5456                 <listitem>
5457                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">examine</emphasis>.</para>
5458                 </listitem>
5459               </varlistentry>
5460
5461               <varlistentry>
5462                 <term><emphasis role="bold">dir/file path</emphasis></term>
5463
5464                 <listitem>
5465                   <para>Names a directory or file in each volume for which to display quota information and information about the
5466                   host partition. Partial pathnames are interpreted relative to the current working directory, which is the default
5467                   if you omit this argument.</para>
5468                 </listitem>
5469               </varlistentry>
5470             </variablelist></para>
5471         </listitem>
5472       </orderedlist>
5473
5474       <para>As illustrated in the following example, the output displays the volume's volume ID number and name, its quota and
5475       current size (both in kilobyte units), and the free and total number of kilobyte blocks on the volume's host partition.</para>
5476
5477       <programlisting>
5478    % <emphasis role="bold">fs examine /afs/abc.com/usr/terry</emphasis>
5479    Volume status for vid = 50489902 named user.terry
5480    Current maximum quota is 15000
5481    Current blocks used are 5073
5482    The partition has 46383 blocks available out of 333305
5483 </programlisting>
5484
5485       <note>
5486         <para>The partition-related statistics in this command's output do not always agree with the corresponding values in the
5487         output of the standard UNIX <emphasis role="bold">df</emphasis> command. The statistics reported by this command can be up
5488         to five minutes old, because the Cache Manager polls the File Server for partition information at that frequency. Also, on
5489         some operating systems, the <emphasis role="bold">df</emphasis> command's report of partition size includes reserved space
5490         not included in this command's calculation, and so is likely to be about 10% larger.</para>
5491       </note>
5492     </sect2>
5493   </sect1>
5494
5495   <sect1 id="HDRWQ235">
5496     <title>Removing Volumes and their Mount Points</title>
5497
5498     <indexterm>
5499       <primary>volume</primary>
5500
5501       <secondary>removing</secondary>
5502
5503       <tertiary>basic instructions</tertiary>
5504     </indexterm>
5505
5506     <indexterm>
5507       <primary>removing</primary>
5508
5509       <secondary>mount point</secondary>
5510     </indexterm>
5511
5512     <indexterm>
5513       <primary>unmounting</primary>
5514
5515       <secondary>volume</secondary>
5516     </indexterm>
5517
5518     <indexterm>
5519       <primary>mount point</primary>
5520
5521       <secondary>removing</secondary>
5522     </indexterm>
5523
5524     <indexterm>
5525       <primary>removing</primary>
5526
5527       <secondary>volume</secondary>
5528     </indexterm>
5529
5530     <para>To remove a volume from its site and its record from the VLDB, use the <emphasis role="bold">vos remove</emphasis>
5531     command. Use it to remove any of the three types of volumes; the effect depends on the type. <itemizedlist>
5532         <listitem>
5533           <para><indexterm>
5534               <primary>read/write volume</primary>
5535
5536               <secondary>removing</secondary>
5537
5538               <tertiary>effect of</tertiary>
5539             </indexterm> <indexterm>
5540               <primary>backup volume</primary>
5541
5542               <secondary>removed by read/write removal</secondary>
5543             </indexterm> If you indicate the read/write volume by specifying the volume's base name without a <emphasis
5544           role="bold">.readonly</emphasis> or <emphasis role="bold">.backup</emphasis> extension, the command removes both the
5545           read/write and associated backup volume from the partition that houses them. You do not need to provide the <emphasis
5546           role="bold">-server</emphasis> and <emphasis role="bold">-partition</emphasis> arguments, because there can be only one
5547           read/write site. The site information is also removed from the VLDB entry, and the site count (reported by the <emphasis
5548           role="bold">vos examine</emphasis> and <emphasis role="bold">vos listvldb</emphasis> commands as <computeroutput>number of
5549           sites</computeroutput>) decrements by one. The read/write and backup volume ID numbers no longer appear in the output from
5550           the <emphasis role="bold">vos examine</emphasis> and <emphasis role="bold">vos listvldb</emphasis> commands, but they are
5551           preserved internally. Read-only sites, if any, are not affected, but cannot be changed unless a read/write site is again
5552           defined. The entire VLDB entry is removed if there are no read-only sites.</para>
5553
5554           <para>If there are no read-only copies left, it is best to remove the volume's mount point to prevent attempts to access
5555           the volume's contents. Do not remove the mount point if copies of the read-only volume remain.</para>
5556         </listitem>
5557
5558         <listitem>
5559           <para>If you indicate a read-only volume by including the <emphasis role="bold">.readonly</emphasis> extension on its
5560           name, it is removed from the partition that houses it, and the corresponding site information is removed from the VLDB
5561           entry. The site count reported by the <emphasis role="bold">vos examine</emphasis> and <emphasis role="bold">vos
5562           listvldb</emphasis> commands as <computeroutput>number of sites</computeroutput> decrements by one for each volume you
5563           remove.</para>
5564
5565           <indexterm>
5566             <primary>read-only volume</primary>
5567
5568             <secondary>removing</secondary>
5569
5570             <tertiary>effect of</tertiary>
5571           </indexterm>
5572
5573           <para>If there is more than one read-only site, you must include the <emphasis role="bold">-server</emphasis> argument
5574           (and optionally <emphasis role="bold">-partition</emphasis> argument) to specify the site from which to remove the volume.
5575           If there is only one read-only site, the volume name is sufficient; if no read/write volume exists in this case, the
5576           entire VLDB entry is removed.</para>
5577
5578           <para>It is not generally appropriate to remove the volume's mount point when removing a read-only volume, especially if
5579           the read/write version of the volume still exists. If the read/write version no longer exists, remove the mount point as
5580           described in Step <link linkend="LIWQ239">5</link>of <link linkend="HDRWQ236">To remove a volume and unmount
5581           it</link>.</para>
5582         </listitem>
5583
5584         <listitem>
5585           <para>If you indicate a backup volume by including the <emphasis role="bold">.backup</emphasis> extension on its name, it
5586           is removed from the partition that houses it and its site information is removed from the VLDB entry. You do not need to
5587           provide the <emphasis role="bold">-server</emphasis> and <emphasis role="bold">-partition</emphasis> arguments, because
5588           there can be only one backup site. The backup volume ID number no longer appears in the output from the <emphasis
5589           role="bold">vos examine</emphasis> or <emphasis role="bold">vos listvldb</emphasis> command, but is preserved
5590           internally.</para>
5591
5592           <para>In the standard configuration, there is a separate mount point for the backup version of a user volume. Remember to
5593           remove the mount point to prevent attempt to access the nonexistent volume's contents.</para>
5594         </listitem>
5595       </itemizedlist></para>
5596
5597     <sect2 id="Header_256">
5598       <title>Other Removal Commands</title>
5599
5600       <indexterm>
5601         <primary>volume</primary>
5602
5603         <secondary>removing</secondary>
5604
5605         <tertiary>alternate commands</tertiary>
5606       </indexterm>
5607
5608       <para>The <emphasis role="bold">vos remove</emphasis> command is almost always the appropriate way to remove a volume, because
5609       it automatically removes a volume's VLDB entry and both the volume header and all data from the partition. If either the VLDB
5610       entry or volume header does not exist, it is sometimes necessary to use other commands that remove only the remaining element.
5611       Do not use these commands in the normal case when both the VLDB entry and the volume header exist, because by definition they
5612       create discrepancies between them. For details on the commands' syntax, see their reference pages in the <emphasis> OpenAFS
5613       Administration Reference</emphasis>.</para>
5614
5615       <indexterm>
5616         <primary>commands</primary>
5617
5618         <secondary>vos zap</secondary>
5619       </indexterm>
5620
5621       <indexterm>
5622         <primary>vos commands</primary>
5623
5624         <secondary>zap</secondary>
5625       </indexterm>
5626
5627       <para>The <emphasis role="bold">vos zap</emphasis> command removes a volume from its site by removing the volume header and
5628       volume data for which a VLDB entry no longer exists. You can tell a VLDB entry is missing if the <emphasis role="bold">vos
5629       listvol</emphasis> command displays the volume header but the <emphasis role="bold">vos examine</emphasis> or <emphasis
5630       role="bold">vos listvldb</emphasis> command cannot locate the VLDB entry. You must run this command to correct the
5631       discrepancy, because the <emphasis role="bold">vos syncvldb</emphasis> and <emphasis role="bold">vos syncserv</emphasis>
5632       commands never remove volume headers.</para>
5633
5634       <indexterm>
5635         <primary>commands</primary>
5636
5637         <secondary>vos remsite</secondary>
5638       </indexterm>
5639
5640       <indexterm>
5641         <primary>vos commands</primary>
5642
5643         <secondary>remsite</secondary>
5644       </indexterm>
5645
5646       <para>The <emphasis role="bold">vos remsite</emphasis> command removes a read-only site definition from the VLDB without
5647       affecting the volume on the file server machine. Use this command when you have mistakenly issued the <emphasis
5648       role="bold">vos addsite</emphasis> command to define a read-only site, but have not yet issued the <emphasis role="bold">vos
5649       release</emphasis> command to release the volume to the site. If you have actually released a volume to the site, use the
5650       <emphasis role="bold">vos remove</emphasis> command instead.</para>
5651
5652       <indexterm>
5653         <primary>commands</primary>
5654
5655         <secondary>vos delentry</secondary>
5656       </indexterm>
5657
5658       <indexterm>
5659         <primary>vos commands</primary>
5660
5661         <secondary>delentry</secondary>
5662       </indexterm>
5663
5664       <para>The <emphasis role="bold">vos delentry</emphasis> command removes the entire VLDB entry that mentions the volume you
5665       specify. If versions of the volume actually exist on file server machines, they are not affected. This command is useful if
5666       you know for certain that a volume removal was not recorded in the VLDB (perhaps you used the <emphasis role="bold">vos
5667       zap</emphasis> command during an emergency), and do not want to take the time to resynchronize the entire VLDB with the
5668       <emphasis role="bold">vos syncvldb</emphasis> and <emphasis role="bold">vos syncserv</emphasis> commands.</para>
5669     </sect2>
5670
5671     <sect2 id="HDRWQ236">
5672       <title>To remove a volume and unmount it</title>
5673
5674       <indexterm>
5675         <primary>read/write volume</primary>
5676
5677         <secondary>removing</secondary>
5678
5679         <tertiary>instructions</tertiary>
5680       </indexterm>
5681
5682       <orderedlist>
5683         <listitem>
5684           <para>Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, issue
5685           the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To
5686           display the users in the UserList file</link>. <programlisting>
5687    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
5688 </programlisting></para>
5689         </listitem>
5690
5691         <listitem>
5692           <para>If removing the volume's mount point, verify that you have the <emphasis role="bold">d</emphasis>( <emphasis
5693           role="bold">delete</emphasis>) permission on its parent directory's ACL. If necessary, issue the <emphasis role="bold">fs
5694           listacl</emphasis> command, which is fully described in <link linkend="HDRWQ572">Displaying ACLs</link>. <programlisting>
5695    % <emphasis role="bold">fs listacl</emphasis> [&lt;<replaceable>dir/file path</replaceable>&gt;]
5696 </programlisting></para>
5697
5698           <para>Members of the <emphasis role="bold">system:administrators</emphasis> group always implicitly have the <emphasis
5699           role="bold">a</emphasis>( <emphasis role="bold">administer</emphasis>) and by default also the <emphasis
5700           role="bold">l</emphasis>( <emphasis role="bold">lookup</emphasis>) permission on every ACL and can use the <emphasis
5701           role="bold">fs setacl</emphasis> command to grant other rights as necessary.</para>
5702         </listitem>
5703
5704         <listitem>
5705           <anchor id="LIWQ237" />
5706
5707           <para><emphasis role="bold">(Optional)</emphasis> Dump the volume to a file or to tape, in case you want to restore it
5708           later. To copy the volume's contents to a file, use the <emphasis role="bold">vos dump</emphasis> command as instructed in
5709           <link linkend="HDRWQ240">Dumping and Restoring Volumes</link>. You can then copy the file to tape using a third-party
5710           backup utility or an archiving utility such as the UNIX <emphasis role="bold">tar</emphasis> command.</para>
5711
5712           <para>Alternatively, use the AFS Backup System to create a tape copy. In this case, it can be convenient to create a
5713           temporary volume set that includes only the volume of interest. Temporary volume sets are not recorded in the Backup
5714           Database, and so do not clutter database with records for volume sets that you use only once. For instructions, see <link
5715           linkend="HDRWQ301">To create a dump</link>.</para>
5716
5717           <indexterm>
5718             <primary>commands</primary>
5719
5720             <secondary>vos remove</secondary>
5721
5722             <tertiary>basic instructions</tertiary>
5723           </indexterm>
5724
5725           <indexterm>
5726             <primary>vos commands</primary>
5727
5728             <secondary>remove</secondary>
5729
5730             <tertiary>basic instructions</tertiary>
5731           </indexterm>
5732         </listitem>
5733
5734         <listitem>
5735           <para><anchor id="LIWQ238" />Issue the <emphasis role="bold">vos remove</emphasis> command to remove the volume. If
5736           removing a read-only volume from multiple sites, repeat the command for each one. <programlisting>
5737    % <emphasis role="bold">vos remove</emphasis> [<emphasis role="bold">-server</emphasis> machine name&gt;] [<emphasis role="bold">-partition</emphasis> &lt;<replaceable>partition name</replaceable>&gt;] \
5738                <emphasis role="bold">-id</emphasis> &lt;<replaceable>volume name or ID</replaceable>&gt;
5739 </programlisting></para>
5740
5741           <para>where <variablelist>
5742               <varlistentry>
5743                 <term><emphasis role="bold">remo</emphasis></term>
5744
5745                 <listitem>
5746                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">remove</emphasis>.</para>
5747                 </listitem>
5748               </varlistentry>
5749
5750               <varlistentry>
5751                 <term><emphasis role="bold">-server</emphasis></term>
5752
5753                 <listitem>
5754                   <para>Specifies the file server machine on which the volume resides. It is necessary only when the <emphasis
5755                   role="bold">-id</emphasis> argument names a read-only volume that exists at multiple sites.</para>
5756                 </listitem>
5757               </varlistentry>
5758
5759               <varlistentry>
5760                 <term><emphasis role="bold">-partition</emphasis></term>
5761
5762                 <listitem>
5763                   <para>Specifies the partition on machine name where the volume resides. It is necessary only when the <emphasis
5764                   role="bold">-id</emphasis> argument names a read-only volume that exists at multiple sites. Provide the <emphasis
5765                   role="bold">-server</emphasis> argument along with this one.</para>
5766                 </listitem>
5767               </varlistentry>
5768
5769               <varlistentry>
5770                 <term><emphasis role="bold">-id</emphasis></term>
5771
5772                 <listitem>
5773                   <para>Identifies the volume to remove, either by its complete name or volume ID number. If identifying a read-only
5774                   or backup volume by name, include the appropriate extension ( <emphasis role="bold">.readonly</emphasis> or
5775                   <emphasis role="bold">.backup</emphasis>).</para>
5776                 </listitem>
5777               </varlistentry>
5778             </variablelist></para>
5779
5780           <indexterm>
5781             <primary>commands</primary>
5782
5783             <secondary>fs rmmount</secondary>
5784           </indexterm>
5785
5786           <indexterm>
5787             <primary>fs commands</primary>
5788
5789             <secondary>rmmount</secondary>
5790
5791             <tertiary>when removing volume</tertiary>
5792           </indexterm>
5793         </listitem>
5794
5795         <listitem>
5796           <para><anchor id="LIWQ239" />If you are removing the last existing version of the volume, issue the <emphasis
5797           role="bold">fs rmmount</emphasis> command remove the corresponding mount point. Complete instructions appear in <link
5798           linkend="HDRWQ236">To remove a volume and unmount it</link>.</para>
5799
5800           <para>If you are removing a backup volume that is mounted in the conventional way (at a subdirectory of its read/write
5801           volume's root directory), then removing the source volume's mount point in this step is sufficient to remove the backup
5802           volume's mount point. If you mounted the backup at a completely separate directory, you need to repeat this step for the
5803           backup volume's mount point.</para>
5804
5805           <programlisting>
5806    % <emphasis role="bold">fs rmmount</emphasis> &lt;<replaceable>directory</replaceable>&gt;
5807 </programlisting>
5808         </listitem>
5809
5810         <listitem>
5811           <para><emphasis role="bold">(Optional)</emphasis> If you created a dump file in Step <link linkend="LIWQ237">3</link>,
5812           transfer it to tape. The preferred method is to use the AFS Backup System, which is described in <link
5813           linkend="HDRWQ248">Configuring the AFS Backup System</link>and <link linkend="HDRWQ283">Backing Up and Restoring AFS
5814           Data</link>.</para>
5815         </listitem>
5816       </orderedlist>
5817     </sect2>
5818   </sect1>
5819
5820   <sect1 id="HDRWQ240">
5821     <title>Dumping and Restoring Volumes</title>
5822
5823     <indexterm>
5824       <primary>dumping</primary>
5825
5826       <secondary>volumes</secondary>
5827
5828       <tertiary>without using AFS Backup System</tertiary>
5829     </indexterm>
5830
5831     <indexterm>
5832       <primary>volume</primary>
5833
5834       <secondary>dumping without AFS Backup System</secondary>
5835     </indexterm>
5836
5837     <para><emphasis>Dumping</emphasis> a volume with the <emphasis role="bold">vos dump</emphasis> command converts its contents
5838     into ASCII format and writes them to the file you specify. The <emphasis role="bold">vos restore</emphasis> command places a
5839     dump file's contents into a volume after converting them into the volume format appropriate for the indicated file server
5840     machine.</para>
5841
5842     <sect2 id="Header_259">
5843       <title>About Dumping Volumes</title>
5844
5845       <indexterm>
5846         <primary>read/write volume</primary>
5847
5848         <secondary>dumping</secondary>
5849       </indexterm>
5850
5851       <indexterm>
5852         <primary>read-only volume</primary>
5853
5854         <secondary>dumping</secondary>
5855       </indexterm>
5856
5857       <indexterm>
5858         <primary>backup volume</primary>
5859
5860         <secondary>dumping</secondary>
5861       </indexterm>
5862
5863       <indexterm>
5864         <primary>availability of data</primary>
5865
5866         <secondary>interrupted by dumping</secondary>
5867       </indexterm>
5868
5869       <indexterm>
5870         <primary>data</primary>
5871
5872         <secondary>availability interrupted by dumping</secondary>
5873       </indexterm>
5874
5875       <indexterm>
5876         <primary>dumping</primary>
5877
5878         <secondary>volumes</secondary>
5879
5880         <tertiary>reasons</tertiary>
5881       </indexterm>
5882
5883       <para>Dumping a volume can be useful in several situations, including the following: <itemizedlist>
5884           <listitem>
5885             <para>You want to back it up to tape, perhaps by using a third-party backup utility. To facilitate this type of backup
5886             operation, the <emphasis role="bold">vos dump</emphasis> command can write to a named pipe. To learn about using the AFS
5887             Backup System instead, see <link linkend="HDRWQ248">Configuring the AFS Backup System</link>and <link
5888             linkend="HDRWQ283">Backing Up and Restoring AFS Data</link>.</para>
5889           </listitem>
5890
5891           <listitem>
5892             <para>You are removing the volume from your cell (perhaps because its owner is leaving your cell). The <emphasis
5893             role="bold">vos dump</emphasis> command enables you to create a copy for safekeeping without incurring the overhead of
5894             the Backup System. For complete instructions on removing a volume, see <link linkend="HDRWQ235">Removing Volumes and
5895             their Mount Points</link>.</para>
5896           </listitem>
5897
5898           <listitem>
5899             <para>You want to create a copy of the volume for safekeeping on a non-AFS server partition, perhaps while you move the
5900             actual volume to another machine or perform maintenance tasks on the partition that houses the volume.</para>
5901           </listitem>
5902
5903           <listitem>
5904             <para>You need to replace a corrupted read/write volume. If an uncorrupted read-only or backup version of the volume
5905             exists, dump it and restore the data into the read/write volume, overwriting the corrupted contents.</para>
5906           </listitem>
5907
5908           <listitem>
5909             <para>You want to copy or transfer the contents of the volume to another cell. You cannot use the <emphasis
5910             role="bold">vos move</emphasis> command, because AFS supports volume moves only between file server machines that belong
5911             to the same cell.</para>
5912           </listitem>
5913
5914           <listitem>
5915             <para>You want to have another read/write copy of the volume's contents. The second volume must have a different name
5916             than the original one. If you want the contents of the two volumes to remain identical, you must update them both
5917             manually. AFS provides no facility for keeping read/write volumes synchronized in this way.</para>
5918           </listitem>
5919
5920           <listitem>
5921             <para>You want a copy of only the files and directories in the volume with modification time stamps after a certain
5922             date. The <emphasis role="bold">vos dump</emphasis> command can create an incremental dump file as described in Step
5923             <link linkend="LIWQ241">3</link>of the following instructions.</para>
5924           </listitem>
5925         </itemizedlist></para>
5926
5927       <indexterm>
5928         <primary>full dump</primary>
5929
5930         <secondary>creating using vos command</secondary>
5931       </indexterm>
5932
5933       <indexterm>
5934         <primary>incremental dump</primary>
5935
5936         <secondary>creating using vos command</secondary>
5937       </indexterm>
5938
5939       <indexterm>
5940         <primary>dumping</primary>
5941
5942         <secondary>volumes</secondary>
5943
5944         <tertiary>using vos command</tertiary>
5945       </indexterm>
5946
5947       <para>You can use the <emphasis role="bold">vos dump</emphasis> command to create a <emphasis>full dump</emphasis>, which
5948       contains the complete contents of the volume at the time you issue the command, or an <emphasis>incremental dump</emphasis>,
5949       which contains only those files and directories with modification timestamps (as displayed by the <emphasis role="bold">ls
5950       -l</emphasis> command) that are later than a date and time you specify. See Step <link linkend="LIWQ241">3</link>of the
5951       following instructions.</para>
5952
5953       <para>Dumping a volume does not change its VLDB entry or permanently affect its status on the file server machine, but the
5954       volume's contents are inaccessible during the dump operation. To avoid interrupting access to the volume, it is generally best
5955       to dump the volume's backup version, just after using the <emphasis role="bold">vos backup</emphasis> or <emphasis
5956       role="bold">vos backupsys</emphasis> command to create a new backup version.</para>
5957
5958       <para>If you do not provide a filename into which to write the dump, the <emphasis role="bold">vos dump</emphasis> command
5959       directs the output to the standard output stream. You can pipe it directly to the <emphasis role="bold">vos restore</emphasis>
5960       command if you wish.</para>
5961
5962       <para>Because a volume dump file is in ASCII format, you can read its contents using a text editor or a command such as the
5963       <emphasis role="bold">cat</emphasis> command. However, dump files sometimes contain special characters that do not have
5964       alphanumeric correlates, which can cause problems for some display programs.</para>
5965
5966       <para>By default, the <emphasis role="bold">vos</emphasis> command interpreter consults the Volume Location Database (VLDB) to
5967       learn the volume's location, so the <emphasis role="bold">-server</emphasis> and <emphasis role="bold">-partition</emphasis>
5968       arguments are not required. If the <emphasis role="bold">-id</emphasis> argument identifies a read-only volume that resides at
5969       multiple sites, then the command dumps the version from just one of them (normally, the one listed first in the volume's VLDB
5970       entry as reported by the <emphasis role="bold">vos examine</emphasis> or <emphasis role="bold">vos listvldb</emphasis>
5971       command). To dump the read-only volume from a particular site, use the <emphasis role="bold">-server</emphasis> and <emphasis
5972       role="bold">-partition</emphasis> arguments to specify the site. To bypass the VLDB lookup entirely, provide a volume ID
5973       number (rather than a volume name) as the value for the <emphasis role="bold">-id</emphasis> argument, along with the
5974       <emphasis role="bold">-server</emphasis> and <emphasis role="bold">-partition</emphasis> arguments. This makes it possible to
5975       dump a volume for which there is no VLDB entry.</para>
5976
5977       <indexterm>
5978         <primary>commands</primary>
5979
5980         <secondary>vos dump</secondary>
5981       </indexterm>
5982
5983       <indexterm>
5984         <primary>vos commands</primary>
5985
5986         <secondary>dump</secondary>
5987       </indexterm>
5988     </sect2>
5989
5990     <sect2 id="Header_260">
5991       <title>To dump a volume</title>
5992
5993       <orderedlist>
5994         <listitem>
5995           <para>Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, issue
5996           the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To
5997           display the users in the UserList file</link>. <programlisting>
5998    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
5999 </programlisting></para>
6000         </listitem>
6001
6002         <listitem>
6003           <para>Verify that you have the permissions necessary to create the dump file. If placing it in AFS, you must have the
6004           <emphasis role="bold">i</emphasis>( <emphasis role="bold">insert</emphasis>) permission on the ACL of the file's
6005           directory. If necessary, issue the <emphasis role="bold">fs listacl</emphasis> command, which is fully described in <link
6006           linkend="HDRWQ572">Displaying ACLs</link>. <programlisting>
6007    % <emphasis role="bold">fs listacl</emphasis> [&lt;<replaceable>dir/file path</replaceable>&gt;]
6008 </programlisting></para>
6009
6010           <para>Members of the <emphasis role="bold">system:administrators</emphasis> group always implicitly have the <emphasis
6011           role="bold">a</emphasis>( <emphasis role="bold">administer</emphasis>) and by default also the <emphasis
6012           role="bold">l</emphasis>( <emphasis role="bold">lookup</emphasis>) permission on every ACL and can use the <emphasis
6013           role="bold">fs setacl</emphasis> command to grant other rights as necessary.</para>
6014         </listitem>
6015
6016         <listitem>
6017           <para><anchor id="LIWQ241" />Issue the <emphasis role="bold">vos dump</emphasis> command to dump the volume.
6018           <programlisting>
6019    % <emphasis role="bold">vos dump -id</emphasis> &lt;<replaceable>volume name or ID</replaceable>&gt; [<emphasis role="bold">-time</emphasis> &lt;<replaceable>dump from time</replaceable>&gt;] [<emphasis
6020                 role="bold">-file</emphasis> &lt;<replaceable>arg</replaceable>&gt;] [<emphasis role="bold">-server</emphasis> &lt;<replaceable>server</replaceable>&gt;] [<emphasis
6021                 role="bold">-partition</emphasis> &lt;<replaceable>partition</replaceable>&gt;]
6022 </programlisting></para>
6023
6024           <para>where <variablelist>
6025               <varlistentry>
6026                 <term><emphasis role="bold">-id</emphasis></term>
6027
6028                 <listitem>
6029                   <para>Identifies the volume to be dumped by its complete name or volume ID number. If you want to dump the
6030                   read-only or backup version, specify its volume ID number or add the appropriate extension ( <emphasis
6031                   role="bold">.readonly</emphasis> or <emphasis role="bold">.backup</emphasis>) to the name.</para>
6032
6033                   <para>To bypass the normal VLDB lookup of the volume's location, provide the volume ID number and combine this
6034                   argument with the <emphasis role="bold">-server</emphasis> and <emphasis role="bold">-partition</emphasis>
6035                   arguments.</para>
6036                 </listitem>
6037               </varlistentry>
6038
6039               <varlistentry>
6040                 <term><emphasis role="bold">-time</emphasis></term>
6041
6042                 <listitem>
6043                   <para>Specifies whether the dump is full or incremental. Omit this argument to create a full dump, or provide one
6044                   of three acceptable values: <itemizedlist>
6045                       <listitem>
6046                         <para>The value <emphasis role="bold">0</emphasis>(zero) to create a full dump.</para>
6047                       </listitem>
6048
6049                       <listitem>
6050                         <para>A date in the format mm <emphasis role="bold">/</emphasis> dd <emphasis role="bold">/</emphasis> yyyy
6051                         (month, day and year) to create an incremental dump that includes only files and directories with
6052                         modification timestamps later than midnight (12:00 a.m.) on the indicated date. Valid values for the year
6053                         range from <emphasis role="bold">1970</emphasis> to <emphasis role="bold">2037</emphasis>; higher values are
6054                         not valid because the latest possible date in the standard UNIX representation is in 2038. The command
6055                         interpreter automatically reduces later dates to the maximum value. An example is <emphasis
6056                         role="bold">01/13/1999</emphasis>.</para>
6057                       </listitem>
6058
6059                       <listitem>
6060                         <para>A date and time in the format <emphasis role="bold">"</emphasis> mm <emphasis role="bold">/</emphasis>
6061                         dd <emphasis role="bold">/</emphasis> yyyy hh <emphasis role="bold">:</emphasis> MM <emphasis
6062                         role="bold">"</emphasis> to create an incremental dump that includes only files and directories with
6063                         modification timestamps later than the specified date and time. The date format is the same as for a date
6064                         alone. Express the time as hours and minutes (hh:MM) in 24-hour format (for example, <emphasis
6065                         role="bold">20:30</emphasis> is 8:30 p.m.). Surround the entire expression with double quotes (" ") because
6066                         it contains a space. An example is <emphasis role="bold">"01/13/1999 22:30"</emphasis>.</para>
6067                       </listitem>
6068                     </itemizedlist></para>
6069                 </listitem>
6070               </varlistentry>
6071
6072               <varlistentry>
6073                 <term><emphasis role="bold">-file</emphasis></term>
6074
6075                 <listitem>
6076                   <para>Specifies the pathname of the file to which to write the dump. The file can be in AFS, but not in the volume
6077                   being dumped. A partial pathname is interpreted relative to the current working directory. Omit this argument to
6078                   direct the dump to the standard output stream.</para>
6079                 </listitem>
6080               </varlistentry>
6081
6082               <varlistentry>
6083                 <term><emphasis role="bold">-server</emphasis></term>
6084
6085                 <listitem>
6086                   <para>Specifies the file server machine on which the volume resides. Provide the <emphasis
6087                   role="bold">-partition</emphasis> argument along with this one.</para>
6088                 </listitem>
6089               </varlistentry>
6090
6091               <varlistentry>
6092                 <term><emphasis role="bold">-partition</emphasis></term>
6093
6094                 <listitem>
6095                   <para>Specifies the partition on which the volume resides. Provide the <emphasis role="bold">-server</emphasis>
6096                   argument along with this one.</para>
6097                 </listitem>
6098               </varlistentry>
6099             </variablelist></para>
6100         </listitem>
6101       </orderedlist>
6102     </sect2>
6103
6104     <sect2 id="Header_261">
6105       <title>About Restoring Volumes</title>
6106
6107       <indexterm>
6108         <primary>volume</primary>
6109
6110         <secondary>restoring</secondary>
6111
6112         <tertiary>with vos restore command</tertiary>
6113       </indexterm>
6114
6115       <indexterm>
6116         <primary>restoring</primary>
6117
6118         <secondary>volumes without using AFS Backup System</secondary>
6119       </indexterm>
6120
6121       <para>Although you can dump any of the three types of volumes (read/write, read-only, or backup), you can restore a dump file
6122       to the file system only as a read/write volume, using the <emphasis role="bold">vos restore</emphasis> command. The command
6123       automatically translates the dump file's contents from ASCII back into the volume format appropriate for the file server
6124       machine that stores the restored version. As with the <emphasis role="bold">vos dump</emphasis> command, you can restore a
6125       dump file via a named pipe, which facilitates interoperation with third-party backup utilities.</para>
6126
6127       <para>You can restore the contents of a dump file in one of two basic ways. In either case, you must restore a full dump of
6128       the volume before restoring any incremental dumps. Any incremental dumps that you then restore must have been created after
6129       the full dump. If there is more than one incremental dump, you must restore them in the order they were created. <itemizedlist>
6130           <listitem>
6131             <para>You can restore volume data into a brand new volume with a new name and at a location that you specify. See <link
6132             linkend="HDRWQ242">To restore a dump into a new volume and mount it</link>.</para>
6133
6134             <para>You can assign a volume ID number as you restore the volume, though it is best to have the Volume Server allocate
6135             a volume number automatically. The most common reason for specifying the volume ID is that a volume's VLDB entry has
6136             disappeared for some reason, but you know the former read/write volume ID number and want to reuse it.</para>
6137           </listitem>
6138
6139           <listitem>
6140             <para>You can restore volume data into an existing volume (usually the one that was previously dumped), overwriting its
6141             current contents. This is convenient if the current contents are corrupted or otherwise incorrect, because it allows you
6142             to replace them with a coherent version from the past or from one of the volume's clones. See <link
6143             linkend="HDRWQ244">To restore a dump file, overwriting an existing volume</link>.</para>
6144
6145             <para>Provide the <emphasis role="bold">-overwrite</emphasis> argument to preconfirm that you wish to overwrite the
6146             volume's contents, and to specify whether you are restoring a full or incremental dump. If you omit the <emphasis
6147             role="bold">-overwrite</emphasis> argument, the Volume Server generates the following prompt to confirm that you want to
6148             overwrite the existing volume with either a full ( <emphasis role="bold">f</emphasis>) or incremental ( <emphasis
6149             role="bold">i</emphasis>) dump:</para>
6150
6151             <programlisting>
6152    Do you want to do a full/incremental restore or abort? [fia](a):
6153 </programlisting>
6154
6155             <para>If you pipe in the dump file via the standard input stream instead of using the <emphasis
6156             role="bold">-file</emphasis> argument to name it, you must include the <emphasis role="bold">-overwrite</emphasis>
6157             argument because there is nowhere for the Volume Server to display the prompt in this case.</para>
6158
6159             <para>You can move the volume to a new site as you overwrite it with a full dump, by using the <emphasis
6160             role="bold">-server</emphasis> and <emphasis role="bold">-partition</emphasis> arguments to specify the new site. You
6161             cannot move the volume when restoring an incremental dump.</para>
6162           </listitem>
6163         </itemizedlist></para>
6164
6165       <para>The <emphasis role="bold">vos restore</emphasis> command sets the restored volume's creation date in the volume header
6166       to the time of the restore operation, as reported in the <computeroutput>Creation</computeroutput> field in the output from
6167       the <emphasis role="bold">vos examine</emphasis> and <emphasis role="bold">vos listvol</emphasis> commands.</para>
6168
6169       <indexterm>
6170         <primary>commands</primary>
6171
6172         <secondary>vos restore</secondary>
6173       </indexterm>
6174
6175       <indexterm>
6176         <primary>vos commands</primary>
6177
6178         <secondary>restore</secondary>
6179
6180         <tertiary>to create new volume</tertiary>
6181       </indexterm>
6182     </sect2>
6183
6184     <sect2 id="HDRWQ242">
6185       <title>To restore a dump into a new volume and mount it</title>
6186
6187       <orderedlist>
6188         <listitem>
6189           <para>Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, issue
6190           the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To
6191           display the users in the UserList file</link>. <programlisting>
6192    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
6193 </programlisting></para>
6194         </listitem>
6195
6196         <listitem>
6197           <para>Verify that you have permissions needed to read the dump file and to mount the new volume. If the dump file resides
6198           in AFS, you need the <emphasis role="bold">r</emphasis>( <emphasis role="bold">read</emphasis>) permission on the ACL of
6199           its directory. You need the <emphasis role="bold">i</emphasis>( <emphasis role="bold">insert</emphasis>) and <emphasis
6200           role="bold">a</emphasis>( <emphasis role="bold">administer</emphasis>) permissions on the ACL of the directory where you
6201           are mounting the new volume. If necessary, issue the <emphasis role="bold">fs listacl</emphasis> command, which is fully
6202           described in <link linkend="HDRWQ572">Displaying ACLs</link>. <programlisting>
6203    % <emphasis role="bold">fs listacl</emphasis> [&lt;<replaceable>dir/file path</replaceable>&gt;]
6204 </programlisting></para>
6205
6206           <para>Members of the <emphasis role="bold">system:administrators</emphasis> group always implicitly have the <emphasis
6207           role="bold">a</emphasis>( <emphasis role="bold">administer</emphasis>) and by default also the <emphasis
6208           role="bold">l</emphasis>( <emphasis role="bold">lookup</emphasis>) permission on every ACL and can use the <emphasis
6209           role="bold">fs setacl</emphasis> command to grant other rights as necessary.</para>
6210         </listitem>
6211
6212         <listitem>
6213           <para>Select a site (disk partition on a file server machine) for the new volume. If your cell groups different types of
6214           volumes onto different file server machines, that can guide your decision. It often makes sense to put the volume on the
6215           emptiest partition that meets your other criteria. To display how much space is available on a file server machine's
6216           partitions, use the <emphasis role="bold">vos partinfo</emphasis> command, which is described fully in <link
6217           linkend="HDRWQ185">Creating Read/write Volumes</link>. <programlisting>
6218    % <emphasis role="bold">vos partinfo</emphasis> &lt;<replaceable>machine name</replaceable>&gt; [&lt;<replaceable>partition name</replaceable>&gt;]
6219 </programlisting></para>
6220         </listitem>
6221
6222         <listitem>
6223           <para><anchor id="LIWQ243" />Issue the <emphasis role="bold">vos restore</emphasis> command to create a new volume and
6224           restore the dump file into it. Type it on a single line; it appears on multiple lines here only for legibility.
6225           <programlisting>
6226    % <emphasis role="bold">vos restore</emphasis> &lt;<replaceable>machine name</replaceable>&gt; &lt;<replaceable>partition name</replaceable>&gt; \
6227                    &lt;<replaceable>name of volume to be restored</replaceable>&gt; \
6228                    [<emphasis role="bold">-file</emphasis> &lt;<replaceable>dump file</replaceable>&gt;] [<emphasis role="bold">-id</emphasis> &lt;<replaceable>volume ID</replaceable>&gt;]
6229 </programlisting></para>
6230
6231           <para>where <variablelist>
6232               <varlistentry>
6233                 <term><emphasis role="bold">res</emphasis></term>
6234
6235                 <listitem>
6236                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">restore</emphasis>.</para>
6237                 </listitem>
6238               </varlistentry>
6239
6240               <varlistentry>
6241                 <term><emphasis role="bold">machine name</emphasis></term>
6242
6243                 <listitem>
6244                   <para>Names the file server machine on which to create the new volume.</para>
6245                 </listitem>
6246               </varlistentry>
6247
6248               <varlistentry>
6249                 <term><emphasis role="bold">partition name</emphasis></term>
6250
6251                 <listitem>
6252                   <para>Names the partition on which to create the new volume.</para>
6253                 </listitem>
6254               </varlistentry>
6255
6256               <varlistentry>
6257                 <term><emphasis role="bold">name of volume to be restored</emphasis></term>
6258
6259                 <listitem>
6260                   <para>Names the new read/write volume, which must not already have a VLDB entry. It can be up to 22 characters in
6261                   length.</para>
6262                 </listitem>
6263               </varlistentry>
6264
6265               <varlistentry>
6266                 <term><emphasis role="bold">-file</emphasis></term>
6267
6268                 <listitem>
6269                   <para>Is the dump file to restore. Partial pathnames are interpreted with respect to the current working
6270                   directory. Omit this argument if using a pipe to read in the dump file from the standard input stream.</para>
6271                 </listitem>
6272               </varlistentry>
6273
6274               <varlistentry>
6275                 <term><emphasis role="bold">-volume</emphasis></term>
6276
6277                 <listitem>
6278                   <para>Specifies the new volume's ID number. It is appropriate only if you are restoring a volume that no longer
6279                   exists and want to use the volume ID number it had previously.</para>
6280                 </listitem>
6281               </varlistentry>
6282             </variablelist></para>
6283
6284           <indexterm>
6285             <primary>commands</primary>
6286
6287             <secondary>fs mkmount</secondary>
6288
6289             <tertiary>when restoring volume</tertiary>
6290           </indexterm>
6291
6292           <indexterm>
6293             <primary>fs commands</primary>
6294
6295             <secondary>mkmount</secondary>
6296
6297             <tertiary>when restoring volume</tertiary>
6298           </indexterm>
6299         </listitem>
6300
6301         <listitem>
6302           <para>Issue the <emphasis role="bold">fs mkmount</emphasis> command to mount the new volume, making its contents
6303           accessible. Complete instructions appear in <link linkend="HDRWQ212">To create a regular or read/write mount point</link>.
6304           <programlisting>
6305    % <emphasis role="bold">fs mkmount</emphasis> &lt;<replaceable>directory</replaceable>&gt; &lt;<replaceable>volume name</replaceable>&gt;
6306 </programlisting></para>
6307         </listitem>
6308
6309         <listitem>
6310           <para><emphasis role="bold">(Optional)</emphasis> Issue the <emphasis role="bold">fs lsmount</emphasis> command to verify
6311           that the mount point refers to the correct volume. Complete instructions appear in <link linkend="HDRWQ211">To display a
6312           mount point</link>. <programlisting>
6313    % <emphasis role="bold">fs lsmount</emphasis> &lt;<replaceable>directory</replaceable>&gt;
6314 </programlisting></para>
6315         </listitem>
6316       </orderedlist>
6317
6318       <indexterm>
6319         <primary>commands</primary>
6320
6321         <secondary>vos restore</secondary>
6322       </indexterm>
6323
6324       <indexterm>
6325         <primary>vos commands</primary>
6326
6327         <secondary>restore</secondary>
6328
6329         <tertiary>to overwrite volume</tertiary>
6330       </indexterm>
6331     </sect2>
6332
6333     <sect2 id="HDRWQ244">
6334       <title>To restore a dump file, overwriting an existing volume</title>
6335
6336       <orderedlist>
6337         <listitem>
6338           <para>Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, issue
6339           the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To
6340           display the users in the UserList file</link>. <programlisting>
6341    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
6342 </programlisting></para>
6343         </listitem>
6344
6345         <listitem>
6346           <para>Verify that you have permissions needed to read the dump file. If it resides in AFS, you need the <emphasis
6347           role="bold">r</emphasis>( <emphasis role="bold">read</emphasis>) permission on the ACL of its directory. If necessary,
6348           issue the <emphasis role="bold">fs listacl</emphasis> command, which is fully described in <link
6349           linkend="HDRWQ572">Displaying ACLs</link>. <programlisting>
6350    % <emphasis role="bold">fs listacl</emphasis> [&lt;<replaceable>dir/file path</replaceable>&gt;]
6351 </programlisting></para>
6352
6353           <para>Members of the <emphasis role="bold">system:administrators</emphasis> group always implicitly have the <emphasis
6354           role="bold">a</emphasis>( <emphasis role="bold">administer</emphasis>) and by default also the <emphasis
6355           role="bold">l</emphasis>( <emphasis role="bold">lookup</emphasis>) permission on every ACL and can use the <emphasis
6356           role="bold">fs setacl</emphasis> command to grant other rights as necessary.</para>
6357         </listitem>
6358
6359         <listitem>
6360           <para>Restore the contents of the dump file into a read/write volume, overwriting the current contents. The volume retains
6361           its current volume ID number. Type it on a single line; it appears on multiple lines here only for legibility.
6362           <programlisting>
6363    % <emphasis role="bold">vos restore</emphasis> &lt;<replaceable>machine name</replaceable>&gt; &lt;<replaceable>partition name</replaceable>&gt;  \
6364                  &lt;<replaceable>name of volume to be restored</replaceable>&gt;   \
6365                  [<emphasis role="bold">-file</emphasis> &lt;<replaceable>dump file</replaceable>&gt;] [<emphasis role="bold">-id</emphasis> &lt;<replaceable>volume ID</replaceable>&gt;]
6366 </programlisting></para>
6367
6368           <para>where <variablelist>
6369               <varlistentry>
6370                 <term><emphasis role="bold">res</emphasis></term>
6371
6372                 <listitem>
6373                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">restore</emphasis>.</para>
6374                 </listitem>
6375               </varlistentry>
6376
6377               <varlistentry>
6378                 <term><emphasis role="bold">machine name</emphasis></term>
6379
6380                 <listitem>
6381                   <para>Names the file server machine where the volume already exists, or the machine to which to move it. In the
6382                   latter case, the value for the <emphasis role="bold">-overwrite</emphasis> argument must be <emphasis
6383                   role="bold">full</emphasis>.</para>
6384                 </listitem>
6385               </varlistentry>
6386
6387               <varlistentry>
6388                 <term><emphasis role="bold">partition name</emphasis></term>
6389
6390                 <listitem>
6391                   <para>Names the partition where the volume already exists, or the partition to which to move it. In the latter
6392                   case, the value for the <emphasis role="bold">-overwrite</emphasis> argument must be <emphasis
6393                   role="bold">full</emphasis>.</para>
6394                 </listitem>
6395               </varlistentry>
6396
6397               <varlistentry>
6398                 <term><emphasis role="bold">name of volume to be restored</emphasis></term>
6399
6400                 <listitem>
6401                   <para>Names the read/write volume to overwrite with the contents of the dump file.</para>
6402                 </listitem>
6403               </varlistentry>
6404
6405               <varlistentry>
6406                 <term><emphasis role="bold">-file</emphasis></term>
6407
6408                 <listitem>
6409                   <para>Is the dump file to restore. Partial pathnames are interpreted with respect to the current working
6410                   directory. Omit this argument if using a pipe to read in the dump file from the standard input stream; in this
6411                   case, you must provide the <emphasis role="bold">-overwrite</emphasis> argument.</para>
6412                 </listitem>
6413               </varlistentry>
6414
6415               <varlistentry>
6416                 <term><emphasis role="bold">-overwrite</emphasis></term>
6417
6418                 <listitem>
6419                   <para>Preconfirms that you want to overwrite the existing volume and specifies which type of dump file you are
6420                   restoring. Provide one of the following values: <itemizedlist>
6421                       <listitem>
6422                         <para><emphasis role="bold">f</emphasis> or <emphasis role="bold">full</emphasis> if restoring a full dump
6423                         file</para>
6424                       </listitem>
6425
6426                       <listitem>
6427                         <para><emphasis role="bold">i</emphasis> or <emphasis role="bold">incremental</emphasis> if restoring an
6428                         incremental dump file. This value is not acceptable if you are moving the volume while restoring it.</para>
6429                       </listitem>
6430
6431                       <listitem>
6432                         <para><emphasis role="bold">a</emphasis> to terminate the restore operation</para>
6433                       </listitem>
6434                     </itemizedlist></para>
6435                 </listitem>
6436               </varlistentry>
6437             </variablelist></para>
6438         </listitem>
6439
6440         <listitem>
6441           <para>If the volume is replicated, issue the <emphasis role="bold">vos release</emphasis> command to release the newly
6442           restored contents to read-only sites. Complete instructions appear in <link linkend="HDRWQ192">Replicating Volumes
6443           (Creating Read-only Volumes)</link>. <programlisting>
6444    % <emphasis role="bold">vos release</emphasis> &lt;<replaceable>volume name or ID</replaceable>&gt;
6445 </programlisting></para>
6446         </listitem>
6447
6448         <listitem>
6449           <para>Issue the <emphasis role="bold">vos backup</emphasis> command to create a new backup version of the volume. Complete
6450           instructions appear in <link linkend="HDRWQ201">Creating Backup Volumes</link>. <programlisting>
6451    % <emphasis role="bold">vos backup</emphasis> &lt;<replaceable>volume name or ID</replaceable>&gt;
6452 </programlisting></para>
6453         </listitem>
6454       </orderedlist>
6455     </sect2>
6456   </sect1>
6457
6458   <sect1 id="HDRWQ245">
6459     <title>Renaming Volumes</title>
6460
6461     <indexterm>
6462       <primary>renaming</primary>
6463
6464       <secondary>volume</secondary>
6465     </indexterm>
6466
6467     <indexterm>
6468       <primary>volume</primary>
6469
6470       <secondary>renaming</secondary>
6471     </indexterm>
6472
6473     <indexterm>
6474       <primary>changing</primary>
6475
6476       <secondary>volume name</secondary>
6477     </indexterm>
6478
6479     <indexterm>
6480       <primary>volume name</primary>
6481
6482       <secondary>changing</secondary>
6483
6484       <tertiary>basic instructions</tertiary>
6485     </indexterm>
6486
6487     <para>You can use the <emphasis role="bold">vos rename</emphasis> command to rename a volume. For example, it is appropriate to
6488     rename a user's home volume if you use the <emphasis role="bold">user.</emphasis> username convention for user volume names and
6489     you change the username. (For complete instructions for changing usernames, see <link linkend="HDRWQ518">Changing
6490     Usernames</link>.)</para>
6491
6492     <indexterm>
6493       <primary>read/write volume</primary>
6494
6495       <secondary>changing name of</secondary>
6496     </indexterm>
6497
6498     <indexterm>
6499       <primary>read-only volume</primary>
6500
6501       <secondary>changing name of</secondary>
6502     </indexterm>
6503
6504     <indexterm>
6505       <primary>backup volume</primary>
6506
6507       <secondary>changing name of</secondary>
6508     </indexterm>
6509
6510     <para>The <emphasis role="bold">vos rename</emphasis> command accepts only read/write volume names, but automatically changes
6511     the names of the associated read-only and backup volumes. As directed in the following instructions, you need to replace the
6512     volume's current mount point with a new one that reflects the name change.</para>
6513
6514     <indexterm>
6515       <primary>commands</primary>
6516
6517       <secondary>vos rename</secondary>
6518
6519       <tertiary>basic instructions</tertiary>
6520     </indexterm>
6521
6522     <indexterm>
6523       <primary>vos commands</primary>
6524
6525       <secondary>rename</secondary>
6526
6527       <tertiary>basic instructions</tertiary>
6528     </indexterm>
6529
6530     <sect2 id="HDRWQ246">
6531       <title>To rename a volume</title>
6532
6533       <orderedlist>
6534         <listitem>
6535           <para>Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, issue
6536           the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To
6537           display the users in the UserList file</link>. <programlisting>
6538    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
6539 </programlisting></para>
6540         </listitem>
6541
6542         <listitem>
6543           <para>Verify that you have the <emphasis role="bold">a</emphasis>( <emphasis role="bold">administer</emphasis>), <emphasis
6544           role="bold">d</emphasis>( <emphasis role="bold">delete</emphasis>), and <emphasis role="bold">i</emphasis>( <emphasis
6545           role="bold">insert</emphasis>) access permissions for the directory in which you are replacing the volume's mount point.
6546           If necessary, issue the <emphasis role="bold">fs listacl</emphasis> command, which is fully described in <link
6547           linkend="HDRWQ572">Displaying ACLs</link>. <programlisting>
6548    % <emphasis role="bold">fs listacl</emphasis> [&lt;<replaceable>dir/file path</replaceable>&gt;]
6549 </programlisting></para>
6550
6551           <para>Members of the <emphasis role="bold">system:administrators</emphasis> group always implicitly have the <emphasis
6552           role="bold">a</emphasis>( <emphasis role="bold">administer</emphasis>) and by default also the <emphasis
6553           role="bold">l</emphasis>( <emphasis role="bold">lookup</emphasis>) permission on every ACL and can use the <emphasis
6554           role="bold">fs setacl</emphasis> command to grant other rights as necessary.</para>
6555         </listitem>
6556
6557         <listitem>
6558           <para><anchor id="LIVOL-REN" />Issue the <emphasis role="bold">vos rename</emphasis> command to rename the volume.
6559           <programlisting>
6560    % <emphasis role="bold">vos rename</emphasis> &lt;<replaceable>old volume name</replaceable>&gt; &lt;<replaceable>new volume name</replaceable>&gt;
6561 </programlisting></para>
6562
6563           <para>where <variablelist>
6564               <varlistentry>
6565                 <term><emphasis role="bold">ren</emphasis></term>
6566
6567                 <listitem>
6568                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">rename</emphasis>.</para>
6569                 </listitem>
6570               </varlistentry>
6571
6572               <varlistentry>
6573                 <term><emphasis role="bold">old volume name</emphasis></term>
6574
6575                 <listitem>
6576                   <para>Is the current name of a read/write volume.</para>
6577                 </listitem>
6578               </varlistentry>
6579
6580               <varlistentry>
6581                 <term><emphasis role="bold">new volume name</emphasis></term>
6582
6583                 <listitem>
6584                   <para>Is the new name for the volume. It cannot be more than 22 characters in length.</para>
6585                 </listitem>
6586               </varlistentry>
6587             </variablelist></para>
6588
6589           <para>If there is no Volume Location Database (VLDB) entry for the specified current volume name, the command fails with
6590           the following error message:</para>
6591
6592           <programlisting>
6593    vos: Could not find entry for volume old_volume_name.
6594 </programlisting>
6595
6596           <indexterm>
6597             <primary>commands</primary>
6598
6599             <secondary>fs rmmount</secondary>
6600           </indexterm>
6601
6602           <indexterm>
6603             <primary>fs commands</primary>
6604
6605             <secondary>rmmount</secondary>
6606
6607             <tertiary>when renaming volume</tertiary>
6608           </indexterm>
6609         </listitem>
6610
6611         <listitem>
6612           <para>Issue the <emphasis role="bold">fs rmmount</emphasis> command to remove the mount point that refers to the volume's
6613           old name. Complete instructions appear in <link linkend="HDRWQ215">To remove a mount point</link>. <programlisting>
6614    % <emphasis role="bold">fs rmmount</emphasis> &lt;<replaceable>directory</replaceable>&gt;
6615 </programlisting></para>
6616
6617           <indexterm>
6618             <primary>commands</primary>
6619
6620             <secondary>fs mkmount</secondary>
6621
6622             <tertiary>when renaming volume</tertiary>
6623           </indexterm>
6624
6625           <indexterm>
6626             <primary>fs commands</primary>
6627
6628             <secondary>mkmount</secondary>
6629
6630             <tertiary>when renaming volume</tertiary>
6631           </indexterm>
6632         </listitem>
6633
6634         <listitem>
6635           <para>Issue the <emphasis role="bold">fs mkmount</emphasis> to create a mount point that indicates the volume's new name.
6636           Complete instructions appear in <link linkend="HDRWQ212">To create a regular or read/write mount point</link>.
6637           <programlisting>
6638    % <emphasis role="bold">fs mkmount</emphasis> &lt;<replaceable>directory</replaceable>&gt; &lt;<replaceable>volume name</replaceable>&gt; [<emphasis
6639                 role="bold">-rw</emphasis>]
6640 </programlisting></para>
6641         </listitem>
6642       </orderedlist>
6643     </sect2>
6644   </sect1>
6645
6646   <sect1 id="HDRWQ247">
6647     <title>Unlocking and Locking VLDB Entries</title>
6648
6649     <para>As detailed in <link linkend="HDRWQ227">Synchronizing the VLDB and Volume Headers</link>, The Volume Location (VL) Server
6650     locks the Volume Location Database (VLDB) entry for a volume before the Volume Server executes any operation on it. No other
6651     operation can affect a volume with a locked VLDB entry, so the lock prevents the inconsistency or corruption that can result
6652     from multiple simultaneous operations on a volume.</para>
6653
6654     <indexterm>
6655       <primary>locking</primary>
6656
6657       <secondary>VLDB entry</secondary>
6658     </indexterm>
6659
6660     <indexterm>
6661       <primary>VLDB</primary>
6662
6663       <secondary>locking/unlocking entry</secondary>
6664     </indexterm>
6665
6666     <indexterm>
6667       <primary>entry in VLDB</primary>
6668
6669       <secondary>locking/unlocking</secondary>
6670     </indexterm>
6671
6672     <indexterm>
6673       <primary>unlocking</primary>
6674
6675       <secondary>VLDB entry</secondary>
6676     </indexterm>
6677
6678     <indexterm>
6679       <primary>locked VLDB entry</primary>
6680
6681       <secondary>unlocking</secondary>
6682     </indexterm>
6683
6684     <para>To verify that a VLDB entry is locked, issue the <emphasis role="bold">vos listvldb</emphasis> command as described in
6685     <link linkend="HDRWQ218">To display VLDB entries</link>. The command has a <emphasis role="bold">-locked</emphasis> flag that
6686     displays locked entries only. If the VLDB entry is locked, the string <computeroutput>Volume is currently
6687     LOCKED</computeroutput> appears on the last line of the volume's output.</para>
6688
6689     <para>To lock a VLDB entry yourself, use the <emphasis role="bold">vos lock</emphasis> command. This is useful when you suspect
6690     something is wrong with a volume and you want to prevent any changes to it while you are investigating the problem.</para>
6691
6692     <para>To unlock a locked VLDB entry, issue the <emphasis role="bold">vos unlock</emphasis> command, which unlocks a single VLDB
6693     entry, or the <emphasis role="bold">vos unlockvldb</emphasis> command, which unlocks potentially many entries. This is useful
6694     when a volume operation fails prematurely and leaves a VLDB entry locked, preventing you from acting to correct the problems
6695     resulting from the failure.</para>
6696
6697     <indexterm>
6698       <primary>commands</primary>
6699
6700       <secondary>vos lock</secondary>
6701     </indexterm>
6702
6703     <indexterm>
6704       <primary>vos commands</primary>
6705
6706       <secondary>lock</secondary>
6707     </indexterm>
6708
6709     <sect2 id="Header_267">
6710       <title>To lock a VLDB entry</title>
6711
6712       <orderedlist>
6713         <listitem>
6714           <para>Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, issue
6715           the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To
6716           display the users in the UserList file</link>. <programlisting>
6717    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
6718 </programlisting></para>
6719         </listitem>
6720
6721         <listitem>
6722           <para>Issue the <emphasis role="bold">vos lock</emphasis> to lock the entry. <programlisting>
6723    % <emphasis role="bold">vos lock</emphasis> &lt;<replaceable>volume name or ID</replaceable>&gt;
6724 </programlisting></para>
6725
6726           <para>where <variablelist>
6727               <varlistentry>
6728                 <term><emphasis role="bold">lo</emphasis></term>
6729
6730                 <listitem>
6731                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">lock</emphasis>.</para>
6732                 </listitem>
6733               </varlistentry>
6734
6735               <varlistentry>
6736                 <term><emphasis role="bold">volume name or ID</emphasis></term>
6737
6738                 <listitem>
6739                   <para>Identifies the volume to be locked, either by its complete name or volume ID number. It can be any of the
6740                   three versions of the volume.</para>
6741                 </listitem>
6742               </varlistentry>
6743             </variablelist></para>
6744         </listitem>
6745       </orderedlist>
6746
6747       <indexterm>
6748         <primary>commands</primary>
6749
6750         <secondary>vos unlock</secondary>
6751       </indexterm>
6752
6753       <indexterm>
6754         <primary>vos commands</primary>
6755
6756         <secondary>unlock</secondary>
6757       </indexterm>
6758     </sect2>
6759
6760     <sect2 id="Header_268">
6761       <title>To unlock a single VLDB entry</title>
6762
6763       <orderedlist>
6764         <listitem>
6765           <para>Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, issue
6766           the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To
6767           display the users in the UserList file</link>. <programlisting>
6768    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
6769 </programlisting></para>
6770         </listitem>
6771
6772         <listitem>
6773           <para>Issue the <emphasis role="bold">vos unlock</emphasis> command to unlock the entry. <programlisting>
6774    % <emphasis role="bold">vos unlock</emphasis> &lt;<replaceable>volume name or ID</replaceable>&gt;
6775 </programlisting></para>
6776
6777           <para>where <variablelist>
6778               <varlistentry>
6779                 <term><emphasis role="bold">unlock</emphasis></term>
6780
6781                 <listitem>
6782                   <para>Must be typed in full.</para>
6783                 </listitem>
6784               </varlistentry>
6785
6786               <varlistentry>
6787                 <term><emphasis role="bold">volume name or ID</emphasis></term>
6788
6789                 <listitem>
6790                   <para>Identifies the volume to be unlocked, either by its complete name or volume ID number. It can be any of the
6791                   three versions of the volume.</para>
6792                 </listitem>
6793               </varlistentry>
6794             </variablelist></para>
6795         </listitem>
6796       </orderedlist>
6797
6798       <indexterm>
6799         <primary>commands</primary>
6800
6801         <secondary>vos unlockvldb</secondary>
6802       </indexterm>
6803
6804       <indexterm>
6805         <primary>vos commands</primary>
6806
6807         <secondary>unlockvldb</secondary>
6808       </indexterm>
6809     </sect2>
6810
6811     <sect2 id="Header_269">
6812       <title>To unlock multiple VLDB entries</title>
6813
6814       <orderedlist>
6815         <listitem>
6816           <para>Verify that you are listed in the <emphasis role="bold">/usr/afs/etc/UserList</emphasis> file. If necessary, issue
6817           the <emphasis role="bold">bos listusers</emphasis> command, which is fully described in <link linkend="HDRWQ593">To
6818           display the users in the UserList file</link>. <programlisting>
6819    % <emphasis role="bold">bos listusers</emphasis> &lt;<replaceable>machine name</replaceable>&gt;
6820 </programlisting></para>
6821         </listitem>
6822
6823         <listitem>
6824           <para>Issue the <emphasis role="bold">vos unlockvldb</emphasis> command to unlock the desired entries. <programlisting>
6825    % <emphasis role="bold">vos unlockvldb</emphasis> [&lt;<replaceable>machine name</replaceable>&gt;] [&lt;<replaceable>partition name</replaceable>&gt;]
6826 </programlisting></para>
6827
6828           <para>where <variablelist>
6829               <varlistentry>
6830                 <term><emphasis role="bold">unlockv</emphasis></term>
6831
6832                 <listitem>
6833                   <para>Is the shortest acceptable abbreviation of <emphasis role="bold">unlockvldb</emphasis>.</para>
6834                 </listitem>
6835               </varlistentry>
6836
6837               <varlistentry>
6838                 <term><emphasis role="bold">machine name</emphasis></term>
6839
6840                 <listitem>
6841                   <para>Specifies a file server machine. Provide this argument alone to unlock all VLDB entries that mention the
6842                   machine in a site definition. Omit both this argument and the partition name argument to unlock all VLDB
6843                   entries.</para>
6844                 </listitem>
6845               </varlistentry>
6846
6847               <varlistentry>
6848                 <term><emphasis role="bold">partition name</emphasis></term>
6849
6850                 <listitem>
6851                   <para>Specifies a partition. Provide this argument alone to unlock all VLDB entries that mention the partition (on
6852                   any machine) in a site definition. Omit both this argument and the machine name argument to unlock all VLDB
6853                   entries.</para>
6854                 </listitem>
6855               </varlistentry>
6856             </variablelist></para>
6857         </listitem>
6858       </orderedlist>
6859     </sect2>
6860   </sect1>
6861 </chapter>