quickstart-solaris-pam-20070423
[openafs.git] / doc / xml / AdminGuide / c8420.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <HTML
3 ><HEAD
4 ><TITLE
5 >Managing Volumes</TITLE
6 ><META
7 NAME="GENERATOR"
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
9 REL="HOME"
10 TITLE="AFS Administration Guide"
11 HREF="book1.html"><LINK
12 REL="UP"
13 TITLE="Managing File Server Machines"
14 HREF="p3023.html"><LINK
15 REL="PREVIOUS"
16 TITLE="Monitoring and Controlling Server Processes"
17 HREF="c6449.html"><LINK
18 REL="NEXT"
19 TITLE="Configuring the AFS Backup System"
20 HREF="c12776.html"></HEAD
21 ><BODY
22 CLASS="chapter"
23 BGCOLOR="#FFFFFF"
24 TEXT="#000000"
25 LINK="#0000FF"
26 VLINK="#840084"
27 ALINK="#0000FF"
28 ><DIV
29 CLASS="NAVHEADER"
30 ><TABLE
31 SUMMARY="Header navigation table"
32 WIDTH="100%"
33 BORDER="0"
34 CELLPADDING="0"
35 CELLSPACING="0"
36 ><TR
37 ><TH
38 COLSPAN="3"
39 ALIGN="center"
40 >AFS Administration Guide: Version 3.6</TH
41 ></TR
42 ><TR
43 ><TD
44 WIDTH="10%"
45 ALIGN="left"
46 VALIGN="bottom"
47 ><A
48 HREF="c6449.html"
49 ACCESSKEY="P"
50 >Prev</A
51 ></TD
52 ><TD
53 WIDTH="80%"
54 ALIGN="center"
55 VALIGN="bottom"
56 ></TD
57 ><TD
58 WIDTH="10%"
59 ALIGN="right"
60 VALIGN="bottom"
61 ><A
62 HREF="c12776.html"
63 ACCESSKEY="N"
64 >Next</A
65 ></TD
66 ></TR
67 ></TABLE
68 ><HR
69 ALIGN="LEFT"
70 WIDTH="100%"></DIV
71 ><DIV
72 CLASS="chapter"
73 ><H1
74 ><A
75 NAME="HDRWQ174"
76 ></A
77 >Chapter 5. Managing Volumes</H1
78 ><P
79 >This chapter explains how to manage the volumes stored on file server machines. The volume is the designated unit of
80   administration in AFS, so managing them is a large part of the administrator's duties.</P
81 ><DIV
82 CLASS="sect1"
83 ><H1
84 CLASS="sect1"
85 ><A
86 NAME="HDRWQ175"
87 >Summary of Instructions</A
88 ></H1
89 ><P
90 >This chapter explains how to perform the following tasks by using the indicated commands:</P
91 ><DIV
92 CLASS="informaltable"
93 ><A
94 NAME="AEN8426"
95 ></A
96 ><TABLE
97 BORDER="0"
98 FRAME="void"
99 CLASS="CALSTABLE"
100 ><COL
101 WIDTH="58*"><COL
102 WIDTH="42*"><TBODY
103 ><TR
104 ><TD
105 >Create read/write volume</TD
106 ><TD
107 ><SPAN
108 CLASS="bold"
109 ><B
110 CLASS="emphasis"
111 >vos create</B
112 ></SPAN
113 ></TD
114 ></TR
115 ><TR
116 ><TD
117 >Create read-only volume</TD
118 ><TD
119 ><SPAN
120 CLASS="bold"
121 ><B
122 CLASS="emphasis"
123 >vos addsite</B
124 ></SPAN
125 > <SPAN
126 CLASS="bold"
127 ><B
128 CLASS="emphasis"
129 >and</B
130 ></SPAN
131 > <SPAN
132 CLASS="bold"
133 ><B
134 CLASS="emphasis"
135 >vos
136             release</B
137 ></SPAN
138 ></TD
139 ></TR
140 ><TR
141 ><TD
142 >Create backup volume</TD
143 ><TD
144 ><SPAN
145 CLASS="bold"
146 ><B
147 CLASS="emphasis"
148 >vos backup</B
149 ></SPAN
150 ></TD
151 ></TR
152 ><TR
153 ><TD
154 >Create many backup volumes at once</TD
155 ><TD
156 ><SPAN
157 CLASS="bold"
158 ><B
159 CLASS="emphasis"
160 >vos backupsys</B
161 ></SPAN
162 ></TD
163 ></TR
164 ><TR
165 ><TD
166 >Examine VLDB entry</TD
167 ><TD
168 ><SPAN
169 CLASS="bold"
170 ><B
171 CLASS="emphasis"
172 >vos listvldb</B
173 ></SPAN
174 ></TD
175 ></TR
176 ><TR
177 ><TD
178 >Examine volume header</TD
179 ><TD
180 ><SPAN
181 CLASS="bold"
182 ><B
183 CLASS="emphasis"
184 >vos listvol</B
185 ></SPAN
186 ></TD
187 ></TR
188 ><TR
189 ><TD
190 >Examine both VLDB entry and volume header</TD
191 ><TD
192 ><SPAN
193 CLASS="bold"
194 ><B
195 CLASS="emphasis"
196 >vos examine</B
197 ></SPAN
198 ></TD
199 ></TR
200 ><TR
201 ><TD
202 >Display volume's name</TD
203 ><TD
204 ><SPAN
205 CLASS="bold"
206 ><B
207 CLASS="emphasis"
208 >fs listquota</B
209 ></SPAN
210 > <SPAN
211 CLASS="bold"
212 ><B
213 CLASS="emphasis"
214 >or</B
215 ></SPAN
216 > <SPAN
217 CLASS="bold"
218 ><B
219 CLASS="emphasis"
220 >fs
221             examine</B
222 ></SPAN
223 ></TD
224 ></TR
225 ><TR
226 ><TD
227 >Display volume's ID number</TD
228 ><TD
229 ><SPAN
230 CLASS="bold"
231 ><B
232 CLASS="emphasis"
233 >fs examine</B
234 ></SPAN
235 > <SPAN
236 CLASS="bold"
237 ><B
238 CLASS="emphasis"
239 >or</B
240 ></SPAN
241 > <SPAN
242 CLASS="bold"
243 ><B
244 CLASS="emphasis"
245 >vos
246             examine</B
247 ></SPAN
248 > <SPAN
249 CLASS="bold"
250 ><B
251 CLASS="emphasis"
252 >or</B
253 ></SPAN
254 > <SPAN
255 CLASS="bold"
256 ><B
257 CLASS="emphasis"
258 >vos listvol</B
259 ></SPAN
260 ></TD
261 ></TR
262 ><TR
263 ><TD
264 >Display partition's size and space available</TD
265 ><TD
266 ><SPAN
267 CLASS="bold"
268 ><B
269 CLASS="emphasis"
270 >vos partinfo</B
271 ></SPAN
272 ></TD
273 ></TR
274 ><TR
275 ><TD
276 >Display volume's location</TD
277 ><TD
278 ><SPAN
279 CLASS="bold"
280 ><B
281 CLASS="emphasis"
282 >fs whereis</B
283 ></SPAN
284 > <SPAN
285 CLASS="bold"
286 ><B
287 CLASS="emphasis"
288 >or</B
289 ></SPAN
290 > <SPAN
291 CLASS="bold"
292 ><B
293 CLASS="emphasis"
294 >vos
295             examine</B
296 ></SPAN
297 ></TD
298 ></TR
299 ><TR
300 ><TD
301 >Create mount point</TD
302 ><TD
303 ><SPAN
304 CLASS="bold"
305 ><B
306 CLASS="emphasis"
307 >fs mkmount</B
308 ></SPAN
309 ></TD
310 ></TR
311 ><TR
312 ><TD
313 >Remove mount point</TD
314 ><TD
315 ><SPAN
316 CLASS="bold"
317 ><B
318 CLASS="emphasis"
319 >fs rmmount</B
320 ></SPAN
321 ></TD
322 ></TR
323 ><TR
324 ><TD
325 >Display mount point</TD
326 ><TD
327 ><SPAN
328 CLASS="bold"
329 ><B
330 CLASS="emphasis"
331 >fs lsmount</B
332 ></SPAN
333 ></TD
334 ></TR
335 ><TR
336 ><TD
337 >Move read/write volume</TD
338 ><TD
339 ><SPAN
340 CLASS="bold"
341 ><B
342 CLASS="emphasis"
343 >vos move</B
344 ></SPAN
345 ></TD
346 ></TR
347 ><TR
348 ><TD
349 >Synchronize VLDB with volume headers</TD
350 ><TD
351 ><SPAN
352 CLASS="bold"
353 ><B
354 CLASS="emphasis"
355 >vos syncvldb</B
356 ></SPAN
357 > <SPAN
358 CLASS="bold"
359 ><B
360 CLASS="emphasis"
361 >and</B
362 ></SPAN
363 > <SPAN
364 CLASS="bold"
365 ><B
366 CLASS="emphasis"
367 >vos
368             syncserv</B
369 ></SPAN
370 ></TD
371 ></TR
372 ><TR
373 ><TD
374 >Set volume quota</TD
375 ><TD
376 ><SPAN
377 CLASS="bold"
378 ><B
379 CLASS="emphasis"
380 >fs setvol</B
381 ></SPAN
382 > <SPAN
383 CLASS="bold"
384 ><B
385 CLASS="emphasis"
386 >or</B
387 ></SPAN
388 > <SPAN
389 CLASS="bold"
390 ><B
391 CLASS="emphasis"
392 >fs
393             setquota</B
394 ></SPAN
395 ></TD
396 ></TR
397 ><TR
398 ><TD
399 >Display volume quota</TD
400 ><TD
401 ><SPAN
402 CLASS="bold"
403 ><B
404 CLASS="emphasis"
405 >fs quota</B
406 ></SPAN
407 > <SPAN
408 CLASS="bold"
409 ><B
410 CLASS="emphasis"
411 >or</B
412 ></SPAN
413 > <SPAN
414 CLASS="bold"
415 ><B
416 CLASS="emphasis"
417 >fs
418             listquota</B
419 ></SPAN
420 > <SPAN
421 CLASS="bold"
422 ><B
423 CLASS="emphasis"
424 >or</B
425 ></SPAN
426 > <SPAN
427 CLASS="bold"
428 ><B
429 CLASS="emphasis"
430 >fs examine</B
431 ></SPAN
432 ></TD
433 ></TR
434 ><TR
435 ><TD
436 >Display volume's current size</TD
437 ><TD
438 ><SPAN
439 CLASS="bold"
440 ><B
441 CLASS="emphasis"
442 >fs listquota</B
443 ></SPAN
444 > <SPAN
445 CLASS="bold"
446 ><B
447 CLASS="emphasis"
448 >or</B
449 ></SPAN
450 > <SPAN
451 CLASS="bold"
452 ><B
453 CLASS="emphasis"
454 >fs
455             examine</B
456 ></SPAN
457 ></TD
458 ></TR
459 ><TR
460 ><TD
461 >Display list of volumes on a machine/partition</TD
462 ><TD
463 ><SPAN
464 CLASS="bold"
465 ><B
466 CLASS="emphasis"
467 >vos listvol</B
468 ></SPAN
469 ></TD
470 ></TR
471 ><TR
472 ><TD
473 >Remove read/write volume</TD
474 ><TD
475 ><SPAN
476 CLASS="bold"
477 ><B
478 CLASS="emphasis"
479 >vos remove</B
480 ></SPAN
481 > <SPAN
482 CLASS="bold"
483 ><B
484 CLASS="emphasis"
485 >and</B
486 ></SPAN
487 > <SPAN
488 CLASS="bold"
489 ><B
490 CLASS="emphasis"
491 >fs
492             rmmount</B
493 ></SPAN
494 ></TD
495 ></TR
496 ><TR
497 ><TD
498 >Remove read-only volume</TD
499 ><TD
500 ><SPAN
501 CLASS="bold"
502 ><B
503 CLASS="emphasis"
504 >vos remove</B
505 ></SPAN
506 ></TD
507 ></TR
508 ><TR
509 ><TD
510 >Remove backup volume</TD
511 ><TD
512 ><SPAN
513 CLASS="bold"
514 ><B
515 CLASS="emphasis"
516 >vos remove</B
517 ></SPAN
518 > <SPAN
519 CLASS="bold"
520 ><B
521 CLASS="emphasis"
522 >and</B
523 ></SPAN
524 > <SPAN
525 CLASS="bold"
526 ><B
527 CLASS="emphasis"
528 >fs
529             rmmount</B
530 ></SPAN
531 ></TD
532 ></TR
533 ><TR
534 ><TD
535 >Remove volume; no VLDB change</TD
536 ><TD
537 ><SPAN
538 CLASS="bold"
539 ><B
540 CLASS="emphasis"
541 >vos zap</B
542 ></SPAN
543 ></TD
544 ></TR
545 ><TR
546 ><TD
547 >Remove read-only site definition</TD
548 ><TD
549 ><SPAN
550 CLASS="bold"
551 ><B
552 CLASS="emphasis"
553 >vos remsite</B
554 ></SPAN
555 ></TD
556 ></TR
557 ><TR
558 ><TD
559 >Remove VLDB entry; no volume change</TD
560 ><TD
561 ><SPAN
562 CLASS="bold"
563 ><B
564 CLASS="emphasis"
565 >vos delentry</B
566 ></SPAN
567 ></TD
568 ></TR
569 ><TR
570 ><TD
571 >Dump volume</TD
572 ><TD
573 ><SPAN
574 CLASS="bold"
575 ><B
576 CLASS="emphasis"
577 >vos dump</B
578 ></SPAN
579 ></TD
580 ></TR
581 ><TR
582 ><TD
583 >Restore dumped volume</TD
584 ><TD
585 ><SPAN
586 CLASS="bold"
587 ><B
588 CLASS="emphasis"
589 >vos restore</B
590 ></SPAN
591 ></TD
592 ></TR
593 ><TR
594 ><TD
595 >Rename volume</TD
596 ><TD
597 ><SPAN
598 CLASS="bold"
599 ><B
600 CLASS="emphasis"
601 >vos rename</B
602 ></SPAN
603 >, <SPAN
604 CLASS="bold"
605 ><B
606 CLASS="emphasis"
607 >fs rmmount</B
608 ></SPAN
609 > <SPAN
610 CLASS="bold"
611 ><B
612 CLASS="emphasis"
613 >and</B
614 ></SPAN
615 > <SPAN
616 CLASS="bold"
617 ><B
618 CLASS="emphasis"
619 >fs mkmount</B
620 ></SPAN
621 ></TD
622 ></TR
623 ><TR
624 ><TD
625 >Unlock volume</TD
626 ><TD
627 ><SPAN
628 CLASS="bold"
629 ><B
630 CLASS="emphasis"
631 >vos unlock</B
632 ></SPAN
633 ></TD
634 ></TR
635 ><TR
636 ><TD
637 >Unlock multiple volumes</TD
638 ><TD
639 ><SPAN
640 CLASS="bold"
641 ><B
642 CLASS="emphasis"
643 >vos unlockvldb</B
644 ></SPAN
645 ></TD
646 ></TR
647 ><TR
648 ><TD
649 >Lock volume</TD
650 ><TD
651 ><SPAN
652 CLASS="bold"
653 ><B
654 CLASS="emphasis"
655 >vos lock</B
656 ></SPAN
657 ></TD
658 ></TR
659 ></TBODY
660 ></TABLE
661 ></DIV
662 ></DIV
663 ><DIV
664 CLASS="sect1"
665 ><H1
666 CLASS="sect1"
667 ><A
668 NAME="HDRWQ177"
669 >About Volumes</A
670 ></H1
671 ><P
672 >An AFS <SPAN
673 CLASS="emphasis"
674 ><I
675 CLASS="emphasis"
676 >volume</I
677 ></SPAN
678 > is a logical unit of disk space that functions like a container for the files in an AFS
679     directory, keeping them all together on one partition of a file server machine. To make a volume's contents visible in the
680     cell's file tree and accessible to users, you mount the volume at a directory location in the AFS filespace. The association
681     between the volume and its location in the filespace is called a <SPAN
682 CLASS="emphasis"
683 ><I
684 CLASS="emphasis"
685 >mount point</I
686 ></SPAN
687 >, and because of AFS's internal
688     workings it looks and acts just like a standard directory element. Users can access and manipulate a volume's contents in the
689     same way they access and manipulate the contents of a standard UNIX directory. For more on the relationship between volumes and
690     directories, see <A
691 HREF="c8420.html#HDRWQ183"
692 >About Mounting Volumes</A
693 >.</P
694 ><P
695 >Many of an administrator's daily activities involve manipulating volumes, since they are the basic storage and
696     administrative unit of AFS. For a discussion of some of the ways volumes can make your job easier, see <A
697 HREF="c8420.html#HDRWQ179"
698 >How Volumes Improve AFS Efficiency</A
699 >.</P
700 ><DIV
701 CLASS="sect2"
702 ><H2
703 CLASS="sect2"
704 ><A
705 NAME="HDRWQ178"
706 >The Three Types of Volumes</A
707 ></H2
708 ><P
709 >There are three types of volumes in AFS, as described in the following list: <UL
710 ><LI
711 ><P
712 >The single <SPAN
713 CLASS="emphasis"
714 ><I
715 CLASS="emphasis"
716 >read/write</I
717 ></SPAN
718 > version of a volume houses the modifiable versions of the files and
719             directories in that volume. It is often referred to as the <SPAN
720 CLASS="emphasis"
721 ><I
722 CLASS="emphasis"
723 >read/write</I
724 ></SPAN
725 > source because volumes of the
726             other two types are derived from it by a copying procedure called <SPAN
727 CLASS="emphasis"
728 ><I
729 CLASS="emphasis"
730 >cloning</I
731 ></SPAN
732 >. For instructions on
733             creating read/write volumes, see <A
734 HREF="c8420.html#HDRWQ185"
735 >Creating Read/write Volumes</A
736 >.</P
737 ></LI
738 ><LI
739 ><P
740 >A <SPAN
741 CLASS="emphasis"
742 ><I
743 CLASS="emphasis"
744 >read-only</I
745 ></SPAN
746 > volume is a copy of the read/write source volume and can exist at multiple
747             <SPAN
748 CLASS="emphasis"
749 ><I
750 CLASS="emphasis"
751 >sites</I
752 ></SPAN
753 > (a site is a particular partition on a particular file server machine). Placing the same data
754             at more than one site is called <SPAN
755 CLASS="emphasis"
756 ><I
757 CLASS="emphasis"
758 >replication</I
759 ></SPAN
760 >; see <A
761 HREF="c8420.html#HDRWQ179"
762 >How Volumes Improve AFS
763             Efficiency</A
764 >. As the name suggests, a read-only volume's contents do not change automatically as the read/write
765             source changes, but only when an administrator issues the <SPAN
766 CLASS="bold"
767 ><B
768 CLASS="emphasis"
769 >vos release</B
770 ></SPAN
771 > command. For
772             users to have a consistent view of the AFS filespace, all copies of the read-only volume must match each other and their
773             read/write source. All read-only volumes share the same name, which is derived by adding the <SPAN
774 CLASS="bold"
775 ><B
776 CLASS="emphasis"
777 >.readonly</B
778 ></SPAN
779 > extension to the read/write source's name. For instructions on creating of read-only
780             volumes, see <A
781 HREF="c8420.html#HDRWQ192"
782 >Replicating Volumes (Creating Read-only Volumes)</A
783 >.</P
784 ></LI
785 ><LI
786 ><P
787 >A <SPAN
788 CLASS="emphasis"
789 ><I
790 CLASS="emphasis"
791 >backup</I
792 ></SPAN
793 > volume is a clone of the read/write source volume and is stored at the same site as
794             the source. A backup version is useful because it records the state of the read/write source at a certain time, allowing
795             recovery of data that is later mistakenly changed or deleted (for further discussion see <A
796 HREF="c8420.html#HDRWQ179"
797 >How
798             Volumes Improve AFS Efficiency</A
799 >). A backup volume's name is derived by adding the <SPAN
800 CLASS="bold"
801 ><B
802 CLASS="emphasis"
803 >.backup</B
804 ></SPAN
805 > extension to the read/write source's name. For instructions on creating of backup
806             volumes, see <A
807 HREF="c8420.html#HDRWQ201"
808 >Creating Backup Volumes</A
809 >.</P
810 ><DIV
811 CLASS="note"
812 ><BLOCKQUOTE
813 CLASS="note"
814 ><P
815 ><B
816 >Note: </B
817 >A backup volume is not the same as the backup of a volume transferred to tape using the AFS Backup System,
818               although making a backup version of a volume is usually a stage in the process of backing up the volume to tape. For
819               information on backing up a volume using the AFS Backup System, see <A
820 HREF="c15383.html#HDRWQ296"
821 >Backing Up
822               Data</A
823 >.</P
824 ></BLOCKQUOTE
825 ></DIV
826 ></LI
827 ></UL
828 ></P
829 ><P
830 >As noted, the three types of volumes are related to one another: read-only and backup volumes are both derived from a
831       read/write volume through a process called cloning. Read-only and backup volumes are exact copies of the read/write source at
832       the time they are created.</P
833 ></DIV
834 ><DIV
835 CLASS="sect2"
836 ><H2
837 CLASS="sect2"
838 ><A
839 NAME="HDRWQ179"
840 >How Volumes Improve AFS Efficiency</A
841 ></H2
842 ><P
843 >Volumes make your cell easier to manage and more efficient in the following three ways: <UL
844 ><LI
845 ><P
846 >Volumes are easy to move between partitions, on the same or different machines, because they are by definition
847             smaller than a partition. Perhaps the most common reasons to move volumes are to balance the load among file server
848             machines or to take advantage of greater disk capacity on certain machines. You can move volumes as often as necessary
849             without disrupting user access to their contents, because the move procedure makes the contents unavailable for only a
850             few seconds. The automatic tracking of volume locations in the Volume Location Database (VLDB) assures that access
851             remains transparent. For instructions on moving volumes, see <A
852 HREF="c8420.html#HDRWQ226"
853 >Moving Volumes</A
854 >.</P
855 ></LI
856 ><LI
857 ><P
858 >Volumes are the unit of replication in AFS. <SPAN
859 CLASS="emphasis"
860 ><I
861 CLASS="emphasis"
862 >Replication</I
863 ></SPAN
864 > refers to creating a read-only clone
865             from the read/write source and distributing of the clone to one or more sites. Replication improves system efficiency
866             because more than one machine can fill requests for popular files. It also boosts system reliability by helping to keep
867             data available in the face of machine or server process outage. In general, volumes containing popular application
868             programs and other files that do not change often are the best candidates for replication, but you can replicate any
869             read/write volume. See <A
870 HREF="c8420.html#HDRWQ192"
871 >Replicating Volumes (Creating Read-only Volumes)</A
872 >.</P
873 ></LI
874 ><LI
875 ><P
876 >Volumes are the unit of backup in AFS, in two senses. You can create a backup volume version to preserves the
877             state of a read/write source volume at a specified time. You can mount the backup version in the AFS filespace, enabling
878             users to restore data they have accidentally changed or deleted without administrator assistance, which frees you for
879             more important jobs. If you make a new backup version of user volumes once a day (presumably overwriting the former
880             backup), then users are always be able to retrieve the previous day's version of a file. For instructions, see <A
881 HREF="c8420.html#HDRWQ201"
882 >Creating Backup Volumes</A
883 >.</P
884 ><P
885 >Backup also refers to using the AFS Backup System to store permanent copies of volume contents on tape or in a
886             special backup data. See <A
887 HREF="c12776.html"
888 >Configuring the AFS Backup System</A
889 >and <A
890 HREF="c15383.html"
891 >Backing Up and Restoring AFS Data</A
892 >.</P
893 ></LI
894 ></UL
895 ></P
896 ></DIV
897 ><DIV
898 CLASS="sect2"
899 ><H2
900 CLASS="sect2"
901 ><A
902 NAME="HDRWQ180"
903 >Volume Information in the VLDB</A
904 ></H2
905 ><P
906 >The Volume Location Database (VLDB) includes entries for every volume in a cell. Perhaps the most important information
907       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
908       Manager consults the Volume Location (VL) Server, which maintains the VLDB, for a list of the file server machines that house
909       the volume containing the file. The Cache Manager then requests the file from the File Server running on one of the relevant
910       file server machines. The file location procedure is invisible to the user, who only needs to know the file's pathname.</P
911 ><P
912 >The VLDB volume entry for a read/write volume also contains the pertinent information about the read-only and backup
913       versions, which do not have their own VLDB entries. (The rare exception is a read-only volume that has its own VLDB entry
914       because its read/write source has been removed.) A volume's VLDB entry records the volume's name, the unique volume ID number
915       for each version (read/write, read-only, backup, and releaseClone), a count of the number of sites that house a read/write or
916       read-only version, and a list of the sites.</P
917 ><P
918 >To display the VLDB entry for one or more volumes, use the <SPAN
919 CLASS="bold"
920 ><B
921 CLASS="emphasis"
922 >vos listvldb</B
923 ></SPAN
924 > command as
925       described in <A
926 HREF="c8420.html#HDRWQ218"
927 >To display VLDB entries</A
928 >. To display the VLDB entry for a single volume along with
929       its <SPAN
930 CLASS="emphasis"
931 ><I
932 CLASS="emphasis"
933 >volume header</I
934 ></SPAN
935 >, use the <SPAN
936 CLASS="bold"
937 ><B
938 CLASS="emphasis"
939 >vos examine</B
940 ></SPAN
941 > command as described in <A
942 HREF="c8420.html#HDRWQ222"
943 >To display one volume's VLDB entry and volume header</A
944 >. (See the following section for a description
945       of the volume header.)</P
946 ></DIV
947 ><DIV
948 CLASS="sect2"
949 ><H2
950 CLASS="sect2"
951 ><A
952 NAME="HDRWQ181"
953 >The Information in Volume Headers</A
954 ></H2
955 ><P
956 >Whereas all versions of a volume share one VLDB entry, each volume on an AFS server partition has its own volume header,
957       a data structure that maps the files and directories in the volume to physical memory addresses on the partition that stores
958       them. The volume header binds the volume's contents into a logical unit without requiring that they be stored in contiguous
959       memory blocks. The volume header also records the following information about the volume, some of it redundant with the VLDB
960       entry: name, volume ID number, type, size, status (online, offline, or busy), space quota, timestamps for creation date and
961       date of last modification, and number of accesses during the current day.</P
962 ><P
963 >To display the volume headers on one or more partitions, use the <SPAN
964 CLASS="bold"
965 ><B
966 CLASS="emphasis"
967 >vos listvol</B
968 ></SPAN
969 > command as
970       described in <A
971 HREF="c8420.html#HDRWQ220"
972 >To display volume headers</A
973 >. To display the VLDB entry for a single volume along
974       with its volume header, use the <SPAN
975 CLASS="bold"
976 ><B
977 CLASS="emphasis"
978 >vos examine</B
979 ></SPAN
980 > command as described in <A
981 HREF="c8420.html#HDRWQ222"
982 >To display one volume's VLDB entry and volume header</A
983 >.</P
984 ></DIV
985 ><DIV
986 CLASS="sect2"
987 ><H2
988 CLASS="sect2"
989 ><A
990 NAME="HDRWQ182"
991 >Keeping the VLDB and Volume Headers Synchronized</A
992 ></H2
993 ><P
994 >It is vital that the information in the VLDB correspond to the status of the actual volumes on the servers (as recorded
995       in volume headers) as much of the time as possible. If a volume's location information in the VLDB is incorrect, the Cache
996       Manager cannot find access its contents. Whenever you issue a <SPAN
997 CLASS="bold"
998 ><B
999 CLASS="emphasis"
1000 >vos</B
1001 ></SPAN
1002 > command that changes a
1003       volume's status, the Volume Server and VL Server cooperate to keep the volume header and VLDB synchronized. In rare cases, the
1004       header and VLDB can diverge, for instance because a <SPAN
1005 CLASS="bold"
1006 ><B
1007 CLASS="emphasis"
1008 >vos</B
1009 ></SPAN
1010 > operation halts prematurely. For
1011       instructions on resynchronizing them, see <A
1012 HREF="c8420.html#HDRWQ227"
1013 >Synchronizing the VLDB and Volume Headers</A
1014 >.</P
1015 ></DIV
1016 ><DIV
1017 CLASS="sect2"
1018 ><H2
1019 CLASS="sect2"
1020 ><A
1021 NAME="HDRWQ183"
1022 >About Mounting Volumes</A
1023 ></H2
1024 ><P
1025 >To make a volume's contents visible in the cell's file tree and accessible to users, you mount the volume at a directory
1026       location in the AFS filespace. The association between the volume and its location in the filespace is called a
1027       <SPAN
1028 CLASS="emphasis"
1029 ><I
1030 CLASS="emphasis"
1031 >mount point</I
1032 ></SPAN
1033 >. An AFS mount point looks and functions like a regular UNIX file system directory, but
1034       structurally it is more like a symbolic link that tells the Cache Manager the name of the volume associated with the
1035       directory. A mount point looks and acts like a directory only because the Cache Manager knows how to interpret it.</P
1036 ><P
1037 >Consider the common case where the Cache Manager needs to retrieve a file requested by an application program. The Cache
1038       Manager traverses the file's complete pathname, starting at the AFS root (by convention mounted at the <SPAN
1039 CLASS="bold"
1040 ><B
1041 CLASS="emphasis"
1042 >/afs</B
1043 ></SPAN
1044 > directory) and continuing to the file. When the Cache Manager encounters (or
1045       <SPAN
1046 CLASS="emphasis"
1047 ><I
1048 CLASS="emphasis"
1049 >crosses</I
1050 ></SPAN
1051 >) a mount point during the traversal, it reads it to learn the name of the volume mounted at that
1052       directory location. After obtaining location information about the volume from the Volume Location (VL) Server, the Cache
1053       Manager fetches the indicated volume and opens its <SPAN
1054 CLASS="emphasis"
1055 ><I
1056 CLASS="emphasis"
1057 >root directory</I
1058 ></SPAN
1059 >. The root directory of a volume lists
1060       all the files, subdirectories, and mount points that reside in it. The Cache Manager scans the root directory listing for the
1061       next element in the pathname. It continues down the path, using this method to interpret any other mount points it encounters,
1062       until it reaches the volume that houses the requested file.</P
1063 ><P
1064 >Mount points act as the glue that connects the AFS file space, creating the illusion of a single, seamless file tree
1065       even when volumes reside on many different file server machines. A volume's contents are visible and accessible when the
1066       volume is mounted at a directory location, and are not accessible at all if the volume is not mounted.</P
1067 ><P
1068 >You can mount a volume at more than one location in the file tree, but this is not recommended for two reasons. First,
1069       it distorts the hierarchical nature of the filespace. Second, the Cache Manager can become confused about which pathname it
1070       followed to reach the file (causing unpredictable output from the <SPAN
1071 CLASS="bold"
1072 ><B
1073 CLASS="emphasis"
1074 >pwd</B
1075 ></SPAN
1076 > command, for example).
1077       However, if you mount a volume at more than one directory, the access control list (ACL) associated with the volume's root
1078       directory applies to all of the mount points.</P
1079 ><P
1080 >There are several types of mount points, each of which the Cache Manager handles in a different way and each of which is
1081       appropriate for a different purpose. See <A
1082 HREF="c8420.html#HDRWQ208"
1083 >Mounting Volumes</A
1084 >.</P
1085 ></DIV
1086 ><DIV
1087 CLASS="sect2"
1088 ><H2
1089 CLASS="sect2"
1090 ><A
1091 NAME="HDRWQ184"
1092 >About Volume Names</A
1093 ></H2
1094 ><P
1095 >A read/write volume's name can be up to 22 characters in length. The Volume Server automatically adds the <SPAN
1096 CLASS="bold"
1097 ><B
1098 CLASS="emphasis"
1099 >.readonly</B
1100 ></SPAN
1101 > and <SPAN
1102 CLASS="bold"
1103 ><B
1104 CLASS="emphasis"
1105 >.backup</B
1106 ></SPAN
1107 > extensions to read-only and backup volumes
1108       respectively. Do not explicitly add the extensions to volume names, even if they are appropriate.</P
1109 ><P
1110 >It is conventional for a volume's name to indicate the type of data it houses. For example, it is conventional to name
1111       all user volumes <SPAN
1112 CLASS="bold"
1113 ><B
1114 CLASS="emphasis"
1115 >user</B
1116 ></SPAN
1117 >.username where username is the user's login name. Similarly, many cells
1118       elect to put system binaries in volumes with names that begin with the system type code. For a list of other naming
1119       conventions, see <A
1120 HREF="c667.html#HDRWQ44"
1121 >Creating Volumes to Simplify Administration</A
1122 >.</P
1123 ></DIV
1124 ></DIV
1125 ><DIV
1126 CLASS="sect1"
1127 ><H1
1128 CLASS="sect1"
1129 ><A
1130 NAME="HDRWQ185"
1131 >Creating Read/write Volumes</A
1132 ></H1
1133 ><P
1134 >A read/write volume is the most basic type of volume, and must exist before you can create read-only or backup versions of
1135     it. When you issue the <SPAN
1136 CLASS="bold"
1137 ><B
1138 CLASS="emphasis"
1139 >vos create</B
1140 ></SPAN
1141 > command to create a read/write volume, the VL Server creates
1142     a VLDB entry for it which records the name you specify, assigns a read/write volume ID number, and reserves the next two
1143     consecutive volume ID numbers for read-only and backup versions that possibly are to be created later. At the same time, the
1144     Volume Server creates a volume header at the site you designate, allocating space on disk to record the name of the volume's
1145     root directory. The name is filled in when you issue the <SPAN
1146 CLASS="bold"
1147 ><B
1148 CLASS="emphasis"
1149 >fs mkmount</B
1150 ></SPAN
1151 > command to mount the
1152     volume, and matches the mount point name. The following is also recorded in the volume header: <UL
1153 ><LI
1154 ><P
1155 >An initial ACL associated with the volume's root directory. By default it grants all seven AFS access permissions to
1156           the <SPAN
1157 CLASS="bold"
1158 ><B
1159 CLASS="emphasis"
1160 >system:administrators</B
1161 ></SPAN
1162 > group. After you mount the volume, you can use the <SPAN
1163 CLASS="bold"
1164 ><B
1165 CLASS="emphasis"
1166 >fs setacl</B
1167 ></SPAN
1168 > command to add other entries and to remove or change the entry for the <SPAN
1169 CLASS="bold"
1170 ><B
1171 CLASS="emphasis"
1172 >system:administrators</B
1173 ></SPAN
1174 > group. See <A
1175 HREF="c31274.html#HDRWQ573"
1176 >Setting ACL Entries</A
1177 >.</P
1178 ></LI
1179 ><LI
1180 ><P
1181 >A space quota, which limits the amount of disk space the read/write version of the volume can use on the file server
1182           partition. The default is of 5000 kilobyte blocks, but you can use the <SPAN
1183 CLASS="bold"
1184 ><B
1185 CLASS="emphasis"
1186 >-maxquota</B
1187 ></SPAN
1188 > argument
1189           to the <SPAN
1190 CLASS="bold"
1191 ><B
1192 CLASS="emphasis"
1193 >vos create</B
1194 ></SPAN
1195 > command to set a different quota.</P
1196 ><P
1197 >To change the quota after creation, use the <SPAN
1198 CLASS="bold"
1199 ><B
1200 CLASS="emphasis"
1201 >fs setquota</B
1202 ></SPAN
1203 > command as described in
1204           <A
1205 HREF="c8420.html#HDRWQ234"
1206 >Setting and Displaying Volume Quota and Current Size</A
1207 >.</P
1208 ></LI
1209 ></UL
1210 ></P
1211 ><DIV
1212 CLASS="sect2"
1213 ><H2
1214 CLASS="sect2"
1215 ><A
1216 NAME="Header_212"
1217 >To create (and mount) a read/write volume</A
1218 ></H2
1219 ><OL
1220 TYPE="1"
1221 ><LI
1222 ><P
1223 >Verify that you are listed in the <SPAN
1224 CLASS="bold"
1225 ><B
1226 CLASS="emphasis"
1227 >/usr/afs/etc/UserList</B
1228 ></SPAN
1229 > file. If necessary, issue
1230           the <SPAN
1231 CLASS="bold"
1232 ><B
1233 CLASS="emphasis"
1234 >bos listusers</B
1235 ></SPAN
1236 > command, which is fully described in <A
1237 HREF="c32432.html#HDRWQ593"
1238 >To
1239           display the users in the UserList file</A
1240 >. <PRE
1241 CLASS="programlisting"
1242 >&#13;   % <SPAN
1243 CLASS="bold"
1244 ><B
1245 CLASS="emphasis"
1246 >bos listusers</B
1247 ></SPAN
1248 > &#60;<VAR
1249 CLASS="replaceable"
1250 >machine name</VAR
1251 >&#62;
1252 </PRE
1253 ></P
1254 ></LI
1255 ><LI
1256 ><P
1257 >Verify that you have the <SPAN
1258 CLASS="bold"
1259 ><B
1260 CLASS="emphasis"
1261 >a</B
1262 ></SPAN
1263 >( <SPAN
1264 CLASS="bold"
1265 ><B
1266 CLASS="emphasis"
1267 >administer</B
1268 ></SPAN
1269 >), <SPAN
1270 CLASS="bold"
1271 ><B
1272 CLASS="emphasis"
1273 >i</B
1274 ></SPAN
1275 >( <SPAN
1276 CLASS="bold"
1277 ><B
1278 CLASS="emphasis"
1279 >insert</B
1280 ></SPAN
1281 >), and <SPAN
1282 CLASS="bold"
1283 ><B
1284 CLASS="emphasis"
1285 >l</B
1286 ></SPAN
1287 >( <SPAN
1288 CLASS="bold"
1289 ><B
1290 CLASS="emphasis"
1291 >lookup</B
1292 ></SPAN
1293 >) permissions on the ACL of the directory where you plan to mount the volume. If necessary,
1294           issue the <SPAN
1295 CLASS="bold"
1296 ><B
1297 CLASS="emphasis"
1298 >fs listacl</B
1299 ></SPAN
1300 > command, which is fully described in <A
1301 HREF="c31274.html#HDRWQ572"
1302 >Displaying ACLs</A
1303 >. <PRE
1304 CLASS="programlisting"
1305 >&#13;   % <SPAN
1306 CLASS="bold"
1307 ><B
1308 CLASS="emphasis"
1309 >fs listacl</B
1310 ></SPAN
1311 > [&#60;<SPAN
1312 CLASS="emphasis"
1313 ><I
1314 CLASS="emphasis"
1315 >dir/file path</I
1316 ></SPAN
1317 >&#62;]</PRE
1318 ></P
1319 ><P
1320 >Members of the <SPAN
1321 CLASS="bold"
1322 ><B
1323 CLASS="emphasis"
1324 >system:administrators</B
1325 ></SPAN
1326 > group always implicitly have the <SPAN
1327 CLASS="bold"
1328 ><B
1329 CLASS="emphasis"
1330 >a</B
1331 ></SPAN
1332 >( <SPAN
1333 CLASS="bold"
1334 ><B
1335 CLASS="emphasis"
1336 >administer</B
1337 ></SPAN
1338 >) and by default also the <SPAN
1339 CLASS="bold"
1340 ><B
1341 CLASS="emphasis"
1342 >l</B
1343 ></SPAN
1344 >( <SPAN
1345 CLASS="bold"
1346 ><B
1347 CLASS="emphasis"
1348 >lookup</B
1349 ></SPAN
1350 >) permission on every ACL and can use the <SPAN
1351 CLASS="bold"
1352 ><B
1353 CLASS="emphasis"
1354 >fs setacl</B
1355 ></SPAN
1356 > command to grant other rights as necessary.</P
1357 ></LI
1358 ><LI
1359 ><P
1360 ><A
1361 NAME="LIWQ186"
1362 ></A
1363 >Select a site (disk partition on a file server machine) for the new volume. To verify that
1364           the site has enough free space to house the volume (now, or if it grows to use its entire quota), issue the <SPAN
1365 CLASS="bold"
1366 ><B
1367 CLASS="emphasis"
1368 >vos partinfo</B
1369 ></SPAN
1370 > command.</P
1371 ><DIV
1372 CLASS="note"
1373 ><BLOCKQUOTE
1374 CLASS="note"
1375 ><P
1376 ><B
1377 >Note: </B
1378 >The partition-related statistics in this command's output do not always agree with the corresponding values in the
1379             output of the standard UNIX <SPAN
1380 CLASS="bold"
1381 ><B
1382 CLASS="emphasis"
1383 >df</B
1384 ></SPAN
1385 > command. The statistics reported by this command can be
1386             up to five minutes old, because the Cache Manager polls the File Server for partition information at that frequency.
1387             Also, on some operating systems, the <SPAN
1388 CLASS="bold"
1389 ><B
1390 CLASS="emphasis"
1391 >df</B
1392 ></SPAN
1393 > command's report of partition size includes
1394             reserved space not included in this command's calculation, and so is likely to be about 10% larger.</P
1395 ></BLOCKQUOTE
1396 ></DIV
1397 ><PRE
1398 CLASS="programlisting"
1399 >&#13;   % <SPAN
1400 CLASS="bold"
1401 ><B
1402 CLASS="emphasis"
1403 >vos partinfo</B
1404 ></SPAN
1405 > &#60;<SPAN
1406 CLASS="emphasis"
1407 ><I
1408 CLASS="emphasis"
1409 >machine name</I
1410 ></SPAN
1411 >&#62; [&#60;<SPAN
1412 CLASS="emphasis"
1413 ><I
1414 CLASS="emphasis"
1415 >partition name</I
1416 ></SPAN
1417 >&#62;]</PRE
1418 ><P
1419 >where <DIV
1420 CLASS="variablelist"
1421 ><DL
1422 ><DT
1423 ><SPAN
1424 CLASS="bold"
1425 ><B
1426 CLASS="emphasis"
1427 >p</B
1428 ></SPAN
1429 ></DT
1430 ><DD
1431 ><P
1432 >Is the shortest acceptable abbreviation of <SPAN
1433 CLASS="bold"
1434 ><B
1435 CLASS="emphasis"
1436 >partinfo</B
1437 ></SPAN
1438 >.</P
1439 ></DD
1440 ><DT
1441 ><SPAN
1442 CLASS="bold"
1443 ><B
1444 CLASS="emphasis"
1445 >machine name</B
1446 ></SPAN
1447 ></DT
1448 ><DD
1449 ><P
1450 >Specifies the file server machine for which to display partition size and usage.</P
1451 ></DD
1452 ><DT
1453 ><SPAN
1454 CLASS="bold"
1455 ><B
1456 CLASS="emphasis"
1457 >partition name</B
1458 ></SPAN
1459 ></DT
1460 ><DD
1461 ><P
1462 >Names one partition for which to display partition size and usage. If you omit it, the output displays the
1463                   size and space available for all partitions on the machine.</P
1464 ></DD
1465 ></DL
1466 ></DIV
1467 ></P
1468 ></LI
1469 ><LI
1470 ><P
1471 ><A
1472 NAME="LIWQ187"
1473 ></A
1474 >Select a volume name, taking note of the information in <A
1475 HREF="c8420.html#HDRWQ184"
1476 >About Volume
1477           Names</A
1478 >.</P
1479 ></LI
1480 ><LI
1481 ><P
1482 ><A
1483 NAME="LIWQ188"
1484 ></A
1485 >Issue the <SPAN
1486 CLASS="bold"
1487 ><B
1488 CLASS="emphasis"
1489 >vos create</B
1490 ></SPAN
1491 > command to create the volume.
1492           <PRE
1493 CLASS="programlisting"
1494 >&#13;   % <SPAN
1495 CLASS="bold"
1496 ><B
1497 CLASS="emphasis"
1498 >vos create</B
1499 ></SPAN
1500 > &#60;<VAR
1501 CLASS="replaceable"
1502 >machine name</VAR
1503 >&#62; &#60;<VAR
1504 CLASS="replaceable"
1505 >partition name</VAR
1506 >&#62; &#60;<VAR
1507 CLASS="replaceable"
1508 >volume name</VAR
1509 >&#62; \
1510         [<SPAN
1511 CLASS="bold"
1512 ><B
1513 CLASS="emphasis"
1514 >-maxquota</B
1515 ></SPAN
1516 > &#60;<VAR
1517 CLASS="replaceable"
1518 >initial quota (KB)</VAR
1519 >&#62;]
1520 </PRE
1521 ></P
1522 ><P
1523 >where <DIV
1524 CLASS="variablelist"
1525 ><DL
1526 ><DT
1527 ><SPAN
1528 CLASS="bold"
1529 ><B
1530 CLASS="emphasis"
1531 >cr</B
1532 ></SPAN
1533 ></DT
1534 ><DD
1535 ><P
1536 >Is the shortest acceptable abbreviation of <SPAN
1537 CLASS="bold"
1538 ><B
1539 CLASS="emphasis"
1540 >create</B
1541 ></SPAN
1542 >.</P
1543 ></DD
1544 ><DT
1545 ><SPAN
1546 CLASS="bold"
1547 ><B
1548 CLASS="emphasis"
1549 >machine name</B
1550 ></SPAN
1551 ></DT
1552 ><DD
1553 ><P
1554 >Specifies the file server machine on which to place the volume.</P
1555 ></DD
1556 ><DT
1557 ><SPAN
1558 CLASS="bold"
1559 ><B
1560 CLASS="emphasis"
1561 >partition name</B
1562 ></SPAN
1563 ></DT
1564 ><DD
1565 ><P
1566 >Specifies the disk partition on which to place the volume.</P
1567 ></DD
1568 ><DT
1569 ><SPAN
1570 CLASS="bold"
1571 ><B
1572 CLASS="emphasis"
1573 >volume name</B
1574 ></SPAN
1575 ></DT
1576 ><DD
1577 ><P
1578 >Names the volume. It can be up to 22 alphanumeric and punctuation characters in length. Your cell possibly
1579                   has naming conventions for volumes, such as beginning user volume names with the string <SPAN
1580 CLASS="bold"
1581 ><B
1582 CLASS="emphasis"
1583 >user</B
1584 ></SPAN
1585 > and using the period to separate parts of the name.</P
1586 ></DD
1587 ><DT
1588 ><SPAN
1589 CLASS="bold"
1590 ><B
1591 CLASS="emphasis"
1592 >-maxquota</B
1593 ></SPAN
1594 ></DT
1595 ><DD
1596 ><P
1597 >Sets the volume's quota, as a number of kilobyte blocks. If you omit this argument, the quota is set to 5000
1598                   kilobyte blocks.</P
1599 ></DD
1600 ></DL
1601 ></DIV
1602 ></P
1603 ></LI
1604 ><LI
1605 ><A
1606 NAME="LIWQ189"
1607 ></A
1608 ><P
1609 ><SPAN
1610 CLASS="bold"
1611 ><B
1612 CLASS="emphasis"
1613 >(Optional)</B
1614 ></SPAN
1615 > Issue the <SPAN
1616 CLASS="bold"
1617 ><B
1618 CLASS="emphasis"
1619 >fs mkmount</B
1620 ></SPAN
1621 > command to mount
1622           the volume in the filespace. For complete syntax, see <A
1623 HREF="c8420.html#HDRWQ212"
1624 >To create a regular or read/write mount
1625           point</A
1626 >. <PRE
1627 CLASS="programlisting"
1628 >&#13;   % <SPAN
1629 CLASS="bold"
1630 ><B
1631 CLASS="emphasis"
1632 >fs mkmount</B
1633 ></SPAN
1634 > &#60;<SPAN
1635 CLASS="emphasis"
1636 ><I
1637 CLASS="emphasis"
1638 >directory</I
1639 ></SPAN
1640 >&#62; &#60;<SPAN
1641 CLASS="emphasis"
1642 ><I
1643 CLASS="emphasis"
1644 >volume name</I
1645 ></SPAN
1646 >&#62;</PRE
1647 ></P
1648 ></LI
1649 ><LI
1650 ><P
1651 ><SPAN
1652 CLASS="bold"
1653 ><B
1654 CLASS="emphasis"
1655 >(Optional)</B
1656 ></SPAN
1657 > Issue the <SPAN
1658 CLASS="bold"
1659 ><B
1660 CLASS="emphasis"
1661 >fs lsmount</B
1662 ></SPAN
1663 > command to verify
1664           that the mount point refers to the correct volume. Complete instructions appear in <A
1665 HREF="c8420.html#HDRWQ211"
1666 >To display a
1667           mount point</A
1668 >. <PRE
1669 CLASS="programlisting"
1670 >&#13;   % <SPAN
1671 CLASS="bold"
1672 ><B
1673 CLASS="emphasis"
1674 >fs lsmount</B
1675 ></SPAN
1676 > &#60;<SPAN
1677 CLASS="emphasis"
1678 ><I
1679 CLASS="emphasis"
1680 >directory</I
1681 ></SPAN
1682 >&#62;</PRE
1683 ></P
1684 ></LI
1685 ><LI
1686 ><P
1687 ><SPAN
1688 CLASS="bold"
1689 ><B
1690 CLASS="emphasis"
1691 >(Optional)</B
1692 ></SPAN
1693 > Issue the <SPAN
1694 CLASS="bold"
1695 ><B
1696 CLASS="emphasis"
1697 >fs setvol</B
1698 ></SPAN
1699 > command with the
1700           <SPAN
1701 CLASS="bold"
1702 ><B
1703 CLASS="emphasis"
1704 >-offlinemsg</B
1705 ></SPAN
1706 > argument to record auxiliary information about the volume in its volume
1707           header. For example, you can record who owns the volume or where you have mounted it in the filespace. To display the
1708           information, use the <SPAN
1709 CLASS="bold"
1710 ><B
1711 CLASS="emphasis"
1712 >fs examine</B
1713 ></SPAN
1714 > command. <PRE
1715 CLASS="programlisting"
1716 >&#13;   % <SPAN
1717 CLASS="bold"
1718 ><B
1719 CLASS="emphasis"
1720 >fs setvol</B
1721 ></SPAN
1722 > &#60;<VAR
1723 CLASS="replaceable"
1724 >dir/file path</VAR
1725 >&#62; <SPAN
1726 CLASS="bold"
1727 ><B
1728 CLASS="emphasis"
1729 >-offlinemsg </B
1730 ></SPAN
1731 > &#60;<VAR
1732 CLASS="replaceable"
1733 >offline message</VAR
1734 >&#62;
1735 </PRE
1736 ></P
1737 ><P
1738 >where <DIV
1739 CLASS="variablelist"
1740 ><DL
1741 ><DT
1742 ><SPAN
1743 CLASS="bold"
1744 ><B
1745 CLASS="emphasis"
1746 >sv</B
1747 ></SPAN
1748 ></DT
1749 ><DD
1750 ><P
1751 >Is an acceptable alias for <SPAN
1752 CLASS="bold"
1753 ><B
1754 CLASS="emphasis"
1755 >setvol</B
1756 ></SPAN
1757 >(and <SPAN
1758 CLASS="bold"
1759 ><B
1760 CLASS="emphasis"
1761 >setv</B
1762 ></SPAN
1763 >
1764                   the shortest acceptable abbreviation).</P
1765 ></DD
1766 ><DT
1767 ><SPAN
1768 CLASS="bold"
1769 ><B
1770 CLASS="emphasis"
1771 >dir/file path</B
1772 ></SPAN
1773 ></DT
1774 ><DD
1775 ><P
1776 >Names the mount point of the volume with which to associate the message. Partial pathnames are interpreted
1777                   relative to the current working directory.</P
1778 ><P
1779 >Specify the read/write path to the mount point, to avoid the failure that results when you attempt to change
1780                   a read-only volume. By convention, you indicate the read/write path by placing a period before the cell name at
1781                   the pathname's second level (for example, <SPAN
1782 CLASS="bold"
1783 ><B
1784 CLASS="emphasis"
1785 >/afs/.abc.com</B
1786 ></SPAN
1787 >). For further discussion
1788                   of the concept of read/write and read-only paths through the filespace, see <A
1789 HREF="c8420.html#HDRWQ209"
1790 >The Rules of
1791                   Mount Point Traversal</A
1792 >.</P
1793 ></DD
1794 ><DT
1795 ><SPAN
1796 CLASS="bold"
1797 ><B
1798 CLASS="emphasis"
1799 >-offlinemsg</B
1800 ></SPAN
1801 ></DT
1802 ><DD
1803 ><P
1804 >Specifies up to 128 characters of auxiliary information to record in the volume header.</P
1805 ></DD
1806 ></DL
1807 ></DIV
1808 ></P
1809 ></LI
1810 ></OL
1811 ></DIV
1812 ></DIV
1813 ><DIV
1814 CLASS="sect1"
1815 ><H1
1816 CLASS="sect1"
1817 ><A
1818 NAME="HDRWQ190"
1819 >About Clones and Cloning</A
1820 ></H1
1821 ><P
1822 >To create a backup or read-only volume, the Volume Server begins by <SPAN
1823 CLASS="emphasis"
1824 ><I
1825 CLASS="emphasis"
1826 >cloning</I
1827 ></SPAN
1828 > the read/write source
1829     volume to create a <SPAN
1830 CLASS="emphasis"
1831 ><I
1832 CLASS="emphasis"
1833 >clone</I
1834 ></SPAN
1835 >. The Volume Server creates the clone automatically when you issue the <SPAN
1836 CLASS="bold"
1837 ><B
1838 CLASS="emphasis"
1839 >vos backup</B
1840 ></SPAN
1841 > or <SPAN
1842 CLASS="bold"
1843 ><B
1844 CLASS="emphasis"
1845 >vos backupsys</B
1846 ></SPAN
1847 > command (for a backup volume) or the
1848     <SPAN
1849 CLASS="bold"
1850 ><B
1851 CLASS="emphasis"
1852 >vos release</B
1853 ></SPAN
1854 > command (for a read-only volume). No special action is required on your
1855     part.</P
1856 ><P
1857 >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
1858     <SPAN
1859 CLASS="emphasis"
1860 ><I
1861 CLASS="emphasis"
1862 >vnode index</I
1863 ></SPAN
1864 >. The vnode index is a table of pointers between the files and directories in the volume and the
1865     physical disk blocks on the partition where the data resides. From the clone, backup and read-only volumes are created in the
1866     following manner: <UL
1867 ><LI
1868 ><P
1869 >A read-only volume that occupies the same partition as its read/write source (also known as a <SPAN
1870 CLASS="emphasis"
1871 ><I
1872 CLASS="emphasis"
1873 >read-only
1874           clone</I
1875 ></SPAN
1876 >), and a backup volume, are created by attaching a volume header to the clone. These volumes initially
1877           consume very little disk space, because the clone portion (the vnode index) points to exactly the same files as the
1878           read/write volume, as illustrated in <A
1879 HREF="c8420.html#FIGWQ191"
1880 >Figure 1</A
1881 >. The file sharing is possible only because
1882           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
1883           not actually removed from the partition, because the backup or read-only clone still points to it. Similarly, when a file
1884           in the read/write is changed, the entire original file is preserved on disk because the clone still points to it, and the
1885           read/write volume's vnode index changes to point to newly space for the changed file. When this happens, the backup or
1886           read-only volume is said to grow or start occupying actual disk space.</P
1887 ></LI
1888 ><LI
1889 ><P
1890 >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
1891           the data in the read/write source volume. It occupies the same amount of disk space as the read/write volume did at the
1892           time the read-only volume was created.</P
1893 ></LI
1894 ></UL
1895 ></P
1896 ><DIV
1897 CLASS="figure"
1898 ><A
1899 NAME="FIGWQ191"
1900 ></A
1901 ><DIV
1902 CLASS="mediaobject"
1903 ><P
1904 ><IMG
1905 SRC="vnode.png"></P
1906 ></DIV
1907 ><P
1908 ><B
1909 >Figure 1. File Sharing Between the Read/write Source and a Clone Volume</B
1910 ></P
1911 ></DIV
1912 ></DIV
1913 ><DIV
1914 CLASS="sect1"
1915 ><H1
1916 CLASS="sect1"
1917 ><A
1918 NAME="HDRWQ192"
1919 >Replicating Volumes (Creating Read-only Volumes)</A
1920 ></H1
1921 ><P
1922 ><SPAN
1923 CLASS="emphasis"
1924 ><I
1925 CLASS="emphasis"
1926 >Replication</I
1927 ></SPAN
1928 > refers to creating a read-only copy of a read/write volume and distributing the copy to
1929     one or more additional file server machines. Replication makes a volume's contents accessible on more than one file server
1930     machine, which increases data availability. It can also increase system efficiency by reducing load on the network and File
1931     Server. Network load is reduced if a client machine's server preference ranks lead the Cache Manager to access the copy of a
1932     volume stored on the closest file server machine. Load on the File Server is reduced because it issues only one callback for all
1933     data fetched from a read-only volume, as opposed to a callback for each file fetched from a read/write volume. The single
1934     callback is sufficient for an entire read-only volume because the volume does not change except in response to administrator
1935     action, whereas each read/write file can change at any time.</P
1936 ><P
1937 >Replicating a volume requires issuing two commands. First, use the <SPAN
1938 CLASS="bold"
1939 ><B
1940 CLASS="emphasis"
1941 >vos addsite</B
1942 ></SPAN
1943 > command to
1944     add one or more read-only site definitions to the volume's VLDB entry (a <SPAN
1945 CLASS="emphasis"
1946 ><I
1947 CLASS="emphasis"
1948 >site</I
1949 ></SPAN
1950 > is a particular partition on
1951     a file server machine). Then use the <SPAN
1952 CLASS="bold"
1953 ><B
1954 CLASS="emphasis"
1955 >vos release</B
1956 ></SPAN
1957 > command to clone the read/write source volume
1958     and distribute the clone to the defined read-only sites. You issue the <SPAN
1959 CLASS="bold"
1960 ><B
1961 CLASS="emphasis"
1962 >vos addsite</B
1963 ></SPAN
1964 > only once
1965     for each read-only site, but must reissue the <SPAN
1966 CLASS="bold"
1967 ><B
1968 CLASS="emphasis"
1969 >vos release</B
1970 ></SPAN
1971 > command every time the read/write
1972     volume's contents change and you want to update the read-only volumes.</P
1973 ><P
1974 >For users to have a consistent view of the file system, the release of updated volume contents to read-only sites must be
1975     atomic: either all read-only sites receive the new version of the volume, or all sites keep the version they currently have. The
1976     <SPAN
1977 CLASS="bold"
1978 ><B
1979 CLASS="emphasis"
1980 >vos release</B
1981 ></SPAN
1982 > command is designed to ensure that all copies of the volume's read-only version
1983     match both the read/write source and each other. In cases where problems such as machine or server process outages prevent
1984     successful completion of the release operation, AFS uses two mechanisms to alert you.</P
1985 ><P
1986 >First, the command interpreter generates an error message on the standard error stream naming each read-only site that did
1987     not receive the new volume version. Second, during the release operation the Volume Location (VL) Server marks site definitions
1988     in the VLDB entry with flags (<SAMP
1989 CLASS="computeroutput"
1990 >New release</SAMP
1991 > and <SAMP
1992 CLASS="computeroutput"
1993 >Old release</SAMP
1994 >)
1995     that indicate whether or not the site has the new volume version. If any flags remain after the operation completes, it was not
1996     successful. The Cache Manager refuses to access a read-only site marked with the <SAMP
1997 CLASS="computeroutput"
1998 >Old release</SAMP
1999 >
2000     flag, which potentially imposes a greater load on the sites marked with the <SAMP
2001 CLASS="computeroutput"
2002 >New release</SAMP
2003 > flag.
2004     It is important to investigate and eliminate the cause of the failure and then to issue the <SPAN
2005 CLASS="bold"
2006 ><B
2007 CLASS="emphasis"
2008 >vos
2009     release</B
2010 ></SPAN
2011 > command as many times as necessary to complete the release without errors.</P
2012 ><P
2013 >The pattern of site flags remaining in the volume's VLDB entry after a failed release operation can help determine the
2014     point at which the operation failed. Use the <SPAN
2015 CLASS="bold"
2016 ><B
2017 CLASS="emphasis"
2018 >vos examine</B
2019 ></SPAN
2020 > or <SPAN
2021 CLASS="bold"
2022 ><B
2023 CLASS="emphasis"
2024 >vos
2025     listvldb</B
2026 ></SPAN
2027 > command to display the VLDB entry. The VL Server sets the flags in concert with the Volume Server's
2028     operations, as follows: <OL
2029 TYPE="1"
2030 ><LI
2031 ><P
2032 >Before the operation begins, the VL Server sets the <SAMP
2033 CLASS="computeroutput"
2034 >New release</SAMP
2035 > flag on the
2036           read/write site definition in the VLDB entry and the <SAMP
2037 CLASS="computeroutput"
2038 >Old release</SAMP
2039 > flag on read-only site
2040           definitions (unless the read-only site has been defined since the last release operation and has no actual volume, in
2041           which case its site flag remains <SAMP
2042 CLASS="computeroutput"
2043 >Not released</SAMP
2044 >).</P
2045 ></LI
2046 ><LI
2047 ><P
2048 >If necessary, the Volume Server creates a temporary copy (a <SPAN
2049 CLASS="emphasis"
2050 ><I
2051 CLASS="emphasis"
2052 >clone</I
2053 ></SPAN
2054 >) of the read/write source
2055           called the ReleaseClone (see the following discussion of when the Volume Server does or does not create a new
2056           ReleaseClone.) It assigns the ReleaseClone its own volume ID number, which the VL Server records in the
2057           <SAMP
2058 CLASS="computeroutput"
2059 >RClone</SAMP
2060 > field of the source volume's VLDB entry.</P
2061 ></LI
2062 ><LI
2063 ><P
2064 >The Volume Server distributes a copy of the ReleaseClone to each read-only site defined in the VLDB entry. As the
2065           site successfully receives the new clone, the VL Server sets the site's flag in the VLDB entry to <SAMP
2066 CLASS="computeroutput"
2067 >New
2068           release</SAMP
2069 >.</P
2070 ></LI
2071 ><LI
2072 ><P
2073 >When all the read-only copies are successfully released, the VL Server clears all the <SAMP
2074 CLASS="computeroutput"
2075 >New
2076           release</SAMP
2077 > site flags. The ReleaseClone is no longer needed, so the Volume Server deletes it and the VL
2078           Server erases its ID from the VLDB entry.</P
2079 ></LI
2080 ></OL
2081 ></P
2082 ><P
2083 >By default, the Volume Server determines automatically whether or not it needs to create a new ReleaseClone: <UL
2084 ><LI
2085 ><P
2086 >If there are no flags (<SAMP
2087 CLASS="computeroutput"
2088 >New release</SAMP
2089 >, <SAMP
2090 CLASS="computeroutput"
2091 >Old release</SAMP
2092 >,
2093           or <SAMP
2094 CLASS="computeroutput"
2095 >Not released</SAMP
2096 >) on site definitions in the VLDB entry, the previous <SPAN
2097 CLASS="bold"
2098 ><B
2099 CLASS="emphasis"
2100 >vos release</B
2101 ></SPAN
2102 > command completed successfully and all read-only sites currently have the same volume.
2103           The Volume Server infers that the current <SPAN
2104 CLASS="bold"
2105 ><B
2106 CLASS="emphasis"
2107 >vos release</B
2108 ></SPAN
2109 > command was issued because the
2110           read/write volume has changed. The Volume Server creates a new ReleaseClone and distributes it to all of the read-only
2111           sites.</P
2112 ></LI
2113 ><LI
2114 ><P
2115 >If any site definition in the VLDB entry is marked with a flag, either the previous release operation did not
2116           complete successfully or a new read-only site was defined since the last release. The Volume Server does not create a new
2117           ReleaseClone, instead distributing the existing ReleaseClone to sites marked with the <SAMP
2118 CLASS="computeroutput"
2119 >Old
2120           release</SAMP
2121 > or <SAMP
2122 CLASS="computeroutput"
2123 >Not released</SAMP
2124 > flag. As previously noted, the VL Server marks
2125           each VLDB site definition with the <SAMP
2126 CLASS="computeroutput"
2127 >New release</SAMP
2128 > flag as the site receives the
2129           ReleaseClone, and clears all flags after all sites successfully receive it.</P
2130 ></LI
2131 ></UL
2132 ></P
2133 ><P
2134 >To override the default behavior, forcing the Volume Server to create and release a new ReleaseClone to the read-only
2135     sites, include the <SPAN
2136 CLASS="bold"
2137 ><B
2138 CLASS="emphasis"
2139 >-f</B
2140 ></SPAN
2141 > flag. This is appropriate if, for example, the data at the read/write
2142     site has changed since the existing ReleaseClone was created during the previous release operation.</P
2143 ><DIV
2144 CLASS="sect2"
2145 ><H2
2146 CLASS="sect2"
2147 ><A
2148 NAME="HDRWQ193"
2149 >Using Read-only Volumes Effectively</A
2150 ></H2
2151 ><P
2152 >For maximum effectiveness, replicate only volumes that satisfy two criteria: <UL
2153 ><LI
2154 ><P
2155 >The volume's contents are heavily used. Examples include a volume housing binary files for text editors or other
2156             popular application programs, and volumes mounted along heavily traversed directory paths such as the paths leading to
2157             user home directories. It is an inefficient use of disk space to replicate volumes for which the demand is low enough
2158             that a single File Server can easily service all requests.</P
2159 ></LI
2160 ><LI
2161 ><P
2162 >The volume's contents change infrequently. As noted, file system consistency demands that the contents of
2163             read-only volumes must match each other and their read/write source at all times. Each time the read/write volume
2164             changes, you must issue the <SPAN
2165 CLASS="bold"
2166 ><B
2167 CLASS="emphasis"
2168 >vos release</B
2169 ></SPAN
2170 > command to update the read-only volumes. This
2171             can become tedious (and easy to forget) if the read/write volume changes frequently.</P
2172 ></LI
2173 ></UL
2174 ></P
2175 ><P
2176 >Explicitly mounting a read-only volume (creating a mount point that names a volume with a <SPAN
2177 CLASS="bold"
2178 ><B
2179 CLASS="emphasis"
2180 >.readonly</B
2181 ></SPAN
2182 > extension) is not generally necessary or appropriate. The Cache Manager has a built-in bias
2183       to access the read-only version of a replicated volume whenever possible. As described in more detail in <A
2184 HREF="c8420.html#HDRWQ209"
2185 >The Rules of Mount Point Traversal</A
2186 >, when the Cache Manager encounters a mount point it reads the
2187       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
2188       mount point resides in a read-only volume and names a read/write volume (one that does not have a <SPAN
2189 CLASS="bold"
2190 ><B
2191 CLASS="emphasis"
2192 >.readonly</B
2193 ></SPAN
2194 > or <SPAN
2195 CLASS="bold"
2196 ><B
2197 CLASS="emphasis"
2198 >.backup</B
2199 ></SPAN
2200 > extension), the Cache Manager always attempts to
2201       access a read-only copy of the volume. Thus there is normally no reason to force the Cache Manager to access a read-only
2202       volume by mounting it explicitly.</P
2203 ><P
2204 >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
2205       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
2206       data (see <A
2207 HREF="c8420.html#HDRWQ190"
2208 >About Clones and Cloning</A
2209 >). Only if a large number of files are removed or changed in
2210       the read/write volume does the read-only copy occupy much disk space. That normally does not happen because the appropriate
2211       response to changes in a replicated read/write volume is to reclone it. The other reason to place a read-only volume at the
2212       read/write site is that the Cache Manager does not attempt to access the read/write version of a replicated volume if all
2213       read-only copies become inaccessible. If the file server machine housing the read/write volume is the only accessible machine,
2214       the Cache Manager can access the data only if there is a read-only copy at the read/write site.</P
2215 ><P
2216 >The number of read-only sites to define depends on several factors. Perhaps the main trade-off is between the level of
2217       demand for the volume's contents and how much disk space you are willing to use for multiple copies of the volume. Of course,
2218       each prospective read-only site must have enough available space to accommodate the volume. The limit on the number of
2219       read-only copies of a volume is determined by the maximum number of site definitions in a volume's VLDB entry, which is
2220       defined in the <SPAN
2221 CLASS="emphasis"
2222 ><I
2223 CLASS="emphasis"
2224 > IBM AFS Release Notes</I
2225 ></SPAN
2226 >. The site housing the read/write and backup versions of the volume
2227       counts as one site, and each read-only site counts as an additional site (even the read-only site defined on the same file
2228       server machine and partition as the read/write site counts as a separate site). Note also that the Volume Server permits only
2229       one read-only copy of a volume per file server machine.</P
2230 ></DIV
2231 ><DIV
2232 CLASS="sect2"
2233 ><H2
2234 CLASS="sect2"
2235 ><A
2236 NAME="Header_216"
2237 >Replication Scenarios</A
2238 ></H2
2239 ><P
2240 >The instructions in the following section explain how to replicate a volume for which no read-only sites are currently
2241       defined. However, you can also use the instructions in other common situations: <UL
2242 ><LI
2243 ><P
2244 >If you are releasing a new clone to sites that already exist, you can skip Step <A
2245 HREF="c8420.html#LIWQ196"
2246 >2</A
2247 >.
2248             It can still be useful to issue the <SPAN
2249 CLASS="bold"
2250 ><B
2251 CLASS="emphasis"
2252 >vos examine</B
2253 ></SPAN
2254 > command, however, to verify that the
2255             desired read-only sites are defined.</P
2256 ></LI
2257 ><LI
2258 ><P
2259 >If you are adding new read-only sites to existing ones, perform all of the steps. In Step <A
2260 HREF="c8420.html#LIWQ197"
2261 >3</A
2262 >, issue the <SPAN
2263 CLASS="bold"
2264 ><B
2265 CLASS="emphasis"
2266 >vos addsite</B
2267 ></SPAN
2268 > command for the new sites
2269             only.</P
2270 ></LI
2271 ><LI
2272 ><P
2273 >If you are defining sites but do not want to release a clone to them yet, stop after Step <A
2274 HREF="c8420.html#LIWQ197"
2275 >3</A
2276 >and continue when you are ready.</P
2277 ></LI
2278 ><LI
2279 ><P
2280 >If you are removing one or more sites before releasing a new clone to the remaining sites, follow the instructions
2281             for site removal in <A
2282 HREF="c8420.html#HDRWQ235"
2283 >Removing Volumes and their Mount Points</A
2284 >and then start with Step
2285             <A
2286 HREF="c8420.html#LIWQ198"
2287 >4</A
2288 >.</P
2289 ></LI
2290 ></UL
2291 ></P
2292 ></DIV
2293 ><DIV
2294 CLASS="sect2"
2295 ><H2
2296 CLASS="sect2"
2297 ><A
2298 NAME="HDRWQ194"
2299 >To replicate a read/write volume (create a read-only volume)</A
2300 ></H2
2301 ><OL
2302 TYPE="1"
2303 ><LI
2304 ><P
2305 ><A
2306 NAME="LIWQ195"
2307 ></A
2308 >Verify that you are listed in the <SPAN
2309 CLASS="bold"
2310 ><B
2311 CLASS="emphasis"
2312 >/usr/afs/etc/UserList</B
2313 ></SPAN
2314 >
2315           file. If necessary, issue the <SPAN
2316 CLASS="bold"
2317 ><B
2318 CLASS="emphasis"
2319 >bos listusers</B
2320 ></SPAN
2321 > command, which is fully described in <A
2322 HREF="c32432.html#HDRWQ593"
2323 >To display the users in the UserList file</A
2324 >. <PRE
2325 CLASS="programlisting"
2326 >&#13;   % <SPAN
2327 CLASS="bold"
2328 ><B
2329 CLASS="emphasis"
2330 >bos listusers</B
2331 ></SPAN
2332 > &#60;<VAR
2333 CLASS="replaceable"
2334 >machine name</VAR
2335 >&#62;
2336 </PRE
2337 ></P
2338 ></LI
2339 ><LI
2340 ><P
2341 ><A
2342 NAME="LIWQ196"
2343 ></A
2344 >Select one or more sites at which to replicate the volume. There are several factors to
2345           consider: <UL
2346 ><LI
2347 ><P
2348 >How many sites are already defined. As previously noted, it is usually appropriate to define a read-only site
2349                 at the read/write site. Also, the Volume Server permits only one read-only copy of a volume per file server machine.
2350                 To display the volume's current sites, issue the <SPAN
2351 CLASS="bold"
2352 ><B
2353 CLASS="emphasis"
2354 >vos examine</B
2355 ></SPAN
2356 > command, which is
2357                 described fully in <A
2358 HREF="c8420.html#HDRWQ221"
2359 >Displaying One Volume's VLDB Entry and Volume Header</A
2360 >.
2361                 <PRE
2362 CLASS="programlisting"
2363 >&#13;   % <SPAN
2364 CLASS="bold"
2365 ><B
2366 CLASS="emphasis"
2367 >vos examine</B
2368 ></SPAN
2369 > &#60;<VAR
2370 CLASS="replaceable"
2371 >volume name or ID</VAR
2372 >&#62;
2373 </PRE
2374 ></P
2375 ><P
2376 >The final lines of output display the volume's site definitions from the VLDB.</P
2377 ></LI
2378 ><LI
2379 ><P
2380 >Whether your cell dedicates any file server machines to housing read-only volumes only. In general, only very
2381                 large cells use read-only server machines.</P
2382 ></LI
2383 ><LI
2384 ><P
2385 >Whether a site has enough free space to accommodate the volume. A read-only volume requires the same amount of
2386                 space as the read/write version (unless it is at the read/write site itself). The first line of output from the
2387                 <SPAN
2388 CLASS="bold"
2389 ><B
2390 CLASS="emphasis"
2391 >vos examine</B
2392 ></SPAN
2393 > command displays the read/write volume's current size in kilobyte
2394                 blocks, as shown in <A
2395 HREF="c8420.html#HDRWQ221"
2396 >Displaying One Volume's VLDB Entry and Volume Header</A
2397 >.</P
2398 ><P
2399 >To display the amount of space available on a file server machine's partitions, use the <SPAN
2400 CLASS="bold"
2401 ><B
2402 CLASS="emphasis"
2403 >vos partinfo</B
2404 ></SPAN
2405 > command, which is described fully in <A
2406 HREF="c8420.html#HDRWQ185"
2407 >Creating
2408                 Read/write Volumes</A
2409 >.</P
2410 ><PRE
2411 CLASS="programlisting"
2412 >&#13;   % <SPAN
2413 CLASS="bold"
2414 ><B
2415 CLASS="emphasis"
2416 >vos partinfo</B
2417 ></SPAN
2418 > &#60;<VAR
2419 CLASS="replaceable"
2420 >machine name</VAR
2421 >&#62; [&#60;<VAR
2422 CLASS="replaceable"
2423 >partition name</VAR
2424 >&#62;]
2425 </PRE
2426 ></LI
2427 ></UL
2428 ></P
2429 ></LI
2430 ><LI
2431 ><P
2432 ><A
2433 NAME="LIWQ197"
2434 ></A
2435 >Issue the <SPAN
2436 CLASS="bold"
2437 ><B
2438 CLASS="emphasis"
2439 >vos addsite</B
2440 ></SPAN
2441 > command to define each new read-only
2442           site in the VLDB. <PRE
2443 CLASS="programlisting"
2444 >&#13;   % <SPAN
2445 CLASS="bold"
2446 ><B
2447 CLASS="emphasis"
2448 >vos addsite</B
2449 ></SPAN
2450 > &#60;<VAR
2451 CLASS="replaceable"
2452 >machine name</VAR
2453 >&#62; &#60;<VAR
2454 CLASS="replaceable"
2455 >partition name</VAR
2456 >&#62; &#60;<VAR
2457 CLASS="replaceable"
2458 >volume name or ID</VAR
2459 >&#62;
2460 </PRE
2461 ></P
2462 ><P
2463 >where <DIV
2464 CLASS="variablelist"
2465 ><DL
2466 ><DT
2467 ><SPAN
2468 CLASS="bold"
2469 ><B
2470 CLASS="emphasis"
2471 >ad</B
2472 ></SPAN
2473 ></DT
2474 ><DD
2475 ><P
2476 >Is the shortest acceptable abbreviation of <SPAN
2477 CLASS="bold"
2478 ><B
2479 CLASS="emphasis"
2480 >addsite</B
2481 ></SPAN
2482 >.</P
2483 ></DD
2484 ><DT
2485 ><SPAN
2486 CLASS="bold"
2487 ><B
2488 CLASS="emphasis"
2489 >machine name</B
2490 ></SPAN
2491 ></DT
2492 ><DD
2493 ><P
2494 >Defines the file server machine for the new site.</P
2495 ></DD
2496 ><DT
2497 ><SPAN
2498 CLASS="bold"
2499 ><B
2500 CLASS="emphasis"
2501 >partition name</B
2502 ></SPAN
2503 ></DT
2504 ><DD
2505 ><P
2506 >Names a disk partition on the machine machine name.</P
2507 ></DD
2508 ><DT
2509 ><SPAN
2510 CLASS="bold"
2511 ><B
2512 CLASS="emphasis"
2513 >volume name or ID</B
2514 ></SPAN
2515 ></DT
2516 ><DD
2517 ><P
2518 >Identifies the read/write volume to be replicated, either by its complete name or its volume ID
2519                   number.</P
2520 ></DD
2521 ></DL
2522 ></DIV
2523 ></P
2524 ></LI
2525 ><LI
2526 ><P
2527 ><A
2528 NAME="LIWQ198"
2529 ></A
2530 ><SPAN
2531 CLASS="bold"
2532 ><B
2533 CLASS="emphasis"
2534 >(Optional)</B
2535 ></SPAN
2536 > Verify that the <SPAN
2537 CLASS="bold"
2538 ><B
2539 CLASS="emphasis"
2540 >fs</B
2541 ></SPAN
2542 > process (which incorporates the Volume Server) is functioning normally on each file server
2543           machine where you have defined a read-only site, and that the <SPAN
2544 CLASS="bold"
2545 ><B
2546 CLASS="emphasis"
2547 >vlserver</B
2548 ></SPAN
2549 > process (the
2550           Volume Location Server) is functioning correctly on each database server machine. Knowing that they are functioning
2551           eliminates two possible sources of failure for the release. Issue the <SPAN
2552 CLASS="bold"
2553 ><B
2554 CLASS="emphasis"
2555 >bos status</B
2556 ></SPAN
2557 > command
2558           on each file server machine housing a read-only site for this volume and on each database server machine. The command is
2559           described fully in <A
2560 HREF="c6449.html#HDRWQ158"
2561 >Displaying Process Status and Information from the BosConfig File</A
2562 >.
2563           <PRE
2564 CLASS="programlisting"
2565 >&#13;   % <SPAN
2566 CLASS="bold"
2567 ><B
2568 CLASS="emphasis"
2569 >bos status</B
2570 ></SPAN
2571 > &#60;<VAR
2572 CLASS="replaceable"
2573 >machine name</VAR
2574 >&#62; <SPAN
2575 CLASS="bold"
2576 ><B
2577 CLASS="emphasis"
2578 >fs vlserver</B
2579 ></SPAN
2580 >
2581 </PRE
2582 ></P
2583 ></LI
2584 ><LI
2585 ><P
2586 ><A
2587 NAME="LIWQ199"
2588 ></A
2589 >Issue the <SPAN
2590 CLASS="bold"
2591 ><B
2592 CLASS="emphasis"
2593 >vos release</B
2594 ></SPAN
2595 > command to clone the read/write source
2596           volume and distribute the clone to each read-only site. <PRE
2597 CLASS="programlisting"
2598 >&#13;   % <SPAN
2599 CLASS="bold"
2600 ><B
2601 CLASS="emphasis"
2602 >vos release</B
2603 ></SPAN
2604 > &#60;<VAR
2605 CLASS="replaceable"
2606 >volume name or ID</VAR
2607 >&#62; [<SPAN
2608 CLASS="bold"
2609 ><B
2610 CLASS="emphasis"
2611 >-f</B
2612 ></SPAN
2613 >]
2614 </PRE
2615 ></P
2616 ><P
2617 >where <DIV
2618 CLASS="variablelist"
2619 ><DL
2620 ><DT
2621 ><SPAN
2622 CLASS="bold"
2623 ><B
2624 CLASS="emphasis"
2625 >rel</B
2626 ></SPAN
2627 ></DT
2628 ><DD
2629 ><P
2630 >Is the shortest acceptable abbreviation of <SPAN
2631 CLASS="bold"
2632 ><B
2633 CLASS="emphasis"
2634 >release</B
2635 ></SPAN
2636 >.</P
2637 ></DD
2638 ><DT
2639 ><SPAN
2640 CLASS="bold"
2641 ><B
2642 CLASS="emphasis"
2643 >volume name or ID</B
2644 ></SPAN
2645 ></DT
2646 ><DD
2647 ><P
2648 >Identifies the read/write volume to clone, either by its complete name or volume ID number. The read-only
2649                   version is given the same name with a <SPAN
2650 CLASS="bold"
2651 ><B
2652 CLASS="emphasis"
2653 >.readonly</B
2654 ></SPAN
2655 > extension. All read-only copies
2656                   share the same read-only volume ID number.</P
2657 ></DD
2658 ><DT
2659 ><SPAN
2660 CLASS="bold"
2661 ><B
2662 CLASS="emphasis"
2663 >-f</B
2664 ></SPAN
2665 ></DT
2666 ><DD
2667 ><P
2668 >Creates and releases a brand new clone.</P
2669 ></DD
2670 ></DL
2671 ></DIV
2672 ></P
2673 ></LI
2674 ><LI
2675 ><A
2676 NAME="LIWQ200"
2677 ></A
2678 ><P
2679 ><SPAN
2680 CLASS="bold"
2681 ><B
2682 CLASS="emphasis"
2683 >(Optional)</B
2684 ></SPAN
2685 > Issue the <SPAN
2686 CLASS="bold"
2687 ><B
2688 CLASS="emphasis"
2689 >vos examine</B
2690 ></SPAN
2691 > command to verify
2692           that no site definition in the VLDB entry is marked with an <SAMP
2693 CLASS="computeroutput"
2694 >Old release</SAMP
2695 > or
2696           <SAMP
2697 CLASS="computeroutput"
2698 >New release</SAMP
2699 > flag. The command is described fully in <A
2700 HREF="c8420.html#HDRWQ221"
2701 >Displaying
2702           One Volume's VLDB Entry and Volume Header</A
2703 >. <PRE
2704 CLASS="programlisting"
2705 >&#13;   % <SPAN
2706 CLASS="bold"
2707 ><B
2708 CLASS="emphasis"
2709 >vos examine</B
2710 ></SPAN
2711 > &#60;<VAR
2712 CLASS="replaceable"
2713 >volume name or ID</VAR
2714 >&#62;
2715 </PRE
2716 ></P
2717 ></LI
2718 ></OL
2719 ><P
2720 >If any flags appear in the output from Step <A
2721 HREF="c8420.html#LIWQ200"
2722 >6</A
2723 >, repeat Steps <A
2724 HREF="c8420.html#LIWQ198"
2725 >4</A
2726 >and <A
2727 HREF="c8420.html#LIWQ199"
2728 >5</A
2729 >until the Volume Server does not produce any error messages
2730       during the release operation and the flags no longer appear. Do not issue the <SPAN
2731 CLASS="bold"
2732 ><B
2733 CLASS="emphasis"
2734 >vos release</B
2735 ></SPAN
2736 >
2737       command when you know that the read/write site or any read-only site is inaccessible due to network, machine or server process
2738       outage.</P
2739 ></DIV
2740 ></DIV
2741 ><DIV
2742 CLASS="sect1"
2743 ><H1
2744 CLASS="sect1"
2745 ><A
2746 NAME="HDRWQ201"
2747 >Creating Backup Volumes</A
2748 ></H1
2749 ><P
2750 >A <SPAN
2751 CLASS="emphasis"
2752 ><I
2753 CLASS="emphasis"
2754 >backup volume</I
2755 ></SPAN
2756 > is a clone that resides at the same site as its read/write source (to review the
2757     concept of cloning, see <A
2758 HREF="c8420.html#HDRWQ190"
2759 >About Clones and Cloning</A
2760 >). Creating a backup version of a volume has two
2761     purposes: <UL
2762 ><LI
2763 ><P
2764 >It is by convention the first step when dumping a volume's contents to tape with the AFS Backup System. A volume is
2765           inaccessible while it is being dumped, so instead of dumping the read/write volume, you create and dump a backup version.
2766           Users do not normally access the backup version, so it is unlikely that the dump will disturb them. For more details, see
2767           <A
2768 HREF="c15383.html#HDRWQ296"
2769 >Backing Up Data</A
2770 >.</P
2771 ></LI
2772 ><LI
2773 ><P
2774 >It enables users to restore mistakenly deleted or changed data themselves, freeing you for more crucial tasks. The
2775           backup version captures the state of its read/write source at the time the backup is made, and its contents cannot change.
2776           Mount the backup version in the filespace so that users can restore a file to its state at the time you made the backup.
2777           See <A
2778 HREF="c8420.html#HDRWQ204"
2779 >Making the Contents of Backup Volumes Available to Users</A
2780 >.</P
2781 ></LI
2782 ></UL
2783 ></P
2784 ><DIV
2785 CLASS="sect2"
2786 ><H2
2787 CLASS="sect2"
2788 ><A
2789 NAME="HDRWQ202"
2790 >Backing Up Multiple Volumes at Once</A
2791 ></H2
2792 ><P
2793 >The <SPAN
2794 CLASS="bold"
2795 ><B
2796 CLASS="emphasis"
2797 >vos backupsys</B
2798 ></SPAN
2799 > command creates a backup version of many read/write volumes at once.
2800       This command is useful when preparing for large-scale backups to tape using the AFS Backup System.</P
2801 ><P
2802 >To clone every read/write volume listed in the VLDB, omit all of the command's options. Otherwise, combine the command's
2803       options to clone various groups of volumes. The options use one of two basic criteria to select volumes: location (the
2804       <SPAN
2805 CLASS="bold"
2806 ><B
2807 CLASS="emphasis"
2808 >-server</B
2809 ></SPAN
2810 > and <SPAN
2811 CLASS="bold"
2812 ><B
2813 CLASS="emphasis"
2814 >-partition</B
2815 ></SPAN
2816 > arguments) or presence in the volume
2817       name of one of a set of specified character strings (the <SPAN
2818 CLASS="bold"
2819 ><B
2820 CLASS="emphasis"
2821 >-prefix</B
2822 ></SPAN
2823 >, <SPAN
2824 CLASS="bold"
2825 ><B
2826 CLASS="emphasis"
2827 >-exclude</B
2828 ></SPAN
2829 >, and <SPAN
2830 CLASS="bold"
2831 ><B
2832 CLASS="emphasis"
2833 >-xprefix</B
2834 ></SPAN
2835 > options).</P
2836 ><P
2837 >To clone only volumes that reside on one file server machine, include the <SPAN
2838 CLASS="bold"
2839 ><B
2840 CLASS="emphasis"
2841 >-server</B
2842 ></SPAN
2843 >
2844       argument. To clone only volumes that reside on one partition, combine the <SPAN
2845 CLASS="bold"
2846 ><B
2847 CLASS="emphasis"
2848 >-server</B
2849 ></SPAN
2850 > and
2851       <SPAN
2852 CLASS="bold"
2853 ><B
2854 CLASS="emphasis"
2855 >-partition</B
2856 ></SPAN
2857 > arguments. The <SPAN
2858 CLASS="bold"
2859 ><B
2860 CLASS="emphasis"
2861 >-partition</B
2862 ></SPAN
2863 > argument can also be
2864       used alone to clone volumes that reside on the indicated partition on every file server machine. These arguments can be
2865       combined with those that select volumes based on their names.</P
2866 ><P
2867 >Combine the <SPAN
2868 CLASS="bold"
2869 ><B
2870 CLASS="emphasis"
2871 >-prefix</B
2872 ></SPAN
2873 >, <SPAN
2874 CLASS="bold"
2875 ><B
2876 CLASS="emphasis"
2877 >-exclude</B
2878 ></SPAN
2879 >, and <SPAN
2880 CLASS="bold"
2881 ><B
2882 CLASS="emphasis"
2883 >-xprefix</B
2884 ></SPAN
2885 > options (with or without the <SPAN
2886 CLASS="bold"
2887 ><B
2888 CLASS="emphasis"
2889 >-server</B
2890 ></SPAN
2891 > and <SPAN
2892 CLASS="bold"
2893 ><B
2894 CLASS="emphasis"
2895 >-partition</B
2896 ></SPAN
2897 > arguments) in the indicated ways to select volumes based on character strings contained in
2898       their names: <UL
2899 ><LI
2900 ><P
2901 >To clone every read/write volume at the specified location whose name includes one of a set of specified character
2902             strings (for example, begins with <SPAN
2903 CLASS="bold"
2904 ><B
2905 CLASS="emphasis"
2906 >user.</B
2907 ></SPAN
2908 > or includes the string <SPAN
2909 CLASS="bold"
2910 ><B
2911 CLASS="emphasis"
2912 >afs</B
2913 ></SPAN
2914 >), use the <SPAN
2915 CLASS="bold"
2916 ><B
2917 CLASS="emphasis"
2918 >-prefix</B
2919 ></SPAN
2920 > argument or combine the <SPAN
2921 CLASS="bold"
2922 ><B
2923 CLASS="emphasis"
2924 >-xprefix</B
2925 ></SPAN
2926 > and <SPAN
2927 CLASS="bold"
2928 ><B
2929 CLASS="emphasis"
2930 >-exclude</B
2931 ></SPAN
2932 > options.</P
2933 ></LI
2934 ><LI
2935 ><P
2936 >To clone every read/write volume at the specified location except those whose name includes one of a set of
2937             specified character strings, use the <SPAN
2938 CLASS="bold"
2939 ><B
2940 CLASS="emphasis"
2941 >-xprefix</B
2942 ></SPAN
2943 > argument or combine the <SPAN
2944 CLASS="bold"
2945 ><B
2946 CLASS="emphasis"
2947 >-prefix</B
2948 ></SPAN
2949 > and <SPAN
2950 CLASS="bold"
2951 ><B
2952 CLASS="emphasis"
2953 >-exclude</B
2954 ></SPAN
2955 > options.</P
2956 ></LI
2957 ><LI
2958 ><P
2959 >To clone every read/write volume at the specified location whose name includes one of one of a set of specified
2960             character strings, except those whose names include one of a different set of specified character strings, combine the
2961             <SPAN
2962 CLASS="bold"
2963 ><B
2964 CLASS="emphasis"
2965 >-prefix</B
2966 ></SPAN
2967 > and <SPAN
2968 CLASS="bold"
2969 ><B
2970 CLASS="emphasis"
2971 >-xprefix</B
2972 ></SPAN
2973 > arguments. The command creates a
2974             list of all volumes that match the <SPAN
2975 CLASS="bold"
2976 ><B
2977 CLASS="emphasis"
2978 >-prefix</B
2979 ></SPAN
2980 > argument and then removes from the list the
2981             volumes that match the <SPAN
2982 CLASS="bold"
2983 ><B
2984 CLASS="emphasis"
2985 >-xprefix</B
2986 ></SPAN
2987 > argument. For effective results, the strings specified
2988             by the <SPAN
2989 CLASS="bold"
2990 ><B
2991 CLASS="emphasis"
2992 >-xprefix</B
2993 ></SPAN
2994 > argument must designate a subset of the volumes specified by the
2995             <SPAN
2996 CLASS="bold"
2997 ><B
2998 CLASS="emphasis"
2999 >-prefix</B
3000 ></SPAN
3001 > argument.</P
3002 ><P
3003 >If the <SPAN
3004 CLASS="bold"
3005 ><B
3006 CLASS="emphasis"
3007 >-exclude</B
3008 ></SPAN
3009 > flag is combined with the <SPAN
3010 CLASS="bold"
3011 ><B
3012 CLASS="emphasis"
3013 >-prefix</B
3014 ></SPAN
3015 > and <SPAN
3016 CLASS="bold"
3017 ><B
3018 CLASS="emphasis"
3019 >-xprefix</B
3020 ></SPAN
3021 > arguments, the command creates a list of
3022             all volumes that do not match the <SPAN
3023 CLASS="bold"
3024 ><B
3025 CLASS="emphasis"
3026 >-prefix</B
3027 ></SPAN
3028 > argument and then adds to the list any
3029             volumes that match the <SPAN
3030 CLASS="bold"
3031 ><B
3032 CLASS="emphasis"
3033 >-xprefix</B
3034 ></SPAN
3035 > argument. As when the <SPAN
3036 CLASS="bold"
3037 ><B
3038 CLASS="emphasis"
3039 >-exclude</B
3040 ></SPAN
3041 > flag is not used, the result is effective only if the strings specified by the <SPAN
3042 CLASS="bold"
3043 ><B
3044 CLASS="emphasis"
3045 >-xprefix</B
3046 ></SPAN
3047 > argument designate a subset of the volumes specified by the <SPAN
3048 CLASS="bold"
3049 ><B
3050 CLASS="emphasis"
3051 >-prefix</B
3052 ></SPAN
3053 > argument.</P
3054 ></LI
3055 ></UL
3056 ></P
3057 ><P
3058 >The <SPAN
3059 CLASS="bold"
3060 ><B
3061 CLASS="emphasis"
3062 >-prefix</B
3063 ></SPAN
3064 > and <SPAN
3065 CLASS="bold"
3066 ><B
3067 CLASS="emphasis"
3068 >-xprefix</B
3069 ></SPAN
3070 > arguments both accept
3071       multiple values, which can be used to define disjoint groups of volumes. Each value can be one of two types: <OL
3072 TYPE="1"
3073 ><LI
3074 ><P
3075 >A simple character string, which matches volumes whose name begin with the string. All characters are interpreted
3076             literally (that is, characters that potentially have special meaning to the command shell, such as the period, have only
3077             their literal meaning).</P
3078 ></LI
3079 ><LI
3080 ><P
3081 >A regular expression, which matches volumes whose names contain the expressions. Place a caret ( <SPAN
3082 CLASS="bold"
3083 ><B
3084 CLASS="emphasis"
3085 >^</B
3086 ></SPAN
3087 >) at the beginning of the expression, and enclose the entire string in single quotes ( <SPAN
3088 CLASS="bold"
3089 ><B
3090 CLASS="emphasis"
3091 >'</B
3092 ></SPAN
3093 > <SPAN
3094 CLASS="bold"
3095 ><B
3096 CLASS="emphasis"
3097 >'</B
3098 ></SPAN
3099 >). Explaining regular expressions is outside the scope of
3100             this reference page; see the UNIX manual page for <SPAN
3101 CLASS="bold"
3102 ><B
3103 CLASS="emphasis"
3104 >regexp(5)</B
3105 ></SPAN
3106 > or (for a brief
3107             introduction) <A
3108 HREF="c12776.html#HDRWQ265"
3109 >Defining and Displaying Volume Sets and Volume Entries</A
3110 >. As an example, the
3111             following expression matches volumes that have the string <SPAN
3112 CLASS="bold"
3113 ><B
3114 CLASS="emphasis"
3115 >aix</B
3116 ></SPAN
3117 > anywhere in their names:
3118             <PRE
3119 CLASS="programlisting"
3120 >&#13;  <SPAN
3121 CLASS="bold"
3122 ><B
3123 CLASS="emphasis"
3124 >-prefix '^.*aix'</B
3125 ></SPAN
3126 >
3127           </PRE
3128 ></P
3129 ></LI
3130 ></OL
3131 ></P
3132 ><P
3133 >To display a list of the volumes to be cloned, without actually cloning them, include the <SPAN
3134 CLASS="bold"
3135 ><B
3136 CLASS="emphasis"
3137 >-dryrun</B
3138 ></SPAN
3139 > flag. To display a statement that summarizes the criteria being used to select volume, include
3140       the <SPAN
3141 CLASS="bold"
3142 ><B
3143 CLASS="emphasis"
3144 >-verbose</B
3145 ></SPAN
3146 > flag.</P
3147 ><P
3148 >To back up a single volume, use the <SPAN
3149 CLASS="bold"
3150 ><B
3151 CLASS="emphasis"
3152 >vos backup</B
3153 ></SPAN
3154 > command, which employs a more
3155       streamlined technique for finding a single volume.</P
3156 ></DIV
3157 ><DIV
3158 CLASS="sect2"
3159 ><H2
3160 CLASS="sect2"
3161 ><A
3162 NAME="HDRWQ203"
3163 >Automating Creation of Backup Volumes</A
3164 ></H2
3165 ><P
3166 >Most cells find that it is best to make a new backup version of relevant volumes each day. It is best to create the
3167       backup versions at a time when usage is low, because the backup operation causes the read/write volume to be unavailable
3168       momentarily.</P
3169 ><P
3170 >You can either issue the necessary the <SPAN
3171 CLASS="bold"
3172 ><B
3173 CLASS="emphasis"
3174 >vos backupsys</B
3175 ></SPAN
3176 > or <SPAN
3177 CLASS="bold"
3178 ><B
3179 CLASS="emphasis"
3180 >vos
3181       backup</B
3182 ></SPAN
3183 > commands at the console or create a <SPAN
3184 CLASS="bold"
3185 ><B
3186 CLASS="emphasis"
3187 >cron</B
3188 ></SPAN
3189 > entry in the <SPAN
3190 CLASS="bold"
3191 ><B
3192 CLASS="emphasis"
3193 >BosConfig</B
3194 ></SPAN
3195 > file on a file server machine, which eliminates the need for an administrator to initiate the
3196       backup operation.</P
3197 ><P
3198 >The following example command creates a <SPAN
3199 CLASS="bold"
3200 ><B
3201 CLASS="emphasis"
3202 >cron</B
3203 ></SPAN
3204 > process called <SPAN
3205 CLASS="bold"
3206 ><B
3207 CLASS="emphasis"
3208 >backupusers</B
3209 ></SPAN
3210 > in the <SPAN
3211 CLASS="bold"
3212 ><B
3213 CLASS="emphasis"
3214 >/usr/afs/local/BosConfig</B
3215 ></SPAN
3216 > file on the machine
3217       <SPAN
3218 CLASS="bold"
3219 ><B
3220 CLASS="emphasis"
3221 >fs3.abc.com</B
3222 ></SPAN
3223 >. The process runs every day at 1:00 a.m. to create a backup version of every
3224       volume in the cell whose name starts with the string <SPAN
3225 CLASS="bold"
3226 ><B
3227 CLASS="emphasis"
3228 >user</B
3229 ></SPAN
3230 >. The <SPAN
3231 CLASS="bold"
3232 ><B
3233 CLASS="emphasis"
3234 >-localauth</B
3235 ></SPAN
3236 > flag enables the process to invoke the privileged <SPAN
3237 CLASS="bold"
3238 ><B
3239 CLASS="emphasis"
3240 >vos
3241       backupsys</B
3242 ></SPAN
3243 > command while unauthenticated. Note that the <SPAN
3244 CLASS="bold"
3245 ><B
3246 CLASS="emphasis"
3247 >-cmd</B
3248 ></SPAN
3249 > argument specifies a
3250       complete pathname for the <SPAN
3251 CLASS="bold"
3252 ><B
3253 CLASS="emphasis"
3254 >vos</B
3255 ></SPAN
3256 > binary, because the PATH environment variable for the BOS
3257       Server (running as the local superuser <SPAN
3258 CLASS="bold"
3259 ><B
3260 CLASS="emphasis"
3261 >root</B
3262 ></SPAN
3263 >) generally does not include the path to AFS
3264       binaries. <PRE
3265 CLASS="programlisting"
3266 >&#13;   % <SPAN
3267 CLASS="bold"
3268 ><B
3269 CLASS="emphasis"
3270 >bos create fs3.abc.com backupusers cron</B
3271 ></SPAN
3272 >\ 
3273   <SPAN
3274 CLASS="bold"
3275 ><B
3276 CLASS="emphasis"
3277 >-cmd "/usr/afs/bin/vos backupsys -prefix user -localauth" "1:00"</B
3278 ></SPAN
3279 >
3280 </PRE
3281 ></P
3282 ></DIV
3283 ><DIV
3284 CLASS="sect2"
3285 ><H2
3286 CLASS="sect2"
3287 ><A
3288 NAME="HDRWQ204"
3289 >Making the Contents of Backup Volumes Available to Users</A
3290 ></H2
3291 ><P
3292 >As noted, a backup volume preserves the state of the read/write source at the time the backup is created. Many cells
3293       choose to mount backup volumes so that users can access and restore data they have accidentally deleted or changed since the
3294       last backup was made, without having to request help from administrators. The most sensible place to mount the backup version
3295       of a user volume is at a subdirectory of the user's home directory. Suitable names for this directory include <SPAN
3296 CLASS="bold"
3297 ><B
3298 CLASS="emphasis"
3299 >OldFiles</B
3300 ></SPAN
3301 > and <SPAN
3302 CLASS="bold"
3303 ><B
3304 CLASS="emphasis"
3305 >Backup</B
3306 ></SPAN
3307 >. The subdirectory looks just like the user's own
3308       home directory as it was at the time the backup was created, with all files and subdirectories in the same relative
3309       positions.</P
3310 ><P
3311 >If you do create and mount backup volumes for your users, inform users of their existence. The <SPAN
3312 CLASS="emphasis"
3313 ><I
3314 CLASS="emphasis"
3315 > IBM AFS User
3316       Guide</I
3317 ></SPAN
3318 > does not mention backup volumes because making them available to users is optional. Explain to users how
3319       often you make a new backup, so they know what they can recover. Remind them also that the data in their backup volume cannot
3320       change; however, they can use the standard UNIX <SPAN
3321 CLASS="bold"
3322 ><B
3323 CLASS="emphasis"
3324 >cp</B
3325 ></SPAN
3326 > command to copy it into their home volume
3327       and modify it there. Reassure users that the data in their backup volumes does not count against their read/write volume
3328       quota.</P
3329 ></DIV
3330 ><DIV
3331 CLASS="sect2"
3332 ><H2
3333 CLASS="sect2"
3334 ><A
3335 NAME="HDRWQ205"
3336 >To create and mount a backup volume</A
3337 ></H2
3338 ><OL
3339 TYPE="1"
3340 ><LI
3341 ><P
3342 >Verify that you are listed in the <SPAN
3343 CLASS="bold"
3344 ><B
3345 CLASS="emphasis"
3346 >/usr/afs/etc/UserList</B
3347 ></SPAN
3348 > file. If necessary, issue
3349           the <SPAN
3350 CLASS="bold"
3351 ><B
3352 CLASS="emphasis"
3353 >bos listusers</B
3354 ></SPAN
3355 > command, which is fully described in <A
3356 HREF="c32432.html#HDRWQ593"
3357 >To
3358           display the users in the UserList file</A
3359 >. <PRE
3360 CLASS="programlisting"
3361 >&#13;   % <SPAN
3362 CLASS="bold"
3363 ><B
3364 CLASS="emphasis"
3365 >bos listusers</B
3366 ></SPAN
3367 > &#60;<VAR
3368 CLASS="replaceable"
3369 >machine name</VAR
3370 >&#62;
3371 </PRE
3372 ></P
3373 ></LI
3374 ><LI
3375 ><P
3376 >Verify that you have the <SPAN
3377 CLASS="bold"
3378 ><B
3379 CLASS="emphasis"
3380 >insert</B
3381 ></SPAN
3382 >( <SPAN
3383 CLASS="bold"
3384 ><B
3385 CLASS="emphasis"
3386 >i</B
3387 ></SPAN
3388 >) and <SPAN
3389 CLASS="bold"
3390 ><B
3391 CLASS="emphasis"
3392 >administer</B
3393 ></SPAN
3394 >( <SPAN
3395 CLASS="bold"
3396 ><B
3397 CLASS="emphasis"
3398 >a</B
3399 ></SPAN
3400 >) permissions on the ACL of the directory in which
3401           you wish to mount the volume. If necessary, issue the <SPAN
3402 CLASS="bold"
3403 ><B
3404 CLASS="emphasis"
3405 >fs listacl</B
3406 ></SPAN
3407 > command, which is fully
3408           described in <A
3409 HREF="c31274.html#HDRWQ572"
3410 >Displaying ACLs</A
3411 >. <PRE
3412 CLASS="programlisting"
3413 >&#13;   % <SPAN
3414 CLASS="bold"
3415 ><B
3416 CLASS="emphasis"
3417 >fs listacl</B
3418 ></SPAN
3419 > [&#60;<VAR
3420 CLASS="replaceable"
3421 >dir/file path</VAR
3422 >&#62;]
3423 </PRE
3424 ></P
3425 ><P
3426 >Members of the <SPAN
3427 CLASS="bold"
3428 ><B
3429 CLASS="emphasis"
3430 >system:administrators</B
3431 ></SPAN
3432 > group always implicitly have the <SPAN
3433 CLASS="bold"
3434 ><B
3435 CLASS="emphasis"
3436 >a</B
3437 ></SPAN
3438 >( <SPAN
3439 CLASS="bold"
3440 ><B
3441 CLASS="emphasis"
3442 >administer</B
3443 ></SPAN
3444 >) and by default also the <SPAN
3445 CLASS="bold"
3446 ><B
3447 CLASS="emphasis"
3448 >l</B
3449 ></SPAN
3450 >( <SPAN
3451 CLASS="bold"
3452 ><B
3453 CLASS="emphasis"
3454 >lookup</B
3455 ></SPAN
3456 >) permission on every ACL and can use the <SPAN
3457 CLASS="bold"
3458 ><B
3459 CLASS="emphasis"
3460 >fs setacl</B
3461 ></SPAN
3462 > command to grant other rights as necessary.</P
3463 ></LI
3464 ><LI
3465 ><P
3466 ><A
3467 NAME="LIWQ206"
3468 ></A
3469 >Issue the <SPAN
3470 CLASS="bold"
3471 ><B
3472 CLASS="emphasis"
3473 >vos backup</B
3474 ></SPAN
3475 > command to create a backup version of a
3476           read/write source volume. The message shown confirms the success of the backup operation. <PRE
3477 CLASS="programlisting"
3478 >&#13;   % <SPAN
3479 CLASS="bold"
3480 ><B
3481 CLASS="emphasis"
3482 >vos backup</B
3483 ></SPAN
3484 > &#60;<VAR
3485 CLASS="replaceable"
3486 >volume name or ID</VAR
3487 >&#62; Created backup volume for volume name or ID
3488 </PRE
3489 ></P
3490 ><P
3491 >where <DIV
3492 CLASS="variablelist"
3493 ><DL
3494 ><DT
3495 ><SPAN
3496 CLASS="bold"
3497 ><B
3498 CLASS="emphasis"
3499 >backup</B
3500 ></SPAN
3501 ></DT
3502 ><DD
3503 ><P
3504 >Must be typed in full.</P
3505 ></DD
3506 ><DT
3507 ><SPAN
3508 CLASS="bold"
3509 ><B
3510 CLASS="emphasis"
3511 >volume name or ID</B
3512 ></SPAN
3513 ></DT
3514 ><DD
3515 ><P
3516 >Identifies the read/write volume to back up, either by its complete name or volume ID number. The backup
3517                   volume has the same name with the addition of the <SPAN
3518 CLASS="bold"
3519 ><B
3520 CLASS="emphasis"
3521 >.backup</B
3522 ></SPAN
3523 > extension. It has its
3524                   own volume ID number.</P
3525 ></DD
3526 ></DL
3527 ></DIV
3528 ></P
3529 ></LI
3530 ><LI
3531 ><P
3532 ><A
3533 NAME="LIWQ207"
3534 ></A
3535 ><SPAN
3536 CLASS="bold"
3537 ><B
3538 CLASS="emphasis"
3539 >(Optional)</B
3540 ></SPAN
3541 > Issue the <SPAN
3542 CLASS="bold"
3543 ><B
3544 CLASS="emphasis"
3545 >fs
3546           mkmount</B
3547 ></SPAN
3548 > to mount the backup volume. While this step is optional, Cache Managers cannot access the volume's
3549           contents if it is not mounted. <PRE
3550 CLASS="programlisting"
3551 >&#13;   % <SPAN
3552 CLASS="bold"
3553 ><B
3554 CLASS="emphasis"
3555 >fs mkmount</B
3556 ></SPAN
3557 > &#60;<VAR
3558 CLASS="replaceable"
3559 >directory</VAR
3560 >&#62; &#60;<VAR
3561 CLASS="replaceable"
3562 >volume name</VAR
3563 >&#62; <SPAN
3564 CLASS="bold"
3565 ><B
3566 CLASS="emphasis"
3567 >.backup</B
3568 ></SPAN
3569 >
3570 </PRE
3571 ></P
3572 ><P
3573 >where <DIV
3574 CLASS="variablelist"
3575 ><DL
3576 ><DT
3577 ><SPAN
3578 CLASS="bold"
3579 ><B
3580 CLASS="emphasis"
3581 >mk</B
3582 ></SPAN
3583 ></DT
3584 ><DD
3585 ><P
3586 >Is the shortest acceptable abbreviation of <SPAN
3587 CLASS="bold"
3588 ><B
3589 CLASS="emphasis"
3590 >mkmount</B
3591 ></SPAN
3592 >.</P
3593 ></DD
3594 ><DT
3595 ><SPAN
3596 CLASS="bold"
3597 ><B
3598 CLASS="emphasis"
3599 >directory</B
3600 ></SPAN
3601 ></DT
3602 ><DD
3603 ><P
3604 >Names the mount point to create. Do not create a file or directory of the same name beforehand. Partial
3605                   pathnames are interpreted relative to the current working directory. For the backup version of a user volume, the
3606                   conventional location is the user's home directory.</P
3607 ></DD
3608 ><DT
3609 ><SPAN
3610 CLASS="bold"
3611 ><B
3612 CLASS="emphasis"
3613 >volume name</B
3614 ></SPAN
3615 >.backup</DT
3616 ><DD
3617 ><P
3618 >Is the full name of the backup volume.</P
3619 ></DD
3620 ></DL
3621 ></DIV
3622 ></P
3623 ></LI
3624 ><LI
3625 ><P
3626 ><SPAN
3627 CLASS="bold"
3628 ><B
3629 CLASS="emphasis"
3630 >(Optional)</B
3631 ></SPAN
3632 > Issue the <SPAN
3633 CLASS="bold"
3634 ><B
3635 CLASS="emphasis"
3636 >fs lsmount</B
3637 ></SPAN
3638 > command to verify
3639           that the mount point refers to the correct volume. Complete instructions appear in <A
3640 HREF="c8420.html#HDRWQ211"
3641 >To display a
3642           mount point</A
3643 >. <PRE
3644 CLASS="programlisting"
3645 >&#13;   % <SPAN
3646 CLASS="bold"
3647 ><B
3648 CLASS="emphasis"
3649 >fs lsmount</B
3650 ></SPAN
3651 > &#60;<VAR
3652 CLASS="replaceable"
3653 >directory</VAR
3654 >&#62;
3655 </PRE
3656 ></P
3657 ></LI
3658 ></OL
3659 ></DIV
3660 ><DIV
3661 CLASS="sect2"
3662 ><H2
3663 CLASS="sect2"
3664 ><A
3665 NAME="Header_223"
3666 >To create multiple backup volumes at once</A
3667 ></H2
3668 ><OL
3669 TYPE="1"
3670 ><LI
3671 ><P
3672 >Verify that you are listed in the <SPAN
3673 CLASS="bold"
3674 ><B
3675 CLASS="emphasis"
3676 >/usr/afs/etc/UserList</B
3677 ></SPAN
3678 > file. If necessary, issue
3679           the <SPAN
3680 CLASS="bold"
3681 ><B
3682 CLASS="emphasis"
3683 >bos listusers</B
3684 ></SPAN
3685 > command, which is fully described in <A
3686 HREF="c32432.html#HDRWQ593"
3687 >To
3688           display the users in the UserList file</A
3689 >. <PRE
3690 CLASS="programlisting"
3691 >&#13;   % <SPAN
3692 CLASS="bold"
3693 ><B
3694 CLASS="emphasis"
3695 >bos listusers</B
3696 ></SPAN
3697 > &#60;<VAR
3698 CLASS="replaceable"
3699 >machine name</VAR
3700 >&#62;
3701 </PRE
3702 ></P
3703 ></LI
3704 ><LI
3705 ><P
3706 >Issue the <SPAN
3707 CLASS="bold"
3708 ><B
3709 CLASS="emphasis"
3710 >vos backupsys</B
3711 ></SPAN
3712 > command to create a backup version of every read/write
3713           volume that shares the same prefix or site. The effects of combining the three arguments are described in <A
3714 HREF="c8420.html#HDRWQ202"
3715 >Backing Up Multiple Volumes at Once</A
3716 >. <PRE
3717 CLASS="programlisting"
3718 >&#13;   % <SPAN
3719 CLASS="bold"
3720 ><B
3721 CLASS="emphasis"
3722 >vos backupsys</B
3723 ></SPAN
3724 > [<SPAN
3725 CLASS="bold"
3726 ><B
3727 CLASS="emphasis"
3728 >-prefix</B
3729 ></SPAN
3730 > &#60;<VAR
3731 CLASS="replaceable"
3732 >common prefix on volume(s)</VAR
3733 >&#62;+] \ 
3734         [<SPAN
3735 CLASS="bold"
3736 ><B
3737 CLASS="emphasis"
3738 >-server</B
3739 ></SPAN
3740 > &#60;<VAR
3741 CLASS="replaceable"
3742 >machine name</VAR
3743 >&#62;] [<SPAN
3744 CLASS="bold"
3745 ><B
3746 CLASS="emphasis"
3747 >-partition</B
3748 ></SPAN
3749 > &#60;<VAR
3750 CLASS="replaceable"
3751 >partition name</VAR
3752 >&#62;] \
3753         [<SPAN
3754 CLASS="bold"
3755 ><B
3756 CLASS="emphasis"
3757 >-exclude</B
3758 ></SPAN
3759 >] [<SPAN
3760 CLASS="bold"
3761 ><B
3762 CLASS="emphasis"
3763 >-xprefix</B
3764 ></SPAN
3765 > &#60;<VAR
3766 CLASS="replaceable"
3767 >negative prefix on volume(s)</VAR
3768 >&#62;+] \
3769         [<SPAN
3770 CLASS="bold"
3771 ><B
3772 CLASS="emphasis"
3773 >-dryrun</B
3774 ></SPAN
3775 >] [<SPAN
3776 CLASS="bold"
3777 ><B
3778 CLASS="emphasis"
3779 >-verbose</B
3780 ></SPAN
3781 >]
3782 </PRE
3783 ></P
3784 ><P
3785 >where <DIV
3786 CLASS="variablelist"
3787 ><DL
3788 ><DT
3789 ><SPAN
3790 CLASS="bold"
3791 ><B
3792 CLASS="emphasis"
3793 >backups</B
3794 ></SPAN
3795 ></DT
3796 ><DD
3797 ><P
3798 >Is the shortest acceptable abbreviation of <SPAN
3799 CLASS="bold"
3800 ><B
3801 CLASS="emphasis"
3802 >backupsys</B
3803 ></SPAN
3804 >.</P
3805 ></DD
3806 ><DT
3807 ><SPAN
3808 CLASS="bold"
3809 ><B
3810 CLASS="emphasis"
3811 >-prefix</B
3812 ></SPAN
3813 ></DT
3814 ><DD
3815 ><P
3816 >Specifies one or more simple character strings or regular expressions of any length; a volume whose name
3817                   includes the string is placed on the list of volumes to be cloned. Include field separators (such as periods) if
3818                   appropriate. This argument can be combined with any combination of the <SPAN
3819 CLASS="bold"
3820 ><B
3821 CLASS="emphasis"
3822 >-server</B
3823 ></SPAN
3824 >,
3825                   <SPAN
3826 CLASS="bold"
3827 ><B
3828 CLASS="emphasis"
3829 >-partition</B
3830 ></SPAN
3831 >, <SPAN
3832 CLASS="bold"
3833 ><B
3834 CLASS="emphasis"
3835 >-exclude</B
3836 ></SPAN
3837 >, and <SPAN
3838 CLASS="bold"
3839 ><B
3840 CLASS="emphasis"
3841 >-xprefix</B
3842 ></SPAN
3843 > options.</P
3844 ></DD
3845 ><DT
3846 ><SPAN
3847 CLASS="bold"
3848 ><B
3849 CLASS="emphasis"
3850 >-server</B
3851 ></SPAN
3852 ></DT
3853 ><DD
3854 ><P
3855 >Specifies the file server machine housing the volumes to backup. Can be combined with any combination of the
3856                   <SPAN
3857 CLASS="bold"
3858 ><B
3859 CLASS="emphasis"
3860 >-prefix</B
3861 ></SPAN
3862 >, <SPAN
3863 CLASS="bold"
3864 ><B
3865 CLASS="emphasis"
3866 >-partition</B
3867 ></SPAN
3868 >, <SPAN
3869 CLASS="bold"
3870 ><B
3871 CLASS="emphasis"
3872 >-exclude</B
3873 ></SPAN
3874 >, and <SPAN
3875 CLASS="bold"
3876 ><B
3877 CLASS="emphasis"
3878 >-xprefix</B
3879 ></SPAN
3880 > options.</P
3881 ></DD
3882 ><DT
3883 ><SPAN
3884 CLASS="bold"
3885 ><B
3886 CLASS="emphasis"
3887 >-partition</B
3888 ></SPAN
3889 ></DT
3890 ><DD
3891 ><P
3892 >Specifies the partition housing the volumes you wish to backup. Can be combined with any combination of the
3893                   <SPAN
3894 CLASS="bold"
3895 ><B
3896 CLASS="emphasis"
3897 >-prefix</B
3898 ></SPAN
3899 >, <SPAN
3900 CLASS="bold"
3901 ><B
3902 CLASS="emphasis"
3903 >-server</B
3904 ></SPAN
3905 >, <SPAN
3906 CLASS="bold"
3907 ><B
3908 CLASS="emphasis"
3909 >-exclude</B
3910 ></SPAN
3911 >, and <SPAN
3912 CLASS="bold"
3913 ><B
3914 CLASS="emphasis"
3915 >-xprefix</B
3916 ></SPAN
3917 > options.</P
3918 ></DD
3919 ><DT
3920 ><SPAN
3921 CLASS="bold"
3922 ><B
3923 CLASS="emphasis"
3924 >-exclude</B
3925 ></SPAN
3926 ></DT
3927 ><DD
3928 ><P
3929 >Indicates that all volumes except those indicated with the <SPAN
3930 CLASS="bold"
3931 ><B
3932 CLASS="emphasis"
3933 >-prefix</B
3934 ></SPAN
3935 > argument
3936                   are to be backed up. The <SPAN
3937 CLASS="bold"
3938 ><B
3939 CLASS="emphasis"
3940 >-prefix</B
3941 ></SPAN
3942 > argument must be provided along with this one.
3943                   Can also be combined with any combination of the <SPAN
3944 CLASS="bold"
3945 ><B
3946 CLASS="emphasis"
3947 >-prefix</B
3948 ></SPAN
3949 >, <SPAN
3950 CLASS="bold"
3951 ><B
3952 CLASS="emphasis"
3953 >-server</B
3954 ></SPAN
3955 >, and <SPAN
3956 CLASS="bold"
3957 ><B
3958 CLASS="emphasis"
3959 >-partition</B
3960 ></SPAN
3961 > arguments; or with both the
3962                   <SPAN
3963 CLASS="bold"
3964 ><B
3965 CLASS="emphasis"
3966 >-prefix</B
3967 ></SPAN
3968 > and <SPAN
3969 CLASS="bold"
3970 ><B
3971 CLASS="emphasis"
3972 >-xprefix</B
3973 ></SPAN
3974 > arguments, but not with the
3975                   <SPAN
3976 CLASS="bold"
3977 ><B
3978 CLASS="emphasis"
3979 >-xprefix</B
3980 ></SPAN
3981 > argument alone.</P
3982 ></DD
3983 ><DT
3984 ><SPAN
3985 CLASS="bold"
3986 ><B
3987 CLASS="emphasis"
3988 >-xprefix</B
3989 ></SPAN
3990 ></DT
3991 ><DD
3992 ><P
3993 >Specifies one or more simple character strings or regular expressions of any length; a volume whose name
3994                   does not include the string is placed on the list of volumes to be cloned. Can be combined with any combination of
3995                   the <SPAN
3996 CLASS="bold"
3997 ><B
3998 CLASS="emphasis"
3999 >-prefix</B
4000 ></SPAN
4001 >, <SPAN
4002 CLASS="bold"
4003 ><B
4004 CLASS="emphasis"
4005 >-server</B
4006 ></SPAN
4007 >, and <SPAN
4008 CLASS="bold"
4009 ><B
4010 CLASS="emphasis"
4011 >-partition</B
4012 ></SPAN
4013 > arguments; in addition, it can be combined with both the <SPAN
4014 CLASS="bold"
4015 ><B
4016 CLASS="emphasis"
4017 >-prefix</B
4018 ></SPAN
4019 > and <SPAN
4020 CLASS="bold"
4021 ><B
4022 CLASS="emphasis"
4023 >-exclude</B
4024 ></SPAN
4025 > options, but not with the <SPAN
4026 CLASS="bold"
4027 ><B
4028 CLASS="emphasis"
4029 >-exclude</B
4030 ></SPAN
4031 > flag alone.</P
4032 ></DD
4033 ><DT
4034 ><SPAN
4035 CLASS="bold"
4036 ><B
4037 CLASS="emphasis"
4038 >-dryrun</B
4039 ></SPAN
4040 ></DT
4041 ><DD
4042 ><P
4043 >Displays on the standard output stream a list of the volumes to be cloned, without actually cloning
4044                   them.</P
4045 ></DD
4046 ><DT
4047 ><SPAN
4048 CLASS="bold"
4049 ><B
4050 CLASS="emphasis"
4051 >-verbose</B
4052 ></SPAN
4053 ></DT
4054 ><DD
4055 ><P
4056 >Displays on the standard output stream a statement that summarizes the criteria being used to select
4057                   volumes, if combined with the <SPAN
4058 CLASS="bold"
4059 ><B
4060 CLASS="emphasis"
4061 >-dryrun</B
4062 ></SPAN
4063 > flag; otherwise, traces the cloning
4064                   operation for each volume.</P
4065 ></DD
4066 ></DL
4067 ></DIV
4068 ></P
4069 ></LI
4070 ></OL
4071 ></DIV
4072 ></DIV
4073 ><DIV
4074 CLASS="sect1"
4075 ><H1
4076 CLASS="sect1"
4077 ><A
4078 NAME="HDRWQ208"
4079 >Mounting Volumes</A
4080 ></H1
4081 ><P
4082 >Mount points make the contents of AFS volumes visible and accessible in the AFS filespace, as described in <A
4083 HREF="c8420.html#HDRWQ183"
4084 >About Mounting Volumes</A
4085 >. This section discusses in more detail how the Cache Manager handles mount
4086     points as it traverses the filespace. It describes the three types of mount points, their purposes, and how to distinguish
4087     between them, and provides instructions for creating, removing, and examining mount points.</P
4088 ><DIV
4089 CLASS="sect2"
4090 ><H2
4091 CLASS="sect2"
4092 ><A
4093 NAME="HDRWQ209"
4094 >The Rules of Mount Point Traversal</A
4095 ></H2
4096 ><P
4097 >The Cache Manager observes three basic rules as it traverses the AFS filespace and encounters mount points:
4098       <UL
4099 ><LI
4100 ><P
4101 ><SPAN
4102 CLASS="bold"
4103 ><B
4104 CLASS="emphasis"
4105 >Rule 1:</B
4106 ></SPAN
4107 > Access Backup and Read-only Volumes When Specified</P
4108 ><P
4109 >When the Cache Manager encounters a mount point that specifies a volume with either a <SPAN
4110 CLASS="bold"
4111 ><B
4112 CLASS="emphasis"
4113 >.readonly</B
4114 ></SPAN
4115 > or a <SPAN
4116 CLASS="bold"
4117 ><B
4118 CLASS="emphasis"
4119 >.backup</B
4120 ></SPAN
4121 > extension, it accesses that type of
4122             volume only. If a mount point does not have either a <SPAN
4123 CLASS="bold"
4124 ><B
4125 CLASS="emphasis"
4126 >.backup</B
4127 ></SPAN
4128 > or <SPAN
4129 CLASS="bold"
4130 ><B
4131 CLASS="emphasis"
4132 >.readonly</B
4133 ></SPAN
4134 > extension, the Cache Manager uses Rules 2 and 3.</P
4135 ><P
4136 >For example, the Cache Manager never accesses the read/write version of a volume if the mount point names the
4137             backup version. If the specified version is inaccessible, the Cache Manager reports an error.</P
4138 ></LI
4139 ><LI
4140 ><P
4141 ><SPAN
4142 CLASS="bold"
4143 ><B
4144 CLASS="emphasis"
4145 >Rule 2:</B
4146 ></SPAN
4147 > Follow the Read-only Path When Possible</P
4148 ><P
4149 >If a mount point resides in a read-only volume and the volume that it references is replicated, the Cache Manager
4150             attempts to access a read-only copy of the volume; if the referenced volume is not replicated, the Cache Manager
4151             accesses the read/write copy. The Cache Manager is thus said to prefer a <SPAN
4152 CLASS="emphasis"
4153 ><I
4154 CLASS="emphasis"
4155 >read-only</I
4156 ></SPAN
4157 > path through the
4158             filespace, accessing read-only volumes when they are available.</P
4159 ><P
4160 >The Cache Manager starts on the read-only path in the first place because it always accesses a read-only copy of
4161             the <SPAN
4162 CLASS="bold"
4163 ><B
4164 CLASS="emphasis"
4165 >root.afs</B
4166 ></SPAN
4167 > volume if it exists; the volume is mounted at the root of a cell's AFS
4168             filespace (named <SPAN
4169 CLASS="bold"
4170 ><B
4171 CLASS="emphasis"
4172 >/afs</B
4173 ></SPAN
4174 > by convention). That is, if the <SPAN
4175 CLASS="bold"
4176 ><B
4177 CLASS="emphasis"
4178 >root.afs</B
4179 ></SPAN
4180 > volume is replicated, the Cache Manager attempts to access a read-only copy of it rather
4181             than the read/write copy. This rule then keeps the Cache Manager on a read-only path as long as each successive volume
4182             is replicated. The implication is that both the <SPAN
4183 CLASS="bold"
4184 ><B
4185 CLASS="emphasis"
4186 >root.afs</B
4187 ></SPAN
4188 > and <SPAN
4189 CLASS="bold"
4190 ><B
4191 CLASS="emphasis"
4192 >root.cell</B
4193 ></SPAN
4194 > volumes must be replicated for the Cache Manager to access replicated volumes mounted
4195             below them in the AFS filespace. The volumes are conventionally mounted at the <SPAN
4196 CLASS="bold"
4197 ><B
4198 CLASS="emphasis"
4199 >/afs</B
4200 ></SPAN
4201 > and
4202             <SPAN
4203 CLASS="bold"
4204 ><B
4205 CLASS="emphasis"
4206 >/afs/</B
4207 ></SPAN
4208 ><VAR
4209 CLASS="replaceable"
4210 >cellname</VAR
4211 > directories, respectively.</P
4212 ></LI
4213 ><LI
4214 ><P
4215 ><SPAN
4216 CLASS="bold"
4217 ><B
4218 CLASS="emphasis"
4219 >Rule 3:</B
4220 ></SPAN
4221 > Once on a Read/write Path, Stay There</P
4222 ><P
4223 >If a mount point resides in a read/write volume and the volume name does not have a <SPAN
4224 CLASS="bold"
4225 ><B
4226 CLASS="emphasis"
4227 >.readonly</B
4228 ></SPAN
4229 > or a <SPAN
4230 CLASS="bold"
4231 ><B
4232 CLASS="emphasis"
4233 >.backup</B
4234 ></SPAN
4235 > extension, the Cache Manager attempts to
4236             access only the a read/write version of the volume. The access attempt fails with an error if the read/write version is
4237             inaccessible, even if a read-only version is accessible. In this situation the Cache Manager is said to be on a
4238             <SPAN
4239 CLASS="emphasis"
4240 ><I
4241 CLASS="emphasis"
4242 >read/write path</I
4243 ></SPAN
4244 > and cannot switch back to the read-only path unless mount point explicitly names a
4245             volume with a <SPAN
4246 CLASS="bold"
4247 ><B
4248 CLASS="emphasis"
4249 >.readonly</B
4250 ></SPAN
4251 > extension. (Cellular mount points are an important exception to
4252             this rule, as explained in the following discussion.</P
4253 ></LI
4254 ></UL
4255 ></P
4256 ></DIV
4257 ><DIV
4258 CLASS="sect2"
4259 ><H2
4260 CLASS="sect2"
4261 ><A
4262 NAME="HDRWQ210"
4263 >The Three Types of Mount Points</A
4264 ></H2
4265 ><P
4266 >AFS uses three types of mount points, each appropriate for a different purpose because of how the Cache Manager handles
4267       them. <UL
4268 ><LI
4269 ><P
4270 >When the Cache Manager crosses a <SPAN
4271 CLASS="emphasis"
4272 ><I
4273 CLASS="emphasis"
4274 >regular</I
4275 ></SPAN
4276 > mount point, it obeys all three of the mount point
4277             traversal rules previously described.</P
4278 ><P
4279 >AFS performs best when the vast majority of mount points in the filespace are regular, because the mount point
4280             traversal rules promote the most efficient use of both replicated and nonreplicated volumes. Because there are likely to
4281             be multiple read-only copies of a replicated volume, it makes sense for the Cache Manager to access one of them rather
4282             than the single read/write version, and the second rule leads it to do so. If a volume is not replicated, the third rule
4283             means that the Cache Manager still accesses the read/write volume when that is the only type available. In other words,
4284             a regular mount point does not force the Cache Manager always to access read-only volumes (it is explicitly not a
4285             "read-only mount point").</P
4286 ><P
4287 >To create a regular mount point, use the <SPAN
4288 CLASS="bold"
4289 ><B
4290 CLASS="emphasis"
4291 >fs mkmount</B
4292 ></SPAN
4293 > command as described in <A
4294 HREF="c8420.html#HDRWQ212"
4295 >To create a regular or read/write mount point</A
4296 >.</P
4297 ><DIV
4298 CLASS="note"
4299 ><BLOCKQUOTE
4300 CLASS="note"
4301 ><P
4302 ><B
4303 >Note: </B
4304 >To enable the Cache Manager to access the read-only version of a replicated volume named by a regular mount
4305               point, all volumes that are mounted above it in the pathname must also be replicated. That is the only way the Cache
4306               Manager can stay on a read-only path to the target volume.</P
4307 ></BLOCKQUOTE
4308 ></DIV
4309 ></LI
4310 ><LI
4311 ><P
4312 >When the Cache Manager crosses a <SPAN
4313 CLASS="emphasis"
4314 ><I
4315 CLASS="emphasis"
4316 >read/write</I
4317 ></SPAN
4318 > mount point, it attempts to access only the
4319             volume version named in the mount point. If the volume name is the base (read/write) form, without a <SPAN
4320 CLASS="bold"
4321 ><B
4322 CLASS="emphasis"
4323 >.readonly</B
4324 ></SPAN
4325 > or <SPAN
4326 CLASS="bold"
4327 ><B
4328 CLASS="emphasis"
4329 >.backup</B
4330 ></SPAN
4331 > extension, the Cache Manager accesses the
4332             read/write version of the volume, even if it is replicated. In other words, the Cache Manager disregards the second
4333             mount point traversal rule when crossing a read/write mount point: it switches to the read/write path through the
4334             filespace.</P
4335 ><P
4336 >It is conventional to create only one read/write mount point in a cell's filespace, using it to mount the cell's
4337             <SPAN
4338 CLASS="bold"
4339 ><B
4340 CLASS="emphasis"
4341 >root.cell</B
4342 ></SPAN
4343 > volume just below the AFS filespace root (by convention, <SPAN
4344 CLASS="bold"
4345 ><B
4346 CLASS="emphasis"
4347 >/afs/.</B
4348 ></SPAN
4349 ><VAR
4350 CLASS="replaceable"
4351 >cellname</VAR
4352 >). As indicated, it is conventional to place a period at
4353             the start of the read/write mount point's name (for example, <SPAN
4354 CLASS="bold"
4355 ><B
4356 CLASS="emphasis"
4357 >/afs/.abc.com</B
4358 ></SPAN
4359 >). The period
4360             distinguishes the read/write mount point from the regular mount point for the <SPAN
4361 CLASS="bold"
4362 ><B
4363 CLASS="emphasis"
4364 >root.cell</B
4365 ></SPAN
4366 >
4367             volume at the same level. This is the only case in which it is conventional to create two mount points for the same
4368             volume. A desirable side effect of this naming convention for this read/write mount point is that it does not appear in
4369             the output of the UNIX <SPAN
4370 CLASS="bold"
4371 ><B
4372 CLASS="emphasis"
4373 >ls</B
4374 ></SPAN
4375 > command unless the <SPAN
4376 CLASS="bold"
4377 ><B
4378 CLASS="emphasis"
4379 >-a</B
4380 ></SPAN
4381 > flag
4382             is included, essentially hiding it from regular users who have no use for it.</P
4383 ><P
4384 >The existence of a single read/write mount point at this point in the filespace provides access to the read/write
4385             version of every volume when necessary, because it puts the Cache Manager on a read/write path right at the top of the
4386             filespace. At the same time, the regular mount point for the <SPAN
4387 CLASS="bold"
4388 ><B
4389 CLASS="emphasis"
4390 >root.cell</B
4391 ></SPAN
4392 > volume puts the
4393             Cache Manager on a read-only path most of the time.</P
4394 ><P
4395 >Using a read/write mount point for a read-only or backup volume is acceptable, but unnecessary. The first rule of
4396             mount point traversal already specifies that the Cache Manager accesses them if the volume name in a regular mount point
4397             has a <SPAN
4398 CLASS="bold"
4399 ><B
4400 CLASS="emphasis"
4401 >.readonly</B
4402 ></SPAN
4403 > or <SPAN
4404 CLASS="bold"
4405 ><B
4406 CLASS="emphasis"
4407 >.backup</B
4408 ></SPAN
4409 > extension.</P
4410 ><P
4411 >To create a read/write mount point, use the <SPAN
4412 CLASS="bold"
4413 ><B
4414 CLASS="emphasis"
4415 >-rw</B
4416 ></SPAN
4417 > flag on the <SPAN
4418 CLASS="bold"
4419 ><B
4420 CLASS="emphasis"
4421 >fs mkmount</B
4422 ></SPAN
4423 > command as described in <A
4424 HREF="c8420.html#HDRWQ212"
4425 >To create a regular or read/write
4426             mount point</A
4427 >.</P
4428 ></LI
4429 ><LI
4430 ><P
4431 >When the Cache Manager crosses a <SPAN
4432 CLASS="emphasis"
4433 ><I
4434 CLASS="emphasis"
4435 >cellular</I
4436 ></SPAN
4437 > mount point, it accesses the indicated volume in
4438             the specified cell, which is normally a foreign cell. (If the mount point does not name a cell along with the volume,
4439             the Cache Manager accesses the volume in the cell where the mount point resides.) When crossing a regular cellular mount
4440             point, the Cache Manager disregards the third mount point traversal rule. Instead, it accesses a read-only version of
4441             the volume if it is replicated, even if the volume that houses the mount point is read/write.</P
4442 ><P
4443 >It is inappropriate to circumvent this behavior by creating a read/write cellular mount point, because traversing
4444             the read/write path imposes an unfair load on the foreign cell's file server machines. The File Server must issue a
4445             callback for each file fetched from the read/write volume, rather than single callback required for a read-only volume.
4446             In any case, only a cell's own administrators generally need to access the read/write versions of replicated
4447             volumes.</P
4448 ><P
4449 >It is conventional to create cellular mount points only at the second level in a cell's filespace, using them to
4450             mount foreign cells' <SPAN
4451 CLASS="bold"
4452 ><B
4453 CLASS="emphasis"
4454 >root.cell</B
4455 ></SPAN
4456 > volumes just below the AFS filespace root (by
4457             convention, at <SPAN
4458 CLASS="bold"
4459 ><B
4460 CLASS="emphasis"
4461 >/afs/</B
4462 ></SPAN
4463 ><VAR
4464 CLASS="replaceable"
4465 >foreign_cellname</VAR
4466 >). The mount point
4467             enables local users to access the foreign cell's filespace, assuming they have the necessary permissions on the ACL of
4468             the volume's root directory and that there is an entry for the foreign cell in each local client machine's <SPAN
4469 CLASS="bold"
4470 ><B
4471 CLASS="emphasis"
4472 >/usr/vice/etc/CellServDB</B
4473 ></SPAN
4474 > file, as described in <A
4475 HREF="c21473.html#HDRWQ406"
4476 >Maintaining Knowledge of
4477             Database Server Machines</A
4478 >.</P
4479 ><P
4480 >Creating cellular mount points at other levels in the filespace and mounting foreign volumes other than the
4481             <SPAN
4482 CLASS="bold"
4483 ><B
4484 CLASS="emphasis"
4485 >root.cell</B
4486 ></SPAN
4487 > volume is not generally appropriate. It can be confusing to users if the
4488             Cache Manager switches between cells at various points in a pathname.</P
4489 ><P
4490 >To create a regular cellular mount point, use the <SPAN
4491 CLASS="bold"
4492 ><B
4493 CLASS="emphasis"
4494 >-cell</B
4495 ></SPAN
4496 > argument to specify the
4497             cell name, as described in <A
4498 HREF="c8420.html#HDRWQ213"
4499 >To create a cellular mount point</A
4500 >.</P
4501 ></LI
4502 ></UL
4503 ></P
4504 ><P
4505 >To examine a mount point, use the <SPAN
4506 CLASS="bold"
4507 ><B
4508 CLASS="emphasis"
4509 >fs lsmount</B
4510 ></SPAN
4511 > command as described in <A
4512 HREF="c8420.html#HDRWQ211"
4513 >To display a mount point</A
4514 >. The command's output uses distinct notation to identify regular,
4515       read/write, and cellular mount points. To remove a mount point, use the <SPAN
4516 CLASS="bold"
4517 ><B
4518 CLASS="emphasis"
4519 >fs rmmount</B
4520 ></SPAN
4521 > command as
4522       described in <A
4523 HREF="c8420.html#HDRWQ215"
4524 >To remove a mount point</A
4525 >.</P
4526 ></DIV
4527 ><DIV
4528 CLASS="sect2"
4529 ><H2
4530 CLASS="sect2"
4531 ><A
4532 NAME="Header_227"
4533 >Creating a mount point in a foreign cell</A
4534 ></H2
4535 ><P
4536 >Creating a mount point in a foreign cell's filespace (as opposed to mounting a foreign volume in the local cell) is
4537       basically the same as creating a mount point in the local filespace. The differences are that the <SPAN
4538 CLASS="bold"
4539 ><B
4540 CLASS="emphasis"
4541 >fs
4542       mkmount</B
4543 ></SPAN
4544 > command's directory argument specifies a pathname in the foreign cell rather than the local cell, and you
4545       must have the required permissions on the ACL of the foreign directory where you are creating the mount point. The <SPAN
4546 CLASS="bold"
4547 ><B
4548 CLASS="emphasis"
4549 >fs mkmount</B
4550 ></SPAN
4551 > command's <SPAN
4552 CLASS="bold"
4553 ><B
4554 CLASS="emphasis"
4555 >-cell</B
4556 ></SPAN
4557 > argument always specifies the cell in which
4558       the volume resides, not the cell in which to create the mount point.</P
4559 ></DIV
4560 ><DIV
4561 CLASS="sect2"
4562 ><H2
4563 CLASS="sect2"
4564 ><A
4565 NAME="HDRWQ211"
4566 >To display a mount point</A
4567 ></H2
4568 ><OL
4569 TYPE="1"
4570 ><LI
4571 ><P
4572 >Issue the <SPAN
4573 CLASS="bold"
4574 ><B
4575 CLASS="emphasis"
4576 >fs lsmount</B
4577 ></SPAN
4578 > command. <PRE
4579 CLASS="programlisting"
4580 >&#13;   % <SPAN
4581 CLASS="bold"
4582 ><B
4583 CLASS="emphasis"
4584 >fs lsmount</B
4585 ></SPAN
4586 > &#60;<VAR
4587 CLASS="replaceable"
4588 >directory</VAR
4589 >&#62;
4590 </PRE
4591 ></P
4592 ><P
4593 >where <DIV
4594 CLASS="variablelist"
4595 ><DL
4596 ><DT
4597 ><SPAN
4598 CLASS="bold"
4599 ><B
4600 CLASS="emphasis"
4601 >ls</B
4602 ></SPAN
4603 ></DT
4604 ><DD
4605 ><P
4606 >Is the shortest acceptable abbreviation of <SPAN
4607 CLASS="bold"
4608 ><B
4609 CLASS="emphasis"
4610 >lsmount</B
4611 ></SPAN
4612 >.</P
4613 ></DD
4614 ><DT
4615 ><SPAN
4616 CLASS="bold"
4617 ><B
4618 CLASS="emphasis"
4619 >directory</B
4620 ></SPAN
4621 ></DT
4622 ><DD
4623 ><P
4624 >Names the mount point to display.</P
4625 ></DD
4626 ></DL
4627 ></DIV
4628 ></P
4629 ></LI
4630 ></OL
4631 ><P
4632 >If the specified directory is a mount point, the output is of the following form:</P
4633 ><PRE
4634 CLASS="programlisting"
4635 >&#13;   'directory' is a mount point for volume 'volume name'
4636 </PRE
4637 ><P
4638 >For a regular mount point, a number sign (<SAMP
4639 CLASS="computeroutput"
4640 >#</SAMP
4641 >) precedes the volume name string, as in the
4642       following example command issued on a client machine in the <SPAN
4643 CLASS="bold"
4644 ><B
4645 CLASS="emphasis"
4646 >abc.com</B
4647 ></SPAN
4648 > cell.</P
4649 ><PRE
4650 CLASS="programlisting"
4651 >&#13;   % <SPAN
4652 CLASS="bold"
4653 ><B
4654 CLASS="emphasis"
4655 >fs lsmount /afs/abc.com/usr/terry</B
4656 ></SPAN
4657 >
4658    '/afs/abc.com/usr/terry' is a mount point for volume '#user.terry'
4659 </PRE
4660 ><P
4661 >For a read/write mount point, a percent sign (<SAMP
4662 CLASS="computeroutput"
4663 >%</SAMP
4664 >) precedes the volume name string, as in
4665       the following example command issued on a client machine in the <SPAN
4666 CLASS="bold"
4667 ><B
4668 CLASS="emphasis"
4669 >abc.com</B
4670 ></SPAN
4671 > cell. The cell's
4672       administrators have followed the convention of preceding the read/write mount point's name with a period.</P
4673 ><PRE
4674 CLASS="programlisting"
4675 >&#13;   % <SPAN
4676 CLASS="bold"
4677 ><B
4678 CLASS="emphasis"
4679 >fs lsmount /afs/.abc.com</B
4680 ></SPAN
4681 >
4682    '/afs/.abc.com' is a mount point for volume '%root.cell'
4683 </PRE
4684 ><P
4685 >For a cellular mount point, a cell name and colon (<SAMP
4686 CLASS="computeroutput"
4687 >:</SAMP
4688 >) follow the number or percent sign
4689       and precede the volume name string, as in the following example command issued on a client machine in the <SPAN
4690 CLASS="bold"
4691 ><B
4692 CLASS="emphasis"
4693 >abc.com</B
4694 ></SPAN
4695 > cell.</P
4696 ><PRE
4697 CLASS="programlisting"
4698 >&#13;   % <SPAN
4699 CLASS="bold"
4700 ><B
4701 CLASS="emphasis"
4702 >fs lsmount /afs/ghi.gov</B
4703 ></SPAN
4704 >
4705    '/afs/ghi.gov' is a mount point for volume '#ghi.gov:root.cell'
4706 </PRE
4707 ><P
4708 >For a symbolic link to a mount point, the output is of the form shown in the following example command issued on a
4709       client machine in the <SPAN
4710 CLASS="bold"
4711 ><B
4712 CLASS="emphasis"
4713 >abc.com</B
4714 ></SPAN
4715 > cell.</P
4716 ><PRE
4717 CLASS="programlisting"
4718 >&#13;   % <SPAN
4719 CLASS="bold"
4720 ><B
4721 CLASS="emphasis"
4722 >fs lsmount /afs/abc</B
4723 ></SPAN
4724 >
4725    '/afs/abc' is a symbolic link, leading to a mount point for volume '#root.cell'
4726 </PRE
4727 ><P
4728 >If the directory is not a mount point or is not in AFS, the output reads as follows.</P
4729 ><PRE
4730 CLASS="programlisting"
4731 >&#13;   'directory' is not a mount point.
4732 </PRE
4733 ><P
4734 >If the output is garbled, it is possible that the mount point has become corrupted in the local cache. Use the <SPAN
4735 CLASS="bold"
4736 ><B
4737 CLASS="emphasis"
4738 >fs flushmount</B
4739 ></SPAN
4740 > command as described in <A
4741 HREF="c21473.html#HDRWQ413"
4742 >To flush one or more mount
4743       points</A
4744 >. This forces the Cache Manager to refetch the mount point.</P
4745 ></DIV
4746 ><DIV
4747 CLASS="sect2"
4748 ><H2
4749 CLASS="sect2"
4750 ><A
4751 NAME="HDRWQ212"
4752 >To create a regular or read/write mount point</A
4753 ></H2
4754 ><OL
4755 TYPE="1"
4756 ><LI
4757 ><P
4758 >Verify that you have the <SPAN
4759 CLASS="bold"
4760 ><B
4761 CLASS="emphasis"
4762 >i</B
4763 ></SPAN
4764 >( <SPAN
4765 CLASS="bold"
4766 ><B
4767 CLASS="emphasis"
4768 >insert</B
4769 ></SPAN
4770 >) and <SPAN
4771 CLASS="bold"
4772 ><B
4773 CLASS="emphasis"
4774 >a</B
4775 ></SPAN
4776 >( <SPAN
4777 CLASS="bold"
4778 ><B
4779 CLASS="emphasis"
4780 >administer</B
4781 ></SPAN
4782 >) permissions on the ACL of the directory where you
4783           are placing the mount point. If necessary, issue the <SPAN
4784 CLASS="bold"
4785 ><B
4786 CLASS="emphasis"
4787 >fs listacl</B
4788 ></SPAN
4789 > command, which is fully
4790           described in <A
4791 HREF="c31274.html#HDRWQ572"
4792 >Displaying ACLs</A
4793 >. <PRE
4794 CLASS="programlisting"
4795 >&#13;   % <SPAN
4796 CLASS="bold"
4797 ><B
4798 CLASS="emphasis"
4799 >fs listacl</B
4800 ></SPAN
4801 > [&#60;<VAR
4802 CLASS="replaceable"
4803 >dir/file path</VAR
4804 >&#62;]
4805 </PRE
4806 ></P
4807 ></LI
4808 ><LI
4809 ><P
4810 >Issue the <SPAN
4811 CLASS="bold"
4812 ><B
4813 CLASS="emphasis"
4814 >fs mkmount</B
4815 ></SPAN
4816 > command to create the mount point. Include the <SPAN
4817 CLASS="bold"
4818 ><B
4819 CLASS="emphasis"
4820 >-rw</B
4821 ></SPAN
4822 > flag if creating a read/write mount point. <PRE
4823 CLASS="programlisting"
4824 >&#13;   % <SPAN
4825 CLASS="bold"
4826 ><B
4827 CLASS="emphasis"
4828 >fs mkmount</B
4829 ></SPAN
4830 > &#60;<VAR
4831 CLASS="replaceable"
4832 >directory</VAR
4833 >&#62; &#60;<VAR
4834 CLASS="replaceable"
4835 >volume name</VAR
4836 >&#62; [<SPAN
4837 CLASS="bold"
4838 ><B
4839 CLASS="emphasis"
4840 >-rw</B
4841 ></SPAN
4842 >]
4843 </PRE
4844 ></P
4845 ><P
4846 >where <DIV
4847 CLASS="variablelist"
4848 ><DL
4849 ><DT
4850 ><SPAN
4851 CLASS="bold"
4852 ><B
4853 CLASS="emphasis"
4854 >mk</B
4855 ></SPAN
4856 ></DT
4857 ><DD
4858 ><P
4859 >Is the shortest acceptable abbreviation for <SPAN
4860 CLASS="bold"
4861 ><B
4862 CLASS="emphasis"
4863 >mkmount</B
4864 ></SPAN
4865 >.</P
4866 ></DD
4867 ><DT
4868 ><SPAN
4869 CLASS="bold"
4870 ><B
4871 CLASS="emphasis"
4872 >directory</B
4873 ></SPAN
4874 ></DT
4875 ><DD
4876 ><P
4877 >Names the mount point to create. A file or directory with the same name cannot already exist. A partial
4878                   pathname is interpreted relative to the current working directory.</P
4879 ><P
4880 >Specify the read/write path to the mount point, to avoid the failure that results when you attempt to create
4881                   a new mount point in a read-only volume. By convention, you indicate the read/write path by placing a period
4882                   before the cell name at the pathname's second level (for example, <SPAN
4883 CLASS="bold"
4884 ><B
4885 CLASS="emphasis"
4886 >/afs/.abc.com</B
4887 ></SPAN
4888 >).
4889                   For further discussion of the concept of read/write and read-only paths through the filespace, see <A
4890 HREF="c8420.html#HDRWQ209"
4891 >The Rules of Mount Point Traversal</A
4892 >.</P
4893 ></DD
4894 ><DT
4895 ><SPAN
4896 CLASS="bold"
4897 ><B
4898 CLASS="emphasis"
4899 >volume name</B
4900 ></SPAN
4901 ></DT
4902 ><DD
4903 ><P
4904 >Specifies the volume's full name, including the <SPAN
4905 CLASS="bold"
4906 ><B
4907 CLASS="emphasis"
4908 >.backup</B
4909 ></SPAN
4910 > or <SPAN
4911 CLASS="bold"
4912 ><B
4913 CLASS="emphasis"
4914 >.readonly</B
4915 ></SPAN
4916 > extension for a backup or read-only volume, if appropriate.</P
4917 ></DD
4918 ><DT
4919 ><SPAN
4920 CLASS="bold"
4921 ><B
4922 CLASS="emphasis"
4923 >-rw</B
4924 ></SPAN
4925 ></DT
4926 ><DD
4927 ><P
4928 >Creates a read/write mount point.</P
4929 ></DD
4930 ></DL
4931 ></DIV
4932 ></P
4933 ></LI
4934 ></OL
4935 ></DIV
4936 ><DIV
4937 CLASS="sect2"
4938 ><H2
4939 CLASS="sect2"
4940 ><A
4941 NAME="HDRWQ213"
4942 >To create a cellular mount point</A
4943 ></H2
4944 ><OL
4945 TYPE="1"
4946 ><LI
4947 ><P
4948 >Verify that you have the <SPAN
4949 CLASS="bold"
4950 ><B
4951 CLASS="emphasis"
4952 >i</B
4953 ></SPAN
4954 >( <SPAN
4955 CLASS="bold"
4956 ><B
4957 CLASS="emphasis"
4958 >insert</B
4959 ></SPAN
4960 >) and <SPAN
4961 CLASS="bold"
4962 ><B
4963 CLASS="emphasis"
4964 >a</B
4965 ></SPAN
4966 >( <SPAN
4967 CLASS="bold"
4968 ><B
4969 CLASS="emphasis"
4970 >administer</B
4971 ></SPAN
4972 >) permissions on the ACL of the directory where you
4973           are placing the mount point. If necessary, issue the <SPAN
4974 CLASS="bold"
4975 ><B
4976 CLASS="emphasis"
4977 >fs listacl</B
4978 ></SPAN
4979 > command, which is fully
4980           described in <A
4981 HREF="c31274.html#HDRWQ572"
4982 >Displaying ACLs</A
4983 >. <PRE
4984 CLASS="programlisting"
4985 >&#13;   % <SPAN
4986 CLASS="bold"
4987 ><B
4988 CLASS="emphasis"
4989 >fs listacl</B
4990 ></SPAN
4991 > [&#60;<VAR
4992 CLASS="replaceable"
4993 >dir/file path</VAR
4994 >&#62;]
4995 </PRE
4996 ></P
4997 ></LI
4998 ><LI
4999 ><P
5000 ><A
5001 NAME="LIWQ214"
5002 ></A
5003 >If you are mounting one or more foreign cells' <SPAN
5004 CLASS="bold"
5005 ><B
5006 CLASS="emphasis"
5007 >root.cell</B
5008 ></SPAN
5009 >
5010           volume at the second level in your filespace and your cell's <SPAN
5011 CLASS="bold"
5012 ><B
5013 CLASS="emphasis"
5014 >root.afs</B
5015 ></SPAN
5016 > volume is
5017           replicated, you must create a temporary mount point for the <SPAN
5018 CLASS="bold"
5019 ><B
5020 CLASS="emphasis"
5021 >root.afs</B
5022 ></SPAN
5023 > volume's read/write
5024           version in a directory on which the ACL grants you the <SPAN
5025 CLASS="bold"
5026 ><B
5027 CLASS="emphasis"
5028 >i</B
5029 ></SPAN
5030 > and <SPAN
5031 CLASS="bold"
5032 ><B
5033 CLASS="emphasis"
5034 >a</B
5035 ></SPAN
5036 > permissions. The following command creates a mount point called <SPAN
5037 CLASS="bold"
5038 ><B
5039 CLASS="emphasis"
5040 >new_cells</B
5041 ></SPAN
5042 > in your cell's <SPAN
5043 CLASS="bold"
5044 ><B
5045 CLASS="emphasis"
5046 >/afs/.</B
5047 ></SPAN
5048 ><VAR
5049 CLASS="replaceable"
5050 >cellname</VAR
5051 >
5052           directory (the entry point to the read/write path in your cell).</P
5053 ><P
5054 >Substitute your cell's name for cellname.</P
5055 ><PRE
5056 CLASS="programlisting"
5057 >&#13;   % <SPAN
5058 CLASS="bold"
5059 ><B
5060 CLASS="emphasis"
5061 >cd /afs/.</B
5062 ></SPAN
5063 ><VAR
5064 CLASS="replaceable"
5065 >cellname</VAR
5066 >
5067    % <SPAN
5068 CLASS="bold"
5069 ><B
5070 CLASS="emphasis"
5071 >fs mkmount new_cells root.afs</B
5072 ></SPAN
5073 >
5074    % <SPAN
5075 CLASS="bold"
5076 ><B
5077 CLASS="emphasis"
5078 >cd new_cells</B
5079 ></SPAN
5080 >
5081 </PRE
5082 ></LI
5083 ><LI
5084 ><P
5085 >Issue the <SPAN
5086 CLASS="bold"
5087 ><B
5088 CLASS="emphasis"
5089 >fs mkmount</B
5090 ></SPAN
5091 > command with the <SPAN
5092 CLASS="bold"
5093 ><B
5094 CLASS="emphasis"
5095 >-cell</B
5096 ></SPAN
5097 >
5098           argument to create a cellular mount point. Repeat the command for each cellular mount point as required. <PRE
5099 CLASS="programlisting"
5100 >&#13;   % <SPAN
5101 CLASS="bold"
5102 ><B
5103 CLASS="emphasis"
5104 >fs mkmount</B
5105 ></SPAN
5106 > &#60;<VAR
5107 CLASS="replaceable"
5108 >directory</VAR
5109 >&#62; &#60;<VAR
5110 CLASS="replaceable"
5111 >volume name</VAR
5112 >&#62; <SPAN
5113 CLASS="bold"
5114 ><B
5115 CLASS="emphasis"
5116 >-cell</B
5117 ></SPAN
5118 > &#60;<VAR
5119 CLASS="replaceable"
5120 >cell name</VAR
5121 >&#62;
5122 </PRE
5123 ></P
5124 ><P
5125 >where <DIV
5126 CLASS="variablelist"
5127 ><DL
5128 ><DT
5129 ><SPAN
5130 CLASS="bold"
5131 ><B
5132 CLASS="emphasis"
5133 >mk</B
5134 ></SPAN
5135 ></DT
5136 ><DD
5137 ><P
5138 >Is the shortest acceptable abbreviation for <SPAN
5139 CLASS="bold"
5140 ><B
5141 CLASS="emphasis"
5142 >mkmount</B
5143 ></SPAN
5144 >.</P
5145 ></DD
5146 ><DT
5147 ><SPAN
5148 CLASS="bold"
5149 ><B
5150 CLASS="emphasis"
5151 >directory</B
5152 ></SPAN
5153 ></DT
5154 ><DD
5155 ><P
5156 >Names the mount point to create. A file or directory with the same name cannot already exist. A partial
5157                   pathname is interpreted relative to the current working directory. If you are mounting a foreign cell's <SPAN
5158 CLASS="bold"
5159 ><B
5160 CLASS="emphasis"
5161 >root.cell</B
5162 ></SPAN
5163 > volume, the standard value for this argument is the cell's complete Internet
5164                   domain name.</P
5165 ></DD
5166 ><DT
5167 ><SPAN
5168 CLASS="bold"
5169 ><B
5170 CLASS="emphasis"
5171 >volume name</B
5172 ></SPAN
5173 ></DT
5174 ><DD
5175 ><P
5176 >Specifies the volume's full name, usually <SPAN
5177 CLASS="bold"
5178 ><B
5179 CLASS="emphasis"
5180 >root.cell</B
5181 ></SPAN
5182 > for a cellular mount
5183                   point.</P
5184 ></DD
5185 ><DT
5186 ><SPAN
5187 CLASS="bold"
5188 ><B
5189 CLASS="emphasis"
5190 >-cell</B
5191 ></SPAN
5192 ></DT
5193 ><DD
5194 ><P
5195 >Specifies the complete Internet domain name of the cell in which the volume resides.</P
5196 ></DD
5197 ></DL
5198 ></DIV
5199 ></P
5200 ></LI
5201 ><LI
5202 ><P
5203 >If you performed the instructions in Step <A
5204 HREF="c8420.html#LIWQ214"
5205 >2</A
5206 >, issue the <SPAN
5207 CLASS="bold"
5208 ><B
5209 CLASS="emphasis"
5210 >vos
5211           release</B
5212 ></SPAN
5213 > command to release the new version of the <SPAN
5214 CLASS="bold"
5215 ><B
5216 CLASS="emphasis"
5217 >root.afs</B
5218 ></SPAN
5219 > volume to its
5220           read-only sites. (This command requires that you be listed in your cell's <SPAN
5221 CLASS="bold"
5222 ><B
5223 CLASS="emphasis"
5224 >/usr/afs/etc/UserList</B
5225 ></SPAN
5226 > file. If necessary, verify by issuing the <SPAN
5227 CLASS="bold"
5228 ><B
5229 CLASS="emphasis"
5230 >bos
5231           listusers</B
5232 ></SPAN
5233 > command, which is fully described in <A
5234 HREF="c32432.html#HDRWQ593"
5235 >To display the users in the UserList
5236           file</A
5237 >.)</P
5238 ><P
5239 >Also issue the <SPAN
5240 CLASS="bold"
5241 ><B
5242 CLASS="emphasis"
5243 >fs checkvolumes</B
5244 ></SPAN
5245 > command to force the local Cache Manager to access
5246           the new replica of the <SPAN
5247 CLASS="bold"
5248 ><B
5249 CLASS="emphasis"
5250 >root.afs</B
5251 ></SPAN
5252 > volume. If desired, you can also remove the temporary
5253           <SPAN
5254 CLASS="bold"
5255 ><B
5256 CLASS="emphasis"
5257 >new_cells</B
5258 ></SPAN
5259 > mount point from the <SPAN
5260 CLASS="bold"
5261 ><B
5262 CLASS="emphasis"
5263 >/afs/.</B
5264 ></SPAN
5265 ><VAR
5266 CLASS="replaceable"
5267 >cellname</VAR
5268 > directory.</P
5269 ><PRE
5270 CLASS="programlisting"
5271 >&#13;   % <SPAN
5272 CLASS="bold"
5273 ><B
5274 CLASS="emphasis"
5275 >vos release root.afs</B
5276 ></SPAN
5277 >
5278    % <SPAN
5279 CLASS="bold"
5280 ><B
5281 CLASS="emphasis"
5282 >fs checkvolumes</B
5283 ></SPAN
5284 >
5285    % <SPAN
5286 CLASS="bold"
5287 ><B
5288 CLASS="emphasis"
5289 >cd /afs/.</B
5290 ></SPAN
5291 ><VAR
5292 CLASS="replaceable"
5293 >cellname</VAR
5294 >
5295    % <SPAN
5296 CLASS="bold"
5297 ><B
5298 CLASS="emphasis"
5299 >fs rmmount new_cells</B
5300 ></SPAN
5301 >
5302 </PRE
5303 ><P
5304 >For your users to access a newly mounted foreign cell, you must also create an entry for it in each client machine's
5305           local <SPAN
5306 CLASS="bold"
5307 ><B
5308 CLASS="emphasis"
5309 >/usr/vice/etc/CellServDB</B
5310 ></SPAN
5311 > file and either reboot the machine or use the <SPAN
5312 CLASS="bold"
5313 ><B
5314 CLASS="emphasis"
5315 >fs newcell</B
5316 ></SPAN
5317 > command to insert the entry directly into its kernel memory. See the instructions in
5318           <A
5319 HREF="c21473.html#HDRWQ406"
5320 >Maintaining Knowledge of Database Server Machines</A
5321 >.</P
5322 ></LI
5323 ></OL
5324 ></DIV
5325 ><DIV
5326 CLASS="sect2"
5327 ><H2
5328 CLASS="sect2"
5329 ><A
5330 NAME="HDRWQ215"
5331 >To remove a mount point</A
5332 ></H2
5333 ><OL
5334 TYPE="1"
5335 ><LI
5336 ><P
5337 >Verify that you have the <SPAN
5338 CLASS="bold"
5339 ><B
5340 CLASS="emphasis"
5341 >d</B
5342 ></SPAN
5343 >( <SPAN
5344 CLASS="bold"
5345 ><B
5346 CLASS="emphasis"
5347 >delete</B
5348 ></SPAN
5349 >) permission on
5350           the ACL of the directory from which you are removing the mount point. If necessary, issue the <SPAN
5351 CLASS="bold"
5352 ><B
5353 CLASS="emphasis"
5354 >fs
5355           listacl</B
5356 ></SPAN
5357 > command, which is fully described in <A
5358 HREF="c31274.html#HDRWQ572"
5359 >Displaying ACLs</A
5360 >. <PRE
5361 CLASS="programlisting"
5362 >&#13;   % <SPAN
5363 CLASS="bold"
5364 ><B
5365 CLASS="emphasis"
5366 >fs listacl</B
5367 ></SPAN
5368 > [&#60;<VAR
5369 CLASS="replaceable"
5370 >dir/file path</VAR
5371 >&#62;]
5372 </PRE
5373 ></P
5374 ><P
5375 >Members of the <SPAN
5376 CLASS="bold"
5377 ><B
5378 CLASS="emphasis"
5379 >system:administrators</B
5380 ></SPAN
5381 > group always implicitly have the <SPAN
5382 CLASS="bold"
5383 ><B
5384 CLASS="emphasis"
5385 >a</B
5386 ></SPAN
5387 >( <SPAN
5388 CLASS="bold"
5389 ><B
5390 CLASS="emphasis"
5391 >administer</B
5392 ></SPAN
5393 >) and by default also the <SPAN
5394 CLASS="bold"
5395 ><B
5396 CLASS="emphasis"
5397 >l</B
5398 ></SPAN
5399 >( <SPAN
5400 CLASS="bold"
5401 ><B
5402 CLASS="emphasis"
5403 >lookup</B
5404 ></SPAN
5405 >) permission on every ACL and can use the <SPAN
5406 CLASS="bold"
5407 ><B
5408 CLASS="emphasis"
5409 >fs setacl</B
5410 ></SPAN
5411 > command to grant other rights as necessary.</P
5412 ></LI
5413 ><LI
5414 ><P
5415 >Issue the <SPAN
5416 CLASS="bold"
5417 ><B
5418 CLASS="emphasis"
5419 >fs rmmount</B
5420 ></SPAN
5421 > command to remove the mount point. The volume still exists,
5422           but its contents are inaccessible if this is the only mount point for it. <PRE
5423 CLASS="programlisting"
5424 >&#13;   % <SPAN
5425 CLASS="bold"
5426 ><B
5427 CLASS="emphasis"
5428 >fs rmmount</B
5429 ></SPAN
5430 > &#60;<VAR
5431 CLASS="replaceable"
5432 >directory</VAR
5433 >&#62;
5434 </PRE
5435 ></P
5436 ><P
5437 >where <DIV
5438 CLASS="variablelist"
5439 ><DL
5440 ><DT
5441 ><SPAN
5442 CLASS="bold"
5443 ><B
5444 CLASS="emphasis"
5445 >rm</B
5446 ></SPAN
5447 ></DT
5448 ><DD
5449 ><P
5450 >Is the shortest acceptable abbreviation of <SPAN
5451 CLASS="bold"
5452 ><B
5453 CLASS="emphasis"
5454 >rmmount</B
5455 ></SPAN
5456 >.</P
5457 ></DD
5458 ><DT
5459 ><SPAN
5460 CLASS="bold"
5461 ><B
5462 CLASS="emphasis"
5463 >directory</B
5464 ></SPAN
5465 ></DT
5466 ><DD
5467 ><P
5468 >Names the mount point to remove. A partial pathname is interpreted relative to the current working
5469                   directory.</P
5470 ><P
5471 >Specify the read/write path to the mount point, to avoid the failure that results when you attempt to delete
5472                   a mount point from a read-only volume. By convention, you indicate the read/write path by placing a period before
5473                   the cell name at the pathname's second level (for example, <SPAN
5474 CLASS="bold"
5475 ><B
5476 CLASS="emphasis"
5477 >/afs/.abc.com</B
5478 ></SPAN
5479 >). For
5480                   further discussion of the concept of read/write and read-only paths through the filespace, see <A
5481 HREF="c8420.html#HDRWQ209"
5482 >The Rules of Mount Point Traversal</A
5483 >.</P
5484 ></DD
5485 ></DL
5486 ></DIV
5487 ></P
5488 ></LI
5489 ></OL
5490 ></DIV
5491 ></DIV
5492 ><DIV
5493 CLASS="sect1"
5494 ><H1
5495 CLASS="sect1"
5496 ><A
5497 NAME="HDRWQ216"
5498 >Displaying Information About Volumes</A
5499 ></H1
5500 ><P
5501 >This section explains how to display information about volumes. If you know a volume's name or volume ID number, there are
5502     commands for displaying its VLDB entry, its volume header, or both. Other commands display the name or location of the volume
5503     that contains a specified file or directory.</P
5504 ><P
5505 >For instructions on displaying a volume's quota, see <A
5506 HREF="c8420.html#HDRWQ234"
5507 >Setting and Displaying Volume Quota and
5508     Current Size</A
5509 >.</P
5510 ><DIV
5511 CLASS="sect2"
5512 ><H2
5513 CLASS="sect2"
5514 ><A
5515 NAME="HDRWQ217"
5516 >Displaying VLDB Entries</A
5517 ></H2
5518 ><P
5519 >The <SPAN
5520 CLASS="bold"
5521 ><B
5522 CLASS="emphasis"
5523 >vos listvldb</B
5524 ></SPAN
5525 > command displays the VLDB entry for the volumes indicated by the
5526       combination of arguments you provide. The possibilities are listed here from most to least inclusive: <UL
5527 ><LI
5528 ><P
5529 >To display every entry in the VLDB, provide no arguments. It can take a long time to generate the output,
5530             depending on the number of entries.</P
5531 ></LI
5532 ><LI
5533 ><P
5534 >To display every VLDB entry that mentions a specific file server machine as the site of a volume, specify the
5535             machine's name with the <SPAN
5536 CLASS="bold"
5537 ><B
5538 CLASS="emphasis"
5539 >-server</B
5540 ></SPAN
5541 > argument.</P
5542 ></LI
5543 ><LI
5544 ><P
5545 >To display every VLDB entry that mentions a certain partition on any file server machine as the site of a volume,
5546             specify the partition name with the <SPAN
5547 CLASS="bold"
5548 ><B
5549 CLASS="emphasis"
5550 >-partition</B
5551 ></SPAN
5552 > argument.</P
5553 ></LI
5554 ><LI
5555 ><P
5556 >To display every VLDB entry that mentions a certain partition on a certain file server machine as the site of a
5557             volume, combine the <SPAN
5558 CLASS="bold"
5559 ><B
5560 CLASS="emphasis"
5561 >-server</B
5562 ></SPAN
5563 > and <SPAN
5564 CLASS="bold"
5565 ><B
5566 CLASS="emphasis"
5567 >-partition</B
5568 ></SPAN
5569 >
5570             arguments.</P
5571 ></LI
5572 ><LI
5573 ><P
5574 >To display a single VLDB entry, specify a volume name or ID number with the <SPAN
5575 CLASS="bold"
5576 ><B
5577 CLASS="emphasis"
5578 >-name</B
5579 ></SPAN
5580 >
5581             argument.</P
5582 ></LI
5583 ><LI
5584 ><P
5585 >To display the VLDB entry only for volumes with locked VLDB entries, use the <SPAN
5586 CLASS="bold"
5587 ><B
5588 CLASS="emphasis"
5589 >-locked</B
5590 ></SPAN
5591 > flag with any of the site definitions mentioned previously.</P
5592 ></LI
5593 ></UL
5594 ></P
5595 ></DIV
5596 ><DIV
5597 CLASS="sect2"
5598 ><H2
5599 CLASS="sect2"
5600 ><A
5601 NAME="HDRWQ218"
5602 >To display VLDB entries</A
5603 ></H2
5604 ><OL
5605 TYPE="1"
5606 ><LI
5607 ><P
5608 >Issue the <SPAN
5609 CLASS="bold"
5610 ><B
5611 CLASS="emphasis"
5612 >vos listvldb</B
5613 ></SPAN
5614 > command. <PRE
5615 CLASS="programlisting"
5616 >&#13;   % <SPAN
5617 CLASS="bold"
5618 ><B
5619 CLASS="emphasis"
5620 >vos listvldb</B
5621 ></SPAN
5622 > [<SPAN
5623 CLASS="bold"
5624 ><B
5625 CLASS="emphasis"
5626 >-name</B
5627 ></SPAN
5628 > &#60;<VAR
5629 CLASS="replaceable"
5630 >volume name or ID</VAR
5631 >&#62;] [<SPAN
5632 CLASS="bold"
5633 ><B
5634 CLASS="emphasis"
5635 >-server</B
5636 ></SPAN
5637 > &#60;<VAR
5638 CLASS="replaceable"
5639 >machine name</VAR
5640 >&#62;] \
5641         [<SPAN
5642 CLASS="bold"
5643 ><B
5644 CLASS="emphasis"
5645 >-partition</B
5646 ></SPAN
5647 > &#60;<VAR
5648 CLASS="replaceable"
5649 >partition name</VAR
5650 >&#62;] [<SPAN
5651 CLASS="bold"
5652 ><B
5653 CLASS="emphasis"
5654 >-locked</B
5655 ></SPAN
5656 >]
5657 </PRE
5658 ></P
5659 ><P
5660 >where <DIV
5661 CLASS="variablelist"
5662 ><DL
5663 ><DT
5664 ><SPAN
5665 CLASS="bold"
5666 ><B
5667 CLASS="emphasis"
5668 >listvl</B
5669 ></SPAN
5670 ></DT
5671 ><DD
5672 ><P
5673 >Is the shortest acceptable abbreviation of <SPAN
5674 CLASS="bold"
5675 ><B
5676 CLASS="emphasis"
5677 >listvldb</B
5678 ></SPAN
5679 >.</P
5680 ></DD
5681 ><DT
5682 ><SPAN
5683 CLASS="bold"
5684 ><B
5685 CLASS="emphasis"
5686 >-name</B
5687 ></SPAN
5688 ></DT
5689 ><DD
5690 ><P
5691 >Identifies one volume either by its complete name or volume ID number. Do not combine this argument with the
5692                   <SPAN
5693 CLASS="bold"
5694 ><B
5695 CLASS="emphasis"
5696 >-server</B
5697 ></SPAN
5698 > or <SPAN
5699 CLASS="bold"
5700 ><B
5701 CLASS="emphasis"
5702 >-partition</B
5703 ></SPAN
5704 > arguments.</P
5705 ></DD
5706 ><DT
5707 ><SPAN
5708 CLASS="bold"
5709 ><B
5710 CLASS="emphasis"
5711 >-server</B
5712 ></SPAN
5713 ></DT
5714 ><DD
5715 ><P
5716 >Specifies a file server machine. Combine this argument with the <SPAN
5717 CLASS="bold"
5718 ><B
5719 CLASS="emphasis"
5720 >-partition</B
5721 ></SPAN
5722 >
5723                   argument if desired, but not with the <SPAN
5724 CLASS="bold"
5725 ><B
5726 CLASS="emphasis"
5727 >-name</B
5728 ></SPAN
5729 > argument.</P
5730 ></DD
5731 ><DT
5732 ><SPAN
5733 CLASS="bold"
5734 ><B
5735 CLASS="emphasis"
5736 >-partition</B
5737 ></SPAN
5738 ></DT
5739 ><DD
5740 ><P
5741 >Specifies a partition. Combine this argument with the <SPAN
5742 CLASS="bold"
5743 ><B
5744 CLASS="emphasis"
5745 >-server</B
5746 ></SPAN
5747 > argument if
5748                   desired, but not with the <SPAN
5749 CLASS="bold"
5750 ><B
5751 CLASS="emphasis"
5752 >-name</B
5753 ></SPAN
5754 > argument.</P
5755 ></DD
5756 ><DT
5757 ><SPAN
5758 CLASS="bold"
5759 ><B
5760 CLASS="emphasis"
5761 >-locked</B
5762 ></SPAN
5763 ></DT
5764 ><DD
5765 ><P
5766 >Displays only locked VLDB entries. Combine this flag with any of the other options.</P
5767 ></DD
5768 ></DL
5769 ></DIV
5770 ></P
5771 ></LI
5772 ></OL
5773 ><P
5774 >The VLDB entry for each volume includes the following information: <UL
5775 ><LI
5776 ><P
5777 >The base (read/write) volume name. The read-only and backup versions have the same name with a <SPAN
5778 CLASS="bold"
5779 ><B
5780 CLASS="emphasis"
5781 >.readonly</B
5782 ></SPAN
5783 > and <SPAN
5784 CLASS="bold"
5785 ><B
5786 CLASS="emphasis"
5787 >.backup</B
5788 ></SPAN
5789 > extension, respectively.</P
5790 ></LI
5791 ><LI
5792 ><P
5793 >The volume ID numbers allocated to the versions of the volume that actually exist, in fields labeled
5794             <SAMP
5795 CLASS="computeroutput"
5796 >RWrite</SAMP
5797 > for the read/write, <SAMP
5798 CLASS="computeroutput"
5799 >ROnly</SAMP
5800 > for the read-only,
5801             <SAMP
5802 CLASS="computeroutput"
5803 >Backup</SAMP
5804 > for the backup, and <SAMP
5805 CLASS="computeroutput"
5806 >RClone</SAMP
5807 > for the
5808             ReleaseClone. (If a field does not appear, the corresponding version of the volume does not exist.) The appearance of
5809             the <SAMP
5810 CLASS="computeroutput"
5811 >RClone</SAMP
5812 > field normally indicates that a release operation did not complete
5813             successfully; the <SAMP
5814 CLASS="computeroutput"
5815 >Old release</SAMP
5816 > and <SAMP
5817 CLASS="computeroutput"
5818 >New release</SAMP
5819 > flags
5820             often also appear on one or more of the site definition lines described just following.</P
5821 ></LI
5822 ><LI
5823 ><P
5824 >The number of sites that house a read/write or read-only copy of the volume, following the string
5825             <SAMP
5826 CLASS="computeroutput"
5827 >number of sites -&#62;</SAMP
5828 >.</P
5829 ></LI
5830 ><LI
5831 ><P
5832 >A line for each site that houses a read/write or read-only copy of the volume, specifying the file server machine,
5833             partition, and type of volume (<SAMP
5834 CLASS="computeroutput"
5835 >RW</SAMP
5836 > for read/write or <SAMP
5837 CLASS="computeroutput"
5838 >RO</SAMP
5839 >
5840             for read-only). If a backup version exists, it is understood to share the read/write site. Several flags can appear with
5841             a site definition: <DIV
5842 CLASS="variablelist"
5843 ><DL
5844 ><DT
5845 ><SAMP
5846 CLASS="computeroutput"
5847 >Not released</SAMP
5848 ></DT
5849 ><DD
5850 ><P
5851 >Indicates that the <SPAN
5852 CLASS="bold"
5853 ><B
5854 CLASS="emphasis"
5855 >vos release</B
5856 ></SPAN
5857 > command has not been issued since the
5858                     <SPAN
5859 CLASS="bold"
5860 ><B
5861 CLASS="emphasis"
5862 >vos addsite</B
5863 ></SPAN
5864 > command was used to define the read-only site.</P
5865 ></DD
5866 ><DT
5867 ><SAMP
5868 CLASS="computeroutput"
5869 >Old release</SAMP
5870 ></DT
5871 ><DD
5872 ><P
5873 >Indicates that a <SPAN
5874 CLASS="bold"
5875 ><B
5876 CLASS="emphasis"
5877 >vos release</B
5878 ></SPAN
5879 > command did not complete successfully,
5880                     leaving the previous, obsolete version of the volume at this site.</P
5881 ></DD
5882 ><DT
5883 ><SAMP
5884 CLASS="computeroutput"
5885 >New release</SAMP
5886 ></DT
5887 ><DD
5888 ><P
5889 >Indicates that a <SPAN
5890 CLASS="bold"
5891 ><B
5892 CLASS="emphasis"
5893 >vos release</B
5894 ></SPAN
5895 > command did not complete successfully, but
5896                     that this site did receive the correct new version of the volume.</P
5897 ></DD
5898 ></DL
5899 ></DIV
5900 ></P
5901 ></LI
5902 ><LI
5903 ><P
5904 >If the VLDB entry is locked, the string <SAMP
5905 CLASS="computeroutput"
5906 >Volume is currently LOCKED</SAMP
5907 >.</P
5908 ></LI
5909 ></UL
5910 ></P
5911 ><P
5912 >For further discussion of the <SAMP
5913 CLASS="computeroutput"
5914 >New release</SAMP
5915 > and <SAMP
5916 CLASS="computeroutput"
5917 >Old
5918       release</SAMP
5919 > flags, see <A
5920 HREF="c8420.html#HDRWQ192"
5921 >Replicating Volumes (Creating Read-only Volumes)</A
5922 >.</P
5923 ><P
5924 >An example of this command and its output for a single volume:</P
5925 ><PRE
5926 CLASS="programlisting"
5927 >&#13;   % <SPAN
5928 CLASS="bold"
5929 ><B
5930 CLASS="emphasis"
5931 >vos listvldb user.terry</B
5932 ></SPAN
5933 >
5934    user.terry
5935        RWrite: 50489902    Backup: 50489904
5936        number of sites -&#62; 1
5937           server fs3.abc.com partition /vicepc RW Site
5938 </PRE
5939 ></DIV
5940 ><DIV
5941 CLASS="sect2"
5942 ><H2
5943 CLASS="sect2"
5944 ><A
5945 NAME="HDRWQ219"
5946 >Displaying Volume Headers</A
5947 ></H2
5948 ><P
5949 >The <SPAN
5950 CLASS="bold"
5951 ><B
5952 CLASS="emphasis"
5953 >vos listvol</B
5954 ></SPAN
5955 > command displays the volume header for every volume on one or all
5956       partitions on a file server machine. The <SPAN
5957 CLASS="bold"
5958 ><B
5959 CLASS="emphasis"
5960 >vos</B
5961 ></SPAN
5962 > command interpreter obtains the information from
5963       the Volume Server on the specified machine. You can control the amount of information displayed by including one of the
5964       <SPAN
5965 CLASS="bold"
5966 ><B
5967 CLASS="emphasis"
5968 >-fast</B
5969 ></SPAN
5970 >, the <SPAN
5971 CLASS="bold"
5972 ><B
5973 CLASS="emphasis"
5974 >-long</B
5975 ></SPAN
5976 >, or the <SPAN
5977 CLASS="bold"
5978 ><B
5979 CLASS="emphasis"
5980 >-extended</B
5981 ></SPAN
5982 > flags described following the instructions in <A
5983 HREF="c8420.html#HDRWQ220"
5984 >To display volume
5985       headers</A
5986 >.</P
5987 ><P
5988 >To display a single volume's volume header of one volume only, use the <SPAN
5989 CLASS="bold"
5990 ><B
5991 CLASS="emphasis"
5992 >vos examine</B
5993 ></SPAN
5994 >
5995       command as described in <A
5996 HREF="c8420.html#HDRWQ221"
5997 >Displaying One Volume's VLDB Entry and Volume Header</A
5998 >.</P
5999 ></DIV
6000 ><DIV
6001 CLASS="sect2"
6002 ><H2
6003 CLASS="sect2"
6004 ><A
6005 NAME="HDRWQ220"
6006 >To display volume headers</A
6007 ></H2
6008 ><OL
6009 TYPE="1"
6010 ><LI
6011 ><P
6012 >Issue the <SPAN
6013 CLASS="bold"
6014 ><B
6015 CLASS="emphasis"
6016 >vos listvol</B
6017 ></SPAN
6018 > command. <PRE
6019 CLASS="programlisting"
6020 >&#13;   % <SPAN
6021 CLASS="bold"
6022 ><B
6023 CLASS="emphasis"
6024 >vos listvol</B
6025 ></SPAN
6026 > &#60;<VAR
6027 CLASS="replaceable"
6028 >machine name</VAR
6029 >&#62; [&#60;<VAR
6030 CLASS="replaceable"
6031 >partition name</VAR
6032 >&#62;] [<SPAN
6033 CLASS="bold"
6034 ><B
6035 CLASS="emphasis"
6036 >-fast</B
6037 ></SPAN
6038 >] [<SPAN
6039 CLASS="bold"
6040 ><B
6041 CLASS="emphasis"
6042 >-long</B
6043 ></SPAN
6044 >] [<SPAN
6045 CLASS="bold"
6046 ><B
6047 CLASS="emphasis"
6048 >-extended</B
6049 ></SPAN
6050 >]
6051 </PRE
6052 ></P
6053 ><P
6054 >where <DIV
6055 CLASS="variablelist"
6056 ><DL
6057 ><DT
6058 ><SPAN
6059 CLASS="bold"
6060 ><B
6061 CLASS="emphasis"
6062 >listvo</B
6063 ></SPAN
6064 ></DT
6065 ><DD
6066 ><P
6067 >Is the shortest acceptable abbreviation of <SPAN
6068 CLASS="bold"
6069 ><B
6070 CLASS="emphasis"
6071 >listvol</B
6072 ></SPAN
6073 >.</P
6074 ></DD
6075 ><DT
6076 ><SPAN
6077 CLASS="bold"
6078 ><B
6079 CLASS="emphasis"
6080 >machine name</B
6081 ></SPAN
6082 ></DT
6083 ><DD
6084 ><P
6085 >Names the file server machine for which to display volume headers. Provide this argument alone or with the
6086                   partition name argument.</P
6087 ></DD
6088 ><DT
6089 ><SPAN
6090 CLASS="bold"
6091 ><B
6092 CLASS="emphasis"
6093 >partition name</B
6094 ></SPAN
6095 ></DT
6096 ><DD
6097 ><P
6098 >Names one partition on the file server machine named by the machine name argument, which must be provided
6099                   along with this one.</P
6100 ></DD
6101 ><DT
6102 ><SPAN
6103 CLASS="bold"
6104 ><B
6105 CLASS="emphasis"
6106 >-fast</B
6107 ></SPAN
6108 ></DT
6109 ><DD
6110 ><P
6111 >Displays only the volume ID numbers of relevant volumes. Do not combine this flag with the <SPAN
6112 CLASS="bold"
6113 ><B
6114 CLASS="emphasis"
6115 >-long</B
6116 ></SPAN
6117 > or <SPAN
6118 CLASS="bold"
6119 ><B
6120 CLASS="emphasis"
6121 >-extended</B
6122 ></SPAN
6123 > flag.</P
6124 ></DD
6125 ><DT
6126 ><SPAN
6127 CLASS="bold"
6128 ><B
6129 CLASS="emphasis"
6130 >-long</B
6131 ></SPAN
6132 ></DT
6133 ><DD
6134 ><P
6135 >Displays more detailed information about each volume. Do not combine this flag with the <SPAN
6136 CLASS="bold"
6137 ><B
6138 CLASS="emphasis"
6139 >-fast</B
6140 ></SPAN
6141 > or <SPAN
6142 CLASS="bold"
6143 ><B
6144 CLASS="emphasis"
6145 >-extended</B
6146 ></SPAN
6147 > flag.</P
6148 ></DD
6149 ><DT
6150 ><SPAN
6151 CLASS="bold"
6152 ><B
6153 CLASS="emphasis"
6154 >-extended</B
6155 ></SPAN
6156 ></DT
6157 ><DD
6158 ><P
6159 >Displays all of the information displayed by the <SPAN
6160 CLASS="bold"
6161 ><B
6162 CLASS="emphasis"
6163 >-long</B
6164 ></SPAN
6165 > flag, plus tables of
6166                   statistics about reads and writes to the files in the volume. Do not combine this flag with the <SPAN
6167 CLASS="bold"
6168 ><B
6169 CLASS="emphasis"
6170 >-fast</B
6171 ></SPAN
6172 > or <SPAN
6173 CLASS="bold"
6174 ><B
6175 CLASS="emphasis"
6176 >-long</B
6177 ></SPAN
6178 > flag.</P
6179 ></DD
6180 ></DL
6181 ></DIV
6182 ></P
6183 ></LI
6184 ></OL
6185 ><P
6186 >The output is ordered alphabetically by volume name and by default provides the following information on a single line
6187       for each volume: <UL
6188 ><LI
6189 ><P
6190 >Name</P
6191 ></LI
6192 ><LI
6193 ><P
6194 >Volume ID number</P
6195 ></LI
6196 ><LI
6197 ><P
6198 >Type (the flag is <SAMP
6199 CLASS="computeroutput"
6200 >RW</SAMP
6201 > for read/write, <SAMP
6202 CLASS="computeroutput"
6203 >RO</SAMP
6204 > for
6205             read-only, <SAMP
6206 CLASS="computeroutput"
6207 >BK</SAMP
6208 > for backup)</P
6209 ></LI
6210 ><LI
6211 ><P
6212 >Size in kilobytes (<SAMP
6213 CLASS="computeroutput"
6214 >1024</SAMP
6215 > equals a megabyte)</P
6216 ></LI
6217 ><LI
6218 ><P
6219 >Number of files in the volume, if the <SPAN
6220 CLASS="bold"
6221 ><B
6222 CLASS="emphasis"
6223 >-extended</B
6224 ></SPAN
6225 > flag is provided</P
6226 ></LI
6227 ><LI
6228 ><P
6229 >Status on the file server machine, which is one of the following: <DIV
6230 CLASS="variablelist"
6231 ><DL
6232 ><DT
6233 ><SAMP
6234 CLASS="computeroutput"
6235 >On-line</SAMP
6236 ></DT
6237 ><DD
6238 ><P
6239 >The volume is completely accessible to Cache Managers.</P
6240 ></DD
6241 ><DT
6242 ><SAMP
6243 CLASS="computeroutput"
6244 >Off-line</SAMP
6245 ></DT
6246 ><DD
6247 ><P
6248 >The volume is not accessible to Cache Managers, but does not seem to be corrupted. This status appears
6249                     while a volume is being dumped, for example.</P
6250 ></DD
6251 ><DT
6252 ><SAMP
6253 CLASS="computeroutput"
6254 >Off-line**needs salvage**</SAMP
6255 ></DT
6256 ><DD
6257 ><P
6258 >The volume is not accessible to Cache Managers, because it seems to be corrupted. Use the <SPAN
6259 CLASS="bold"
6260 ><B
6261 CLASS="emphasis"
6262 >bos salvage</B
6263 ></SPAN
6264 > or <SPAN
6265 CLASS="bold"
6266 ><B
6267 CLASS="emphasis"
6268 >salvager</B
6269 ></SPAN
6270 > command to repair the
6271                     corruption.</P
6272 ></DD
6273 ></DL
6274 ></DIV
6275 ></P
6276 ></LI
6277 ></UL
6278 ></P
6279 ><P
6280 >If the following message appears instead of the previously listed information, it indicates that a volume is not
6281       accessible to Cache Managers or the <SPAN
6282 CLASS="bold"
6283 ><B
6284 CLASS="emphasis"
6285 >vos</B
6286 ></SPAN
6287 > command interpreter, for example because a clone is
6288       being created.</P
6289 ><PRE
6290 CLASS="programlisting"
6291 >&#13;   **** Volume volume_ID is busy ****
6292 </PRE
6293 ><P
6294 >If the following message appears instead of the previously listed information, it indicates that the File Server is
6295       unable to attach the volume, perhaps because it is seriously corrupted. The <SPAN
6296 CLASS="bold"
6297 ><B
6298 CLASS="emphasis"
6299 >FileLog</B
6300 ></SPAN
6301 > and
6302       <SPAN
6303 CLASS="bold"
6304 ><B
6305 CLASS="emphasis"
6306 >VolserLog</B
6307 ></SPAN
6308 > log files in the <SPAN
6309 CLASS="bold"
6310 ><B
6311 CLASS="emphasis"
6312 >/usr/afs/logs</B
6313 ></SPAN
6314 > directory on the
6315       file server machine possibly provide additional information; use the <SPAN
6316 CLASS="bold"
6317 ><B
6318 CLASS="emphasis"
6319 >bos getlog</B
6320 ></SPAN
6321 > command to
6322       display them.</P
6323 ><PRE
6324 CLASS="programlisting"
6325 >&#13;   **** Could not attach volume volume_ID ****
6326 </PRE
6327 ><P
6328 >(For instructions on salvaging a corrupted or unattached volume, see <A
6329 HREF="c8420.html#HDRWQ232"
6330 >Salvaging
6331       Volumes</A
6332 >.)</P
6333 ><P
6334 >The information about individual volumes is bracketed by summary lines. The first line of output specifies the number of
6335       volumes in the listing. The last line of output summarizes the number of volumes that are online, offline, and busy, as in the
6336       following example:</P
6337 ><PRE
6338 CLASS="programlisting"
6339 >&#13;   % <SPAN
6340 CLASS="bold"
6341 ><B
6342 CLASS="emphasis"
6343 >vos listvol  fs2.abc.com /vicepb</B
6344 ></SPAN
6345 >
6346    Total number of volumes on server fs2.abc.com \
6347                                        partition /vicepb : 66
6348    sys                  1969534847 RW       1582 K On-line
6349    sys.backup           1969535105 BK       1582 K On-line
6350          .                   .     .         .   .    .
6351          .                   .     .         .   .    .
6352    user.pat             1969534536 RW      17518 K On-line
6353    user.pat.backup      1969534538 BK      17537 K On-line
6354    Total volumes onLine 66 ; Total volumes offLine 0 ;  Total busy 0
6355 </PRE
6356 ><P
6357 ><SPAN
6358 CLASS="bold"
6359 ><B
6360 CLASS="emphasis"
6361 >Output with the -fast Flag</B
6362 ></SPAN
6363 ></P
6364 ><P
6365 >If you include the <SPAN
6366 CLASS="bold"
6367 ><B
6368 CLASS="emphasis"
6369 >-fast</B
6370 ></SPAN
6371 > flag displays only the volume ID number of each volume,
6372       arranged in increasing numerical order, as in the following example. The final line (which summarizes the number of on-line,
6373       off-line, and busy volumes) is omitted.</P
6374 ><PRE
6375 CLASS="programlisting"
6376 >&#13;   % <SPAN
6377 CLASS="bold"
6378 ><B
6379 CLASS="emphasis"
6380 >vos listvol fs3.abc.com /vicepa -f</B
6381 ></SPAN
6382 >
6383    Total number of volumes on server fs3.abc.com  \
6384                                        partition /vicepa: 37
6385    50489902
6386    50489904
6387       .
6388       .
6389    35970325
6390    49732810
6391 </PRE
6392 ><P
6393 ><SPAN
6394 CLASS="bold"
6395 ><B
6396 CLASS="emphasis"
6397 >Output with the -long Flag</B
6398 ></SPAN
6399 ></P
6400 ><P
6401 >When you include the <SPAN
6402 CLASS="bold"
6403 ><B
6404 CLASS="emphasis"
6405 >-long</B
6406 ></SPAN
6407 > flag, , the output for each volume includes all of the
6408       information in the default listing plus the following. Each item in this list corresponds to a separate line of output:
6409       <UL
6410 ><LI
6411 ><P
6412 >The file server machine and partition that house the volume, as determined by the command interpreter as the
6413             command runs, rather than derived from the VLDB or the volume header.</P
6414 ></LI
6415 ><LI
6416 ><P
6417 >The volume ID numbers associated with the various versions of the volume: read/write
6418             (<SAMP
6419 CLASS="computeroutput"
6420 >RWrite</SAMP
6421 >), read-only (<SAMP
6422 CLASS="computeroutput"
6423 >ROnly</SAMP
6424 >), backup
6425             (<SAMP
6426 CLASS="computeroutput"
6427 >Backup</SAMP
6428 >), and ReleaseClone (<SAMP
6429 CLASS="computeroutput"
6430 >RClone</SAMP
6431 >). One of them
6432             matches the volume ID number that appears on the first line of the volume's output. If the value in the
6433             <SAMP
6434 CLASS="computeroutput"
6435 >RWrite</SAMP
6436 >, <SAMP
6437 CLASS="computeroutput"
6438 >ROnly</SAMP
6439 >, or
6440             <SAMP
6441 CLASS="computeroutput"
6442 >Backup</SAMP
6443 > field is <SAMP
6444 CLASS="computeroutput"
6445 >0</SAMP
6446 > (zero), there is no volume of that
6447             type. If there is currently no ReleaseClone, the <SAMP
6448 CLASS="computeroutput"
6449 >RClone</SAMP
6450 > field does not appear at
6451             all.</P
6452 ></LI
6453 ><LI
6454 ><P
6455 >The maximum space quota allotted to the read/write copy of the volume, expressed in kilobyte blocks in the
6456             <SAMP
6457 CLASS="computeroutput"
6458 >MaxQuota</SAMP
6459 > field.</P
6460 ></LI
6461 ><LI
6462 ><P
6463 >The date and time the volume was created, in the <SAMP
6464 CLASS="computeroutput"
6465 >Creation</SAMP
6466 > field. If the volume
6467             has been restored with the <SPAN
6468 CLASS="bold"
6469 ><B
6470 CLASS="emphasis"
6471 >backup diskrestore</B
6472 ></SPAN
6473 >, <SPAN
6474 CLASS="bold"
6475 ><B
6476 CLASS="emphasis"
6477 >backup
6478             volrestore</B
6479 ></SPAN
6480 >, or <SPAN
6481 CLASS="bold"
6482 ><B
6483 CLASS="emphasis"
6484 >vos restore</B
6485 ></SPAN
6486 > command, this is the restore time.</P
6487 ></LI
6488 ><LI
6489 ><P
6490 >The date and time when the contents of the volume last changed, in the <SAMP
6491 CLASS="computeroutput"
6492 >Last
6493             Update</SAMP
6494 > field. For read-only and backup volumes, it matches the timestamp in the
6495             <SAMP
6496 CLASS="computeroutput"
6497 >Creation</SAMP
6498 > field.</P
6499 ></LI
6500 ><LI
6501 ><P
6502 >The number of times the volume has been accessed for a fetch or store operation since the later of the two
6503             following times: <UL
6504 ><LI
6505 ><P
6506 >12:00 a.m. on the day the command is issued</P
6507 ></LI
6508 ><LI
6509 ><P
6510 >The last time the volume changed location</P
6511 ></LI
6512 ></UL
6513 ></P
6514 ></LI
6515 ></UL
6516 ></P
6517 ><P
6518 >An example of the output when the <SPAN
6519 CLASS="bold"
6520 ><B
6521 CLASS="emphasis"
6522 >-long</B
6523 ></SPAN
6524 > flag is included:</P
6525 ><PRE
6526 CLASS="programlisting"
6527 >&#13;   % <SPAN
6528 CLASS="bold"
6529 ><B
6530 CLASS="emphasis"
6531 >vos listvol fs2.abc.com b -long</B
6532 ></SPAN
6533 >
6534    Total number of volumes on server fs2.abc.com
6535                                        partition /vicepb: 66
6536          .                   .      .         .   .    .
6537          .                   .      .         .   .    .
6538    user.pat             1969534536 RW      17518 K On-line
6539         fs2.abc.com /vicepb
6540         RWrite 1969534536 ROnly 0        Backup 1969534538
6541         MaxQuota      20000 K
6542         Creation    Mon Jun 12 09:02:25 1989
6543         Last Update Thu Jan  4 17:39:34 1990
6544         1573 accesses in the past day (i.e., vnode references)
6545    user.pat.backup      1969534538 BK      17537 K On-line
6546         fs2.abc.com /vicepb
6547         RWrite 1969534536 ROnly 0        Backup 1969534538
6548         MaxQuota      20000 K
6549         Creation    Fri Jan  5 06:37:59 1990
6550         Last Update Fri Jan  5 06:37:59 1990
6551         0 accesses in the past day (i.e., vnode references)
6552             .               .         .     .       .
6553             .               .         .     .       .
6554    Total volumes onLine 66 ; Total volumes offLine 0 ; Total busy 0
6555 </PRE
6556 ><P
6557 ><SPAN
6558 CLASS="bold"
6559 ><B
6560 CLASS="emphasis"
6561 >Output with the -extended Flag</B
6562 ></SPAN
6563 ></P
6564 ><P
6565 >When you include the <SPAN
6566 CLASS="bold"
6567 ><B
6568 CLASS="emphasis"
6569 >-extended</B
6570 ></SPAN
6571 > flag, the output for each volume includes all of the
6572       information reported with the <SPAN
6573 CLASS="bold"
6574 ><B
6575 CLASS="emphasis"
6576 >-long</B
6577 ></SPAN
6578 > flag, plus two tables of statistics: <UL
6579 ><LI
6580 ><P
6581 >The table labeled <SAMP
6582 CLASS="computeroutput"
6583 >Raw Read/Write Stats</SAMP
6584 > table summarizes the number of times the
6585             volume has been accessed for reading or writing.</P
6586 ></LI
6587 ><LI
6588 ><P
6589 >The table labeled <SAMP
6590 CLASS="computeroutput"
6591 >Writes Affecting Authorship</SAMP
6592 > table contains information on
6593             writes made to files and directories in the specified volume.</P
6594 ></LI
6595 ></UL
6596 ></P
6597 ><P
6598 >An example of the output when the <SPAN
6599 CLASS="bold"
6600 ><B
6601 CLASS="emphasis"
6602 >-extended</B
6603 ></SPAN
6604 > flag is included:</P
6605 ><PRE
6606 CLASS="programlisting"
6607 >&#13;   % <SPAN
6608 CLASS="bold"
6609 ><B
6610 CLASS="emphasis"
6611 >vos listvol fs3.abc.com a -extended</B
6612 ></SPAN
6613 >
6614    common.bboards   1969535592 RW    23149 K used 9401 files On-line
6615        fs3.abc.com /vicepa
6616        RWrite 1969535592 ROnly          0 Backup 1969535594
6617        MaxQuota      30000 K
6618        Creation    Mon Mar  8 14:26:05 1999
6619        Last Update Mon Apr 26 09:20:43 1999
6620        11533 accesses in the past day (i.e., vnode references)
6621                          Raw Read/Write Stats
6622              |-------------------------------------------|
6623              |    Same Network     |    Diff Network     |
6624              |----------|----------|----------|----------|
6625              |  Total   |   Auth   |   Total  |   Auth   |
6626              |----------|----------|----------|----------|
6627    Reads     |      151 |      151 |     1092 |     1068 |
6628    Writes    |        3 |        3 |      324 |      324 |
6629              |-------------------------------------------|
6630                       Writes Affecting Authorship
6631              |-------------------------------------------|
6632              |   File Authorship   | Directory Authorship|
6633              |----------|----------|----------|----------|
6634              |   Same   |   Diff   |    Same  |   Diff   |
6635              |----------|----------|----------|----------|
6636    0-60 sec  |       92 |        0 |      100 |        4 |
6637    1-10 min  |        1 |        0 |       14 |        6 |
6638    10min-1hr |        0 |        0 |       19 |        4 |
6639    1hr-1day  |        1 |        0 |       13 |        0 |
6640    1day-1wk  |        1 |        0 |        1 |        0 |
6641    &#62; 1wk     |        0 |        0 |        0 |        0 |
6642              |-------------------------------------------|
6643 </PRE
6644 ></DIV
6645 ><DIV
6646 CLASS="sect2"
6647 ><H2
6648 CLASS="sect2"
6649 ><A
6650 NAME="HDRWQ221"
6651 >Displaying One Volume's VLDB Entry and Volume Header</A
6652 ></H2
6653 ><P
6654 >The <SPAN
6655 CLASS="bold"
6656 ><B
6657 CLASS="emphasis"
6658 >vos examine</B
6659 ></SPAN
6660 > command displays information from both the VLDB and the volume header
6661       for a single volume. There is some redundancy in the information from the two sources, which allows you to compare the VLDB
6662       and volume header.</P
6663 ><P
6664 >Because the volume header for each version of a volume (read/write, read-only, and backup) is different, you can specify
6665       which one to display. Include the <SPAN
6666 CLASS="bold"
6667 ><B
6668 CLASS="emphasis"
6669 >.readonly</B
6670 ></SPAN
6671 > or <SPAN
6672 CLASS="bold"
6673 ><B
6674 CLASS="emphasis"
6675 >.backup</B
6676 ></SPAN
6677 >
6678       extension on the volume name or ID argument as appropriate. The information from the VLDB is the same for all three
6679       versions.</P
6680 ></DIV
6681 ><DIV
6682 CLASS="sect2"
6683 ><H2
6684 CLASS="sect2"
6685 ><A
6686 NAME="HDRWQ222"
6687 >To display one volume's VLDB entry and volume header</A
6688 ></H2
6689 ><OL
6690 TYPE="1"
6691 ><LI
6692 ><P
6693 >Issue the <SPAN
6694 CLASS="bold"
6695 ><B
6696 CLASS="emphasis"
6697 >vos examine</B
6698 ></SPAN
6699 > command. <PRE
6700 CLASS="programlisting"
6701 >&#13;   % <SPAN
6702 CLASS="bold"
6703 ><B
6704 CLASS="emphasis"
6705 >vos examine</B
6706 ></SPAN
6707 > &#60;<VAR
6708 CLASS="replaceable"
6709 >volume name or ID</VAR
6710 >&#62;
6711 </PRE
6712 ></P
6713 ><P
6714 >where <DIV
6715 CLASS="variablelist"
6716 ><DL
6717 ><DT
6718 ><SPAN
6719 CLASS="bold"
6720 ><B
6721 CLASS="emphasis"
6722 >e</B
6723 ></SPAN
6724 ></DT
6725 ><DD
6726 ><P
6727 >Is the shortest acceptable abbreviation of <SPAN
6728 CLASS="bold"
6729 ><B
6730 CLASS="emphasis"
6731 >examine</B
6732 ></SPAN
6733 >.</P
6734 ></DD
6735 ><DT
6736 ><SPAN
6737 CLASS="bold"
6738 ><B
6739 CLASS="emphasis"
6740 >volume name or ID</B
6741 ></SPAN
6742 ></DT
6743 ><DD
6744 ><P
6745 >Identifies one volume either by its complete name or volume ID number. It can be a read/write, read-only, or
6746                   backup type. Use the <SPAN
6747 CLASS="bold"
6748 ><B
6749 CLASS="emphasis"
6750 >.backup</B
6751 ></SPAN
6752 > or <SPAN
6753 CLASS="bold"
6754 ><B
6755 CLASS="emphasis"
6756 >.readonly</B
6757 ></SPAN
6758 >
6759                   extension if appropriate.</P
6760 ></DD
6761 ></DL
6762 ></DIV
6763 ></P
6764 ></LI
6765 ></OL
6766 ><P
6767 >The top part of the output displays the same information from a volume header as the <SPAN
6768 CLASS="bold"
6769 ><B
6770 CLASS="emphasis"
6771 >vos
6772       listvol</B
6773 ></SPAN
6774 > command with the <SPAN
6775 CLASS="bold"
6776 ><B
6777 CLASS="emphasis"
6778 >-long</B
6779 ></SPAN
6780 > flag, as described following the instructions in
6781       <A
6782 HREF="c8420.html#HDRWQ220"
6783 >To display volume headers</A
6784 >. If you specify the read-only version of the volume and it exists at
6785       more than one site, the output includes all of them. The bottom part of the output lists the same information from the VLDB as
6786       the <SPAN
6787 CLASS="bold"
6788 ><B
6789 CLASS="emphasis"
6790 >vos listvldb</B
6791 ></SPAN
6792 > command, as described following the instructions in <A
6793 HREF="c8420.html#HDRWQ218"
6794 >To display VLDB entries</A
6795 >.</P
6796 ><P
6797 >Below is an example for a volume whose VLDB entry is currently locked.</P
6798 ><PRE
6799 CLASS="programlisting"
6800 >&#13;   % <SPAN
6801 CLASS="bold"
6802 ><B
6803 CLASS="emphasis"
6804 >vos examine user.terry</B
6805 ></SPAN
6806 >
6807    user.terry                    536870981 RW   3459 K On-line
6808        fs3.abc.com /vicepa
6809        Write 5360870981   ROnly          0  Backup 536870983
6810        MaxQuota      40000 K
6811        Creation    Mon Jun 12 15:22:06 1989
6812        Last Update Fri Jun 16 09:34:35 1989
6813        5719 accesses in the past day (i.e., vnode references)
6814        RWrite: 5360870981   Backup: 536870983
6815        number of sites -&#62; 1
6816           server fs3.abc.com partition /vicepa RW Site
6817        Volume is currently LOCKED
6818 </PRE
6819 ></DIV
6820 ><DIV
6821 CLASS="sect2"
6822 ><H2
6823 CLASS="sect2"
6824 ><A
6825 NAME="HDRWQ223"
6826 >Displaying the Name or Location of the Volume that Contains a File</A
6827 ></H2
6828 ><P
6829 >This section explains how to learn the name, volume ID number, or location of the volume that contains a file or
6830       directory.</P
6831 ><P
6832 >You can also use one piece of information about a volume (for example, its name) to obtain other information about it
6833       (for example, its location). The following list points you to the relevant instructions: <UL
6834 ><LI
6835 ><P
6836 >To use a volume's name to learn the volume ID numbers of all its existing versions, use the <SPAN
6837 CLASS="bold"
6838 ><B
6839 CLASS="emphasis"
6840 >vos examine</B
6841 ></SPAN
6842 > command as described in <A
6843 HREF="c8420.html#HDRWQ222"
6844 >To display one volume's VLDB entry
6845             and volume header</A
6846 >.</P
6847 ><P
6848 >You can also use the command to learn a volume's name by providing its ID number.</P
6849 ></LI
6850 ><LI
6851 ><P
6852 >To use a volume's name or ID number to learn its location, use the <SPAN
6853 CLASS="bold"
6854 ><B
6855 CLASS="emphasis"
6856 >vos listvldb</B
6857 ></SPAN
6858 >
6859             command as described in <A
6860 HREF="c8420.html#HDRWQ218"
6861 >To display VLDB entries</A
6862 >.</P
6863 ></LI
6864 ></UL
6865 ></P
6866 ><DIV
6867 CLASS="sect3"
6868 ><H3
6869 CLASS="sect3"
6870 ><A
6871 NAME="HDRWQ224"
6872 >To display the name of the volume that contains a file</A
6873 ></H3
6874 ><OL
6875 TYPE="1"
6876 ><LI
6877 ><P
6878 >Issue the <SPAN
6879 CLASS="bold"
6880 ><B
6881 CLASS="emphasis"
6882 >fs listquota</B
6883 ></SPAN
6884 > command. <PRE
6885 CLASS="programlisting"
6886 >&#13;   % <SPAN
6887 CLASS="bold"
6888 ><B
6889 CLASS="emphasis"
6890 >fs listquota</B
6891 ></SPAN
6892 > [&#60;<VAR
6893 CLASS="replaceable"
6894 >dir/file path</VAR
6895 >&#62;]
6896 </PRE
6897 ></P
6898 ><P
6899 >where <DIV
6900 CLASS="variablelist"
6901 ><DL
6902 ><DT
6903 ><SPAN
6904 CLASS="bold"
6905 ><B
6906 CLASS="emphasis"
6907 >lq</B
6908 ></SPAN
6909 ></DT
6910 ><DD
6911 ><P
6912 >Is an acceptable alias for <SPAN
6913 CLASS="bold"
6914 ><B
6915 CLASS="emphasis"
6916 >listquota</B
6917 ></SPAN
6918 >(and <SPAN
6919 CLASS="bold"
6920 ><B
6921 CLASS="emphasis"
6922 >listq</B
6923 ></SPAN
6924 > the shortest acceptable abbreviation).</P
6925 ></DD
6926 ><DT
6927 ><SPAN
6928 CLASS="bold"
6929 ><B
6930 CLASS="emphasis"
6931 >dir/file path</B
6932 ></SPAN
6933 ></DT
6934 ><DD
6935 ><P
6936 >Names a directory or file housed in the volume for which to display the name. Partial pathnames are
6937                     interpreted relative to the current working directory, which is the default if this argument is omitted.</P
6938 ></DD
6939 ></DL
6940 ></DIV
6941 ></P
6942 ></LI
6943 ></OL
6944 ><P
6945 >The following is an example of the output:</P
6946 ><PRE
6947 CLASS="programlisting"
6948 >&#13;   % <SPAN
6949 CLASS="bold"
6950 ><B
6951 CLASS="emphasis"
6952 >fs listquota /afs/abc.com/usr/terry</B
6953 ></SPAN
6954 >
6955    Volume Name     Quota    Used    % Used   Partition
6956    user.terry      15000    5071       34%         86%
6957 </PRE
6958 ></DIV
6959 ><DIV
6960 CLASS="sect3"
6961 ><H3
6962 CLASS="sect3"
6963 ><A
6964 NAME="HDRWQ225"
6965 >To display the ID number of the volume that contains a file</A
6966 ></H3
6967 ><OL
6968 TYPE="1"
6969 ><LI
6970 ><P
6971 >Issue the <SPAN
6972 CLASS="bold"
6973 ><B
6974 CLASS="emphasis"
6975 >fs examine</B
6976 ></SPAN
6977 > command. <PRE
6978 CLASS="programlisting"
6979 >&#13;   % <SPAN
6980 CLASS="bold"
6981 ><B
6982 CLASS="emphasis"
6983 >fs examine</B
6984 ></SPAN
6985 > [&#60;<VAR
6986 CLASS="replaceable"
6987 >dir/file path</VAR
6988 >&#62;]
6989 </PRE
6990 ></P
6991 ><P
6992 >where <DIV
6993 CLASS="variablelist"
6994 ><DL
6995 ><DT
6996 ><SPAN
6997 CLASS="bold"
6998 ><B
6999 CLASS="emphasis"
7000 >exa</B
7001 ></SPAN
7002 ></DT
7003 ><DD
7004 ><P
7005 >Is the shortest acceptable abbreviation of <SPAN
7006 CLASS="bold"
7007 ><B
7008 CLASS="emphasis"
7009 >examine</B
7010 ></SPAN
7011 >.</P
7012 ></DD
7013 ><DT
7014 ><SPAN
7015 CLASS="bold"
7016 ><B
7017 CLASS="emphasis"
7018 >dir/file path</B
7019 ></SPAN
7020 ></DT
7021 ><DD
7022 ><P
7023 >Names a directory or file housed in the volume for which to display the volume ID. Partial pathnames are
7024                     interpreted relative to the current working directory, which is the default if this argument is omitted.</P
7025 ></DD
7026 ></DL
7027 ></DIV
7028 ></P
7029 ></LI
7030 ></OL
7031 ><P
7032 >The following example illustrates how the output reports the volume ID number in the
7033         <SAMP
7034 CLASS="computeroutput"
7035 >vid</SAMP
7036 > field.</P
7037 ><PRE
7038 CLASS="programlisting"
7039 >&#13;   % <SPAN
7040 CLASS="bold"
7041 ><B
7042 CLASS="emphasis"
7043 >fs examine /afs/abc.com/usr/terry</B
7044 ></SPAN
7045 >
7046    Volume status for vid = 50489902 named user.terry
7047    Current maximum quota is 15000
7048    Current blocks used are 5073
7049    The partition has 46383 blocks available out of 333305
7050 </PRE
7051 ><DIV
7052 CLASS="note"
7053 ><BLOCKQUOTE
7054 CLASS="note"
7055 ><P
7056 ><B
7057 >Note: </B
7058 >The partition-related statistics in this command's output do not always agree with the corresponding values in the
7059           output of the standard UNIX <SPAN
7060 CLASS="bold"
7061 ><B
7062 CLASS="emphasis"
7063 >df</B
7064 ></SPAN
7065 > command. The statistics reported by this command can be up
7066           to five minutes old, because the Cache Manager polls the File Server for partition information at that frequency. Also, on
7067           some operating systems, the <SPAN
7068 CLASS="bold"
7069 ><B
7070 CLASS="emphasis"
7071 >df</B
7072 ></SPAN
7073 > command's report of partition size includes reserved space
7074           not included in this command's calculation, and so is likely to be about 10% larger.</P
7075 ></BLOCKQUOTE
7076 ></DIV
7077 ></DIV
7078 ><DIV
7079 CLASS="sect3"
7080 ><H3
7081 CLASS="sect3"
7082 ><A
7083 NAME="Header_242"
7084 >To display the location of the volume that contains a file</A
7085 ></H3
7086 ><OL
7087 TYPE="1"
7088 ><LI
7089 ><P
7090 >Issue the <SPAN
7091 CLASS="bold"
7092 ><B
7093 CLASS="emphasis"
7094 >fs whereis</B
7095 ></SPAN
7096 > command to display the name of the file server machine that
7097             houses the volume containing a file or directory. <PRE
7098 CLASS="programlisting"
7099 >&#13;   % <SPAN
7100 CLASS="bold"
7101 ><B
7102 CLASS="emphasis"
7103 >fs whereis</B
7104 ></SPAN
7105 > [&#60;<VAR
7106 CLASS="replaceable"
7107 >dir/file path</VAR
7108 >&#62;]
7109 </PRE
7110 ></P
7111 ><P
7112 >where <DIV
7113 CLASS="variablelist"
7114 ><DL
7115 ><DT
7116 ><SPAN
7117 CLASS="bold"
7118 ><B
7119 CLASS="emphasis"
7120 >whe</B
7121 ></SPAN
7122 ></DT
7123 ><DD
7124 ><P
7125 >Is the shortest acceptable abbreviation of <SPAN
7126 CLASS="bold"
7127 ><B
7128 CLASS="emphasis"
7129 >whereis</B
7130 ></SPAN
7131 >.</P
7132 ></DD
7133 ><DT
7134 ><SPAN
7135 CLASS="bold"
7136 ><B
7137 CLASS="emphasis"
7138 >dir/file path</B
7139 ></SPAN
7140 ></DT
7141 ><DD
7142 ><P
7143 >Names a directory or file for which to report the location. Partial pathnames are interpreted relative to
7144                     the current working directory, which is the default if this argument is omitted.</P
7145 ></DD
7146 ></DL
7147 ></DIV
7148 ></P
7149 ><P
7150 >The output displays the file server machine that houses the volume containing the file, as in the following
7151             example:</P
7152 ><PRE
7153 CLASS="programlisting"
7154 >&#13;   % <SPAN
7155 CLASS="bold"
7156 ><B
7157 CLASS="emphasis"
7158 >fs whereis /afs/abc.com/user/terry</B
7159 ></SPAN
7160 >
7161    File /afs/abc.com/usr/terry is on host fs2.abc.com
7162 </PRE
7163 ></LI
7164 ><LI
7165 ><P
7166 >If you also want to know which partition houses the volume, first issue the <SPAN
7167 CLASS="bold"
7168 ><B
7169 CLASS="emphasis"
7170 >fs
7171             listquota</B
7172 ></SPAN
7173 > command to display the volume's name. For complete syntax, see <A
7174 HREF="c8420.html#HDRWQ224"
7175 >To display
7176             the name of the volume that contains a file</A
7177 >. <PRE
7178 CLASS="programlisting"
7179 >&#13;   % <SPAN
7180 CLASS="bold"
7181 ><B
7182 CLASS="emphasis"
7183 >fs listquota</B
7184 ></SPAN
7185 > [&#60;<VAR
7186 CLASS="replaceable"
7187 >dir/file path</VAR
7188 >&#62;]
7189 </PRE
7190 ></P
7191 ><P
7192 >Then issue the <SPAN
7193 CLASS="bold"
7194 ><B
7195 CLASS="emphasis"
7196 >vos listvldb</B
7197 ></SPAN
7198 > command, providing the volume name as the volume name
7199             or ID argument. For complete syntax and a description of the output, see <A
7200 HREF="c8420.html#HDRWQ218"
7201 >To display VLDB
7202             entries</A
7203 >.</P
7204 ><PRE
7205 CLASS="programlisting"
7206 >&#13;   % <SPAN
7207 CLASS="bold"
7208 ><B
7209 CLASS="emphasis"
7210 >vos listvldb</B
7211 ></SPAN
7212 > &#60;<VAR
7213 CLASS="replaceable"
7214 >volume name or ID</VAR
7215 >&#62;
7216 </PRE
7217 ></LI
7218 ></OL
7219 ></DIV
7220 ></DIV
7221 ></DIV
7222 ><DIV
7223 CLASS="sect1"
7224 ><H1
7225 CLASS="sect1"
7226 ><A
7227 NAME="HDRWQ226"
7228 >Moving Volumes</A
7229 ></H1
7230 ><P
7231 >There are three main reasons to move volumes: <UL
7232 ><LI
7233 ><P
7234 >To place volumes on other partitions or machines temporarily while repairing or replacing a disk or file server
7235           machine.</P
7236 ></LI
7237 ><LI
7238 ><P
7239 >     To free space on a partition that is becoming overcrowded. One symptom of overcrowding is that users cannot
7240           to save files even though the relevant volume is below its quota. The following error message confirms the problem:
7241           <PRE
7242 CLASS="programlisting"
7243 >&#13;   afs: failed to store file (partition full)
7244 </PRE
7245 ></P
7246 ><P
7247 >You can track available space on AFS server partitions by using the <SPAN
7248 CLASS="bold"
7249 ><B
7250 CLASS="emphasis"
7251 >scout</B
7252 ></SPAN
7253 > or
7254           <SPAN
7255 CLASS="bold"
7256 ><B
7257 CLASS="emphasis"
7258 >afsmonitor</B
7259 ></SPAN
7260 > programs described in <A
7261 HREF="c18360.html"
7262 >Monitoring and Auditing AFS
7263           Performance</A
7264 >.</P
7265 ></LI
7266 ><LI
7267 ><P
7268 >A file server machine is becoming overloaded because it houses many more volumes than other machines of the same
7269           size, or has volumes with more popular files in them.</P
7270 ></LI
7271 ></UL
7272 ></P
7273 ><P
7274 >To move a read/write volume, use the <SPAN
7275 CLASS="bold"
7276 ><B
7277 CLASS="emphasis"
7278 >vos move</B
7279 ></SPAN
7280 > command as described in the following
7281     instructions. Before attempting to move the volume, the <SPAN
7282 CLASS="bold"
7283 ><B
7284 CLASS="emphasis"
7285 >vos</B
7286 ></SPAN
7287 > command interpreter verifies that
7288     there is enough free space for it on the destination partition. If not, it does not attempt the move operation and prints the
7289     following message.</P
7290 ><PRE
7291 CLASS="programlisting"
7292 >&#13;   vos: no space on target partition destination_part to move volume volume
7293 </PRE
7294 ><P
7295 >To move a read-only volume, you actually remove the volume from the current site by issuing the <SPAN
7296 CLASS="bold"
7297 ><B
7298 CLASS="emphasis"
7299 >vos
7300     remove</B
7301 ></SPAN
7302 > command as described in <A
7303 HREF="c8420.html#HDRWQ236"
7304 >To remove a volume and unmount it</A
7305 >. Then define a new
7306     site and release the volume to it by issuing the <SPAN
7307 CLASS="bold"
7308 ><B
7309 CLASS="emphasis"
7310 >vos addsite</B
7311 ></SPAN
7312 > and <SPAN
7313 CLASS="bold"
7314 ><B
7315 CLASS="emphasis"
7316 >vos
7317     release</B
7318 ></SPAN
7319 > commands as described in <A
7320 HREF="c8420.html#HDRWQ194"
7321 >To replicate a read/write volume (create a read-only
7322     volume)</A
7323 >.</P
7324 ><P
7325 >A backup volume always resides at the same site as its read/write source volume, so you cannot move a backup volume except
7326     as part of moving the read/write source. The <SPAN
7327 CLASS="bold"
7328 ><B
7329 CLASS="emphasis"
7330 >vos move</B
7331 ></SPAN
7332 > command automatically deletes the backup
7333     version when you move a read/write volume. To create a new backup volume at the new site as soon as the move operation
7334     completes, issue the <SPAN
7335 CLASS="bold"
7336 ><B
7337 CLASS="emphasis"
7338 >vos backup</B
7339 ></SPAN
7340 > command as described in <A
7341 HREF="c8420.html#HDRWQ205"
7342 >To create and
7343     mount a backup volume</A
7344 >.</P
7345 ><DIV
7346 CLASS="sect2"
7347 ><H2
7348 CLASS="sect2"
7349 ><A
7350 NAME="Header_244"
7351 >To move a read/write volume</A
7352 ></H2
7353 ><OL
7354 TYPE="1"
7355 ><LI
7356 ><P
7357 >Verify that you are listed in the <SPAN
7358 CLASS="bold"
7359 ><B
7360 CLASS="emphasis"
7361 >/usr/afs/etc/UserList</B
7362 ></SPAN
7363 > file. If necessary, issue
7364           the <SPAN
7365 CLASS="bold"
7366 ><B
7367 CLASS="emphasis"
7368 >bos listusers</B
7369 ></SPAN
7370 > command, which is fully described in <A
7371 HREF="c32432.html#HDRWQ593"
7372 >To
7373           display the users in the UserList file</A
7374 >. <PRE
7375 CLASS="programlisting"
7376 >&#13;   % <SPAN
7377 CLASS="bold"
7378 ><B
7379 CLASS="emphasis"
7380 >bos listusers</B
7381 ></SPAN
7382 > &#60;<VAR
7383 CLASS="replaceable"
7384 >machine name</VAR
7385 >&#62;
7386 </PRE
7387 ></P
7388 ></LI
7389 ><LI
7390 ><P
7391 >Issue the <SPAN
7392 CLASS="bold"
7393 ><B
7394 CLASS="emphasis"
7395 >vos move</B
7396 ></SPAN
7397 > command to move the volume. Type it on a single line; it appears
7398           on multiple lines here only for legibility. <PRE
7399 CLASS="programlisting"
7400 >&#13;   % <SPAN
7401 CLASS="bold"
7402 ><B
7403 CLASS="emphasis"
7404 >vos move</B
7405 ></SPAN
7406 > &#60;<VAR
7407 CLASS="replaceable"
7408 >volume name or ID</VAR
7409 >&#62; \ &#60;<VAR
7410 CLASS="replaceable"
7411 >machine name on source</VAR
7412 >&#62;
7413           &#60;<VAR
7414 CLASS="replaceable"
7415 >partition name on source </VAR
7416 >&#62; \ &#60;<VAR
7417 CLASS="replaceable"
7418 >machine name on destination</VAR
7419 >&#62; &#60;partition name on
7420           destination&#62;
7421 </PRE
7422 ></P
7423 ><P
7424 >where <DIV
7425 CLASS="variablelist"
7426 ><DL
7427 ><DT
7428 ><SPAN
7429 CLASS="bold"
7430 ><B
7431 CLASS="emphasis"
7432 >m</B
7433 ></SPAN
7434 ></DT
7435 ><DD
7436 ><P
7437 >Is the shortest acceptable abbreviation of <SPAN
7438 CLASS="bold"
7439 ><B
7440 CLASS="emphasis"
7441 >move</B
7442 ></SPAN
7443 >.</P
7444 ></DD
7445 ><DT
7446 ><SPAN
7447 CLASS="bold"
7448 ><B
7449 CLASS="emphasis"
7450 >volume name or ID</B
7451 ></SPAN
7452 ></DT
7453 ><DD
7454 ><P
7455 >Specifies the name or volume ID number of the read/write volume to move.</P
7456 ></DD
7457 ><DT
7458 ><SPAN
7459 CLASS="bold"
7460 ><B
7461 CLASS="emphasis"
7462 >machine name on source</B
7463 ></SPAN
7464 ></DT
7465 ><DD
7466 ><P
7467 >Names the file server machine currently housing the volume.</P
7468 ></DD
7469 ><DT
7470 ><SPAN
7471 CLASS="bold"
7472 ><B
7473 CLASS="emphasis"
7474 >partition name on source</B
7475 ></SPAN
7476 ></DT
7477 ><DD
7478 ><P
7479 >Names the partition currently housing the volume.</P
7480 ></DD
7481 ><DT
7482 ><SPAN
7483 CLASS="bold"
7484 ><B
7485 CLASS="emphasis"
7486 >machine name on destination</B
7487 ></SPAN
7488 ></DT
7489 ><DD
7490 ><P
7491 >Names the file server machine to which to move the volume.</P
7492 ></DD
7493 ><DT
7494 ><SPAN
7495 CLASS="bold"
7496 ><B
7497 CLASS="emphasis"
7498 >partition name on destination</B
7499 ></SPAN
7500 ></DT
7501 ><DD
7502 ><P
7503 >Names the partition to which to move the volume.</P
7504 ></DD
7505 ></DL
7506 ></DIV
7507 ></P
7508 ><DIV
7509 CLASS="note"
7510 ><BLOCKQUOTE
7511 CLASS="note"
7512 ><P
7513 ><B
7514 >Note: </B
7515 >It is best not to halt a <SPAN
7516 CLASS="bold"
7517 ><B
7518 CLASS="emphasis"
7519 >vos move</B
7520 ></SPAN
7521 > operation before it completes, because parts of
7522             the volume can be left on both the source and destination machines. For more information, see the command's reference
7523             page in the <SPAN
7524 CLASS="emphasis"
7525 ><I
7526 CLASS="emphasis"
7527 > IBM AFS Administration Reference</I
7528 ></SPAN
7529 >.</P
7530 ></BLOCKQUOTE
7531 ></DIV
7532 ></LI
7533 ><LI
7534 ><P
7535 ><SPAN
7536 CLASS="bold"
7537 ><B
7538 CLASS="emphasis"
7539 >(Optional)</B
7540 ></SPAN
7541 > Issue the <SPAN
7542 CLASS="bold"
7543 ><B
7544 CLASS="emphasis"
7545 >vos listvldb</B
7546 ></SPAN
7547 > command to
7548           confirm the success of the move. Complete instructions appear in <A
7549 HREF="c8420.html#HDRWQ218"
7550 >To display VLDB entries</A
7551 >.
7552           <PRE
7553 CLASS="programlisting"
7554 >&#13;   % <SPAN
7555 CLASS="bold"
7556 ><B
7557 CLASS="emphasis"
7558 >vos listvldb</B
7559 ></SPAN
7560 > &#60;<VAR
7561 CLASS="replaceable"
7562 >volume name or ID</VAR
7563 >&#62;
7564 </PRE
7565 ></P
7566 ></LI
7567 ><LI
7568 ><P
7569 >If a backup version existed at the read/write volume's previous site, create a new backup at the new site by issuing
7570           the <SPAN
7571 CLASS="bold"
7572 ><B
7573 CLASS="emphasis"
7574 >vos backup</B
7575 ></SPAN
7576 > command, which is fully described in <A
7577 HREF="c8420.html#HDRWQ205"
7578 >To create
7579           and mount a backup volume</A
7580 >. <PRE
7581 CLASS="programlisting"
7582 >&#13;   % <SPAN
7583 CLASS="bold"
7584 ><B
7585 CLASS="emphasis"
7586 >vos backup</B
7587 ></SPAN
7588 > &#60;<VAR
7589 CLASS="replaceable"
7590 >volume name or ID</VAR
7591 >&#62;
7592 </PRE
7593 ></P
7594 ></LI
7595 ></OL
7596 ></DIV
7597 ></DIV
7598 ><DIV
7599 CLASS="sect1"
7600 ><H1
7601 CLASS="sect1"
7602 ><A
7603 NAME="HDRWQ227"
7604 >Synchronizing the VLDB and Volume Headers</A
7605 ></H1
7606 ><P
7607 >AFS can provide transparent file access because the Volume Location Database (VLDB) constantly tracks volume locations.
7608     When the Cache Manager needs a file, it contacts the Volume Location (VL) Server, which reads the VLDB for the current location
7609     of the volume containing the file. Therefore, the VLDB must accurately reflect the state of volumes on the file server machines
7610     at all times. The Volume Server and VL Server automatically update a volume's VLDB entry when its status changes during a
7611     <SPAN
7612 CLASS="bold"
7613 ><B
7614 CLASS="emphasis"
7615 >vos</B
7616 ></SPAN
7617 > operation, by performing the following series of steps. <OL
7618 TYPE="1"
7619 ><LI
7620 ><P
7621 ><A
7622 NAME="LIWQ228"
7623 ></A
7624 >The VL Server locks the VLDB entry. The lock advises other operations not to manipulate any
7625           of the volume versions (read/write, read-only, or backup), which prevents the inconsistency that can result from multiple
7626           simultaneous operations.</P
7627 ></LI
7628 ><LI
7629 ><P
7630 >  <A
7631 NAME="LIWQ229"
7632 ></A
7633 >The VL Server sets an <SPAN
7634 CLASS="emphasis"
7635 ><I
7636 CLASS="emphasis"
7637 >intention flag</I
7638 ></SPAN
7639 > in the VLDB entry that
7640           indicates the kind of operation to be performed. This flag never appears in VLDB listings because it is for internal use
7641           only. In case the operation terminates prematurely, this flag tells the Salvager which operation was interrupted. (The
7642           Salvager then determines the steps necessary either to complete the operation or return the volume to a previous
7643           consistent state. For more information on salvaging, see <A
7644 HREF="c8420.html#HDRWQ232"
7645 >Salvaging Volumes</A
7646 >.)</P
7647 ></LI
7648 ><LI
7649 ><P
7650 ><A
7651 NAME="LIWQ230"
7652 ></A
7653 >The Volume Server manipulates the volume. It usually sets the
7654           <SAMP
7655 CLASS="computeroutput"
7656 >Off-line</SAMP
7657 > flag in the volume header, which makes the volume inaccessible to the File
7658           Server and other Volume Server operations during the manipulation. When the operation completes, the volume is again
7659           marked <SAMP
7660 CLASS="computeroutput"
7661 >On-line</SAMP
7662 >.</P
7663 ></LI
7664 ><LI
7665 ><P
7666 ><A
7667 NAME="LIWQ231"
7668 ></A
7669 >The VL Server records any changes resulting from the operation in the VLDB entry. Once the
7670           operation is complete, it removes the intention flag set in Step <A
7671 HREF="c8420.html#LIWQ229"
7672 >2</A
7673 >and releases the lock set
7674           in Step <A
7675 HREF="c8420.html#LIWQ228"
7676 >1</A
7677 >.</P
7678 ></LI
7679 ></OL
7680 ></P
7681 ><P
7682 >If a <SPAN
7683 CLASS="bold"
7684 ><B
7685 CLASS="emphasis"
7686 >vos</B
7687 ></SPAN
7688 > operation fails while the Volume Server is manipulating the volume
7689     (corresponding to Step <A
7690 HREF="c8420.html#LIWQ230"
7691 >3</A
7692 >), the volume can be left in an intermediate state, which is termed
7693     <SPAN
7694 CLASS="emphasis"
7695 ><I
7696 CLASS="emphasis"
7697 >corruption</I
7698 ></SPAN
7699 >. In this case, the <SAMP
7700 CLASS="computeroutput"
7701 >Off-line</SAMP
7702 > or <SAMP
7703 CLASS="computeroutput"
7704 >Off-line**needs
7705     salvage**</SAMP
7706 > marker usually appears at the end of the first line of output from the <SPAN
7707 CLASS="bold"
7708 ><B
7709 CLASS="emphasis"
7710 >vos
7711     examine</B
7712 ></SPAN
7713 > command. To repair the corruption, run the Salvager before attempting to resynchronize the VLDB and volume
7714     headers. For salvaging instructions, see <A
7715 HREF="c8420.html#HDRWQ232"
7716 >Salvaging Volumes</A
7717 >.</P
7718 ><P
7719 >More commonly, an interruption while flags are being set or removed (corresponding to Step <A
7720 HREF="c8420.html#LIWQ228"
7721 >1</A
7722 >, Step <A
7723 HREF="c8420.html#LIWQ229"
7724 >2</A
7725 >, or Step <A
7726 HREF="c8420.html#LIWQ231"
7727 >4</A
7728 >) causes a
7729     discrepancy between the VLDB and volume headers. To resynchronize the VLDB and volumes, use the <SPAN
7730 CLASS="bold"
7731 ><B
7732 CLASS="emphasis"
7733 >vos
7734     syncvldb</B
7735 ></SPAN
7736 > and <SPAN
7737 CLASS="bold"
7738 ><B
7739 CLASS="emphasis"
7740 >vos syncserv</B
7741 ></SPAN
7742 > commands. To achieve complete VLDB consistency, it is best
7743     to run the <SPAN
7744 CLASS="bold"
7745 ><B
7746 CLASS="emphasis"
7747 >vos syncvldb</B
7748 ></SPAN
7749 > command on all file server machines in the cell, and then run the
7750     <SPAN
7751 CLASS="bold"
7752 ><B
7753 CLASS="emphasis"
7754 >vos syncserv</B
7755 ></SPAN
7756 > command on all file server machines in the cell.</P
7757 ><P
7758 >There are several symptoms that indicate a volume operation failed: <UL
7759 ><LI
7760 ><P
7761 >Error messages on the standard error stream or in server process log files indicate that an operation terminated
7762           abnormally. Perhaps you had to halt the operation before it completed (for instance, by using a signal such as <SPAN
7763 CLASS="bold"
7764 ><B
7765 CLASS="emphasis"
7766 >Ctrl-c</B
7767 ></SPAN
7768 >), or a file server machine or server process was not functioning when the operation ran. To
7769           determine if a machine or process is still not functioning, issue the <SPAN
7770 CLASS="bold"
7771 ><B
7772 CLASS="emphasis"
7773 >bos status</B
7774 ></SPAN
7775 > command
7776           as described in <A
7777 HREF="c6449.html#HDRWQ158"
7778 >Displaying Process Status and Information from the BosConfig File</A
7779 >.</P
7780 ></LI
7781 ><LI
7782 ><P
7783 >A subsequent <SPAN
7784 CLASS="bold"
7785 ><B
7786 CLASS="emphasis"
7787 >vos</B
7788 ></SPAN
7789 > operation fails because a previous failure left a VLDB entry
7790           locked. Sometimes an error message reports that a volume is locked. To display a list of locked volumes, use the <SPAN
7791 CLASS="bold"
7792 ><B
7793 CLASS="emphasis"
7794 >-locked</B
7795 ></SPAN
7796 > flag on the <SPAN
7797 CLASS="bold"
7798 ><B
7799 CLASS="emphasis"
7800 >vos listvldb</B
7801 ></SPAN
7802 > command as described in <A
7803 HREF="c8420.html#HDRWQ217"
7804 >Displaying VLDB Entries</A
7805 >.</P
7806 ><P
7807 >If the only problem with a volume is that its VLDB entry is locked, you probably do not need to synchronize the
7808           entire VLDB. Instead use the <SPAN
7809 CLASS="bold"
7810 ><B
7811 CLASS="emphasis"
7812 >vos unlock</B
7813 ></SPAN
7814 > or <SPAN
7815 CLASS="bold"
7816 ><B
7817 CLASS="emphasis"
7818 >vos
7819           unlockvldb</B
7820 ></SPAN
7821 > command to unlock the entry, as described in <A
7822 HREF="c8420.html#HDRWQ247"
7823 >Unlocking and Locking VLDB
7824           Entries</A
7825 >.</P
7826 ></LI
7827 ><LI
7828 ><P
7829 >A subsequent <SPAN
7830 CLASS="bold"
7831 ><B
7832 CLASS="emphasis"
7833 >vos</B
7834 ></SPAN
7835 > operation fails because a previous failure left a volume marked as
7836           offline. To check a volume's current status, check the first line of output from the <SPAN
7837 CLASS="bold"
7838 ><B
7839 CLASS="emphasis"
7840 >vos
7841           examine</B
7842 ></SPAN
7843 > command as described in <A
7844 HREF="c8420.html#HDRWQ221"
7845 >Displaying One Volume's VLDB Entry and Volume
7846           Header</A
7847 >.</P
7848 ></LI
7849 ></UL
7850 ></P
7851 ><P
7852 >The <SPAN
7853 CLASS="bold"
7854 ><B
7855 CLASS="emphasis"
7856 >vos syncvldb</B
7857 ></SPAN
7858 > command corrects the information in the Volume Location Database (VLDB)
7859     either about all volumes housed on a file server machine, about the volumes on just one partition, or about a single volume. If
7860     checking about one or more partitions, the command contacts the Volume Server to obtain a list of the volumes that actually
7861     reside on each partition. It then obtains the VLDB entry for each volume from the VL Server. It changes the VLDB entry as
7862     necessary to reflect the state of the volume on the partition. For example, it creates or updates a VLDB entry when it finds a
7863     volume for which the VLDB entry is missing or incomplete. However, if there is already a VLDB entry that defines a different
7864     location for the volume, or there are irreconcilable conflicts with other VLDB entries, it instead writes a message about the
7865     conflict to the standard error stream. The command never removes volumes from the file server machine.</P
7866 ><P
7867 >When checking a single volume's VLDB entry, the command also automatically performs the operations invoked by the
7868     <SPAN
7869 CLASS="bold"
7870 ><B
7871 CLASS="emphasis"
7872 >vos syncserv</B
7873 ></SPAN
7874 > command: it not only verifies that the VLDB entry is correct for the specified
7875     volume type (read/write, backup, or read-only), but also checks that any related volume types mentioned in the VLDB entry
7876     actually exist at the site listed in the entry.</P
7877 ><P
7878 >The <SPAN
7879 CLASS="bold"
7880 ><B
7881 CLASS="emphasis"
7882 >vos syncserv</B
7883 ></SPAN
7884 > command verifies that each volume type (read/write, read-only, and
7885     backup) mentioned in a VLDB entry actually exists at the site indicated in the entry. It checks all VLDB entries that mention a
7886     site either on any of a file server machine's partitions or on one partition. Note that command can end up inspecting sites
7887     other than on the specified machine or partition, if there are read-only versions of the volume at sites other than the
7888     read/write site.</P
7889 ><P
7890 >The command alters any incorrect information in the VLDB, unless there is an irreconcilable conflict with other VLDB
7891     entries. In that case, it writes a message to the standard error stream instead. The command never removes volumes from their
7892     sites.</P
7893 ><DIV
7894 CLASS="sect2"
7895 ><H2
7896 CLASS="sect2"
7897 ><A
7898 NAME="Header_246"
7899 >To synchronize the VLDB with volume headers</A
7900 ></H2
7901 ><OL
7902 TYPE="1"
7903 ><LI
7904 ><P
7905 >Verify that you are listed in the <SPAN
7906 CLASS="bold"
7907 ><B
7908 CLASS="emphasis"
7909 >/usr/afs/etc/UserList</B
7910 ></SPAN
7911 > file. If necessary, issue
7912           the <SPAN
7913 CLASS="bold"
7914 ><B
7915 CLASS="emphasis"
7916 >bos listusers</B
7917 ></SPAN
7918 > command, which is fully described in <A
7919 HREF="c32432.html#HDRWQ593"
7920 >To
7921           display the users in the UserList file</A
7922 >. <PRE
7923 CLASS="programlisting"
7924 >&#13;   % <SPAN
7925 CLASS="bold"
7926 ><B
7927 CLASS="emphasis"
7928 >bos listusers</B
7929 ></SPAN
7930 > &#60;<VAR
7931 CLASS="replaceable"
7932 >machine name</VAR
7933 >&#62;
7934 </PRE
7935 ></P
7936 ></LI
7937 ><LI
7938 ><P
7939 ><A
7940 NAME="LIVOL-SYNCVL"
7941 ></A
7942 >Issue the <SPAN
7943 CLASS="bold"
7944 ><B
7945 CLASS="emphasis"
7946 >vos syncvldb</B
7947 ></SPAN
7948 > command to make the VLDB reflect
7949           the true state of all volumes on a machine or partition, or the state of one volume.</P
7950 ><DIV
7951 CLASS="note"
7952 ><BLOCKQUOTE
7953 CLASS="note"
7954 ><P
7955 ><B
7956 >Note: </B
7957 >To synchronize the VLDB completely, issue the command repeatedly, substituting each file server machine in your
7958             cell for the <SPAN
7959 CLASS="bold"
7960 ><B
7961 CLASS="emphasis"
7962 >-server</B
7963 ></SPAN
7964 > argument in turn and omitting the <SPAN
7965 CLASS="bold"
7966 ><B
7967 CLASS="emphasis"
7968 >-partition</B
7969 ></SPAN
7970 > and <SPAN
7971 CLASS="bold"
7972 ><B
7973 CLASS="emphasis"
7974 >-volume</B
7975 ></SPAN
7976 > arguments, before proceeding to Step
7977             <A
7978 HREF="c8420.html#LIVOL-SYNCSR"
7979 >3</A
7980 >.</P
7981 ></BLOCKQUOTE
7982 ></DIV
7983 ><PRE
7984 CLASS="programlisting"
7985 >&#13;   % <SPAN
7986 CLASS="bold"
7987 ><B
7988 CLASS="emphasis"
7989 >vos syncvldb -server</B
7990 ></SPAN
7991 > &#60;<VAR
7992 CLASS="replaceable"
7993 >machine name</VAR
7994 >&#62; [<SPAN
7995 CLASS="bold"
7996 ><B
7997 CLASS="emphasis"
7998 >-partition</B
7999 ></SPAN
8000 > &#60;<VAR
8001 CLASS="replaceable"
8002 >partition name</VAR
8003 >&#62;] \
8004         [<SPAN
8005 CLASS="bold"
8006 ><B
8007 CLASS="emphasis"
8008 >-volume</B
8009 ></SPAN
8010 > &#60;<VAR
8011 CLASS="replaceable"
8012 >volume name or ID</VAR
8013 >&#62;] [<SPAN
8014 CLASS="bold"
8015 ><B
8016 CLASS="emphasis"
8017 >-verbose &#62;&#62;</B
8018 ></SPAN
8019 > file]
8020 </PRE
8021 ><P
8022 >where <DIV
8023 CLASS="variablelist"
8024 ><DL
8025 ><DT
8026 ><SPAN
8027 CLASS="bold"
8028 ><B
8029 CLASS="emphasis"
8030 >syncv</B
8031 ></SPAN
8032 ></DT
8033 ><DD
8034 ><P
8035 >Is the shortest acceptable abbreviation of <SPAN
8036 CLASS="bold"
8037 ><B
8038 CLASS="emphasis"
8039 >syncvldb</B
8040 ></SPAN
8041 >.</P
8042 ></DD
8043 ><DT
8044 ><SPAN
8045 CLASS="bold"
8046 ><B
8047 CLASS="emphasis"
8048 >-server</B
8049 ></SPAN
8050 ></DT
8051 ><DD
8052 ><P
8053 >Names the file server machine housing the volumes for which to verify VLDB entries. If you are also
8054                   providing the <SPAN
8055 CLASS="bold"
8056 ><B
8057 CLASS="emphasis"
8058 >-volume</B
8059 ></SPAN
8060 > argument, this argument must name the machine where the
8061                   volume actually resides.</P
8062 ></DD
8063 ><DT
8064 ><SPAN
8065 CLASS="bold"
8066 ><B
8067 CLASS="emphasis"
8068 >-partition</B
8069 ></SPAN
8070 ></DT
8071 ><DD
8072 ><P
8073 >Identifies the partition (on the file server machine specified by the <SPAN
8074 CLASS="bold"
8075 ><B
8076 CLASS="emphasis"
8077 >-server</B
8078 ></SPAN
8079 > argument) housing the volumes for which to verify VLDB entries. In general, it is
8080                   best to omit this argument so that either the VLDB entries for all volumes on a server machine are corrected (if
8081                   you do not provide the <SPAN
8082 CLASS="bold"
8083 ><B
8084 CLASS="emphasis"
8085 >-volume</B
8086 ></SPAN
8087 > argument), or so that you do not need to guarantee
8088                   that the partition actually houses the volume named by the <SPAN
8089 CLASS="bold"
8090 ><B
8091 CLASS="emphasis"
8092 >-volume</B
8093 ></SPAN
8094 >
8095                   argument.</P
8096 ></DD
8097 ><DT
8098 ><SPAN
8099 CLASS="bold"
8100 ><B
8101 CLASS="emphasis"
8102 >-volume</B
8103 ></SPAN
8104 ></DT
8105 ><DD
8106 ><P
8107 >Specifies the name or volume ID number of a single volume for which to verify the VLDB entry.</P
8108 ></DD
8109 ><DT
8110 ><SPAN
8111 CLASS="bold"
8112 ><B
8113 CLASS="emphasis"
8114 >-verbose &#62;&#62; file</B
8115 ></SPAN
8116 ></DT
8117 ><DD
8118 ><P
8119 >Directs a detailed trace to the file called file, which can be either in AFS or on the local disk of the
8120                   machine on which you are issuing the command. The command often writes a large amount of output to the standard
8121                   output stream; writing it to a file enables you to examine the output more carefully.</P
8122 ></DD
8123 ></DL
8124 ></DIV
8125 ></P
8126 ></LI
8127 ><LI
8128 ><P
8129 ><A
8130 NAME="LIVOL-SYNCSR"
8131 ></A
8132 >Issue the <SPAN
8133 CLASS="bold"
8134 ><B
8135 CLASS="emphasis"
8136 >vos syncserv</B
8137 ></SPAN
8138 > command to inspect each volume
8139           for which the VLDB lists a version at the specified site.</P
8140 ><DIV
8141 CLASS="note"
8142 ><BLOCKQUOTE
8143 CLASS="note"
8144 ><P
8145 ><B
8146 >Note: </B
8147 >To synchronize the VLDB completely, issue the command repeatedly, substituting each file server machine in your
8148             cell for the machine name argument in turn and omitting the partition name argument.</P
8149 ></BLOCKQUOTE
8150 ></DIV
8151 ><PRE
8152 CLASS="programlisting"
8153 >&#13;   % <SPAN
8154 CLASS="bold"
8155 ><B
8156 CLASS="emphasis"
8157 >vos syncserv</B
8158 ></SPAN
8159 > &#60;<VAR
8160 CLASS="replaceable"
8161 >machine name</VAR
8162 >&#62; [&#60;<VAR
8163 CLASS="replaceable"
8164 >partition name</VAR
8165 >&#62;] [<SPAN
8166 CLASS="bold"
8167 ><B
8168 CLASS="emphasis"
8169 >-v &#62;&#62;</B
8170 ></SPAN
8171 > file]
8172 </PRE
8173 ><P
8174 >where <DIV
8175 CLASS="variablelist"
8176 ><DL
8177 ><DT
8178 ><SPAN
8179 CLASS="bold"
8180 ><B
8181 CLASS="emphasis"
8182 >syncs</B
8183 ></SPAN
8184 ></DT
8185 ><DD
8186 ><P
8187 >Is the shortest acceptable abbreviation of <SPAN
8188 CLASS="bold"
8189 ><B
8190 CLASS="emphasis"
8191 >syncserv</B
8192 ></SPAN
8193 >.</P
8194 ></DD
8195 ><DT
8196 ><SPAN
8197 CLASS="bold"
8198 ><B
8199 CLASS="emphasis"
8200 >machine name</B
8201 ></SPAN
8202 ></DT
8203 ><DD
8204 ><P
8205 >Names the file server machine mentioned in each VLDB entry to check.</P
8206 ></DD
8207 ><DT
8208 ><SPAN
8209 CLASS="bold"
8210 ><B
8211 CLASS="emphasis"
8212 >partition name</B
8213 ></SPAN
8214 ></DT
8215 ><DD
8216 ><P
8217 >Identifies the partition mentioned in each VLDB entry to check. If synchronizing the entire VLDB, omit this
8218                   argument.</P
8219 ></DD
8220 ><DT
8221 ><SPAN
8222 CLASS="bold"
8223 ><B
8224 CLASS="emphasis"
8225 >-v &#62;&#62; file</B
8226 ></SPAN
8227 ></DT
8228 ><DD
8229 ><P
8230 >Directs a detailed trace to the file called file, which can be either in AFS or on the local disk of the
8231                   machine on which you are issuing the command. The command often writes a large amount of output to the standard
8232                   output stream; writing it to a file enables you to examine the output more carefully.</P
8233 ></DD
8234 ></DL
8235 ></DIV
8236 ></P
8237 ></LI
8238 ></OL
8239 ></DIV
8240 ></DIV
8241 ><DIV
8242 CLASS="sect1"
8243 ><H1
8244 CLASS="sect1"
8245 ><A
8246 NAME="HDRWQ232"
8247 >Salvaging Volumes</A
8248 ></H1
8249 ><P
8250 >An unexpected interruption while the Volume Server or File Server is manipulating the data in a volume can leave the
8251     volume in an intermediate state (<SPAN
8252 CLASS="emphasis"
8253 ><I
8254 CLASS="emphasis"
8255 >corrupted</I
8256 ></SPAN
8257 >), rather than just creating a discrepancy between the
8258     information in the VLDB and volume headers. For example, the failure of the operation that saves changes to a file (by
8259     overwriting old data with new) can leave the old and new data mixed together on the disk.</P
8260 ><P
8261 >If an operation halts because the Volume Server or File Server exits unexpectedly, the BOS Server automatically shuts down
8262     all components of the <SPAN
8263 CLASS="bold"
8264 ><B
8265 CLASS="emphasis"
8266 >fs</B
8267 ></SPAN
8268 > process and invokes the Salvager. The Salvager checks for and repairs
8269     any inconsistencies it can. Sometimes, however, there are symptoms of the following sort, which indicate corruption serious
8270     enough to create problems but not serious enough to cause the File Server component to fail. In these cases you can invoke the
8271     Salvager yourself by issuing the <SPAN
8272 CLASS="bold"
8273 ><B
8274 CLASS="emphasis"
8275 >bos salvage</B
8276 ></SPAN
8277 > command. <UL
8278 ><LI
8279 ><P
8280 ><SPAN
8281 CLASS="bold"
8282 ><B
8283 CLASS="emphasis"
8284 >Symptom:</B
8285 ></SPAN
8286 > A file appears in the output of the <SPAN
8287 CLASS="bold"
8288 ><B
8289 CLASS="emphasis"
8290 >ls</B
8291 ></SPAN
8292 >
8293           command, but attempts to access the file fail with messages indicating that it does not exist.</P
8294 ><P
8295 ><SPAN
8296 CLASS="bold"
8297 ><B
8298 CLASS="emphasis"
8299 >Possible cause:</B
8300 ></SPAN
8301 > The Volume Server or File Server exited in the middle of a
8302           file-creation operation, after changing the directory structure, but before actually storing data. (Other possible causes
8303           are that the ACL on the directory does not grant the permissions you need to access the file, or there is a process,
8304           machine, or network outage. Check for these causes before assuming the file is corrupted.)</P
8305 ><P
8306 ><SPAN
8307 CLASS="bold"
8308 ><B
8309 CLASS="emphasis"
8310 >Salvager's solution:</B
8311 ></SPAN
8312 > Remove the file's entry from the directory structure.</P
8313 ></LI
8314 ><LI
8315 ><P
8316 ><SPAN
8317 CLASS="bold"
8318 ><B
8319 CLASS="emphasis"
8320 >Symptom:</B
8321 ></SPAN
8322 > A volume is marked <SAMP
8323 CLASS="computeroutput"
8324 >Off-line</SAMP
8325 > in the output
8326           from the <SPAN
8327 CLASS="bold"
8328 ><B
8329 CLASS="emphasis"
8330 >vos examine</B
8331 ></SPAN
8332 > and <SPAN
8333 CLASS="bold"
8334 ><B
8335 CLASS="emphasis"
8336 >vos listvol</B
8337 ></SPAN
8338 > commands, or
8339           attempts to access the volume fail.</P
8340 ><P
8341 ><SPAN
8342 CLASS="bold"
8343 ><B
8344 CLASS="emphasis"
8345 >Possible cause:</B
8346 ></SPAN
8347 > Two files or versions of a file are sharing the same disk blocks
8348           because of an interrupted operation. The File Server and Volume Server normally refuse to attach volumes that exhibit this
8349           type of corruption, because it can be very dangerous. If the Volume Server or File Server do attach the volume but are
8350           unsure of the status of the affected disk blocks, they sometimes try to write yet more data there. When they cannot
8351           perform the write, the data is lost. This effect can cascade, causing loss of all data on a partition.</P
8352 ><P
8353 ><SPAN
8354 CLASS="bold"
8355 ><B
8356 CLASS="emphasis"
8357 >Salvager's solution:</B
8358 ></SPAN
8359 > Delete the data from the corrupted disk blocks in preference
8360           to losing an entire partition.</P
8361 ></LI
8362 ><LI
8363 ><P
8364 ><SPAN
8365 CLASS="bold"
8366 ><B
8367 CLASS="emphasis"
8368 >Symptom:</B
8369 ></SPAN
8370 > There is less space available on the partition than you expect based on
8371           the size statistic reported for each volume by the <SPAN
8372 CLASS="bold"
8373 ><B
8374 CLASS="emphasis"
8375 >vos listvol</B
8376 ></SPAN
8377 > command.</P
8378 ><P
8379 ><SPAN
8380 CLASS="bold"
8381 ><B
8382 CLASS="emphasis"
8383 >Possible cause:</B
8384 ></SPAN
8385 > There are orphaned files and directories. An
8386           <SPAN
8387 CLASS="emphasis"
8388 ><I
8389 CLASS="emphasis"
8390 >orphaned</I
8391 ></SPAN
8392 > element is completely inaccessible because it is not referenced by any directory that can
8393           act as its parent (is higher in the file tree). An orphaned element is not counted in the calculation of a volume's size
8394           (or against its quota), even though it occupies space on the server partition.</P
8395 ><P
8396 ><SPAN
8397 CLASS="bold"
8398 ><B
8399 CLASS="emphasis"
8400 >Salvager's solution:</B
8401 ></SPAN
8402 > By default, print a message to the <SPAN
8403 CLASS="bold"
8404 ><B
8405 CLASS="emphasis"
8406 >/usr/afs/logs/SalvageLog</B
8407 ></SPAN
8408 > file reporting how many orphans were found and the approximate number of
8409           kilobytes they are consuming. You can use the <SPAN
8410 CLASS="bold"
8411 ><B
8412 CLASS="emphasis"
8413 >-orphans</B
8414 ></SPAN
8415 > argument to remove or attach
8416           orphaned elements instead. See <A
8417 HREF="c8420.html#HDRWQ233"
8418 >To salvage volumes</A
8419 >.</P
8420 ></LI
8421 ></UL
8422 ></P
8423 ><P
8424 >When you notice symptoms such as these, use the <SPAN
8425 CLASS="bold"
8426 ><B
8427 CLASS="emphasis"
8428 >bos salvage</B
8429 ></SPAN
8430 > command to invoke the
8431     Salvager before corruption spreads. (Even though it operates on volumes, the command belongs to the <SPAN
8432 CLASS="bold"
8433 ><B
8434 CLASS="emphasis"
8435 >bos</B
8436 ></SPAN
8437 > suite because the BOS Server must coordinate the shutdown and restart of the Volume Server and File
8438     Server with the Salvager. It shuts them down before the Salvager starts, and automatically restarts them when the salvage
8439     operation finishes.)</P
8440 ><P
8441 >All of the AFS data stored on a file server machine is inaccessible during the salvage of one or more partitions. If you
8442     salvage just one volume, it alone is inaccessible.</P
8443 ><P
8444 >When processing one or more partitions, the command restores consistency to corrupted read/write volumes where possible.
8445     For read-only or backup volumes, it inspects only the volume header: <UL
8446 ><LI
8447 ><P
8448 >If the volume header is corrupted, the Salvager removes the volume completely and records the removal in its log
8449           file, <SPAN
8450 CLASS="bold"
8451 ><B
8452 CLASS="emphasis"
8453 >/usr/afs/logs/SalvageLog</B
8454 ></SPAN
8455 >. Issue the <SPAN
8456 CLASS="bold"
8457 ><B
8458 CLASS="emphasis"
8459 >vos release</B
8460 ></SPAN
8461 > or
8462           <SPAN
8463 CLASS="bold"
8464 ><B
8465 CLASS="emphasis"
8466 >vos backup</B
8467 ></SPAN
8468 > command to create the read-only or backup volume again.</P
8469 ></LI
8470 ><LI
8471 ><P
8472 >If the volume header is intact, the Salvager skips the volume (does not check for corruption in the contents).
8473           However, if the File Server notices corruption as it initializes, it sometimes refuses to attach the volume or bring it
8474           online. In this case, it is simplest to remove the volume by issuing the <SPAN
8475 CLASS="bold"
8476 ><B
8477 CLASS="emphasis"
8478 >vos remove</B
8479 ></SPAN
8480 > or
8481           <SPAN
8482 CLASS="bold"
8483 ><B
8484 CLASS="emphasis"
8485 >vos zap</B
8486 ></SPAN
8487 > command. Then issue the <SPAN
8488 CLASS="bold"
8489 ><B
8490 CLASS="emphasis"
8491 >vos release</B
8492 ></SPAN
8493 > or <SPAN
8494 CLASS="bold"
8495 ><B
8496 CLASS="emphasis"
8497 >vos backup</B
8498 ></SPAN
8499 > command to create it again.</P
8500 ></LI
8501 ></UL
8502 ></P
8503 ><P
8504 >Combine the <SPAN
8505 CLASS="bold"
8506 ><B
8507 CLASS="emphasis"
8508 >bos salvage</B
8509 ></SPAN
8510 > command's arguments as indicated to salvage different numbers of
8511     volumes: <UL
8512 ><LI
8513 ><P
8514 >To salvage all volumes on a file server machine, combine the <SPAN
8515 CLASS="bold"
8516 ><B
8517 CLASS="emphasis"
8518 >-server</B
8519 ></SPAN
8520 > argument and
8521           the <SPAN
8522 CLASS="bold"
8523 ><B
8524 CLASS="emphasis"
8525 >-all</B
8526 ></SPAN
8527 > flag.</P
8528 ></LI
8529 ><LI
8530 ><P
8531 >To salvage all volumes on one partition, combine the <SPAN
8532 CLASS="bold"
8533 ><B
8534 CLASS="emphasis"
8535 >-server</B
8536 ></SPAN
8537 > and <SPAN
8538 CLASS="bold"
8539 ><B
8540 CLASS="emphasis"
8541 >-partition</B
8542 ></SPAN
8543 > arguments.</P
8544 ></LI
8545 ><LI
8546 ><P
8547 >To salvage only one read/write volume, combine the <SPAN
8548 CLASS="bold"
8549 ><B
8550 CLASS="emphasis"
8551 >-server</B
8552 ></SPAN
8553 >, <SPAN
8554 CLASS="bold"
8555 ><B
8556 CLASS="emphasis"
8557 >-partition</B
8558 ></SPAN
8559 >, and <SPAN
8560 CLASS="bold"
8561 ><B
8562 CLASS="emphasis"
8563 >-volume</B
8564 ></SPAN
8565 > arguments. Only that volume is
8566           inaccessible to Cache Managers, because the BOS Server does not shutdown the File Server and Volume Server processes
8567           during the salvage of a single volume. Do not name a read-only or backup volume with the <SPAN
8568 CLASS="bold"
8569 ><B
8570 CLASS="emphasis"
8571 >-volume</B
8572 ></SPAN
8573 > argument. Instead, remove the volume, using the <SPAN
8574 CLASS="bold"
8575 ><B
8576 CLASS="emphasis"
8577 >vos remove</B
8578 ></SPAN
8579 >
8580           or <SPAN
8581 CLASS="bold"
8582 ><B
8583 CLASS="emphasis"
8584 >vos zap</B
8585 ></SPAN
8586 > command. Then create a new copy of the volume with the <SPAN
8587 CLASS="bold"
8588 ><B
8589 CLASS="emphasis"
8590 >vos release</B
8591 ></SPAN
8592 > or <SPAN
8593 CLASS="bold"
8594 ><B
8595 CLASS="emphasis"
8596 >vos backup</B
8597 ></SPAN
8598 > command.</P
8599 ></LI
8600 ></UL
8601 ></P
8602 ><P
8603 >The Salvager always writes a trace to the <SPAN
8604 CLASS="bold"
8605 ><B
8606 CLASS="emphasis"
8607 >/usr/afs/logs/SalvageLog</B
8608 ></SPAN
8609 > file on the file
8610     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
8611     where you issue the <SPAN
8612 CLASS="bold"
8613 ><B
8614 CLASS="emphasis"
8615 >bos salvage</B
8616 ></SPAN
8617 > command), name the file with the <SPAN
8618 CLASS="bold"
8619 ><B
8620 CLASS="emphasis"
8621 >-file</B
8622 ></SPAN
8623 > argument. Or, to display the trace on the standard output stream as it is written to the <SPAN
8624 CLASS="bold"
8625 ><B
8626 CLASS="emphasis"
8627 >/usr/afs/logs/SalvageLog</B
8628 ></SPAN
8629 > file, include the <SPAN
8630 CLASS="bold"
8631 ><B
8632 CLASS="emphasis"
8633 >-showlog</B
8634 ></SPAN
8635 > flag.</P
8636 ><P
8637 >By default, multiple Salvager subprocesses run in parallel: one for each partition up to four, and four subprocesses for
8638     four or more partitions. To increase or decrease the number of subprocesses running in parallel, provide a positive integer
8639     value for the <SPAN
8640 CLASS="bold"
8641 ><B
8642 CLASS="emphasis"
8643 >-parallel</B
8644 ></SPAN
8645 > argument.</P
8646 ><P
8647 >If there is more than one server partition on a physical disk, the Salvager by default salvages them serially to avoid the
8648     inefficiency of constantly moving the disk head from one partition to another. However, this strategy is often not ideal if the
8649     partitions are configured as logical volumes that span multiple disks. To force the Salvager to salvage logical volumes in
8650     parallel, provide the string <SPAN
8651 CLASS="bold"
8652 ><B
8653 CLASS="emphasis"
8654 >all</B
8655 ></SPAN
8656 > as the value for the <SPAN
8657 CLASS="bold"
8658 ><B
8659 CLASS="emphasis"
8660 >-parallel</B
8661 ></SPAN
8662 > argument. Provide a positive integer to specify the number of subprocesses to run in parallel
8663     (for example, <SPAN
8664 CLASS="bold"
8665 ><B
8666 CLASS="emphasis"
8667 >-parallel 5all</B
8668 ></SPAN
8669 > for five subprocesses), or omit the integer to run up to four
8670     subprocesses, depending on the number of logical volumes being salvaged.</P
8671 ><P
8672 >The Salvager creates temporary files as it runs, by default writing them to the partition it is salvaging. The number of
8673     files can be quite large, and if the partition is too full to accommodate them, the Salvager terminates without completing the
8674     salvage operation (it always removes the temporary files before exiting). Other Salvager subprocesses running at the same time
8675     continue until they finish salvaging all other partitions where there is enough disk space for temporary files. To complete the
8676     interrupted salvage, reissue the command against the appropriate partitions, adding the <SPAN
8677 CLASS="bold"
8678 ><B
8679 CLASS="emphasis"
8680 >-tmpdir</B
8681 ></SPAN
8682 >
8683     argument to redirect the temporary files to a local disk directory that has enough space.</P
8684 ><P
8685 >The <SPAN
8686 CLASS="bold"
8687 ><B
8688 CLASS="emphasis"
8689 >-orphans</B
8690 ></SPAN
8691 > argument controls how the Salvager handles orphaned files and directories
8692     that it finds on server partitions it is salvaging. An orphaned element is completely inaccessible because it is not referenced
8693     by the vnode of any directory that can act as its parent (is higher in the filespace). Orphaned objects occupy space on the
8694     server partition, but do not count against the volume's quota.</P
8695 ><P
8696 >During the salvage, the output of the <SPAN
8697 CLASS="bold"
8698 ><B
8699 CLASS="emphasis"
8700 >bos status</B
8701 ></SPAN
8702 > command reports the following auxiliary
8703     status for the <SPAN
8704 CLASS="bold"
8705 ><B
8706 CLASS="emphasis"
8707 >fs</B
8708 ></SPAN
8709 > process:</P
8710 ><PRE
8711 CLASS="programlisting"
8712 >&#13;   Salvaging file system
8713 </PRE
8714 ><DIV
8715 CLASS="sect2"
8716 ><H2
8717 CLASS="sect2"
8718 ><A
8719 NAME="HDRWQ233"
8720 >To salvage volumes</A
8721 ></H2
8722 ><OL
8723 TYPE="1"
8724 ><LI
8725 ><P
8726 >Verify that you are listed in the <SPAN
8727 CLASS="bold"
8728 ><B
8729 CLASS="emphasis"
8730 >/usr/afs/etc/UserList</B
8731 ></SPAN
8732 > file. If necessary, issue
8733           the <SPAN
8734 CLASS="bold"
8735 ><B
8736 CLASS="emphasis"
8737 >bos listusers</B
8738 ></SPAN
8739 > command, which is fully described in <A
8740 HREF="c32432.html#HDRWQ593"
8741 >To
8742           display the users in the UserList file</A
8743 >. <PRE
8744 CLASS="programlisting"
8745 >&#13;   % <SPAN
8746 CLASS="bold"
8747 ><B
8748 CLASS="emphasis"
8749 >bos listusers</B
8750 ></SPAN
8751 > &#60;<VAR
8752 CLASS="replaceable"
8753 >machine name</VAR
8754 >&#62;
8755 </PRE
8756 ></P
8757 ></LI
8758 ><LI
8759 ><P
8760 >Issue the <SPAN
8761 CLASS="bold"
8762 ><B
8763 CLASS="emphasis"
8764 >bos salvage</B
8765 ></SPAN
8766 > command to salvage one or more volumes. <PRE
8767 CLASS="programlisting"
8768 >&#13;   % <SPAN
8769 CLASS="bold"
8770 ><B
8771 CLASS="emphasis"
8772 >bos salvage  -server</B
8773 ></SPAN
8774 > &#60;<VAR
8775 CLASS="replaceable"
8776 >machine name</VAR
8777 >&#62;  [<SPAN
8778 CLASS="bold"
8779 ><B
8780 CLASS="emphasis"
8781 >-partition</B
8782 ></SPAN
8783 > &#60;<VAR
8784 CLASS="replaceable"
8785 >salvage partition</VAR
8786 >&#62;]  \
8787                   [<SPAN
8788 CLASS="bold"
8789 ><B
8790 CLASS="emphasis"
8791 >-volume</B
8792 ></SPAN
8793 > &#60;<VAR
8794 CLASS="replaceable"
8795 >salvage volume number or volume name</VAR
8796 >&#62;]  \
8797                   [<SPAN
8798 CLASS="bold"
8799 ><B
8800 CLASS="emphasis"
8801 >-file</B
8802 ></SPAN
8803 > salvage log output file]  [<SPAN
8804 CLASS="bold"
8805 ><B
8806 CLASS="emphasis"
8807 >-all</B
8808 ></SPAN
8809 >]  [<SPAN
8810 CLASS="bold"
8811 ><B
8812 CLASS="emphasis"
8813 >-showlog</B
8814 ></SPAN
8815 >]  \
8816                   [<SPAN
8817 CLASS="bold"
8818 ><B
8819 CLASS="emphasis"
8820 >-parallel</B
8821 ></SPAN
8822 > &#60;<VAR
8823 CLASS="replaceable"
8824 ># of max parallel partition salvaging</VAR
8825 >&#62;]  \
8826                   [<SPAN
8827 CLASS="bold"
8828 ><B
8829 CLASS="emphasis"
8830 >-tmpdir</B
8831 ></SPAN
8832 > &#60;<VAR
8833 CLASS="replaceable"
8834 >directory to place tmp files</VAR
8835 >&#62;]  \
8836                   [<SPAN
8837 CLASS="bold"
8838 ><B
8839 CLASS="emphasis"
8840 >-orphans</B
8841 ></SPAN
8842 > &#60;<SPAN
8843 CLASS="bold"
8844 ><B
8845 CLASS="emphasis"
8846 >ignore</B
8847 ></SPAN
8848 > | <SPAN
8849 CLASS="bold"
8850 ><B
8851 CLASS="emphasis"
8852 >remove</B
8853 ></SPAN
8854 > | <SPAN
8855 CLASS="bold"
8856 ><B
8857 CLASS="emphasis"
8858 >attach</B
8859 ></SPAN
8860 > &#62;]
8861 </PRE
8862 ></P
8863 ><P
8864 >where <DIV
8865 CLASS="variablelist"
8866 ><DL
8867 ><DT
8868 ><SPAN
8869 CLASS="bold"
8870 ><B
8871 CLASS="emphasis"
8872 >-server</B
8873 ></SPAN
8874 ></DT
8875 ><DD
8876 ><P
8877 >Names the file server machine on which to salvage volumes. This argument can be combined either with the
8878                   <SPAN
8879 CLASS="bold"
8880 ><B
8881 CLASS="emphasis"
8882 >-all</B
8883 ></SPAN
8884 > flag, the <SPAN
8885 CLASS="bold"
8886 ><B
8887 CLASS="emphasis"
8888 >-partition</B
8889 ></SPAN
8890 > argument, or both the
8891                   <SPAN
8892 CLASS="bold"
8893 ><B
8894 CLASS="emphasis"
8895 >-partition</B
8896 ></SPAN
8897 > and <SPAN
8898 CLASS="bold"
8899 ><B
8900 CLASS="emphasis"
8901 >-volume</B
8902 ></SPAN
8903 > arguments.</P
8904 ></DD
8905 ><DT
8906 ><SPAN
8907 CLASS="bold"
8908 ><B
8909 CLASS="emphasis"
8910 >-partition</B
8911 ></SPAN
8912 ></DT
8913 ><DD
8914 ><P
8915 >Names a single partition on which to salvage all volumes. The <SPAN
8916 CLASS="bold"
8917 ><B
8918 CLASS="emphasis"
8919 >-server</B
8920 ></SPAN
8921 >
8922                   argument must be provided along with this one.</P
8923 ></DD
8924 ><DT
8925 ><SPAN
8926 CLASS="bold"
8927 ><B
8928 CLASS="emphasis"
8929 >-volume</B
8930 ></SPAN
8931 ></DT
8932 ><DD
8933 ><P
8934 >Specifies the name or volume ID number of one read/write volume to salvage. Combine this argument with the
8935                   <SPAN
8936 CLASS="bold"
8937 ><B
8938 CLASS="emphasis"
8939 >-server</B
8940 ></SPAN
8941 > and <SPAN
8942 CLASS="bold"
8943 ><B
8944 CLASS="emphasis"
8945 >-partition</B
8946 ></SPAN
8947 > arguments.</P
8948 ></DD
8949 ><DT
8950 ><SPAN
8951 CLASS="bold"
8952 ><B
8953 CLASS="emphasis"
8954 >-file</B
8955 ></SPAN
8956 ></DT
8957 ><DD
8958 ><P
8959 >Specifies the complete pathname of a file into which to write a trace of the salvage operation, in addition
8960                   to the <SPAN
8961 CLASS="bold"
8962 ><B
8963 CLASS="emphasis"
8964 >/usr/afs/logs/SalvageLog</B
8965 ></SPAN
8966 > file on the server machine. If the file pathname
8967                   is local, the trace is written to the specified file on the local disk of the machine where the <SPAN
8968 CLASS="bold"
8969 ><B
8970 CLASS="emphasis"
8971 >bos salvage</B
8972 ></SPAN
8973 > command is issued. If the <SPAN
8974 CLASS="bold"
8975 ><B
8976 CLASS="emphasis"
8977 >-volume</B
8978 ></SPAN
8979 > argument is
8980                   included, the file can be in AFS, though not in the volume being salvaged. Do not combine this argument with the
8981                   <SPAN
8982 CLASS="bold"
8983 ><B
8984 CLASS="emphasis"
8985 >-showlog</B
8986 ></SPAN
8987 > flag.</P
8988 ></DD
8989 ><DT
8990 ><SPAN
8991 CLASS="bold"
8992 ><B
8993 CLASS="emphasis"
8994 >-all</B
8995 ></SPAN
8996 ></DT
8997 ><DD
8998 ><P
8999 >Salvages all volumes on all of the partitions on the machine named by the <SPAN
9000 CLASS="bold"
9001 ><B
9002 CLASS="emphasis"
9003 >-server</B
9004 ></SPAN
9005 > argument.</P
9006 ></DD
9007 ><DT
9008 ><SPAN
9009 CLASS="bold"
9010 ><B
9011 CLASS="emphasis"
9012 >-showlog</B
9013 ></SPAN
9014 ></DT
9015 ><DD
9016 ><P
9017 >Displays the trace of the salvage operation on the standard output stream, as well as writing it to the
9018                   <SPAN
9019 CLASS="bold"
9020 ><B
9021 CLASS="emphasis"
9022 >/usr/afs/logs/SalvageLog</B
9023 ></SPAN
9024 > file.</P
9025 ></DD
9026 ><DT
9027 ><SPAN
9028 CLASS="bold"
9029 ><B
9030 CLASS="emphasis"
9031 >-parallel</B
9032 ></SPAN
9033 ></DT
9034 ><DD
9035 ><P
9036 >Specifies the maximum number of Salvager subprocesses to run in parallel. Provide one of three values:
9037                   <UL
9038 ><LI
9039 ><P
9040 >An integer from the range <SPAN
9041 CLASS="bold"
9042 ><B
9043 CLASS="emphasis"
9044 >1</B
9045 ></SPAN
9046 > to <SPAN
9047 CLASS="bold"
9048 ><B
9049 CLASS="emphasis"
9050 >32</B
9051 ></SPAN
9052 >. A
9053                         value of <SPAN
9054 CLASS="bold"
9055 ><B
9056 CLASS="emphasis"
9057 >1</B
9058 ></SPAN
9059 > means that a single Salvager process salvages the partitions
9060                         sequentially.</P
9061 ></LI
9062 ><LI
9063 ><P
9064 >The string <SPAN
9065 CLASS="bold"
9066 ><B
9067 CLASS="emphasis"
9068 >all</B
9069 ></SPAN
9070 > to run up to four Salvager subprocesses in parallel on
9071                         partitions formatted as logical volumes that span multiple physical disks. Use this value only with such
9072                         logical volumes.</P
9073 ></LI
9074 ><LI
9075 ><P
9076 >The string <SPAN
9077 CLASS="bold"
9078 ><B
9079 CLASS="emphasis"
9080 >all</B
9081 ></SPAN
9082 > followed immediately (with no intervening space) by an
9083                         integer from the range <SPAN
9084 CLASS="bold"
9085 ><B
9086 CLASS="emphasis"
9087 >1</B
9088 ></SPAN
9089 > to <SPAN
9090 CLASS="bold"
9091 ><B
9092 CLASS="emphasis"
9093 >32</B
9094 ></SPAN
9095 >, to run the
9096                         specified number of Salvager subprocesses in parallel on partitions formatted as logical volumes. Use this
9097                         value only with such logical volumes.</P
9098 ></LI
9099 ></UL
9100 ></P
9101 ><P
9102 >The BOS Server never starts more Salvager subprocesses than there are partitions, and always starts only one
9103                   process to salvage a single volume. If this argument is omitted, up to four Salvager subprocesses run in
9104                   parallel.</P
9105 ></DD
9106 ><DT
9107 ><SPAN
9108 CLASS="bold"
9109 ><B
9110 CLASS="emphasis"
9111 >-tmpdir</B
9112 ></SPAN
9113 ></DT
9114 ><DD
9115 ><P
9116 >Specifies the full pathname of a local disk directory to which the Salvager process writes temporary files
9117                   as it runs. By default, it writes them to the partition it is currently salvaging.</P
9118 ></DD
9119 ><DT
9120 ><SPAN
9121 CLASS="bold"
9122 ><B
9123 CLASS="emphasis"
9124 >-orphans</B
9125 ></SPAN
9126 ></DT
9127 ><DD
9128 ><P
9129 >Controls how the Salvager handles orphaned files and directories. Choose one of the following three values:
9130                   <DIV
9131 CLASS="variablelist"
9132 ><DL
9133 ><DT
9134 ><SPAN
9135 CLASS="bold"
9136 ><B
9137 CLASS="emphasis"
9138 >ignore</B
9139 ></SPAN
9140 ></DT
9141 ><DD
9142 ><P
9143 >Leaves the orphaned objects on the disk, but prints a message to the <SPAN
9144 CLASS="bold"
9145 ><B
9146 CLASS="emphasis"
9147 >/usr/afs/logs/SalvageLog</B
9148 ></SPAN
9149 > file reporting how many orphans were found and the
9150                           approximate number of kilobytes they are consuming. This is the default if you omit the <SPAN
9151 CLASS="bold"
9152 ><B
9153 CLASS="emphasis"
9154 >-orphans</B
9155 ></SPAN
9156 > argument.</P
9157 ></DD
9158 ><DT
9159 ><SPAN
9160 CLASS="bold"
9161 ><B
9162 CLASS="emphasis"
9163 >remove</B
9164 ></SPAN
9165 ></DT
9166 ><DD
9167 ><P
9168 >Removes the orphaned objects, and prints a message to the <SPAN
9169 CLASS="bold"
9170 ><B
9171 CLASS="emphasis"
9172 >/usr/afs/logs/SalvageLog</B
9173 ></SPAN
9174 > file reporting how many orphans were removed and the
9175                           approximate number of kilobytes they were consuming.</P
9176 ></DD
9177 ><DT
9178 ><SPAN
9179 CLASS="bold"
9180 ><B
9181 CLASS="emphasis"
9182 >attach</B
9183 ></SPAN
9184 ></DT
9185 ><DD
9186 ><P
9187 >Attaches the orphaned objects by creating a reference to them in the vnode of the volume's root
9188                           directory. Since each object's actual name is now lost, the Salvager assigns each one a name of the
9189                           following form: <TABLE
9190 BORDER="0"
9191 ><TBODY
9192 ><TR
9193 ><TD
9194 ><SPAN
9195 CLASS="bold"
9196 ><B
9197 CLASS="emphasis"
9198 >_ _ORPHANFILE_ _.</B
9199 ></SPAN
9200 > index for files</TD
9201 ></TR
9202 ><TR
9203 ><TD
9204 ><SPAN
9205 CLASS="bold"
9206 ><B
9207 CLASS="emphasis"
9208 >_ _ORPHANDIR_ _.</B
9209 ></SPAN
9210 > index for directories</TD
9211 ></TR
9212 ></TBODY
9213 ></TABLE
9214 ></P
9215 ><P
9216 >where index is a two-digit number that uniquely identifies each object. The orphans are charged
9217                           against the volume's quota and appear in the output of the <SPAN
9218 CLASS="bold"
9219 ><B
9220 CLASS="emphasis"
9221 >ls</B
9222 ></SPAN
9223 > command
9224                           issued against the volume's root directory.</P
9225 ></DD
9226 ></DL
9227 ></DIV
9228 ></P
9229 ></DD
9230 ></DL
9231 ></DIV
9232 ></P
9233 ></LI
9234 ></OL
9235 ></DIV
9236 ></DIV
9237 ><DIV
9238 CLASS="sect1"
9239 ><H1
9240 CLASS="sect1"
9241 ><A
9242 NAME="HDRWQ234"
9243 >Setting and Displaying Volume Quota and Current Size</A
9244 ></H1
9245 ><P
9246 >Every AFS volume has an associated quota which limits the volume's size. The default quota for a newly created volume is
9247     5,000 kilobyte blocks (slightly less that 5 MB). When a volume reaches its quota, the File Server rejects attempts to create new
9248     files or directories in it. If an application is writing data into an existing file in a full volume, the File Server allows a
9249     defined overage (by default, 1 MB). (You can use the <SPAN
9250 CLASS="bold"
9251 ><B
9252 CLASS="emphasis"
9253 >fileserver</B
9254 ></SPAN
9255 > command's <SPAN
9256 CLASS="bold"
9257 ><B
9258 CLASS="emphasis"
9259 >-spare</B
9260 ></SPAN
9261 > or <SPAN
9262 CLASS="bold"
9263 ><B
9264 CLASS="emphasis"
9265 >-pctspare</B
9266 ></SPAN
9267 > argument to change the default overage; see the
9268     command's reference page in the <SPAN
9269 CLASS="emphasis"
9270 ><I
9271 CLASS="emphasis"
9272 > IBM AFS Administration Reference</I
9273 ></SPAN
9274 >.)</P
9275 ><P
9276 >To set a quota other than 5000 KB as you create a volume, include the <SPAN
9277 CLASS="bold"
9278 ><B
9279 CLASS="emphasis"
9280 >-maxquota</B
9281 ></SPAN
9282 > argument
9283     to the <SPAN
9284 CLASS="bold"
9285 ><B
9286 CLASS="emphasis"
9287 >vos create</B
9288 ></SPAN
9289 > command, as described in <A
9290 HREF="c8420.html#HDRWQ185"
9291 >Creating Read/write
9292     Volumes</A
9293 >. To modify an existing volume's quota, issue either the <SPAN
9294 CLASS="bold"
9295 ><B
9296 CLASS="emphasis"
9297 >fs setquota</B
9298 ></SPAN
9299 > or the
9300     <SPAN
9301 CLASS="bold"
9302 ><B
9303 CLASS="emphasis"
9304 >fs setvol</B
9305 ></SPAN
9306 > command as described in the following instructions. Do not set an existing volume's
9307     quota lower than its current size.</P
9308 ><P
9309 >In general, smaller volumes are easier to administer than larger ones. If you need to move volumes, say for load-balancing
9310     purposes, it is easier to find enough free space on other partitions for small volumes. Move operations complete more quickly
9311     for small volumes, reducing the potential for outages or other errors to interrupt the move. AFS supports a maximum volume size,
9312     which can vary for different AFS releases; see the <SPAN
9313 CLASS="emphasis"
9314 ><I
9315 CLASS="emphasis"
9316 > IBM AFS Release Notes</I
9317 ></SPAN
9318 > for the version you are using.
9319     Also, the size of a partition or logical places an absolute limit on volume size, because a volume cannot span multiple
9320     partitions or logical volumes.</P
9321 ><P
9322 >It is generally safe to overpack partitions by putting more volumes on them than can actually fit if all the volumes reach
9323     their maximum quota. However, only experience determines to what degree overpacking works in your cell. It depends on what kind
9324     of quota you assign to volumes (particularly user volumes, which are more likely than system volumes to grow unpredictably) and
9325     how much information people generate and store in comparison to their quota.</P
9326 ><P
9327 >There are several commands that display a volume's quota, as described in the following instructions. They differ in how
9328     much related information they produce.</P
9329 ><DIV
9330 CLASS="sect2"
9331 ><H2
9332 CLASS="sect2"
9333 ><A
9334 NAME="Header_250"
9335 >To set quota for a single volume</A
9336 ></H2
9337 ><OL
9338 TYPE="1"
9339 ><LI
9340 ><P
9341 >Verify that you belong to the <SPAN
9342 CLASS="bold"
9343 ><B
9344 CLASS="emphasis"
9345 >system:administrators</B
9346 ></SPAN
9347 > group. If necessary, issue the
9348           <SPAN
9349 CLASS="bold"
9350 ><B
9351 CLASS="emphasis"
9352 >pts membership</B
9353 ></SPAN
9354 > command, which is fully described in <A
9355 HREF="c32432.html#HDRWQ587"
9356 >To display
9357           the members of the system:administrators group</A
9358 >. <PRE
9359 CLASS="programlisting"
9360 >&#13;   % <SPAN
9361 CLASS="bold"
9362 ><B
9363 CLASS="emphasis"
9364 >pts membership system:administrators</B
9365 ></SPAN
9366 >
9367 </PRE
9368 ></P
9369 ></LI
9370 ><LI
9371 ><P
9372 >Issue the <SPAN
9373 CLASS="bold"
9374 ><B
9375 CLASS="emphasis"
9376 >fs setquota</B
9377 ></SPAN
9378 > command to set the volume's maximum quota. <PRE
9379 CLASS="programlisting"
9380 >&#13;   % <SPAN
9381 CLASS="bold"
9382 ><B
9383 CLASS="emphasis"
9384 >fs setquota</B
9385 ></SPAN
9386 > [&#60;<VAR
9387 CLASS="replaceable"
9388 >dir/file path</VAR
9389 >&#62;] <SPAN
9390 CLASS="bold"
9391 ><B
9392 CLASS="emphasis"
9393 >-max</B
9394 ></SPAN
9395 > &#60;<VAR
9396 CLASS="replaceable"
9397 >max quota in kbytes</VAR
9398 >&#62;
9399 </PRE
9400 ></P
9401 ><P
9402 >where <DIV
9403 CLASS="variablelist"
9404 ><DL
9405 ><DT
9406 ><SPAN
9407 CLASS="bold"
9408 ><B
9409 CLASS="emphasis"
9410 >sq</B
9411 ></SPAN
9412 ></DT
9413 ><DD
9414 ><P
9415 >Is an acceptable alias for <SPAN
9416 CLASS="bold"
9417 ><B
9418 CLASS="emphasis"
9419 >setquota</B
9420 ></SPAN
9421 >.</P
9422 ></DD
9423 ><DT
9424 ><SPAN
9425 CLASS="bold"
9426 ><B
9427 CLASS="emphasis"
9428 >dir/file path</B
9429 ></SPAN
9430 ></DT
9431 ><DD
9432 ><P
9433 >Names a file or directory in the volume for which to set the indicated quota. Partial pathnames are
9434                   interpreted relative to the current working directory, which is the default if you omit this argument.</P
9435 ><P
9436 >Specify the read/write path to the file or directory, to avoid the failure that results when you attempt to
9437                   change a read-only volume. By convention, you indicate the read/write path by placing a period before the cell
9438                   name at the pathname's second level (for example, <SPAN
9439 CLASS="bold"
9440 ><B
9441 CLASS="emphasis"
9442 >/afs/.abc.com</B
9443 ></SPAN
9444 >). For further
9445                   discussion of the concept of read/write and read-only paths through the filespace, see <A
9446 HREF="c8420.html#HDRWQ209"
9447 >The Rules of Mount Point Traversal</A
9448 >.</P
9449 ></DD
9450 ><DT
9451 ><SPAN
9452 CLASS="bold"
9453 ><B
9454 CLASS="emphasis"
9455 >max quota in kbytes</B
9456 ></SPAN
9457 ></DT
9458 ><DD
9459 ><P
9460 >Sets the volume's quota, expressed in kilobyte blocks ( <SPAN
9461 CLASS="bold"
9462 ><B
9463 CLASS="emphasis"
9464 >1024</B
9465 ></SPAN
9466 > equals a
9467                   megabyte). A value of <SPAN
9468 CLASS="bold"
9469 ><B
9470 CLASS="emphasis"
9471 >0</B
9472 ></SPAN
9473 > grants an unlimited quota, but the size of the partition
9474                   imposes an absolute limit. You must include the <SPAN
9475 CLASS="bold"
9476 ><B
9477 CLASS="emphasis"
9478 >-max</B
9479 ></SPAN
9480 > switch if omitting the
9481                   dir/file path argument (to set the quota on the volume that houses the current working directory).</P
9482 ></DD
9483 ></DL
9484 ></DIV
9485 ></P
9486 ></LI
9487 ></OL
9488 ></DIV
9489 ><DIV
9490 CLASS="sect2"
9491 ><H2
9492 CLASS="sect2"
9493 ><A
9494 NAME="Header_251"
9495 >To set maximum quota on one or more volumes</A
9496 ></H2
9497 ><OL
9498 TYPE="1"
9499 ><LI
9500 ><P
9501 >Verify that you belong to the <SPAN
9502 CLASS="bold"
9503 ><B
9504 CLASS="emphasis"
9505 >system:administrators</B
9506 ></SPAN
9507 > group. If necessary, issue the
9508           <SPAN
9509 CLASS="bold"
9510 ><B
9511 CLASS="emphasis"
9512 >pts membership</B
9513 ></SPAN
9514 > command, which is fully described in <A
9515 HREF="c32432.html#HDRWQ587"
9516 >To display
9517           the members of the system:administrators group</A
9518 >. <PRE
9519 CLASS="programlisting"
9520 >&#13;   % <SPAN
9521 CLASS="bold"
9522 ><B
9523 CLASS="emphasis"
9524 >pts membership system:administrators</B
9525 ></SPAN
9526 >
9527 </PRE
9528 ></P
9529 ></LI
9530 ><LI
9531 ><P
9532 >Issue the <SPAN
9533 CLASS="bold"
9534 ><B
9535 CLASS="emphasis"
9536 >fs setvol</B
9537 ></SPAN
9538 > command to set the quota on one or more volumes.
9539           <PRE
9540 CLASS="programlisting"
9541 >&#13;   % <SPAN
9542 CLASS="bold"
9543 ><B
9544 CLASS="emphasis"
9545 >fs setvol</B
9546 ></SPAN
9547 > [&#60;<VAR
9548 CLASS="replaceable"
9549 >dir/file path</VAR
9550 >&#62;+] <SPAN
9551 CLASS="bold"
9552 ><B
9553 CLASS="emphasis"
9554 >-max</B
9555 ></SPAN
9556 > &#60;<VAR
9557 CLASS="replaceable"
9558 >disk space quota in 1K units</VAR
9559 >&#62;
9560 </PRE
9561 ></P
9562 ><P
9563 >where <DIV
9564 CLASS="variablelist"
9565 ><DL
9566 ><DT
9567 ><SPAN
9568 CLASS="bold"
9569 ><B
9570 CLASS="emphasis"
9571 >sv</B
9572 ></SPAN
9573 ></DT
9574 ><DD
9575 ><P
9576 >Is an acceptable alias for <SPAN
9577 CLASS="bold"
9578 ><B
9579 CLASS="emphasis"
9580 >setvol</B
9581 ></SPAN
9582 >.</P
9583 ></DD
9584 ><DT
9585 ><SPAN
9586 CLASS="bold"
9587 ><B
9588 CLASS="emphasis"
9589 >dir/file path</B
9590 ></SPAN
9591 ></DT
9592 ><DD
9593 ><P
9594 >Names one file or directory that resides in each volume for which to set the indicated quota. Partial
9595                   pathnames are interpreted relative to the current working directory, which is the default if you omit this
9596                   argument.</P
9597 ></DD
9598 ><DT
9599 ><SPAN
9600 CLASS="bold"
9601 ><B
9602 CLASS="emphasis"
9603 >disk space quota in 1K units</B
9604 ></SPAN
9605 ></DT
9606 ><DD
9607 ><P
9608 >Sets the maximum quota on each volume, expressed in kilobytes blocks ( <SPAN
9609 CLASS="bold"
9610 ><B
9611 CLASS="emphasis"
9612 >1024</B
9613 ></SPAN
9614 >
9615                   equals a megabyte). A value of <SPAN
9616 CLASS="bold"
9617 ><B
9618 CLASS="emphasis"
9619 >0</B
9620 ></SPAN
9621 > grants an unlimited quota, but the size of the
9622                   partition does impose an absolute limit.</P
9623 ></DD
9624 ></DL
9625 ></DIV
9626 ></P
9627 ></LI
9628 ></OL
9629 ></DIV
9630 ><DIV
9631 CLASS="sect2"
9632 ><H2
9633 CLASS="sect2"
9634 ><A
9635 NAME="Header_252"
9636 >To display percent quota used</A
9637 ></H2
9638 ><OL
9639 TYPE="1"
9640 ><LI
9641 ><P
9642 >Issue the <SPAN
9643 CLASS="bold"
9644 ><B
9645 CLASS="emphasis"
9646 >fs quota</B
9647 ></SPAN
9648 > command. <PRE
9649 CLASS="programlisting"
9650 >&#13;   % <SPAN
9651 CLASS="bold"
9652 ><B
9653 CLASS="emphasis"
9654 >fs quota</B
9655 ></SPAN
9656 > [&#60;<VAR
9657 CLASS="replaceable"
9658 >dir/file path</VAR
9659 >&#62;+]
9660 </PRE
9661 ></P
9662 ><P
9663 >where <DIV
9664 CLASS="variablelist"
9665 ><DL
9666 ><DT
9667 ><SPAN
9668 CLASS="bold"
9669 ><B
9670 CLASS="emphasis"
9671 >q</B
9672 ></SPAN
9673 ></DT
9674 ><DD
9675 ><P
9676 >Is the shortest acceptable abbreviation of <SPAN
9677 CLASS="bold"
9678 ><B
9679 CLASS="emphasis"
9680 >quota</B
9681 ></SPAN
9682 >.</P
9683 ></DD
9684 ><DT
9685 ><SPAN
9686 CLASS="bold"
9687 ><B
9688 CLASS="emphasis"
9689 >dir/file path</B
9690 ></SPAN
9691 ></DT
9692 ><DD
9693 ><P
9694 >Names a directory or file in each volume for which to display percent quota used. Partial pathnames are
9695                   interpreted relative to the current working directory, which is the default if you omit this argument.</P
9696 ></DD
9697 ></DL
9698 ></DIV
9699 ></P
9700 ></LI
9701 ></OL
9702 ><P
9703 >The following example illustrates the output produced by this command:</P
9704 ><PRE
9705 CLASS="programlisting"
9706 >&#13;   % <SPAN
9707 CLASS="bold"
9708 ><B
9709 CLASS="emphasis"
9710 >fs quota /afs/abc.com/usr/terry</B
9711 ></SPAN
9712 >
9713    34% of quota used.
9714 </PRE
9715 ></DIV
9716 ><DIV
9717 CLASS="sect2"
9718 ><H2
9719 CLASS="sect2"
9720 ><A
9721 NAME="Header_253"
9722 >To display quota, current size, and other information</A
9723 ></H2
9724 ><OL
9725 TYPE="1"
9726 ><LI
9727 ><P
9728 >Issue the <SPAN
9729 CLASS="bold"
9730 ><B
9731 CLASS="emphasis"
9732 >fs listquota</B
9733 ></SPAN
9734 > command. <PRE
9735 CLASS="programlisting"
9736 >&#13;   % <SPAN
9737 CLASS="bold"
9738 ><B
9739 CLASS="emphasis"
9740 >fs listquota</B
9741 ></SPAN
9742 > [&#60;<VAR
9743 CLASS="replaceable"
9744 >dir/file path</VAR
9745 >&#62;+]
9746 </PRE
9747 ></P
9748 ><P
9749 >where <DIV
9750 CLASS="variablelist"
9751 ><DL
9752 ><DT
9753 ><SPAN
9754 CLASS="bold"
9755 ><B
9756 CLASS="emphasis"
9757 >lq</B
9758 ></SPAN
9759 ></DT
9760 ><DD
9761 ><P
9762 >Is an alias for <SPAN
9763 CLASS="bold"
9764 ><B
9765 CLASS="emphasis"
9766 >listquota</B
9767 ></SPAN
9768 >.</P
9769 ></DD
9770 ><DT
9771 ><SPAN
9772 CLASS="bold"
9773 ><B
9774 CLASS="emphasis"
9775 >dir/file path</B
9776 ></SPAN
9777 ></DT
9778 ><DD
9779 ><P
9780 >Names a directory or file in each volume for which to display quota along with volume name and current space
9781                   usage. Partial pathnames are interpreted relative to the current working directory, which is the default if you
9782                   omit this argument.</P
9783 ></DD
9784 ></DL
9785 ></DIV
9786 ></P
9787 ></LI
9788 ></OL
9789 ><P
9790 >As illustrated in the following example, the output reports the volume's name, its quota and current size (both in
9791       kilobyte units), the percent quota used, and the percentage of space on the volume's host partition that is used.</P
9792 ><PRE
9793 CLASS="programlisting"
9794 >&#13;   % <SPAN
9795 CLASS="bold"
9796 ><B
9797 CLASS="emphasis"
9798 >fs listquota /afs/abc.com/usr/terry</B
9799 ></SPAN
9800 >
9801    Volume Name     Quota    Used    % Used   Partition
9802    user.terry      15000    5071       34%         86%
9803 </PRE
9804 ></DIV
9805 ><DIV
9806 CLASS="sect2"
9807 ><H2
9808 CLASS="sect2"
9809 ><A
9810 NAME="Header_254"
9811 >To display quota, current size, and more partition information</A
9812 ></H2
9813 ><OL
9814 TYPE="1"
9815 ><LI
9816 ><P
9817 >Issue the <SPAN
9818 CLASS="bold"
9819 ><B
9820 CLASS="emphasis"
9821 >fs examine</B
9822 ></SPAN
9823 > command. <PRE
9824 CLASS="programlisting"
9825 >&#13;   % <SPAN
9826 CLASS="bold"
9827 ><B
9828 CLASS="emphasis"
9829 >fs examine</B
9830 ></SPAN
9831 > [&#60;<VAR
9832 CLASS="replaceable"
9833 >dir/file path</VAR
9834 >&#62;+]
9835 </PRE
9836 ></P
9837 ><P
9838 >where <DIV
9839 CLASS="variablelist"
9840 ><DL
9841 ><DT
9842 ><SPAN
9843 CLASS="bold"
9844 ><B
9845 CLASS="emphasis"
9846 >exa</B
9847 ></SPAN
9848 ></DT
9849 ><DD
9850 ><P
9851 >Is the shortest acceptable abbreviation of <SPAN
9852 CLASS="bold"
9853 ><B
9854 CLASS="emphasis"
9855 >examine</B
9856 ></SPAN
9857 >.</P
9858 ></DD
9859 ><DT
9860 ><SPAN
9861 CLASS="bold"
9862 ><B
9863 CLASS="emphasis"
9864 >dir/file path</B
9865 ></SPAN
9866 ></DT
9867 ><DD
9868 ><P
9869 >Names a directory or file in each volume for which to display quota information and information about the
9870                   host partition. Partial pathnames are interpreted relative to the current working directory, which is the default
9871                   if you omit this argument.</P
9872 ></DD
9873 ></DL
9874 ></DIV
9875 ></P
9876 ></LI
9877 ></OL
9878 ><P
9879 >As illustrated in the following example, the output displays the volume's volume ID number and name, its quota and
9880       current size (both in kilobyte units), and the free and total number of kilobyte blocks on the volume's host partition.</P
9881 ><PRE
9882 CLASS="programlisting"
9883 >&#13;   % <SPAN
9884 CLASS="bold"
9885 ><B
9886 CLASS="emphasis"
9887 >fs examine /afs/abc.com/usr/terry</B
9888 ></SPAN
9889 >
9890    Volume status for vid = 50489902 named user.terry
9891    Current maximum quota is 15000
9892    Current blocks used are 5073
9893    The partition has 46383 blocks available out of 333305
9894 </PRE
9895 ><DIV
9896 CLASS="note"
9897 ><BLOCKQUOTE
9898 CLASS="note"
9899 ><P
9900 ><B
9901 >Note: </B
9902 >The partition-related statistics in this command's output do not always agree with the corresponding values in the
9903         output of the standard UNIX <SPAN
9904 CLASS="bold"
9905 ><B
9906 CLASS="emphasis"
9907 >df</B
9908 ></SPAN
9909 > command. The statistics reported by this command can be up
9910         to five minutes old, because the Cache Manager polls the File Server for partition information at that frequency. Also, on
9911         some operating systems, the <SPAN
9912 CLASS="bold"
9913 ><B
9914 CLASS="emphasis"
9915 >df</B
9916 ></SPAN
9917 > command's report of partition size includes reserved space
9918         not included in this command's calculation, and so is likely to be about 10% larger.</P
9919 ></BLOCKQUOTE
9920 ></DIV
9921 ></DIV
9922 ></DIV
9923 ><DIV
9924 CLASS="sect1"
9925 ><H1
9926 CLASS="sect1"
9927 ><A
9928 NAME="HDRWQ235"
9929 >Removing Volumes and their Mount Points</A
9930 ></H1
9931 ><P
9932 >To remove a volume from its site and its record from the VLDB, use the <SPAN
9933 CLASS="bold"
9934 ><B
9935 CLASS="emphasis"
9936 >vos remove</B
9937 ></SPAN
9938 >
9939     command. Use it to remove any of the three types of volumes; the effect depends on the type. <UL
9940 ><LI
9941 ><P
9942 >  If you indicate the read/write volume by specifying the volume's base name without a <SPAN
9943 CLASS="bold"
9944 ><B
9945 CLASS="emphasis"
9946 >.readonly</B
9947 ></SPAN
9948 > or <SPAN
9949 CLASS="bold"
9950 ><B
9951 CLASS="emphasis"
9952 >.backup</B
9953 ></SPAN
9954 > extension, the command removes both the
9955           read/write and associated backup volume from the partition that houses them. You do not need to provide the <SPAN
9956 CLASS="bold"
9957 ><B
9958 CLASS="emphasis"
9959 >-server</B
9960 ></SPAN
9961 > and <SPAN
9962 CLASS="bold"
9963 ><B
9964 CLASS="emphasis"
9965 >-partition</B
9966 ></SPAN
9967 > arguments, because there can be only one
9968           read/write site. The site information is also removed from the VLDB entry, and the site count (reported by the <SPAN
9969 CLASS="bold"
9970 ><B
9971 CLASS="emphasis"
9972 >vos examine</B
9973 ></SPAN
9974 > and <SPAN
9975 CLASS="bold"
9976 ><B
9977 CLASS="emphasis"
9978 >vos listvldb</B
9979 ></SPAN
9980 > commands as <SAMP
9981 CLASS="computeroutput"
9982 >number of
9983           sites</SAMP
9984 >) decrements by one. The read/write and backup volume ID numbers no longer appear in the output from
9985           the <SPAN
9986 CLASS="bold"
9987 ><B
9988 CLASS="emphasis"
9989 >vos examine</B
9990 ></SPAN
9991 > and <SPAN
9992 CLASS="bold"
9993 ><B
9994 CLASS="emphasis"
9995 >vos listvldb</B
9996 ></SPAN
9997 > commands, but they are
9998           preserved internally. Read-only sites, if any, are not affected, but cannot be changed unless a read/write site is again
9999           defined. The entire VLDB entry is removed if there are no read-only sites.</P
10000 ><P
10001 >If there are no read-only copies left, it is best to remove the volume's mount point to prevent attempts to access
10002           the volume's contents. Do not remove the mount point if copies of the read-only volume remain.</P
10003 ></LI
10004 ><LI
10005 ><P
10006 >If you indicate a read-only volume by including the <SPAN
10007 CLASS="bold"
10008 ><B
10009 CLASS="emphasis"
10010 >.readonly</B
10011 ></SPAN
10012 > extension on its
10013           name, it is removed from the partition that houses it, and the corresponding site information is removed from the VLDB
10014           entry. The site count reported by the <SPAN
10015 CLASS="bold"
10016 ><B
10017 CLASS="emphasis"
10018 >vos examine</B
10019 ></SPAN
10020 > and <SPAN
10021 CLASS="bold"
10022 ><B
10023 CLASS="emphasis"
10024 >vos
10025           listvldb</B
10026 ></SPAN
10027 > commands as <SAMP
10028 CLASS="computeroutput"
10029 >number of sites</SAMP
10030 > decrements by one for each volume you
10031           remove.</P
10032 ><P
10033 >If there is more than one read-only site, you must include the <SPAN
10034 CLASS="bold"
10035 ><B
10036 CLASS="emphasis"
10037 >-server</B
10038 ></SPAN
10039 > argument
10040           (and optionally <SPAN
10041 CLASS="bold"
10042 ><B
10043 CLASS="emphasis"
10044 >-partition</B
10045 ></SPAN
10046 > argument) to specify the site from which to remove the volume.
10047           If there is only one read-only site, the volume name is sufficient; if no read/write volume exists in this case, the
10048           entire VLDB entry is removed.</P
10049 ><P
10050 >It is not generally appropriate to remove the volume's mount point when removing a read-only volume, especially if
10051           the read/write version of the volume still exists. If the read/write version no longer exists, remove the mount point as
10052           described in Step <A
10053 HREF="c8420.html#LIWQ239"
10054 >5</A
10055 >of <A
10056 HREF="c8420.html#HDRWQ236"
10057 >To remove a volume and unmount
10058           it</A
10059 >.</P
10060 ></LI
10061 ><LI
10062 ><P
10063 >If you indicate a backup volume by including the <SPAN
10064 CLASS="bold"
10065 ><B
10066 CLASS="emphasis"
10067 >.backup</B
10068 ></SPAN
10069 > extension on its name, it
10070           is removed from the partition that houses it and its site information is removed from the VLDB entry. You do not need to
10071           provide the <SPAN
10072 CLASS="bold"
10073 ><B
10074 CLASS="emphasis"
10075 >-server</B
10076 ></SPAN
10077 > and <SPAN
10078 CLASS="bold"
10079 ><B
10080 CLASS="emphasis"
10081 >-partition</B
10082 ></SPAN
10083 > arguments, because
10084           there can be only one backup site. The backup volume ID number no longer appears in the output from the <SPAN
10085 CLASS="bold"
10086 ><B
10087 CLASS="emphasis"
10088 >vos examine</B
10089 ></SPAN
10090 > or <SPAN
10091 CLASS="bold"
10092 ><B
10093 CLASS="emphasis"
10094 >vos listvldb</B
10095 ></SPAN
10096 > command, but is preserved
10097           internally.</P
10098 ><P
10099 >In the standard configuration, there is a separate mount point for the backup version of a user volume. Remember to
10100           remove the mount point to prevent attempt to access the nonexistent volume's contents.</P
10101 ></LI
10102 ></UL
10103 ></P
10104 ><DIV
10105 CLASS="sect2"
10106 ><H2
10107 CLASS="sect2"
10108 ><A
10109 NAME="Header_256"
10110 >Other Removal Commands</A
10111 ></H2
10112 ><P
10113 >The <SPAN
10114 CLASS="bold"
10115 ><B
10116 CLASS="emphasis"
10117 >vos remove</B
10118 ></SPAN
10119 > command is almost always the appropriate way to remove a volume, because
10120       it automatically removes a volume's VLDB entry and both the volume header and all data from the partition. If either the VLDB
10121       entry or volume header does not exist, it is sometimes necessary to use other commands that remove only the remaining element.
10122       Do not use these commands in the normal case when both the VLDB entry and the volume header exist, because by definition they
10123       create discrepancies between them. For details on the commands' syntax, see their reference pages in the <SPAN
10124 CLASS="emphasis"
10125 ><I
10126 CLASS="emphasis"
10127 > IBM AFS
10128       Administration Reference</I
10129 ></SPAN
10130 >.</P
10131 ><P
10132 >The <SPAN
10133 CLASS="bold"
10134 ><B
10135 CLASS="emphasis"
10136 >vos zap</B
10137 ></SPAN
10138 > command removes a volume from its site by removing the volume header and
10139       volume data for which a VLDB entry no longer exists. You can tell a VLDB entry is missing if the <SPAN
10140 CLASS="bold"
10141 ><B
10142 CLASS="emphasis"
10143 >vos
10144       listvol</B
10145 ></SPAN
10146 > command displays the volume header but the <SPAN
10147 CLASS="bold"
10148 ><B
10149 CLASS="emphasis"
10150 >vos examine</B
10151 ></SPAN
10152 > or <SPAN
10153 CLASS="bold"
10154 ><B
10155 CLASS="emphasis"
10156 >vos listvldb</B
10157 ></SPAN
10158 > command cannot locate the VLDB entry. You must run this command to correct the
10159       discrepancy, because the <SPAN
10160 CLASS="bold"
10161 ><B
10162 CLASS="emphasis"
10163 >vos syncvldb</B
10164 ></SPAN
10165 > and <SPAN
10166 CLASS="bold"
10167 ><B
10168 CLASS="emphasis"
10169 >vos syncserv</B
10170 ></SPAN
10171 >
10172       commands never remove volume headers.</P
10173 ><P
10174 >The <SPAN
10175 CLASS="bold"
10176 ><B
10177 CLASS="emphasis"
10178 >vos remsite</B
10179 ></SPAN
10180 > command removes a read-only site definition from the VLDB without
10181       affecting the volume on the file server machine. Use this command when you have mistakenly issued the <SPAN
10182 CLASS="bold"
10183 ><B
10184 CLASS="emphasis"
10185 >vos addsite</B
10186 ></SPAN
10187 > command to define a read-only site, but have not yet issued the <SPAN
10188 CLASS="bold"
10189 ><B
10190 CLASS="emphasis"
10191 >vos
10192       release</B
10193 ></SPAN
10194 > command to release the volume to the site. If you have actually released a volume to the site, use the
10195       <SPAN
10196 CLASS="bold"
10197 ><B
10198 CLASS="emphasis"
10199 >vos remove</B
10200 ></SPAN
10201 > command instead.</P
10202 ><P
10203 >The <SPAN
10204 CLASS="bold"
10205 ><B
10206 CLASS="emphasis"
10207 >vos delentry</B
10208 ></SPAN
10209 > command removes the entire VLDB entry that mentions the volume you
10210       specify. If versions of the volume actually exist on file server machines, they are not affected. This command is useful if
10211       you know for certain that a volume removal was not recorded in the VLDB (perhaps you used the <SPAN
10212 CLASS="bold"
10213 ><B
10214 CLASS="emphasis"
10215 >vos
10216       zap</B
10217 ></SPAN
10218 > command during an emergency), and do not want to take the time to resynchronize the entire VLDB with the
10219       <SPAN
10220 CLASS="bold"
10221 ><B
10222 CLASS="emphasis"
10223 >vos syncvldb</B
10224 ></SPAN
10225 > and <SPAN
10226 CLASS="bold"
10227 ><B
10228 CLASS="emphasis"
10229 >vos syncserv</B
10230 ></SPAN
10231 > commands.</P
10232 ></DIV
10233 ><DIV
10234 CLASS="sect2"
10235 ><H2
10236 CLASS="sect2"
10237 ><A
10238 NAME="HDRWQ236"
10239 >To remove a volume and unmount it</A
10240 ></H2
10241 ><OL
10242 TYPE="1"
10243 ><LI
10244 ><P
10245 >Verify that you are listed in the <SPAN
10246 CLASS="bold"
10247 ><B
10248 CLASS="emphasis"
10249 >/usr/afs/etc/UserList</B
10250 ></SPAN
10251 > file. If necessary, issue
10252           the <SPAN
10253 CLASS="bold"
10254 ><B
10255 CLASS="emphasis"
10256 >bos listusers</B
10257 ></SPAN
10258 > command, which is fully described in <A
10259 HREF="c32432.html#HDRWQ593"
10260 >To
10261           display the users in the UserList file</A
10262 >. <PRE
10263 CLASS="programlisting"
10264 >&#13;   % <SPAN
10265 CLASS="bold"
10266 ><B
10267 CLASS="emphasis"
10268 >bos listusers</B
10269 ></SPAN
10270 > &#60;<VAR
10271 CLASS="replaceable"
10272 >machine name</VAR
10273 >&#62;
10274 </PRE
10275 ></P
10276 ></LI
10277 ><LI
10278 ><P
10279 >If removing the volume's mount point, verify that you have the <SPAN
10280 CLASS="bold"
10281 ><B
10282 CLASS="emphasis"
10283 >d</B
10284 ></SPAN
10285 >( <SPAN
10286 CLASS="bold"
10287 ><B
10288 CLASS="emphasis"
10289 >delete</B
10290 ></SPAN
10291 >) permission on its parent directory's ACL. If necessary, issue the <SPAN
10292 CLASS="bold"
10293 ><B
10294 CLASS="emphasis"
10295 >fs
10296           listacl</B
10297 ></SPAN
10298 > command, which is fully described in <A
10299 HREF="c31274.html#HDRWQ572"
10300 >Displaying ACLs</A
10301 >. <PRE
10302 CLASS="programlisting"
10303 >&#13;   % <SPAN
10304 CLASS="bold"
10305 ><B
10306 CLASS="emphasis"
10307 >fs listacl</B
10308 ></SPAN
10309 > [&#60;<VAR
10310 CLASS="replaceable"
10311 >dir/file path</VAR
10312 >&#62;]
10313 </PRE
10314 ></P
10315 ><P
10316 >Members of the <SPAN
10317 CLASS="bold"
10318 ><B
10319 CLASS="emphasis"
10320 >system:administrators</B
10321 ></SPAN
10322 > group always implicitly have the <SPAN
10323 CLASS="bold"
10324 ><B
10325 CLASS="emphasis"
10326 >a</B
10327 ></SPAN
10328 >( <SPAN
10329 CLASS="bold"
10330 ><B
10331 CLASS="emphasis"
10332 >administer</B
10333 ></SPAN
10334 >) and by default also the <SPAN
10335 CLASS="bold"
10336 ><B
10337 CLASS="emphasis"
10338 >l</B
10339 ></SPAN
10340 >( <SPAN
10341 CLASS="bold"
10342 ><B
10343 CLASS="emphasis"
10344 >lookup</B
10345 ></SPAN
10346 >) permission on every ACL and can use the <SPAN
10347 CLASS="bold"
10348 ><B
10349 CLASS="emphasis"
10350 >fs setacl</B
10351 ></SPAN
10352 > command to grant other rights as necessary.</P
10353 ></LI
10354 ><LI
10355 ><A
10356 NAME="LIWQ237"
10357 ></A
10358 ><P
10359 ><SPAN
10360 CLASS="bold"
10361 ><B
10362 CLASS="emphasis"
10363 >(Optional)</B
10364 ></SPAN
10365 > Dump the volume to a file or to tape, in case you want to restore it
10366           later. To copy the volume's contents to a file, use the <SPAN
10367 CLASS="bold"
10368 ><B
10369 CLASS="emphasis"
10370 >vos dump</B
10371 ></SPAN
10372 > command as instructed in
10373           <A
10374 HREF="c8420.html#HDRWQ240"
10375 >Dumping and Restoring Volumes</A
10376 >. You can then copy the file to tape using a third-party
10377           backup utility or an archiving utility such as the UNIX <SPAN
10378 CLASS="bold"
10379 ><B
10380 CLASS="emphasis"
10381 >tar</B
10382 ></SPAN
10383 > command.</P
10384 ><P
10385 >Alternatively, use the AFS Backup System to create a tape copy. In this case, it can be convenient to create a
10386           temporary volume set that includes only the volume of interest. Temporary volume sets are not recorded in the Backup
10387           Database, and so do not clutter database with records for volume sets that you use only once. For instructions, see <A
10388 HREF="c15383.html#HDRWQ301"
10389 >To create a dump</A
10390 >.</P
10391 ></LI
10392 ><LI
10393 ><P
10394 ><A
10395 NAME="LIWQ238"
10396 ></A
10397 >Issue the <SPAN
10398 CLASS="bold"
10399 ><B
10400 CLASS="emphasis"
10401 >vos remove</B
10402 ></SPAN
10403 > command to remove the volume. If
10404           removing a read-only volume from multiple sites, repeat the command for each one. <PRE
10405 CLASS="programlisting"
10406 >&#13;   % <SPAN
10407 CLASS="bold"
10408 ><B
10409 CLASS="emphasis"
10410 >vos remove</B
10411 ></SPAN
10412 > [<SPAN
10413 CLASS="bold"
10414 ><B
10415 CLASS="emphasis"
10416 >-server</B
10417 ></SPAN
10418 > machine name&#62;] [<SPAN
10419 CLASS="bold"
10420 ><B
10421 CLASS="emphasis"
10422 >-partition</B
10423 ></SPAN
10424 > &#60;<VAR
10425 CLASS="replaceable"
10426 >partition name</VAR
10427 >&#62;] \
10428                <SPAN
10429 CLASS="bold"
10430 ><B
10431 CLASS="emphasis"
10432 >-id</B
10433 ></SPAN
10434 > &#60;<VAR
10435 CLASS="replaceable"
10436 >volume name or ID</VAR
10437 >&#62;
10438 </PRE
10439 ></P
10440 ><P
10441 >where <DIV
10442 CLASS="variablelist"
10443 ><DL
10444 ><DT
10445 ><SPAN
10446 CLASS="bold"
10447 ><B
10448 CLASS="emphasis"
10449 >remo</B
10450 ></SPAN
10451 ></DT
10452 ><DD
10453 ><P
10454 >Is the shortest acceptable abbreviation of <SPAN
10455 CLASS="bold"
10456 ><B
10457 CLASS="emphasis"
10458 >remove</B
10459 ></SPAN
10460 >.</P
10461 ></DD
10462 ><DT
10463 ><SPAN
10464 CLASS="bold"
10465 ><B
10466 CLASS="emphasis"
10467 >-server</B
10468 ></SPAN
10469 ></DT
10470 ><DD
10471 ><P
10472 >Specifies the file server machine on which the volume resides. It is necessary only when the <SPAN
10473 CLASS="bold"
10474 ><B
10475 CLASS="emphasis"
10476 >-id</B
10477 ></SPAN
10478 > argument names a read-only volume that exists at multiple sites.</P
10479 ></DD
10480 ><DT
10481 ><SPAN
10482 CLASS="bold"
10483 ><B
10484 CLASS="emphasis"
10485 >-partition</B
10486 ></SPAN
10487 ></DT
10488 ><DD
10489 ><P
10490 >Specifies the partition on machine name where the volume resides. It is necessary only when the <SPAN
10491 CLASS="bold"
10492 ><B
10493 CLASS="emphasis"
10494 >-id</B
10495 ></SPAN
10496 > argument names a read-only volume that exists at multiple sites. Provide the <SPAN
10497 CLASS="bold"
10498 ><B
10499 CLASS="emphasis"
10500 >-server</B
10501 ></SPAN
10502 > argument along with this one.</P
10503 ></DD
10504 ><DT
10505 ><SPAN
10506 CLASS="bold"
10507 ><B
10508 CLASS="emphasis"
10509 >-id</B
10510 ></SPAN
10511 ></DT
10512 ><DD
10513 ><P
10514 >Identifies the volume to remove, either by its complete name or volume ID number. If identifying a read-only
10515                   or backup volume by name, include the appropriate extension ( <SPAN
10516 CLASS="bold"
10517 ><B
10518 CLASS="emphasis"
10519 >.readonly</B
10520 ></SPAN
10521 > or
10522                   <SPAN
10523 CLASS="bold"
10524 ><B
10525 CLASS="emphasis"
10526 >.backup</B
10527 ></SPAN
10528 >).</P
10529 ></DD
10530 ></DL
10531 ></DIV
10532 ></P
10533 ></LI
10534 ><LI
10535 ><P
10536 ><A
10537 NAME="LIWQ239"
10538 ></A
10539 >If you are removing the last existing version of the volume, issue the <SPAN
10540 CLASS="bold"
10541 ><B
10542 CLASS="emphasis"
10543 >fs rmmount</B
10544 ></SPAN
10545 > command remove the corresponding mount point. Complete instructions appear in <A
10546 HREF="c8420.html#HDRWQ236"
10547 >To remove a volume and unmount it</A
10548 >.</P
10549 ><P
10550 >If you are removing a backup volume that is mounted in the conventional way (at a subdirectory of its read/write
10551           volume's root directory), then removing the source volume's mount point in this step is sufficient to remove the backup
10552           volume's mount point. If you mounted the backup at a completely separate directory, you need to repeat this step for the
10553           backup volume's mount point.</P
10554 ><PRE
10555 CLASS="programlisting"
10556 >&#13;   % <SPAN
10557 CLASS="bold"
10558 ><B
10559 CLASS="emphasis"
10560 >fs rmmount</B
10561 ></SPAN
10562 > &#60;<VAR
10563 CLASS="replaceable"
10564 >directory</VAR
10565 >&#62;
10566 </PRE
10567 ></LI
10568 ><LI
10569 ><P
10570 ><SPAN
10571 CLASS="bold"
10572 ><B
10573 CLASS="emphasis"
10574 >(Optional)</B
10575 ></SPAN
10576 > If you created a dump file in Step <A
10577 HREF="c8420.html#LIWQ237"
10578 >3</A
10579 >,
10580           transfer it to tape. The preferred method is to use the AFS Backup System, which is described in <A
10581 HREF="c12776.html"
10582 >Configuring the AFS Backup System</A
10583 >and <A
10584 HREF="c15383.html"
10585 >Backing Up and Restoring AFS
10586           Data</A
10587 >.</P
10588 ></LI
10589 ></OL
10590 ></DIV
10591 ></DIV
10592 ><DIV
10593 CLASS="sect1"
10594 ><H1
10595 CLASS="sect1"
10596 ><A
10597 NAME="HDRWQ240"
10598 >Dumping and Restoring Volumes</A
10599 ></H1
10600 ><P
10601 ><SPAN
10602 CLASS="emphasis"
10603 ><I
10604 CLASS="emphasis"
10605 >Dumping</I
10606 ></SPAN
10607 > a volume with the <SPAN
10608 CLASS="bold"
10609 ><B
10610 CLASS="emphasis"
10611 >vos dump</B
10612 ></SPAN
10613 > command converts its contents
10614     into ASCII format and writes them to the file you specify. The <SPAN
10615 CLASS="bold"
10616 ><B
10617 CLASS="emphasis"
10618 >vos restore</B
10619 ></SPAN
10620 > command places a
10621     dump file's contents into a volume after converting them into the volume format appropriate for the indicated file server
10622     machine.</P
10623 ><DIV
10624 CLASS="sect2"
10625 ><H2
10626 CLASS="sect2"
10627 ><A
10628 NAME="Header_259"
10629 >About Dumping Volumes</A
10630 ></H2
10631 ><P
10632 >Dumping a volume can be useful in several situations, including the following: <UL
10633 ><LI
10634 ><P
10635 >You want to back it up to tape, perhaps by using a third-party backup utility. To facilitate this type of backup
10636             operation, the <SPAN
10637 CLASS="bold"
10638 ><B
10639 CLASS="emphasis"
10640 >vos dump</B
10641 ></SPAN
10642 > command can write to a named pipe. To learn about using the AFS
10643             Backup System instead, see <A
10644 HREF="c12776.html"
10645 >Configuring the AFS Backup System</A
10646 >and <A
10647 HREF="c15383.html"
10648 >Backing Up and Restoring AFS Data</A
10649 >.</P
10650 ></LI
10651 ><LI
10652 ><P
10653 >You are removing the volume from your cell (perhaps because its owner is leaving your cell). The <SPAN
10654 CLASS="bold"
10655 ><B
10656 CLASS="emphasis"
10657 >vos dump</B
10658 ></SPAN
10659 > command enables you to create a copy for safekeeping without incurring the overhead of
10660             the Backup System. For complete instructions on removing a volume, see <A
10661 HREF="c8420.html#HDRWQ235"
10662 >Removing Volumes and
10663             their Mount Points</A
10664 >.</P
10665 ></LI
10666 ><LI
10667 ><P
10668 >You want to create a copy of the volume for safekeeping on a non-AFS server partition, perhaps while you move the
10669             actual volume to another machine or perform maintenance tasks on the partition that houses the volume.</P
10670 ></LI
10671 ><LI
10672 ><P
10673 >You need to replace a corrupted read/write volume. If an uncorrupted read-only or backup version of the volume
10674             exists, dump it and restore the data into the read/write volume, overwriting the corrupted contents.</P
10675 ></LI
10676 ><LI
10677 ><P
10678 >You want to copy or transfer the contents of the volume to another cell. You cannot use the <SPAN
10679 CLASS="bold"
10680 ><B
10681 CLASS="emphasis"
10682 >vos move</B
10683 ></SPAN
10684 > command, because AFS supports volume moves only between file server machines that belong
10685             to the same cell.</P
10686 ></LI
10687 ><LI
10688 ><P
10689 >You want to have another read/write copy of the volume's contents. The second volume must have a different name
10690             than the original one. If you want the contents of the two volumes to remain identical, you must update them both
10691             manually. AFS provides no facility for keeping read/write volumes synchronized in this way.</P
10692 ></LI
10693 ><LI
10694 ><P
10695 >You want a copy of only the files and directories in the volume with modification time stamps after a certain
10696             date. The <SPAN
10697 CLASS="bold"
10698 ><B
10699 CLASS="emphasis"
10700 >vos dump</B
10701 ></SPAN
10702 > command can create an incremental dump file as described in Step
10703             <A
10704 HREF="c8420.html#LIWQ241"
10705 >3</A
10706 >of the following instructions.</P
10707 ></LI
10708 ></UL
10709 ></P
10710 ><P
10711 >You can use the <SPAN
10712 CLASS="bold"
10713 ><B
10714 CLASS="emphasis"
10715 >vos dump</B
10716 ></SPAN
10717 > command to create a <SPAN
10718 CLASS="emphasis"
10719 ><I
10720 CLASS="emphasis"
10721 >full dump</I
10722 ></SPAN
10723 >, which
10724       contains the complete contents of the volume at the time you issue the command, or an <SPAN
10725 CLASS="emphasis"
10726 ><I
10727 CLASS="emphasis"
10728 >incremental dump</I
10729 ></SPAN
10730 >,
10731       which contains only those files and directories with modification timestamps (as displayed by the <SPAN
10732 CLASS="bold"
10733 ><B
10734 CLASS="emphasis"
10735 >ls
10736       -l</B
10737 ></SPAN
10738 > command) that are later than a date and time you specify. See Step <A
10739 HREF="c8420.html#LIWQ241"
10740 >3</A
10741 >of the
10742       following instructions.</P
10743 ><P
10744 >Dumping a volume does not change its VLDB entry or permanently affect its status on the file server machine, but the
10745       volume's contents are inaccessible during the dump operation. To avoid interrupting access to the volume, it is generally best
10746       to dump the volume's backup version, just after using the <SPAN
10747 CLASS="bold"
10748 ><B
10749 CLASS="emphasis"
10750 >vos backup</B
10751 ></SPAN
10752 > or <SPAN
10753 CLASS="bold"
10754 ><B
10755 CLASS="emphasis"
10756 >vos backupsys</B
10757 ></SPAN
10758 > command to create a new backup version.</P
10759 ><P
10760 >If you do not provide a filename into which to write the dump, the <SPAN
10761 CLASS="bold"
10762 ><B
10763 CLASS="emphasis"
10764 >vos dump</B
10765 ></SPAN
10766 > command
10767       directs the output to the standard output stream. You can pipe it directly to the <SPAN
10768 CLASS="bold"
10769 ><B
10770 CLASS="emphasis"
10771 >vos restore</B
10772 ></SPAN
10773 >
10774       command if you wish.</P
10775 ><P
10776 >Because a volume dump file is in ASCII format, you can read its contents using a text editor or a command such as the
10777       <SPAN
10778 CLASS="bold"
10779 ><B
10780 CLASS="emphasis"
10781 >cat</B
10782 ></SPAN
10783 > command. However, dump files sometimes contain special characters that do not have
10784       alphanumeric correlates, which can cause problems for some display programs.</P
10785 ><P
10786 >By default, the <SPAN
10787 CLASS="bold"
10788 ><B
10789 CLASS="emphasis"
10790 >vos</B
10791 ></SPAN
10792 > command interpreter consults the Volume Location Database (VLDB) to
10793       learn the volume's location, so the <SPAN
10794 CLASS="bold"
10795 ><B
10796 CLASS="emphasis"
10797 >-server</B
10798 ></SPAN
10799 > and <SPAN
10800 CLASS="bold"
10801 ><B
10802 CLASS="emphasis"
10803 >-partition</B
10804 ></SPAN
10805 >
10806       arguments are not required. If the <SPAN
10807 CLASS="bold"
10808 ><B
10809 CLASS="emphasis"
10810 >-id</B
10811 ></SPAN
10812 > argument identifies a read-only volume that resides at
10813       multiple sites, then the command dumps the version from just one of them (normally, the one listed first in the volume's VLDB
10814       entry as reported by the <SPAN
10815 CLASS="bold"
10816 ><B
10817 CLASS="emphasis"
10818 >vos examine</B
10819 ></SPAN
10820 > or <SPAN
10821 CLASS="bold"
10822 ><B
10823 CLASS="emphasis"
10824 >vos listvldb</B
10825 ></SPAN
10826 >
10827       command). To dump the read-only volume from a particular site, use the <SPAN
10828 CLASS="bold"
10829 ><B
10830 CLASS="emphasis"
10831 >-server</B
10832 ></SPAN
10833 > and <SPAN
10834 CLASS="bold"
10835 ><B
10836 CLASS="emphasis"
10837 >-partition</B
10838 ></SPAN
10839 > arguments to specify the site. To bypass the VLDB lookup entirely, provide a volume ID
10840       number (rather than a volume name) as the value for the <SPAN
10841 CLASS="bold"
10842 ><B
10843 CLASS="emphasis"
10844 >-id</B
10845 ></SPAN
10846 > argument, along with the
10847       <SPAN
10848 CLASS="bold"
10849 ><B
10850 CLASS="emphasis"
10851 >-server</B
10852 ></SPAN
10853 > and <SPAN
10854 CLASS="bold"
10855 ><B
10856 CLASS="emphasis"
10857 >-partition</B
10858 ></SPAN
10859 > arguments. This makes it possible to
10860       dump a volume for which there is no VLDB entry.</P
10861 ></DIV
10862 ><DIV
10863 CLASS="sect2"
10864 ><H2
10865 CLASS="sect2"
10866 ><A
10867 NAME="Header_260"
10868 >To dump a volume</A
10869 ></H2
10870 ><OL
10871 TYPE="1"
10872 ><LI
10873 ><P
10874 >Verify that you are listed in the <SPAN
10875 CLASS="bold"
10876 ><B
10877 CLASS="emphasis"
10878 >/usr/afs/etc/UserList</B
10879 ></SPAN
10880 > file. If necessary, issue
10881           the <SPAN
10882 CLASS="bold"
10883 ><B
10884 CLASS="emphasis"
10885 >bos listusers</B
10886 ></SPAN
10887 > command, which is fully described in <A
10888 HREF="c32432.html#HDRWQ593"
10889 >To
10890           display the users in the UserList file</A
10891 >. <PRE
10892 CLASS="programlisting"
10893 >&#13;   % <SPAN
10894 CLASS="bold"
10895 ><B
10896 CLASS="emphasis"
10897 >bos listusers</B
10898 ></SPAN
10899 > &#60;<VAR
10900 CLASS="replaceable"
10901 >machine name</VAR
10902 >&#62;
10903 </PRE
10904 ></P
10905 ></LI
10906 ><LI
10907 ><P
10908 >Verify that you have the permissions necessary to create the dump file. If placing it in AFS, you must have the
10909           <SPAN
10910 CLASS="bold"
10911 ><B
10912 CLASS="emphasis"
10913 >i</B
10914 ></SPAN
10915 >( <SPAN
10916 CLASS="bold"
10917 ><B
10918 CLASS="emphasis"
10919 >insert</B
10920 ></SPAN
10921 >) permission on the ACL of the file's
10922           directory. If necessary, issue the <SPAN
10923 CLASS="bold"
10924 ><B
10925 CLASS="emphasis"
10926 >fs listacl</B
10927 ></SPAN
10928 > command, which is fully described in <A
10929 HREF="c31274.html#HDRWQ572"
10930 >Displaying ACLs</A
10931 >. <PRE
10932 CLASS="programlisting"
10933 >&#13;   % <SPAN
10934 CLASS="bold"
10935 ><B
10936 CLASS="emphasis"
10937 >fs listacl</B
10938 ></SPAN
10939 > [&#60;<VAR
10940 CLASS="replaceable"
10941 >dir/file path</VAR
10942 >&#62;]
10943 </PRE
10944 ></P
10945 ><P
10946 >Members of the <SPAN
10947 CLASS="bold"
10948 ><B
10949 CLASS="emphasis"
10950 >system:administrators</B
10951 ></SPAN
10952 > group always implicitly have the <SPAN
10953 CLASS="bold"
10954 ><B
10955 CLASS="emphasis"
10956 >a</B
10957 ></SPAN
10958 >( <SPAN
10959 CLASS="bold"
10960 ><B
10961 CLASS="emphasis"
10962 >administer</B
10963 ></SPAN
10964 >) and by default also the <SPAN
10965 CLASS="bold"
10966 ><B
10967 CLASS="emphasis"
10968 >l</B
10969 ></SPAN
10970 >( <SPAN
10971 CLASS="bold"
10972 ><B
10973 CLASS="emphasis"
10974 >lookup</B
10975 ></SPAN
10976 >) permission on every ACL and can use the <SPAN
10977 CLASS="bold"
10978 ><B
10979 CLASS="emphasis"
10980 >fs setacl</B
10981 ></SPAN
10982 > command to grant other rights as necessary.</P
10983 ></LI
10984 ><LI
10985 ><P
10986 ><A
10987 NAME="LIWQ241"
10988 ></A
10989 >Issue the <SPAN
10990 CLASS="bold"
10991 ><B
10992 CLASS="emphasis"
10993 >vos dump</B
10994 ></SPAN
10995 > command to dump the volume.
10996           <PRE
10997 CLASS="programlisting"
10998 >&#13;   % <SPAN
10999 CLASS="bold"
11000 ><B
11001 CLASS="emphasis"
11002 >vos dump -id</B
11003 ></SPAN
11004 > &#60;<VAR
11005 CLASS="replaceable"
11006 >volume name or ID</VAR
11007 >&#62; [<SPAN
11008 CLASS="bold"
11009 ><B
11010 CLASS="emphasis"
11011 >-time</B
11012 ></SPAN
11013 > &#60;<VAR
11014 CLASS="replaceable"
11015 >dump from time</VAR
11016 >&#62;] [<SPAN
11017 CLASS="bold"
11018 ><B
11019 CLASS="emphasis"
11020 >-file</B
11021 ></SPAN
11022 > &#60;<VAR
11023 CLASS="replaceable"
11024 >arg</VAR
11025 >&#62;] [<SPAN
11026 CLASS="bold"
11027 ><B
11028 CLASS="emphasis"
11029 >-server</B
11030 ></SPAN
11031 > &#60;<VAR
11032 CLASS="replaceable"
11033 >server</VAR
11034 >&#62;] [<SPAN
11035 CLASS="bold"
11036 ><B
11037 CLASS="emphasis"
11038 >-partition</B
11039 ></SPAN
11040 > &#60;<VAR
11041 CLASS="replaceable"
11042 >partition</VAR
11043 >&#62;]
11044 </PRE
11045 ></P
11046 ><P
11047 >where <DIV
11048 CLASS="variablelist"
11049 ><DL
11050 ><DT
11051 ><SPAN
11052 CLASS="bold"
11053 ><B
11054 CLASS="emphasis"
11055 >-id</B
11056 ></SPAN
11057 ></DT
11058 ><DD
11059 ><P
11060 >Identifies the volume to be dumped by its complete name or volume ID number. If you want to dump the
11061                   read-only or backup version, specify its volume ID number or add the appropriate extension ( <SPAN
11062 CLASS="bold"
11063 ><B
11064 CLASS="emphasis"
11065 >.readonly</B
11066 ></SPAN
11067 > or <SPAN
11068 CLASS="bold"
11069 ><B
11070 CLASS="emphasis"
11071 >.backup</B
11072 ></SPAN
11073 >) to the name.</P
11074 ><P
11075 >To bypass the normal VLDB lookup of the volume's location, provide the volume ID number and combine this
11076                   argument with the <SPAN
11077 CLASS="bold"
11078 ><B
11079 CLASS="emphasis"
11080 >-server</B
11081 ></SPAN
11082 > and <SPAN
11083 CLASS="bold"
11084 ><B
11085 CLASS="emphasis"
11086 >-partition</B
11087 ></SPAN
11088 >
11089                   arguments.</P
11090 ></DD
11091 ><DT
11092 ><SPAN
11093 CLASS="bold"
11094 ><B
11095 CLASS="emphasis"
11096 >-time</B
11097 ></SPAN
11098 ></DT
11099 ><DD
11100 ><P
11101 >Specifies whether the dump is full or incremental. Omit this argument to create a full dump, or provide one
11102                   of three acceptable values: <UL
11103 ><LI
11104 ><P
11105 >The value <SPAN
11106 CLASS="bold"
11107 ><B
11108 CLASS="emphasis"
11109 >0</B
11110 ></SPAN
11111 >(zero) to create a full dump.</P
11112 ></LI
11113 ><LI
11114 ><P
11115 >A date in the format mm <SPAN
11116 CLASS="bold"
11117 ><B
11118 CLASS="emphasis"
11119 >/</B
11120 ></SPAN
11121 > dd <SPAN
11122 CLASS="bold"
11123 ><B
11124 CLASS="emphasis"
11125 >/</B
11126 ></SPAN
11127 > yyyy
11128                         (month, day and year) to create an incremental dump that includes only files and directories with
11129                         modification timestamps later than midnight (12:00 a.m.) on the indicated date. Valid values for the year
11130                         range from <SPAN
11131 CLASS="bold"
11132 ><B
11133 CLASS="emphasis"
11134 >1970</B
11135 ></SPAN
11136 > to <SPAN
11137 CLASS="bold"
11138 ><B
11139 CLASS="emphasis"
11140 >2037</B
11141 ></SPAN
11142 >; higher values are
11143                         not valid because the latest possible date in the standard UNIX representation is in 2038. The command
11144                         interpreter automatically reduces later dates to the maximum value. An example is <SPAN
11145 CLASS="bold"
11146 ><B
11147 CLASS="emphasis"
11148 >01/13/1999</B
11149 ></SPAN
11150 >.</P
11151 ></LI
11152 ><LI
11153 ><P
11154 >A date and time in the format <SPAN
11155 CLASS="bold"
11156 ><B
11157 CLASS="emphasis"
11158 >"</B
11159 ></SPAN
11160 > mm <SPAN
11161 CLASS="bold"
11162 ><B
11163 CLASS="emphasis"
11164 >/</B
11165 ></SPAN
11166 >
11167                         dd <SPAN
11168 CLASS="bold"
11169 ><B
11170 CLASS="emphasis"
11171 >/</B
11172 ></SPAN
11173 > yyyy hh <SPAN
11174 CLASS="bold"
11175 ><B
11176 CLASS="emphasis"
11177 >:</B
11178 ></SPAN
11179 > MM <SPAN
11180 CLASS="bold"
11181 ><B
11182 CLASS="emphasis"
11183 >"</B
11184 ></SPAN
11185 > to create an incremental dump that includes only files and directories with
11186                         modification timestamps later than the specified date and time. The date format is the same as for a date
11187                         alone. Express the time as hours and minutes (hh:MM) in 24-hour format (for example, <SPAN
11188 CLASS="bold"
11189 ><B
11190 CLASS="emphasis"
11191 >20:30</B
11192 ></SPAN
11193 > is 8:30 p.m.). Surround the entire expression with double quotes (" ") because
11194                         it contains a space. An example is <SPAN
11195 CLASS="bold"
11196 ><B
11197 CLASS="emphasis"
11198 >"01/13/1999 22:30"</B
11199 ></SPAN
11200 >.</P
11201 ></LI
11202 ></UL
11203 ></P
11204 ></DD
11205 ><DT
11206 ><SPAN
11207 CLASS="bold"
11208 ><B
11209 CLASS="emphasis"
11210 >-file</B
11211 ></SPAN
11212 ></DT
11213 ><DD
11214 ><P
11215 >Specifies the pathname of the file to which to write the dump. The file can be in AFS, but not in the volume
11216                   being dumped. A partial pathname is interpreted relative to the current working directory. Omit this argument to
11217                   direct the dump to the standard output stream.</P
11218 ></DD
11219 ><DT
11220 ><SPAN
11221 CLASS="bold"
11222 ><B
11223 CLASS="emphasis"
11224 >-server</B
11225 ></SPAN
11226 ></DT
11227 ><DD
11228 ><P
11229 >Specifies the file server machine on which the volume resides. Provide the <SPAN
11230 CLASS="bold"
11231 ><B
11232 CLASS="emphasis"
11233 >-partition</B
11234 ></SPAN
11235 > argument along with this one.</P
11236 ></DD
11237 ><DT
11238 ><SPAN
11239 CLASS="bold"
11240 ><B
11241 CLASS="emphasis"
11242 >-partition</B
11243 ></SPAN
11244 ></DT
11245 ><DD
11246 ><P
11247 >Specifies the partition on which the volume resides. Provide the <SPAN
11248 CLASS="bold"
11249 ><B
11250 CLASS="emphasis"
11251 >-server</B
11252 ></SPAN
11253 >
11254                   argument along with this one.</P
11255 ></DD
11256 ></DL
11257 ></DIV
11258 ></P
11259 ></LI
11260 ></OL
11261 ></DIV
11262 ><DIV
11263 CLASS="sect2"
11264 ><H2
11265 CLASS="sect2"
11266 ><A
11267 NAME="Header_261"
11268 >About Restoring Volumes</A
11269 ></H2
11270 ><P
11271 >Although you can dump any of the three types of volumes (read/write, read-only, or backup), you can restore a dump file
11272       to the file system only as a read/write volume, using the <SPAN
11273 CLASS="bold"
11274 ><B
11275 CLASS="emphasis"
11276 >vos restore</B
11277 ></SPAN
11278 > command. The command
11279       automatically translates the dump file's contents from ASCII back into the volume format appropriate for the file server
11280       machine that stores the restored version. As with the <SPAN
11281 CLASS="bold"
11282 ><B
11283 CLASS="emphasis"
11284 >vos dump</B
11285 ></SPAN
11286 > command, you can restore a
11287       dump file via a named pipe, which facilitates interoperation with third-party backup utilities.</P
11288 ><P
11289 >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
11290       the volume before restoring any incremental dumps. Any incremental dumps that you then restore must have been created after
11291       the full dump. If there is more than one incremental dump, you must restore them in the order they were created. <UL
11292 ><LI
11293 ><P
11294 >You can restore volume data into a brand new volume with a new name and at a location that you specify. See <A
11295 HREF="c8420.html#HDRWQ242"
11296 >To restore a dump into a new volume and mount it</A
11297 >.</P
11298 ><P
11299 >You can assign a volume ID number as you restore the volume, though it is best to have the Volume Server allocate
11300             a volume number automatically. The most common reason for specifying the volume ID is that a volume's VLDB entry has
11301             disappeared for some reason, but you know the former read/write volume ID number and want to reuse it.</P
11302 ></LI
11303 ><LI
11304 ><P
11305 >You can restore volume data into an existing volume (usually the one that was previously dumped), overwriting its
11306             current contents. This is convenient if the current contents are corrupted or otherwise incorrect, because it allows you
11307             to replace them with a coherent version from the past or from one of the volume's clones. See <A
11308 HREF="c8420.html#HDRWQ244"
11309 >To restore a dump file, overwriting an existing volume</A
11310 >.</P
11311 ><P
11312 >Provide the <SPAN
11313 CLASS="bold"
11314 ><B
11315 CLASS="emphasis"
11316 >-overwrite</B
11317 ></SPAN
11318 > argument to preconfirm that you wish to overwrite the
11319             volume's contents, and to specify whether you are restoring a full or incremental dump. If you omit the <SPAN
11320 CLASS="bold"
11321 ><B
11322 CLASS="emphasis"
11323 >-overwrite</B
11324 ></SPAN
11325 > argument, the Volume Server generates the following prompt to confirm that you want to
11326             overwrite the existing volume with either a full ( <SPAN
11327 CLASS="bold"
11328 ><B
11329 CLASS="emphasis"
11330 >f</B
11331 ></SPAN
11332 >) or incremental ( <SPAN
11333 CLASS="bold"
11334 ><B
11335 CLASS="emphasis"
11336 >i</B
11337 ></SPAN
11338 >) dump:</P
11339 ><PRE
11340 CLASS="programlisting"
11341 >&#13;   Do you want to do a full/incremental restore or abort? [fia](a):
11342 </PRE
11343 ><P
11344 >If you pipe in the dump file via the standard input stream instead of using the <SPAN
11345 CLASS="bold"
11346 ><B
11347 CLASS="emphasis"
11348 >-file</B
11349 ></SPAN
11350 > argument to name it, you must include the <SPAN
11351 CLASS="bold"
11352 ><B
11353 CLASS="emphasis"
11354 >-overwrite</B
11355 ></SPAN
11356 >
11357             argument because there is nowhere for the Volume Server to display the prompt in this case.</P
11358 ><P
11359 >You can move the volume to a new site as you overwrite it with a full dump, by using the <SPAN
11360 CLASS="bold"
11361 ><B
11362 CLASS="emphasis"
11363 >-server</B
11364 ></SPAN
11365 > and <SPAN
11366 CLASS="bold"
11367 ><B
11368 CLASS="emphasis"
11369 >-partition</B
11370 ></SPAN
11371 > arguments to specify the new site. You
11372             cannot move the volume when restoring an incremental dump.</P
11373 ></LI
11374 ></UL
11375 ></P
11376 ><P
11377 >The <SPAN
11378 CLASS="bold"
11379 ><B
11380 CLASS="emphasis"
11381 >vos restore</B
11382 ></SPAN
11383 > command sets the restored volume's creation date in the volume header
11384       to the time of the restore operation, as reported in the <SAMP
11385 CLASS="computeroutput"
11386 >Creation</SAMP
11387 > field in the output from
11388       the <SPAN
11389 CLASS="bold"
11390 ><B
11391 CLASS="emphasis"
11392 >vos examine</B
11393 ></SPAN
11394 > and <SPAN
11395 CLASS="bold"
11396 ><B
11397 CLASS="emphasis"
11398 >vos listvol</B
11399 ></SPAN
11400 > commands.</P
11401 ></DIV
11402 ><DIV
11403 CLASS="sect2"
11404 ><H2
11405 CLASS="sect2"
11406 ><A
11407 NAME="HDRWQ242"
11408 >To restore a dump into a new volume and mount it</A
11409 ></H2
11410 ><OL
11411 TYPE="1"
11412 ><LI
11413 ><P
11414 >Verify that you are listed in the <SPAN
11415 CLASS="bold"
11416 ><B
11417 CLASS="emphasis"
11418 >/usr/afs/etc/UserList</B
11419 ></SPAN
11420 > file. If necessary, issue
11421           the <SPAN
11422 CLASS="bold"
11423 ><B
11424 CLASS="emphasis"
11425 >bos listusers</B
11426 ></SPAN
11427 > command, which is fully described in <A
11428 HREF="c32432.html#HDRWQ593"
11429 >To
11430           display the users in the UserList file</A
11431 >. <PRE
11432 CLASS="programlisting"
11433 >&#13;   % <SPAN
11434 CLASS="bold"
11435 ><B
11436 CLASS="emphasis"
11437 >bos listusers</B
11438 ></SPAN
11439 > &#60;<VAR
11440 CLASS="replaceable"
11441 >machine name</VAR
11442 >&#62;
11443 </PRE
11444 ></P
11445 ></LI
11446 ><LI
11447 ><P
11448 >Verify that you have permissions needed to read the dump file and to mount the new volume. If the dump file resides
11449           in AFS, you need the <SPAN
11450 CLASS="bold"
11451 ><B
11452 CLASS="emphasis"
11453 >r</B
11454 ></SPAN
11455 >( <SPAN
11456 CLASS="bold"
11457 ><B
11458 CLASS="emphasis"
11459 >read</B
11460 ></SPAN
11461 >) permission on the ACL of
11462           its directory. You need the <SPAN
11463 CLASS="bold"
11464 ><B
11465 CLASS="emphasis"
11466 >i</B
11467 ></SPAN
11468 >( <SPAN
11469 CLASS="bold"
11470 ><B
11471 CLASS="emphasis"
11472 >insert</B
11473 ></SPAN
11474 >) and <SPAN
11475 CLASS="bold"
11476 ><B
11477 CLASS="emphasis"
11478 >a</B
11479 ></SPAN
11480 >( <SPAN
11481 CLASS="bold"
11482 ><B
11483 CLASS="emphasis"
11484 >administer</B
11485 ></SPAN
11486 >) permissions on the ACL of the directory where you
11487           are mounting the new volume. If necessary, issue the <SPAN
11488 CLASS="bold"
11489 ><B
11490 CLASS="emphasis"
11491 >fs listacl</B
11492 ></SPAN
11493 > command, which is fully
11494           described in <A
11495 HREF="c31274.html#HDRWQ572"
11496 >Displaying ACLs</A
11497 >. <PRE
11498 CLASS="programlisting"
11499 >&#13;   % <SPAN
11500 CLASS="bold"
11501 ><B
11502 CLASS="emphasis"
11503 >fs listacl</B
11504 ></SPAN
11505 > [&#60;<VAR
11506 CLASS="replaceable"
11507 >dir/file path</VAR
11508 >&#62;]
11509 </PRE
11510 ></P
11511 ><P
11512 >Members of the <SPAN
11513 CLASS="bold"
11514 ><B
11515 CLASS="emphasis"
11516 >system:administrators</B
11517 ></SPAN
11518 > group always implicitly have the <SPAN
11519 CLASS="bold"
11520 ><B
11521 CLASS="emphasis"
11522 >a</B
11523 ></SPAN
11524 >( <SPAN
11525 CLASS="bold"
11526 ><B
11527 CLASS="emphasis"
11528 >administer</B
11529 ></SPAN
11530 >) and by default also the <SPAN
11531 CLASS="bold"
11532 ><B
11533 CLASS="emphasis"
11534 >l</B
11535 ></SPAN
11536 >( <SPAN
11537 CLASS="bold"
11538 ><B
11539 CLASS="emphasis"
11540 >lookup</B
11541 ></SPAN
11542 >) permission on every ACL and can use the <SPAN
11543 CLASS="bold"
11544 ><B
11545 CLASS="emphasis"
11546 >fs setacl</B
11547 ></SPAN
11548 > command to grant other rights as necessary.</P
11549 ></LI
11550 ><LI
11551 ><P
11552 >Select a site (disk partition on a file server machine) for the new volume. If your cell groups different types of
11553           volumes onto different file server machines, that can guide your decision. It often makes sense to put the volume on the
11554           emptiest partition that meets your other criteria. To display how much space is available on a file server machine's
11555           partitions, use the <SPAN
11556 CLASS="bold"
11557 ><B
11558 CLASS="emphasis"
11559 >vos partinfo</B
11560 ></SPAN
11561 > command, which is described fully in <A
11562 HREF="c8420.html#HDRWQ185"
11563 >Creating Read/write Volumes</A
11564 >. <PRE
11565 CLASS="programlisting"
11566 >&#13;   % <SPAN
11567 CLASS="bold"
11568 ><B
11569 CLASS="emphasis"
11570 >vos partinfo</B
11571 ></SPAN
11572 > &#60;<VAR
11573 CLASS="replaceable"
11574 >machine name</VAR
11575 >&#62; [&#60;<VAR
11576 CLASS="replaceable"
11577 >partition name</VAR
11578 >&#62;]
11579 </PRE
11580 ></P
11581 ></LI
11582 ><LI
11583 ><P
11584 ><A
11585 NAME="LIWQ243"
11586 ></A
11587 >Issue the <SPAN
11588 CLASS="bold"
11589 ><B
11590 CLASS="emphasis"
11591 >vos restore</B
11592 ></SPAN
11593 > command to create a new volume and
11594           restore the dump file into it. Type it on a single line; it appears on multiple lines here only for legibility.
11595           <PRE
11596 CLASS="programlisting"
11597 >&#13;   % <SPAN
11598 CLASS="bold"
11599 ><B
11600 CLASS="emphasis"
11601 >vos restore</B
11602 ></SPAN
11603 > &#60;<VAR
11604 CLASS="replaceable"
11605 >machine name</VAR
11606 >&#62; &#60;<VAR
11607 CLASS="replaceable"
11608 >partition name</VAR
11609 >&#62; \
11610                    &#60;<VAR
11611 CLASS="replaceable"
11612 >name of volume to be restored</VAR
11613 >&#62; \
11614                    [<SPAN
11615 CLASS="bold"
11616 ><B
11617 CLASS="emphasis"
11618 >-file</B
11619 ></SPAN
11620 > &#60;<VAR
11621 CLASS="replaceable"
11622 >dump file</VAR
11623 >&#62;] [<SPAN
11624 CLASS="bold"
11625 ><B
11626 CLASS="emphasis"
11627 >-id</B
11628 ></SPAN
11629 > &#60;<VAR
11630 CLASS="replaceable"
11631 >volume ID</VAR
11632 >&#62;]
11633 </PRE
11634 ></P
11635 ><P
11636 >where <DIV
11637 CLASS="variablelist"
11638 ><DL
11639 ><DT
11640 ><SPAN
11641 CLASS="bold"
11642 ><B
11643 CLASS="emphasis"
11644 >res</B
11645 ></SPAN
11646 ></DT
11647 ><DD
11648 ><P
11649 >Is the shortest acceptable abbreviation of <SPAN
11650 CLASS="bold"
11651 ><B
11652 CLASS="emphasis"
11653 >restore</B
11654 ></SPAN
11655 >.</P
11656 ></DD
11657 ><DT
11658 ><SPAN
11659 CLASS="bold"
11660 ><B
11661 CLASS="emphasis"
11662 >machine name</B
11663 ></SPAN
11664 ></DT
11665 ><DD
11666 ><P
11667 >Names the file server machine on which to create the new volume.</P
11668 ></DD
11669 ><DT
11670 ><SPAN
11671 CLASS="bold"
11672 ><B
11673 CLASS="emphasis"
11674 >partition name</B
11675 ></SPAN
11676 ></DT
11677 ><DD
11678 ><P
11679 >Names the partition on which to create the new volume.</P
11680 ></DD
11681 ><DT
11682 ><SPAN
11683 CLASS="bold"
11684 ><B
11685 CLASS="emphasis"
11686 >name of volume to be restored</B
11687 ></SPAN
11688 ></DT
11689 ><DD
11690 ><P
11691 >Names the new read/write volume, which must not already have a VLDB entry. It can be up to 22 characters in
11692                   length.</P
11693 ></DD
11694 ><DT
11695 ><SPAN
11696 CLASS="bold"
11697 ><B
11698 CLASS="emphasis"
11699 >-file</B
11700 ></SPAN
11701 ></DT
11702 ><DD
11703 ><P
11704 >Is the dump file to restore. Partial pathnames are interpreted with respect to the current working
11705                   directory. Omit this argument if using a pipe to read in the dump file from the standard input stream.</P
11706 ></DD
11707 ><DT
11708 ><SPAN
11709 CLASS="bold"
11710 ><B
11711 CLASS="emphasis"
11712 >-volume</B
11713 ></SPAN
11714 ></DT
11715 ><DD
11716 ><P
11717 >Specifies the new volume's ID number. It is appropriate only if you are restoring a volume that no longer
11718                   exists and want to use the volume ID number it had previously.</P
11719 ></DD
11720 ></DL
11721 ></DIV
11722 ></P
11723 ></LI
11724 ><LI
11725 ><P
11726 >Issue the <SPAN
11727 CLASS="bold"
11728 ><B
11729 CLASS="emphasis"
11730 >fs mkmount</B
11731 ></SPAN
11732 > command to mount the new volume, making its contents
11733           accessible. Complete instructions appear in <A
11734 HREF="c8420.html#HDRWQ212"
11735 >To create a regular or read/write mount point</A
11736 >.
11737           <PRE
11738 CLASS="programlisting"
11739 >&#13;   % <SPAN
11740 CLASS="bold"
11741 ><B
11742 CLASS="emphasis"
11743 >fs mkmount</B
11744 ></SPAN
11745 > &#60;<VAR
11746 CLASS="replaceable"
11747 >directory</VAR
11748 >&#62; &#60;<VAR
11749 CLASS="replaceable"
11750 >volume name</VAR
11751 >&#62;
11752 </PRE
11753 ></P
11754 ></LI
11755 ><LI
11756 ><P
11757 ><SPAN
11758 CLASS="bold"
11759 ><B
11760 CLASS="emphasis"
11761 >(Optional)</B
11762 ></SPAN
11763 > Issue the <SPAN
11764 CLASS="bold"
11765 ><B
11766 CLASS="emphasis"
11767 >fs lsmount</B
11768 ></SPAN
11769 > command to verify
11770           that the mount point refers to the correct volume. Complete instructions appear in <A
11771 HREF="c8420.html#HDRWQ211"
11772 >To display a
11773           mount point</A
11774 >. <PRE
11775 CLASS="programlisting"
11776 >&#13;   % <SPAN
11777 CLASS="bold"
11778 ><B
11779 CLASS="emphasis"
11780 >fs lsmount</B
11781 ></SPAN
11782 > &#60;<VAR
11783 CLASS="replaceable"
11784 >directory</VAR
11785 >&#62;
11786 </PRE
11787 ></P
11788 ></LI
11789 ></OL
11790 ></DIV
11791 ><DIV
11792 CLASS="sect2"
11793 ><H2
11794 CLASS="sect2"
11795 ><A
11796 NAME="HDRWQ244"
11797 >To restore a dump file, overwriting an existing volume</A
11798 ></H2
11799 ><OL
11800 TYPE="1"
11801 ><LI
11802 ><P
11803 >Verify that you are listed in the <SPAN
11804 CLASS="bold"
11805 ><B
11806 CLASS="emphasis"
11807 >/usr/afs/etc/UserList</B
11808 ></SPAN
11809 > file. If necessary, issue
11810           the <SPAN
11811 CLASS="bold"
11812 ><B
11813 CLASS="emphasis"
11814 >bos listusers</B
11815 ></SPAN
11816 > command, which is fully described in <A
11817 HREF="c32432.html#HDRWQ593"
11818 >To
11819           display the users in the UserList file</A
11820 >. <PRE
11821 CLASS="programlisting"
11822 >&#13;   % <SPAN
11823 CLASS="bold"
11824 ><B
11825 CLASS="emphasis"
11826 >bos listusers</B
11827 ></SPAN
11828 > &#60;<VAR
11829 CLASS="replaceable"
11830 >machine name</VAR
11831 >&#62;
11832 </PRE
11833 ></P
11834 ></LI
11835 ><LI
11836 ><P
11837 >Verify that you have permissions needed to read the dump file. If it resides in AFS, you need the <SPAN
11838 CLASS="bold"
11839 ><B
11840 CLASS="emphasis"
11841 >r</B
11842 ></SPAN
11843 >( <SPAN
11844 CLASS="bold"
11845 ><B
11846 CLASS="emphasis"
11847 >read</B
11848 ></SPAN
11849 >) permission on the ACL of its directory. If necessary,
11850           issue the <SPAN
11851 CLASS="bold"
11852 ><B
11853 CLASS="emphasis"
11854 >fs listacl</B
11855 ></SPAN
11856 > command, which is fully described in <A
11857 HREF="c31274.html#HDRWQ572"
11858 >Displaying ACLs</A
11859 >. <PRE
11860 CLASS="programlisting"
11861 >&#13;   % <SPAN
11862 CLASS="bold"
11863 ><B
11864 CLASS="emphasis"
11865 >fs listacl</B
11866 ></SPAN
11867 > [&#60;<VAR
11868 CLASS="replaceable"
11869 >dir/file path</VAR
11870 >&#62;]
11871 </PRE
11872 ></P
11873 ><P
11874 >Members of the <SPAN
11875 CLASS="bold"
11876 ><B
11877 CLASS="emphasis"
11878 >system:administrators</B
11879 ></SPAN
11880 > group always implicitly have the <SPAN
11881 CLASS="bold"
11882 ><B
11883 CLASS="emphasis"
11884 >a</B
11885 ></SPAN
11886 >( <SPAN
11887 CLASS="bold"
11888 ><B
11889 CLASS="emphasis"
11890 >administer</B
11891 ></SPAN
11892 >) and by default also the <SPAN
11893 CLASS="bold"
11894 ><B
11895 CLASS="emphasis"
11896 >l</B
11897 ></SPAN
11898 >( <SPAN
11899 CLASS="bold"
11900 ><B
11901 CLASS="emphasis"
11902 >lookup</B
11903 ></SPAN
11904 >) permission on every ACL and can use the <SPAN
11905 CLASS="bold"
11906 ><B
11907 CLASS="emphasis"
11908 >fs setacl</B
11909 ></SPAN
11910 > command to grant other rights as necessary.</P
11911 ></LI
11912 ><LI
11913 ><P
11914 >Restore the contents of the dump file into a read/write volume, overwriting the current contents. The volume retains
11915           its current volume ID number. Type it on a single line; it appears on multiple lines here only for legibility.
11916           <PRE
11917 CLASS="programlisting"
11918 >&#13;   % <SPAN
11919 CLASS="bold"
11920 ><B
11921 CLASS="emphasis"
11922 >vos restore</B
11923 ></SPAN
11924 > &#60;<VAR
11925 CLASS="replaceable"
11926 >machine name</VAR
11927 >&#62; &#60;<VAR
11928 CLASS="replaceable"
11929 >partition name</VAR
11930 >&#62;  \
11931                  &#60;<VAR
11932 CLASS="replaceable"
11933 >name of volume to be restored</VAR
11934 >&#62;   \
11935                  [<SPAN
11936 CLASS="bold"
11937 ><B
11938 CLASS="emphasis"
11939 >-file</B
11940 ></SPAN
11941 > &#60;<VAR
11942 CLASS="replaceable"
11943 >dump file</VAR
11944 >&#62;] [<SPAN
11945 CLASS="bold"
11946 ><B
11947 CLASS="emphasis"
11948 >-id</B
11949 ></SPAN
11950 > &#60;<VAR
11951 CLASS="replaceable"
11952 >volume ID</VAR
11953 >&#62;]
11954 </PRE
11955 ></P
11956 ><P
11957 >where <DIV
11958 CLASS="variablelist"
11959 ><DL
11960 ><DT
11961 ><SPAN
11962 CLASS="bold"
11963 ><B
11964 CLASS="emphasis"
11965 >res</B
11966 ></SPAN
11967 ></DT
11968 ><DD
11969 ><P
11970 >Is the shortest acceptable abbreviation of <SPAN
11971 CLASS="bold"
11972 ><B
11973 CLASS="emphasis"
11974 >restore</B
11975 ></SPAN
11976 >.</P
11977 ></DD
11978 ><DT
11979 ><SPAN
11980 CLASS="bold"
11981 ><B
11982 CLASS="emphasis"
11983 >machine name</B
11984 ></SPAN
11985 ></DT
11986 ><DD
11987 ><P
11988 >Names the file server machine where the volume already exists, or the machine to which to move it. In the
11989                   latter case, the value for the <SPAN
11990 CLASS="bold"
11991 ><B
11992 CLASS="emphasis"
11993 >-overwrite</B
11994 ></SPAN
11995 > argument must be <SPAN
11996 CLASS="bold"
11997 ><B
11998 CLASS="emphasis"
11999 >full</B
12000 ></SPAN
12001 >.</P
12002 ></DD
12003 ><DT
12004 ><SPAN
12005 CLASS="bold"
12006 ><B
12007 CLASS="emphasis"
12008 >partition name</B
12009 ></SPAN
12010 ></DT
12011 ><DD
12012 ><P
12013 >Names the partition where the volume already exists, or the partition to which to move it. In the latter
12014                   case, the value for the <SPAN
12015 CLASS="bold"
12016 ><B
12017 CLASS="emphasis"
12018 >-overwrite</B
12019 ></SPAN
12020 > argument must be <SPAN
12021 CLASS="bold"
12022 ><B
12023 CLASS="emphasis"
12024 >full</B
12025 ></SPAN
12026 >.</P
12027 ></DD
12028 ><DT
12029 ><SPAN
12030 CLASS="bold"
12031 ><B
12032 CLASS="emphasis"
12033 >name of volume to be restored</B
12034 ></SPAN
12035 ></DT
12036 ><DD
12037 ><P
12038 >Names the read/write volume to overwrite with the contents of the dump file.</P
12039 ></DD
12040 ><DT
12041 ><SPAN
12042 CLASS="bold"
12043 ><B
12044 CLASS="emphasis"
12045 >-file</B
12046 ></SPAN
12047 ></DT
12048 ><DD
12049 ><P
12050 >Is the dump file to restore. Partial pathnames are interpreted with respect to the current working
12051                   directory. Omit this argument if using a pipe to read in the dump file from the standard input stream; in this
12052                   case, you must provide the <SPAN
12053 CLASS="bold"
12054 ><B
12055 CLASS="emphasis"
12056 >-overwrite</B
12057 ></SPAN
12058 > argument.</P
12059 ></DD
12060 ><DT
12061 ><SPAN
12062 CLASS="bold"
12063 ><B
12064 CLASS="emphasis"
12065 >-overwrite</B
12066 ></SPAN
12067 ></DT
12068 ><DD
12069 ><P
12070 >Preconfirms that you want to overwrite the existing volume and specifies which type of dump file you are
12071                   restoring. Provide one of the following values: <UL
12072 ><LI
12073 ><P
12074 ><SPAN
12075 CLASS="bold"
12076 ><B
12077 CLASS="emphasis"
12078 >f</B
12079 ></SPAN
12080 > or <SPAN
12081 CLASS="bold"
12082 ><B
12083 CLASS="emphasis"
12084 >full</B
12085 ></SPAN
12086 > if restoring a full dump
12087                         file</P
12088 ></LI
12089 ><LI
12090 ><P
12091 ><SPAN
12092 CLASS="bold"
12093 ><B
12094 CLASS="emphasis"
12095 >i</B
12096 ></SPAN
12097 > or <SPAN
12098 CLASS="bold"
12099 ><B
12100 CLASS="emphasis"
12101 >incremental</B
12102 ></SPAN
12103 > if restoring an
12104                         incremental dump file. This value is not acceptable if you are moving the volume while restoring it.</P
12105 ></LI
12106 ><LI
12107 ><P
12108 ><SPAN
12109 CLASS="bold"
12110 ><B
12111 CLASS="emphasis"
12112 >a</B
12113 ></SPAN
12114 > to terminate the restore operation</P
12115 ></LI
12116 ></UL
12117 ></P
12118 ></DD
12119 ></DL
12120 ></DIV
12121 ></P
12122 ></LI
12123 ><LI
12124 ><P
12125 >If the volume is replicated, issue the <SPAN
12126 CLASS="bold"
12127 ><B
12128 CLASS="emphasis"
12129 >vos release</B
12130 ></SPAN
12131 > command to release the newly
12132           restored contents to read-only sites. Complete instructions appear in <A
12133 HREF="c8420.html#HDRWQ192"
12134 >Replicating Volumes
12135           (Creating Read-only Volumes)</A
12136 >. <PRE
12137 CLASS="programlisting"
12138 >&#13;   % <SPAN
12139 CLASS="bold"
12140 ><B
12141 CLASS="emphasis"
12142 >vos release</B
12143 ></SPAN
12144 > &#60;<VAR
12145 CLASS="replaceable"
12146 >volume name or ID</VAR
12147 >&#62;
12148 </PRE
12149 ></P
12150 ></LI
12151 ><LI
12152 ><P
12153 >Issue the <SPAN
12154 CLASS="bold"
12155 ><B
12156 CLASS="emphasis"
12157 >vos backup</B
12158 ></SPAN
12159 > command to create a new backup version of the volume. Complete
12160           instructions appear in <A
12161 HREF="c8420.html#HDRWQ201"
12162 >Creating Backup Volumes</A
12163 >. <PRE
12164 CLASS="programlisting"
12165 >&#13;   % <SPAN
12166 CLASS="bold"
12167 ><B
12168 CLASS="emphasis"
12169 >vos backup</B
12170 ></SPAN
12171 > &#60;<VAR
12172 CLASS="replaceable"
12173 >volume name or ID</VAR
12174 >&#62;
12175 </PRE
12176 ></P
12177 ></LI
12178 ></OL
12179 ></DIV
12180 ></DIV
12181 ><DIV
12182 CLASS="sect1"
12183 ><H1
12184 CLASS="sect1"
12185 ><A
12186 NAME="HDRWQ245"
12187 >Renaming Volumes</A
12188 ></H1
12189 ><P
12190 >You can use the <SPAN
12191 CLASS="bold"
12192 ><B
12193 CLASS="emphasis"
12194 >vos rename</B
12195 ></SPAN
12196 > command to rename a volume. For example, it is appropriate to
12197     rename a user's home volume if you use the <SPAN
12198 CLASS="bold"
12199 ><B
12200 CLASS="emphasis"
12201 >user.</B
12202 ></SPAN
12203 > username convention for user volume names and
12204     you change the username. (For complete instructions for changing usernames, see <A
12205 HREF="c27596.html#HDRWQ518"
12206 >Changing
12207     Usernames</A
12208 >.)</P
12209 ><P
12210 >The <SPAN
12211 CLASS="bold"
12212 ><B
12213 CLASS="emphasis"
12214 >vos rename</B
12215 ></SPAN
12216 > command accepts only read/write volume names, but automatically changes
12217     the names of the associated read-only and backup volumes. As directed in the following instructions, you need to replace the
12218     volume's current mount point with a new one that reflects the name change.</P
12219 ><DIV
12220 CLASS="sect2"
12221 ><H2
12222 CLASS="sect2"
12223 ><A
12224 NAME="HDRWQ246"
12225 >To rename a volume</A
12226 ></H2
12227 ><OL
12228 TYPE="1"
12229 ><LI
12230 ><P
12231 >Verify that you are listed in the <SPAN
12232 CLASS="bold"
12233 ><B
12234 CLASS="emphasis"
12235 >/usr/afs/etc/UserList</B
12236 ></SPAN
12237 > file. If necessary, issue
12238           the <SPAN
12239 CLASS="bold"
12240 ><B
12241 CLASS="emphasis"
12242 >bos listusers</B
12243 ></SPAN
12244 > command, which is fully described in <A
12245 HREF="c32432.html#HDRWQ593"
12246 >To
12247           display the users in the UserList file</A
12248 >. <PRE
12249 CLASS="programlisting"
12250 >&#13;   % <SPAN
12251 CLASS="bold"
12252 ><B
12253 CLASS="emphasis"
12254 >bos listusers</B
12255 ></SPAN
12256 > &#60;<VAR
12257 CLASS="replaceable"
12258 >machine name</VAR
12259 >&#62;
12260 </PRE
12261 ></P
12262 ></LI
12263 ><LI
12264 ><P
12265 >Verify that you have the <SPAN
12266 CLASS="bold"
12267 ><B
12268 CLASS="emphasis"
12269 >a</B
12270 ></SPAN
12271 >( <SPAN
12272 CLASS="bold"
12273 ><B
12274 CLASS="emphasis"
12275 >administer</B
12276 ></SPAN
12277 >), <SPAN
12278 CLASS="bold"
12279 ><B
12280 CLASS="emphasis"
12281 >d</B
12282 ></SPAN
12283 >( <SPAN
12284 CLASS="bold"
12285 ><B
12286 CLASS="emphasis"
12287 >delete</B
12288 ></SPAN
12289 >), and <SPAN
12290 CLASS="bold"
12291 ><B
12292 CLASS="emphasis"
12293 >i</B
12294 ></SPAN
12295 >( <SPAN
12296 CLASS="bold"
12297 ><B
12298 CLASS="emphasis"
12299 >insert</B
12300 ></SPAN
12301 >) access permissions for the directory in which you are replacing the volume's mount point.
12302           If necessary, issue the <SPAN
12303 CLASS="bold"
12304 ><B
12305 CLASS="emphasis"
12306 >fs listacl</B
12307 ></SPAN
12308 > command, which is fully described in <A
12309 HREF="c31274.html#HDRWQ572"
12310 >Displaying ACLs</A
12311 >. <PRE
12312 CLASS="programlisting"
12313 >&#13;   % <SPAN
12314 CLASS="bold"
12315 ><B
12316 CLASS="emphasis"
12317 >fs listacl</B
12318 ></SPAN
12319 > [&#60;<VAR
12320 CLASS="replaceable"
12321 >dir/file path</VAR
12322 >&#62;]
12323 </PRE
12324 ></P
12325 ><P
12326 >Members of the <SPAN
12327 CLASS="bold"
12328 ><B
12329 CLASS="emphasis"
12330 >system:administrators</B
12331 ></SPAN
12332 > group always implicitly have the <SPAN
12333 CLASS="bold"
12334 ><B
12335 CLASS="emphasis"
12336 >a</B
12337 ></SPAN
12338 >( <SPAN
12339 CLASS="bold"
12340 ><B
12341 CLASS="emphasis"
12342 >administer</B
12343 ></SPAN
12344 >) and by default also the <SPAN
12345 CLASS="bold"
12346 ><B
12347 CLASS="emphasis"
12348 >l</B
12349 ></SPAN
12350 >( <SPAN
12351 CLASS="bold"
12352 ><B
12353 CLASS="emphasis"
12354 >lookup</B
12355 ></SPAN
12356 >) permission on every ACL and can use the <SPAN
12357 CLASS="bold"
12358 ><B
12359 CLASS="emphasis"
12360 >fs setacl</B
12361 ></SPAN
12362 > command to grant other rights as necessary.</P
12363 ></LI
12364 ><LI
12365 ><P
12366 ><A
12367 NAME="LIVOL-REN"
12368 ></A
12369 >Issue the <SPAN
12370 CLASS="bold"
12371 ><B
12372 CLASS="emphasis"
12373 >vos rename</B
12374 ></SPAN
12375 > command to rename the volume.
12376           <PRE
12377 CLASS="programlisting"
12378 >&#13;   % <SPAN
12379 CLASS="bold"
12380 ><B
12381 CLASS="emphasis"
12382 >vos rename</B
12383 ></SPAN
12384 > &#60;<VAR
12385 CLASS="replaceable"
12386 >old volume name</VAR
12387 >&#62; &#60;<VAR
12388 CLASS="replaceable"
12389 >new volume name</VAR
12390 >&#62;
12391 </PRE
12392 ></P
12393 ><P
12394 >where <DIV
12395 CLASS="variablelist"
12396 ><DL
12397 ><DT
12398 ><SPAN
12399 CLASS="bold"
12400 ><B
12401 CLASS="emphasis"
12402 >ren</B
12403 ></SPAN
12404 ></DT
12405 ><DD
12406 ><P
12407 >Is the shortest acceptable abbreviation of <SPAN
12408 CLASS="bold"
12409 ><B
12410 CLASS="emphasis"
12411 >rename</B
12412 ></SPAN
12413 >.</P
12414 ></DD
12415 ><DT
12416 ><SPAN
12417 CLASS="bold"
12418 ><B
12419 CLASS="emphasis"
12420 >old volume name</B
12421 ></SPAN
12422 ></DT
12423 ><DD
12424 ><P
12425 >Is the current name of a read/write volume.</P
12426 ></DD
12427 ><DT
12428 ><SPAN
12429 CLASS="bold"
12430 ><B
12431 CLASS="emphasis"
12432 >new volume name</B
12433 ></SPAN
12434 ></DT
12435 ><DD
12436 ><P
12437 >Is the new name for the volume. It cannot be more than 22 characters in length.</P
12438 ></DD
12439 ></DL
12440 ></DIV
12441 ></P
12442 ><P
12443 >If there is no Volume Location Database (VLDB) entry for the specified current volume name, the command fails with
12444           the following error message:</P
12445 ><PRE
12446 CLASS="programlisting"
12447 >&#13;   vos: Could not find entry for volume old_volume_name.
12448 </PRE
12449 ></LI
12450 ><LI
12451 ><P
12452 >Issue the <SPAN
12453 CLASS="bold"
12454 ><B
12455 CLASS="emphasis"
12456 >fs rmmount</B
12457 ></SPAN
12458 > command to remove the mount point that refers to the volume's
12459           old name. Complete instructions appear in <A
12460 HREF="c8420.html#HDRWQ215"
12461 >To remove a mount point</A
12462 >. <PRE
12463 CLASS="programlisting"
12464 >&#13;   % <SPAN
12465 CLASS="bold"
12466 ><B
12467 CLASS="emphasis"
12468 >fs rmmount</B
12469 ></SPAN
12470 > &#60;<VAR
12471 CLASS="replaceable"
12472 >directory</VAR
12473 >&#62;
12474 </PRE
12475 ></P
12476 ></LI
12477 ><LI
12478 ><P
12479 >Issue the <SPAN
12480 CLASS="bold"
12481 ><B
12482 CLASS="emphasis"
12483 >fs mkmount</B
12484 ></SPAN
12485 > to create a mount point that indicates the volume's new name.
12486           Complete instructions appear in <A
12487 HREF="c8420.html#HDRWQ212"
12488 >To create a regular or read/write mount point</A
12489 >.
12490           <PRE
12491 CLASS="programlisting"
12492 >&#13;   % <SPAN
12493 CLASS="bold"
12494 ><B
12495 CLASS="emphasis"
12496 >fs mkmount</B
12497 ></SPAN
12498 > &#60;<VAR
12499 CLASS="replaceable"
12500 >directory</VAR
12501 >&#62; &#60;<VAR
12502 CLASS="replaceable"
12503 >volume name</VAR
12504 >&#62; [<SPAN
12505 CLASS="bold"
12506 ><B
12507 CLASS="emphasis"
12508 >-rw</B
12509 ></SPAN
12510 >]
12511 </PRE
12512 ></P
12513 ></LI
12514 ></OL
12515 ></DIV
12516 ></DIV
12517 ><DIV
12518 CLASS="sect1"
12519 ><H1
12520 CLASS="sect1"
12521 ><A
12522 NAME="HDRWQ247"
12523 >Unlocking and Locking VLDB Entries</A
12524 ></H1
12525 ><P
12526 >As detailed in <A
12527 HREF="c8420.html#HDRWQ227"
12528 >Synchronizing the VLDB and Volume Headers</A
12529 >, The Volume Location (VL) Server
12530     locks the Volume Location Database (VLDB) entry for a volume before the Volume Server executes any operation on it. No other
12531     operation can affect a volume with a locked VLDB entry, so the lock prevents the inconsistency or corruption that can result
12532     from multiple simultaneous operations on a volume.</P
12533 ><P
12534 >To verify that a VLDB entry is locked, issue the <SPAN
12535 CLASS="bold"
12536 ><B
12537 CLASS="emphasis"
12538 >vos listvldb</B
12539 ></SPAN
12540 > command as described in
12541     <A
12542 HREF="c8420.html#HDRWQ218"
12543 >To display VLDB entries</A
12544 >. The command has a <SPAN
12545 CLASS="bold"
12546 ><B
12547 CLASS="emphasis"
12548 >-locked</B
12549 ></SPAN
12550 > flag that
12551     displays locked entries only. If the VLDB entry is locked, the string <SAMP
12552 CLASS="computeroutput"
12553 >Volume is currently
12554     LOCKED</SAMP
12555 > appears on the last line of the volume's output.</P
12556 ><P
12557 >To lock a VLDB entry yourself, use the <SPAN
12558 CLASS="bold"
12559 ><B
12560 CLASS="emphasis"
12561 >vos lock</B
12562 ></SPAN
12563 > command. This is useful when you suspect
12564     something is wrong with a volume and you want to prevent any changes to it while you are investigating the problem.</P
12565 ><P
12566 >To unlock a locked VLDB entry, issue the <SPAN
12567 CLASS="bold"
12568 ><B
12569 CLASS="emphasis"
12570 >vos unlock</B
12571 ></SPAN
12572 > command, which unlocks a single VLDB
12573     entry, or the <SPAN
12574 CLASS="bold"
12575 ><B
12576 CLASS="emphasis"
12577 >vos unlockvldb</B
12578 ></SPAN
12579 > command, which unlocks potentially many entries. This is useful
12580     when a volume operation fails prematurely and leaves a VLDB entry locked, preventing you from acting to correct the problems
12581     resulting from the failure.</P
12582 ><DIV
12583 CLASS="sect2"
12584 ><H2
12585 CLASS="sect2"
12586 ><A
12587 NAME="Header_267"
12588 >To lock a VLDB entry</A
12589 ></H2
12590 ><OL
12591 TYPE="1"
12592 ><LI
12593 ><P
12594 >Verify that you are listed in the <SPAN
12595 CLASS="bold"
12596 ><B
12597 CLASS="emphasis"
12598 >/usr/afs/etc/UserList</B
12599 ></SPAN
12600 > file. If necessary, issue
12601           the <SPAN
12602 CLASS="bold"
12603 ><B
12604 CLASS="emphasis"
12605 >bos listusers</B
12606 ></SPAN
12607 > command, which is fully described in <A
12608 HREF="c32432.html#HDRWQ593"
12609 >To
12610           display the users in the UserList file</A
12611 >. <PRE
12612 CLASS="programlisting"
12613 >&#13;   % <SPAN
12614 CLASS="bold"
12615 ><B
12616 CLASS="emphasis"
12617 >bos listusers</B
12618 ></SPAN
12619 > &#60;<VAR
12620 CLASS="replaceable"
12621 >machine name</VAR
12622 >&#62;
12623 </PRE
12624 ></P
12625 ></LI
12626 ><LI
12627 ><P
12628 >Issue the <SPAN
12629 CLASS="bold"
12630 ><B
12631 CLASS="emphasis"
12632 >vos lock</B
12633 ></SPAN
12634 > to lock the entry. <PRE
12635 CLASS="programlisting"
12636 >&#13;   % <SPAN
12637 CLASS="bold"
12638 ><B
12639 CLASS="emphasis"
12640 >vos lock</B
12641 ></SPAN
12642 > &#60;<VAR
12643 CLASS="replaceable"
12644 >volume name or ID</VAR
12645 >&#62;
12646 </PRE
12647 ></P
12648 ><P
12649 >where <DIV
12650 CLASS="variablelist"
12651 ><DL
12652 ><DT
12653 ><SPAN
12654 CLASS="bold"
12655 ><B
12656 CLASS="emphasis"
12657 >lo</B
12658 ></SPAN
12659 ></DT
12660 ><DD
12661 ><P
12662 >Is the shortest acceptable abbreviation of <SPAN
12663 CLASS="bold"
12664 ><B
12665 CLASS="emphasis"
12666 >lock</B
12667 ></SPAN
12668 >.</P
12669 ></DD
12670 ><DT
12671 ><SPAN
12672 CLASS="bold"
12673 ><B
12674 CLASS="emphasis"
12675 >volume name or ID</B
12676 ></SPAN
12677 ></DT
12678 ><DD
12679 ><P
12680 >Identifies the volume to be locked, either by its complete name or volume ID number. It can be any of the
12681                   three versions of the volume.</P
12682 ></DD
12683 ></DL
12684 ></DIV
12685 ></P
12686 ></LI
12687 ></OL
12688 ></DIV
12689 ><DIV
12690 CLASS="sect2"
12691 ><H2
12692 CLASS="sect2"
12693 ><A
12694 NAME="Header_268"
12695 >To unlock a single VLDB entry</A
12696 ></H2
12697 ><OL
12698 TYPE="1"
12699 ><LI
12700 ><P
12701 >Verify that you are listed in the <SPAN
12702 CLASS="bold"
12703 ><B
12704 CLASS="emphasis"
12705 >/usr/afs/etc/UserList</B
12706 ></SPAN
12707 > file. If necessary, issue
12708           the <SPAN
12709 CLASS="bold"
12710 ><B
12711 CLASS="emphasis"
12712 >bos listusers</B
12713 ></SPAN
12714 > command, which is fully described in <A
12715 HREF="c32432.html#HDRWQ593"
12716 >To
12717           display the users in the UserList file</A
12718 >. <PRE
12719 CLASS="programlisting"
12720 >&#13;   % <SPAN
12721 CLASS="bold"
12722 ><B
12723 CLASS="emphasis"
12724 >bos listusers</B
12725 ></SPAN
12726 > &#60;<VAR
12727 CLASS="replaceable"
12728 >machine name</VAR
12729 >&#62;
12730 </PRE
12731 ></P
12732 ></LI
12733 ><LI
12734 ><P
12735 >Issue the <SPAN
12736 CLASS="bold"
12737 ><B
12738 CLASS="emphasis"
12739 >vos unlock</B
12740 ></SPAN
12741 > command to unlock the entry. <PRE
12742 CLASS="programlisting"
12743 >&#13;   % <SPAN
12744 CLASS="bold"
12745 ><B
12746 CLASS="emphasis"
12747 >vos unlock</B
12748 ></SPAN
12749 > &#60;<VAR
12750 CLASS="replaceable"
12751 >volume name or ID</VAR
12752 >&#62;
12753 </PRE
12754 ></P
12755 ><P
12756 >where <DIV
12757 CLASS="variablelist"
12758 ><DL
12759 ><DT
12760 ><SPAN
12761 CLASS="bold"
12762 ><B
12763 CLASS="emphasis"
12764 >unlock</B
12765 ></SPAN
12766 ></DT
12767 ><DD
12768 ><P
12769 >Must be typed in full.</P
12770 ></DD
12771 ><DT
12772 ><SPAN
12773 CLASS="bold"
12774 ><B
12775 CLASS="emphasis"
12776 >volume name or ID</B
12777 ></SPAN
12778 ></DT
12779 ><DD
12780 ><P
12781 >Identifies the volume to be unlocked, either by its complete name or volume ID number. It can be any of the
12782                   three versions of the volume.</P
12783 ></DD
12784 ></DL
12785 ></DIV
12786 ></P
12787 ></LI
12788 ></OL
12789 ></DIV
12790 ><DIV
12791 CLASS="sect2"
12792 ><H2
12793 CLASS="sect2"
12794 ><A
12795 NAME="Header_269"
12796 >To unlock multiple VLDB entries</A
12797 ></H2
12798 ><OL
12799 TYPE="1"
12800 ><LI
12801 ><P
12802 >Verify that you are listed in the <SPAN
12803 CLASS="bold"
12804 ><B
12805 CLASS="emphasis"
12806 >/usr/afs/etc/UserList</B
12807 ></SPAN
12808 > file. If necessary, issue
12809           the <SPAN
12810 CLASS="bold"
12811 ><B
12812 CLASS="emphasis"
12813 >bos listusers</B
12814 ></SPAN
12815 > command, which is fully described in <A
12816 HREF="c32432.html#HDRWQ593"
12817 >To
12818           display the users in the UserList file</A
12819 >. <PRE
12820 CLASS="programlisting"
12821 >&#13;   % <SPAN
12822 CLASS="bold"
12823 ><B
12824 CLASS="emphasis"
12825 >bos listusers</B
12826 ></SPAN
12827 > &#60;<VAR
12828 CLASS="replaceable"
12829 >machine name</VAR
12830 >&#62;
12831 </PRE
12832 ></P
12833 ></LI
12834 ><LI
12835 ><P
12836 >Issue the <SPAN
12837 CLASS="bold"
12838 ><B
12839 CLASS="emphasis"
12840 >vos unlockvldb</B
12841 ></SPAN
12842 > command to unlock the desired entries. <PRE
12843 CLASS="programlisting"
12844 >&#13;   % <SPAN
12845 CLASS="bold"
12846 ><B
12847 CLASS="emphasis"
12848 >vos unlockvldb</B
12849 ></SPAN
12850 > [&#60;<VAR
12851 CLASS="replaceable"
12852 >machine name</VAR
12853 >&#62;] [&#60;<VAR
12854 CLASS="replaceable"
12855 >partition name</VAR
12856 >&#62;]
12857 </PRE
12858 ></P
12859 ><P
12860 >where <DIV
12861 CLASS="variablelist"
12862 ><DL
12863 ><DT
12864 ><SPAN
12865 CLASS="bold"
12866 ><B
12867 CLASS="emphasis"
12868 >unlockv</B
12869 ></SPAN
12870 ></DT
12871 ><DD
12872 ><P
12873 >Is the shortest acceptable abbreviation of <SPAN
12874 CLASS="bold"
12875 ><B
12876 CLASS="emphasis"
12877 >unlockvldb</B
12878 ></SPAN
12879 >.</P
12880 ></DD
12881 ><DT
12882 ><SPAN
12883 CLASS="bold"
12884 ><B
12885 CLASS="emphasis"
12886 >machine name</B
12887 ></SPAN
12888 ></DT
12889 ><DD
12890 ><P
12891 >Specifies a file server machine. Provide this argument alone to unlock all VLDB entries that mention the
12892                   machine in a site definition. Omit both this argument and the partition name argument to unlock all VLDB
12893                   entries.</P
12894 ></DD
12895 ><DT
12896 ><SPAN
12897 CLASS="bold"
12898 ><B
12899 CLASS="emphasis"
12900 >partition name</B
12901 ></SPAN
12902 ></DT
12903 ><DD
12904 ><P
12905 >Specifies a partition. Provide this argument alone to unlock all VLDB entries that mention the partition (on
12906                   any machine) in a site definition. Omit both this argument and the machine name argument to unlock all VLDB
12907                   entries.</P
12908 ></DD
12909 ></DL
12910 ></DIV
12911 ></P
12912 ></LI
12913 ></OL
12914 ></DIV
12915 ></DIV
12916 ></DIV
12917 ><DIV
12918 CLASS="NAVFOOTER"
12919 ><HR
12920 ALIGN="LEFT"
12921 WIDTH="100%"><TABLE
12922 SUMMARY="Footer navigation table"
12923 WIDTH="100%"
12924 BORDER="0"
12925 CELLPADDING="0"
12926 CELLSPACING="0"
12927 ><TR
12928 ><TD
12929 WIDTH="33%"
12930 ALIGN="left"
12931 VALIGN="top"
12932 ><A
12933 HREF="c6449.html"
12934 ACCESSKEY="P"
12935 >Prev</A
12936 ></TD
12937 ><TD
12938 WIDTH="34%"
12939 ALIGN="center"
12940 VALIGN="top"
12941 ><A
12942 HREF="book1.html"
12943 ACCESSKEY="H"
12944 >Home</A
12945 ></TD
12946 ><TD
12947 WIDTH="33%"
12948 ALIGN="right"
12949 VALIGN="top"
12950 ><A
12951 HREF="c12776.html"
12952 ACCESSKEY="N"
12953 >Next</A
12954 ></TD
12955 ></TR
12956 ><TR
12957 ><TD
12958 WIDTH="33%"
12959 ALIGN="left"
12960 VALIGN="top"
12961 >Monitoring and Controlling Server Processes</TD
12962 ><TD
12963 WIDTH="34%"
12964 ALIGN="center"
12965 VALIGN="top"
12966 ><A
12967 HREF="p3023.html"
12968 ACCESSKEY="U"
12969 >Up</A
12970 ></TD
12971 ><TD
12972 WIDTH="33%"
12973 ALIGN="right"
12974 VALIGN="top"
12975 >Configuring the AFS Backup System</TD
12976 ></TR
12977 ></TABLE
12978 ></DIV
12979 ></BODY
12980 ></HTML
12981 >