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