xml-docbook-documentation-first-pass-20060915
[openafs.git] / doc / xml / AdminGuide / c12776.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <HTML
3 ><HEAD
4 ><TITLE
5 >Configuring the AFS Backup System</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="Managing Volumes"
17 HREF="c8420.html"><LINK
18 REL="NEXT"
19 TITLE="Backing Up and Restoring AFS Data"
20 HREF="c15383.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="c8420.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="c15383.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="HDRWQ248"
76 ></A
77 >Chapter 6. Configuring the AFS Backup System</H1
78 ><P
79 >The AFS Backup System helps you to create backup copies of data from AFS volumes and to restore data to the file system if
80   it is lost or corrupted. This chapter explains how to configure the Backup System. For instructions on backing up and restoring
81   data and displaying dump records, see <A
82 HREF="c15383.html"
83 >Backing Up and Restoring AFS Data</A
84 >.</P
85 ><DIV
86 CLASS="sect1"
87 ><H1
88 CLASS="sect1"
89 ><A
90 NAME="HDRWQ249"
91 >Summary of Instructions</A
92 ></H1
93 ><P
94 >This chapter explains how to perform the following tasks by using the indicated commands:</P
95 ><DIV
96 CLASS="informaltable"
97 ><A
98 NAME="AEN12783"
99 ></A
100 ><TABLE
101 BORDER="0"
102 FRAME="void"
103 CLASS="CALSTABLE"
104 ><COL
105 WIDTH="70*"><COL
106 WIDTH="30*"><TBODY
107 ><TR
108 ><TD
109 >Determine tape capacity and filemark size</TD
110 ><TD
111 ><SPAN
112 CLASS="bold"
113 ><B
114 CLASS="emphasis"
115 >fms</B
116 ></SPAN
117 ></TD
118 ></TR
119 ><TR
120 ><TD
121 >Define Tape Coordinator entry in Backup Database</TD
122 ><TD
123 ><SPAN
124 CLASS="bold"
125 ><B
126 CLASS="emphasis"
127 >backup addhost</B
128 ></SPAN
129 ></TD
130 ></TR
131 ><TR
132 ><TD
133 >Remove Tape Coordinator entry from Backup Database</TD
134 ><TD
135 ><SPAN
136 CLASS="bold"
137 ><B
138 CLASS="emphasis"
139 >backup delhost</B
140 ></SPAN
141 ></TD
142 ></TR
143 ><TR
144 ><TD
145 >Display Tape Coordinator entries from Backup Database</TD
146 ><TD
147 ><SPAN
148 CLASS="bold"
149 ><B
150 CLASS="emphasis"
151 >backup listhosts</B
152 ></SPAN
153 ></TD
154 ></TR
155 ><TR
156 ><TD
157 >Create volume set</TD
158 ><TD
159 ><SPAN
160 CLASS="bold"
161 ><B
162 CLASS="emphasis"
163 >backup addvolset</B
164 ></SPAN
165 ></TD
166 ></TR
167 ><TR
168 ><TD
169 >Add volume entry to volume set</TD
170 ><TD
171 ><SPAN
172 CLASS="bold"
173 ><B
174 CLASS="emphasis"
175 >backup addvolentry</B
176 ></SPAN
177 ></TD
178 ></TR
179 ><TR
180 ><TD
181 >List volume sets and entries</TD
182 ><TD
183 ><SPAN
184 CLASS="bold"
185 ><B
186 CLASS="emphasis"
187 >backup listvolsets</B
188 ></SPAN
189 ></TD
190 ></TR
191 ><TR
192 ><TD
193 >Delete volume set from Backup Database</TD
194 ><TD
195 ><SPAN
196 CLASS="bold"
197 ><B
198 CLASS="emphasis"
199 >backup delvolset</B
200 ></SPAN
201 ></TD
202 ></TR
203 ><TR
204 ><TD
205 >Delete volume entry from volume set</TD
206 ><TD
207 ><SPAN
208 CLASS="bold"
209 ><B
210 CLASS="emphasis"
211 >backup delvolentry</B
212 ></SPAN
213 ></TD
214 ></TR
215 ><TR
216 ><TD
217 >Define dump level</TD
218 ><TD
219 ><SPAN
220 CLASS="bold"
221 ><B
222 CLASS="emphasis"
223 >backup adddump</B
224 ></SPAN
225 ></TD
226 ></TR
227 ><TR
228 ><TD
229 >Change expiration date on existing dump level</TD
230 ><TD
231 ><SPAN
232 CLASS="bold"
233 ><B
234 CLASS="emphasis"
235 >backup setexp</B
236 ></SPAN
237 ></TD
238 ></TR
239 ><TR
240 ><TD
241 >Delete dump level from dump hierarchy</TD
242 ><TD
243 ><SPAN
244 CLASS="bold"
245 ><B
246 CLASS="emphasis"
247 >backup deldump</B
248 ></SPAN
249 ></TD
250 ></TR
251 ><TR
252 ><TD
253 >Display dump hierarchy</TD
254 ><TD
255 ><SPAN
256 CLASS="bold"
257 ><B
258 CLASS="emphasis"
259 >backup listdumps</B
260 ></SPAN
261 ></TD
262 ></TR
263 ><TR
264 ><TD
265 >Label tape</TD
266 ><TD
267 ><SPAN
268 CLASS="bold"
269 ><B
270 CLASS="emphasis"
271 >backup labeltape</B
272 ></SPAN
273 ></TD
274 ></TR
275 ><TR
276 ><TD
277 >Read label on tape</TD
278 ><TD
279 ><SPAN
280 CLASS="bold"
281 ><B
282 CLASS="emphasis"
283 >backup readlabel</B
284 ></SPAN
285 ></TD
286 ></TR
287 ></TBODY
288 ></TABLE
289 ></DIV
290 ></DIV
291 ><DIV
292 CLASS="sect1"
293 ><H1
294 CLASS="sect1"
295 ><A
296 NAME="HDRWQ251"
297 >Introduction to Backup System Features</A
298 ></H1
299 ><P
300 >The AFS Backup System is highly flexible, enabling you to control most aspects of the backup process, including how often
301     backups are performed, which volumes are backed up, and whether to dump all of the data in a volume or just the data that has
302     changed since the last dump operation. You can also take advantage of several features that automate much of the backup
303     process.</P
304 ><P
305 >To administer and use the Backup System most efficiently, it helps to be familiar with its basic features, which are
306     described in the following sections. For pointers to instructions for implementing the features as you configure the Backup
307     System in your cell, see <A
308 HREF="c12776.html#HDRWQ257"
309 >Overview of Backup System Configuration</A
310 >.</P
311 ><DIV
312 CLASS="sect2"
313 ><H2
314 CLASS="sect2"
315 ><A
316 NAME="HDRWQ252"
317 >Volume Sets and Volume Entries</A
318 ></H2
319 ><P
320 >When you back up AFS data, you specify which data to include in terms of complete volumes rather than individual files.
321       More precisely, you define groups of volumes called <SPAN
322 CLASS="emphasis"
323 ><I
324 CLASS="emphasis"
325 >volume sets</I
326 ></SPAN
327 >, each of which includes one or more
328       volumes that you want to back up in a single operation. You must include a volume in a volume set to back it up, because the
329       command that backs up data (the <SPAN
330 CLASS="bold"
331 ><B
332 CLASS="emphasis"
333 >backup dump</B
334 ></SPAN
335 > command) does not accept individual volume
336       names.</P
337 ><P
338 >A volume set consists of one or more <SPAN
339 CLASS="emphasis"
340 ><I
341 CLASS="emphasis"
342 >volume entries</I
343 ></SPAN
344 >, each of which specifies which volumes to back
345       up based on their location (file server machine and partition) and volume name. You can use a wildcard notation to include all
346       volumes that share a location, a common character string in their names, or both.</P
347 ><P
348 >For instructions on creating and removing volume sets and volume entries, see <A
349 HREF="c12776.html#HDRWQ265"
350 >Defining and
351       Displaying Volume Sets and Volume Entries</A
352 >.</P
353 ></DIV
354 ><DIV
355 CLASS="sect2"
356 ><H2
357 CLASS="sect2"
358 ><A
359 NAME="Header_274"
360 >Dumps and Dump Sets</A
361 ></H2
362 ><P
363 >A <SPAN
364 CLASS="emphasis"
365 ><I
366 CLASS="emphasis"
367 >dump</I
368 ></SPAN
369 > is the collection of data that results from backing up a volume set. A <SPAN
370 CLASS="emphasis"
371 ><I
372 CLASS="emphasis"
373 >full
374       dump</I
375 ></SPAN
376 > includes all of the data in every volume in the volume set, as it exists at the time of the dump operation. An
377       <SPAN
378 CLASS="emphasis"
379 ><I
380 CLASS="emphasis"
381 >incremental dump</I
382 ></SPAN
383 > includes only some of the data from the volumes in the volume set, namely those files
384       and directory structures that have changed since a specified previous dump operation was performed. The previous dump is
385       referred to as the incremental dump's <SPAN
386 CLASS="emphasis"
387 ><I
388 CLASS="emphasis"
389 >parent dump</I
390 ></SPAN
391 >, and it can be either a full dump or an incremental
392       dump itself.</P
393 ><P
394 >A <SPAN
395 CLASS="emphasis"
396 ><I
397 CLASS="emphasis"
398 >dump set</I
399 ></SPAN
400 > is a collection of one or more dumps stored together on one or more tapes. The first
401       dump in the dump set is the <SPAN
402 CLASS="emphasis"
403 ><I
404 CLASS="emphasis"
405 >initial dump</I
406 ></SPAN
407 >, and any subsequent dump added onto the end of an existing dump
408       set is an <SPAN
409 CLASS="emphasis"
410 ><I
411 CLASS="emphasis"
412 >appended dump</I
413 ></SPAN
414 >. Appending dumps is always optional, but maximizes use of a tape's capacity. In
415       contrast, creating only initial dumps can result in many partially filled tapes, because an initial dump must always start on
416       a new tape, but does not necessarily extend to the end of the tape. Appended dumps do not have to be related to one another or
417       to the initial dump (they do not have to be dumps of the same or related volume sets), but well-planned appending can reduce
418       the number of times you have to change tapes during a restore operation. For example, it can make sense to append incremental
419       dumps of a volume set together in a single dump set.</P
420 ><P
421 >All the records for a dump set are indexed together in the Backup Database based on the initial dump (for more on the
422       Backup Database, see <A
423 HREF="c12776.html#HDRWQ256"
424 >The Backup Database and Backup Server Process</A
425 >). To delete the database
426       record of an appended dump, you must delete the initial dump record, and doing so deletes the records for all dumps in the
427       dump set. Similarly, you cannot recycle just one tape in a dump set without deleting the database records of all tapes in the
428       dump set.</P
429 ><P
430 >For instructions on creating an initial dump, see <A
431 HREF="c15383.html#HDRWQ296"
432 >Backing Up Data</A
433 >, and to learn how to
434       append dumps, see <A
435 HREF="c15383.html#HDRWQ299"
436 >Appending Dumps to an Existing Dump Set</A
437 >.</P
438 ></DIV
439 ><DIV
440 CLASS="sect2"
441 ><H2
442 CLASS="sect2"
443 ><A
444 NAME="Header_275"
445 >Dump Hierarchies, Dump Levels and Expiration Dates</A
446 ></H2
447 ><P
448 >A <SPAN
449 CLASS="emphasis"
450 ><I
451 CLASS="emphasis"
452 >dump hierarchy</I
453 ></SPAN
454 > is a logical structure that defines the relationship between full and incremental
455       dumps; that is, it defines which dump serves as the parent for an incremental dump. Each individual component of a hierarchy
456       is a <SPAN
457 CLASS="emphasis"
458 ><I
459 CLASS="emphasis"
460 >dump level</I
461 ></SPAN
462 >. When you create a dump by issuing the <SPAN
463 CLASS="bold"
464 ><B
465 CLASS="emphasis"
466 >backup dump</B
467 ></SPAN
468 >
469       command, you specify a volume set name and a dump level name. The Backup System uses the dump level to determine whether the
470       dump is full or incremental, and if incremental, which dump level to use as the parent.</P
471 ><P
472 >You can associate an <SPAN
473 CLASS="emphasis"
474 ><I
475 CLASS="emphasis"
476 >expiration date</I
477 ></SPAN
478 > with a dump level, to define when a dump created at that level
479       expires. The Backup System refuses to overwrite a tape until all dumps in the dump set to which the tape belongs have expired,
480       so assigning expiration dates automatically determines how you recycle tapes. You can define an expiration date either in
481       absolute terms (for example, 13 January 2000) or relative terms (for example, 30 days from when the dump is created). You can
482       also change the expiration date associated with a dump level (but not with an actual dump that has already been created at
483       that level).</P
484 ><P
485 >For instructions on creating dump hierarchies, assigning expiration dates, and establishing a tape recycling schedule,
486       see <A
487 HREF="c12776.html#HDRWQ267"
488 >Defining and Displaying the Dump Hierarchy</A
489 >.</P
490 ></DIV
491 ><DIV
492 CLASS="sect2"
493 ><H2
494 CLASS="sect2"
495 ><A
496 NAME="HDRWQ253"
497 >Dump Names and Tape Names</A
498 ></H2
499 ><P
500 >When you create a dump, the Backup System creates a Backup Database record for it, assigning a name comprising the
501       volume set name and the last element in the dump level pathname:</P
502 ><PRE
503 CLASS="programlisting"
504 >&#13;   volume_set_name<SPAN
505 CLASS="bold"
506 ><B
507 CLASS="emphasis"
508 >.</B
509 ></SPAN
510 >dump_level_name
511 </PRE
512 ><P
513 >For example, a dump of the volume set <SPAN
514 CLASS="bold"
515 ><B
516 CLASS="emphasis"
517 >user</B
518 ></SPAN
519 > at the dump level <SPAN
520 CLASS="bold"
521 ><B
522 CLASS="emphasis"
523 >/sunday/friday</B
524 ></SPAN
525 > is called <SPAN
526 CLASS="bold"
527 ><B
528 CLASS="emphasis"
529 >user.friday</B
530 ></SPAN
531 >. The Backup System also assigns a
532       unique <SPAN
533 CLASS="emphasis"
534 ><I
535 CLASS="emphasis"
536 >dump ID</I
537 ></SPAN
538 > number to the dump to distinguish it from other dumps with the same name that possibly
539       exist.</P
540 ><P
541 >The Backup System assigns a similar <SPAN
542 CLASS="emphasis"
543 ><I
544 CLASS="emphasis"
545 >AFS tape name</I
546 ></SPAN
547 > to each tape that contains a dump set, reflecting
548       the volume set and dump level of the dump set's initial dump, plus a numerical index of the tape's position in the dump set,
549       and a unique dump ID number:</P
550 ><PRE
551 CLASS="programlisting"
552 >&#13;   volume_set_name<SPAN
553 CLASS="bold"
554 ><B
555 CLASS="emphasis"
556 >.</B
557 ></SPAN
558 >dump_level_name<SPAN
559 CLASS="bold"
560 ><B
561 CLASS="emphasis"
562 >.</B
563 ></SPAN
564 >tape_index (dump ID)
565 </PRE
566 ><P
567 >For example, the second tape in a dump set whose initial dump is of the volume set <SPAN
568 CLASS="bold"
569 ><B
570 CLASS="emphasis"
571 >uservol</B
572 ></SPAN
573 > at the dump level <SPAN
574 CLASS="bold"
575 ><B
576 CLASS="emphasis"
577 >/sunday/friday</B
578 ></SPAN
579 > has AFS tape name like
580       <SPAN
581 CLASS="bold"
582 ><B
583 CLASS="emphasis"
584 >uservol.friday.2</B
585 ></SPAN
586 > (<SPAN
587 CLASS="bold"
588 ><B
589 CLASS="emphasis"
590 >914382400</B
591 ></SPAN
592 >).</P
593 ><P
594 >In addition to its AFS tape name, a tape can have an optional <SPAN
595 CLASS="emphasis"
596 ><I
597 CLASS="emphasis"
598 >permanent name</I
599 ></SPAN
600 > that you assign.
601       Unlike the AFS tape name, the permanent name does not have to indicate the volume set and dump level of the initial (or any
602       other) dump, and so does not change depending on the contents of the tape. The Backup System does not require a certain format
603       for permanent names, so you need to make sure that each tape's name is unique. If a tape has a permanent name, the Backup
604       System uses it rather than the AFS tape name when referring to the tape in prompts and the output from most <SPAN
605 CLASS="bold"
606 ><B
607 CLASS="emphasis"
608 >backup</B
609 ></SPAN
610 > commands, but still tracks the AFS tape name internally.</P
611 ></DIV
612 ><DIV
613 CLASS="sect2"
614 ><H2
615 CLASS="sect2"
616 ><A
617 NAME="HDRWQ254"
618 >Tape Labels, Dump Labels, and EOF Markers</A
619 ></H2
620 ><P
621 >Every tape used in the Backup System has a magnetic label at the beginning that records the tape's name, capacity, and
622       other information. You can use the <SPAN
623 CLASS="bold"
624 ><B
625 CLASS="emphasis"
626 >backup labeltape</B
627 ></SPAN
628 > command to write a label, or the
629       <SPAN
630 CLASS="bold"
631 ><B
632 CLASS="emphasis"
633 >backup dump</B
634 ></SPAN
635 > command creates one automatically if you use an unlabeled tape. The label records
636       the following information: <UL
637 ><LI
638 ><P
639 >The tape's permanent name, which you can assign by using the <SPAN
640 CLASS="bold"
641 ><B
642 CLASS="emphasis"
643 >-pname</B
644 ></SPAN
645 > argument to
646             the <SPAN
647 CLASS="bold"
648 ><B
649 CLASS="emphasis"
650 >backup labeltape</B
651 ></SPAN
652 > command. It can be any string of up to 32 characters. If you do
653             not assign a permanent name, the Backup System records the value <SAMP
654 CLASS="computeroutput"
655 >&#60;NULL&#62;</SAMP
656 > when you
657             use the <SPAN
658 CLASS="bold"
659 ><B
660 CLASS="emphasis"
661 >backup labeltape</B
662 ></SPAN
663 > command to assign an AFS tape name, or when you use the
664             <SPAN
665 CLASS="bold"
666 ><B
667 CLASS="emphasis"
668 >backup dump</B
669 ></SPAN
670 > command to write a dump to the tape.</P
671 ></LI
672 ><LI
673 ><P
674 >The tape's AFS <SPAN
675 CLASS="emphasis"
676 ><I
677 CLASS="emphasis"
678 >tape name</I
679 ></SPAN
680 >, which can be one of three types of values: <UL
681 ><LI
682 ><P
683 >A name that reflects the volume set and dump level of the dump set's initial dump and the tape's place in
684                   the sequence of tapes for the dump set, as described in <A
685 HREF="c12776.html#HDRWQ253"
686 >Dump Names and Tape Names</A
687 >.
688                   If the tape does not have a permanent name, you can assign the AFS tape name by using the <SPAN
689 CLASS="bold"
690 ><B
691 CLASS="emphasis"
692 >-name</B
693 ></SPAN
694 > argument to the <SPAN
695 CLASS="bold"
696 ><B
697 CLASS="emphasis"
698 >backup labeltape</B
699 ></SPAN
700 > command.</P
701 ></LI
702 ><LI
703 ><P
704 >The value <SAMP
705 CLASS="computeroutput"
706 >&#60;NULL&#62;</SAMP
707 >, which results when you assign a permanent name, or
708                   provide no value for the <SPAN
709 CLASS="bold"
710 ><B
711 CLASS="emphasis"
712 >backup labeltape</B
713 ></SPAN
714 > command's <SPAN
715 CLASS="bold"
716 ><B
717 CLASS="emphasis"
718 >-name</B
719 ></SPAN
720 > argument.</P
721 ></LI
722 ><LI
723 ><P
724 >No AFS tape name at all, indicating that you have never labeled the tape or written a dump to it.</P
725 ></LI
726 ></UL
727 ></P
728 ><P
729 >If a tape does not already have an actual AFS tape name when you write a dump to it, the Backup System constructs
730             and records the appropriate AFS tape name. If the tape does have an AFS tape name and you are writing an initial dump,
731             then the name must correctly reflect the dump's volume set and dump level.</P
732 ></LI
733 ><LI
734 ><P
735 >The capacity, or <SPAN
736 CLASS="emphasis"
737 ><I
738 CLASS="emphasis"
739 >size</I
740 ></SPAN
741 >, of the tape, followed by a letter that indicates the unit of measure
742             (<SAMP
743 CLASS="computeroutput"
744 >k</SAMP
745 > or <SAMP
746 CLASS="computeroutput"
747 >K</SAMP
748 > for kilobytes,
749             <SAMP
750 CLASS="computeroutput"
751 >m</SAMP
752 > or <SAMP
753 CLASS="computeroutput"
754 >M</SAMP
755 > for megabytes,
756             <SAMP
757 CLASS="computeroutput"
758 >g</SAMP
759 > or <SAMP
760 CLASS="computeroutput"
761 >G</SAMP
762 > for gigabytes, or
763             <SAMP
764 CLASS="computeroutput"
765 >t</SAMP
766 > or <SAMP
767 CLASS="computeroutput"
768 >T</SAMP
769 > for terabytes). The tape's manufacturer
770             determines the tape's capacity. For further discussion of how the Backup System uses the value in the capacity field,
771             see <A
772 HREF="c12776.html#HDRWQ258"
773 >Configuring the tapeconfig File</A
774 >.</P
775 ></LI
776 ></UL
777 ></P
778 ><P
779 >For information about labeling tapes, see <A
780 HREF="c12776.html#HDRWQ272"
781 >Writing and Reading Tape Labels</A
782 >.</P
783 ><P
784 >In addition to the tape label, the Backup System writes a <SPAN
785 CLASS="emphasis"
786 ><I
787 CLASS="emphasis"
788 >dump label</I
789 ></SPAN
790 > on the tape for every appended
791       dump (the tape label and dump label are the same for the initial dump). A dump label records the following information:
792       <UL
793 ><LI
794 ><P
795 >The name of the tape containing the dump</P
796 ></LI
797 ><LI
798 ><P
799 >The date and time that the dump operation began</P
800 ></LI
801 ><LI
802 ><P
803 >The cell to which the volumes in the dump belong</P
804 ></LI
805 ><LI
806 ><P
807 >The dump's size in kilobytes</P
808 ></LI
809 ><LI
810 ><P
811 >The dump's dump level</P
812 ></LI
813 ><LI
814 ><P
815 >The dump's dump ID</P
816 ></LI
817 ></UL
818 ></P
819 ><P
820 >The Backup System writes a <SPAN
821 CLASS="emphasis"
822 ><I
823 CLASS="emphasis"
824 >filemark</I
825 ></SPAN
826 > (also called an End-of-File or EOF marker) between the data
827       from each volume in a dump. The tape device's manufacturer determines the filemark size, which is typically between 2 KB and 2
828       MB; in general, the larger the usual capacity of the tapes that the device uses, the larger the filemark size. If a dump
829       contains a small amount of data from each of a large number of volumes, as incremental dumps often do, then the filemark size
830       can significantly affect how much volume data fits on the tape. To enable the Backup System to factor in filemark size as it
831       writes a dump, you can record the filemark size in a configuration file; see <A
832 HREF="c12776.html#HDRWQ258"
833 >Configuring the
834       tapeconfig File</A
835 >.</P
836 ></DIV
837 ><DIV
838 CLASS="sect2"
839 ><H2
840 CLASS="sect2"
841 ><A
842 NAME="HDRWQ255"
843 >Tape Coordinator Machines, Port Offsets, and Backup Data Files</A
844 ></H2
845 ><P
846 >A <SPAN
847 CLASS="emphasis"
848 ><I
849 CLASS="emphasis"
850 >Tape Coordinator machine</I
851 ></SPAN
852 > is a machine that drives one or more attached tape devices used for
853       backup operations. It must run the AFS client software (the Cache Manager) but reside in a physically secure location to
854       prevent unauthorized access to its console. Before backup operations can run on a Tape Coordinator machine, each tape device
855       on the machine must be registered in the Backup Database, and certain files and directories must exist on the machine's local
856       disk; for instructions, see <A
857 HREF="c12776.html#HDRWQ262"
858 >To configure a Tape Coordinator machine</A
859 >.</P
860 ><P
861 >Each tape device on a Tape Coordinator machine listens for backup requests on a different UNIX port. You pick the port
862       indirectly by assigning a <SPAN
863 CLASS="emphasis"
864 ><I
865 CLASS="emphasis"
866 >port offset number</I
867 ></SPAN
868 > to the tape device. The Backup System sets the device's
869       actual port by adding the port offset to a base port number that it determines internally. For instructions on assigning port
870       offset numbers, see <A
871 HREF="c12776.html#HDRWQ258"
872 >Configuring the tapeconfig File</A
873 >.</P
874 ><P
875 >For a tape device to perform backup operations, a Backup Tape Coordinator (<SPAN
876 CLASS="bold"
877 ><B
878 CLASS="emphasis"
879 >butc</B
880 ></SPAN
881 >)
882       process dedicated to the device must be running actively on the Tape Coordinator machine. You then direct backup requests to
883       the device's Tape Coordinator by specifying its port offset number with the <SPAN
884 CLASS="bold"
885 ><B
886 CLASS="emphasis"
887 >-portoffset</B
888 ></SPAN
889 >
890       argument to the <SPAN
891 CLASS="bold"
892 ><B
893 CLASS="emphasis"
894 >backup</B
895 ></SPAN
896 > command.</P
897 ><P
898 >In addition to writing backup data to tape, you can direct it to a <SPAN
899 CLASS="emphasis"
900 ><I
901 CLASS="emphasis"
902 >backup data file</I
903 ></SPAN
904 > on the local
905       disk of a Tape Coordinator machine. You can then to transfer the data to a data-archiving system, such as a hierarchical
906       storage management (HSM) system, that you use in conjunction with AFS and the Backup System. A backup data file has a port
907       offset like a tape device. For instructions on configuring backup data files, see <A
908 HREF="c12776.html#HDRWQ282"
909 >Dumping Data to a
910       Backup Data File</A
911 >.</P
912 ></DIV
913 ><DIV
914 CLASS="sect2"
915 ><H2
916 CLASS="sect2"
917 ><A
918 NAME="HDRWQ256"
919 >The Backup Database and Backup Server Process</A
920 ></H2
921 ><P
922 >The <SPAN
923 CLASS="emphasis"
924 ><I
925 CLASS="emphasis"
926 >Backup Database</I
927 ></SPAN
928 > is a replicated administrative database maintained by the Backup Server process
929       on the cell's database server machines. Like the other AFS database server processes, the <SPAN
930 CLASS="emphasis"
931 ><I
932 CLASS="emphasis"
933 >Backup Server</I
934 ></SPAN
935 >
936       uses the Ubik utility to keep the various copies of the database synchronized (for a discussion of Ubik, see <A
937 HREF="c667.html#HDRWQ52"
938 >Replicating the AFS Administrative Databases</A
939 >).</P
940 ><P
941 >The Backup Database records the following information: <UL
942 ><LI
943 ><P
944 >The Tape Coordinator machine's hostname and the port offset number for each tape device used for backup
945             operations</P
946 ></LI
947 ><LI
948 ><P
949 >The dump hierarchy, which consists of its component dump levels and their associated expiration dates</P
950 ></LI
951 ><LI
952 ><P
953 >The volume sets and their component volume entries</P
954 ></LI
955 ><LI
956 ><P
957 >A record for each dump, which includes the name of each tape it appears on, a list of the volumes from which data
958             is included, the dump level, the expiration date, and the dump ID of the initial dump with which the dump is
959             associated</P
960 ></LI
961 ><LI
962 ><P
963 >A record for each tape that houses dumped data</P
964 ></LI
965 ></UL
966 ></P
967 ></DIV
968 ><DIV
969 CLASS="sect2"
970 ><H2
971 CLASS="sect2"
972 ><A
973 NAME="Header_280"
974 >Interfaces to the Backup System</A
975 ></H2
976 ><P
977 >The <SPAN
978 CLASS="bold"
979 ><B
980 CLASS="emphasis"
981 >backup</B
982 ></SPAN
983 > suite of commands is the administrative interface to the Backup System. You
984       can issue the commands in a command shell (or invoke them in a shell script) on any AFS client or server machine from which
985       you can access the <SPAN
986 CLASS="bold"
987 ><B
988 CLASS="emphasis"
989 >backup</B
990 ></SPAN
991 > binary. In the conventional configuration, the binary resides on
992       the local disk.</P
993 ><P
994 >The <SPAN
995 CLASS="bold"
996 ><B
997 CLASS="emphasis"
998 >backup</B
999 ></SPAN
1000 > command suite provides an <SPAN
1001 CLASS="emphasis"
1002 ><I
1003 CLASS="emphasis"
1004 >interactive mode</I
1005 ></SPAN
1006 >, in which
1007       you can issue multiple commands over a persistent connection to the Backup Server and the Volume Location (VL) Server.
1008       Interactive mode has several convenient features, including the following: <UL
1009 ><LI
1010 ><P
1011 >You need to type only the operation code, omitting the initial <SPAN
1012 CLASS="bold"
1013 ><B
1014 CLASS="emphasis"
1015 >backup</B
1016 ></SPAN
1017 >
1018             string.</P
1019 ></LI
1020 ><LI
1021 ><P
1022 >If you assume another AFS identity or specify a foreign cell as you enter interactive mode, it applies to all
1023             subsequent commands.</P
1024 ></LI
1025 ><LI
1026 ><P
1027 >You do not need to enclose shell metacharacters in double quotes.</P
1028 ></LI
1029 ><LI
1030 ><P
1031 >You can track current and pending operations with the <SPAN
1032 CLASS="bold"
1033 ><B
1034 CLASS="emphasis"
1035 >(backup) jobs</B
1036 ></SPAN
1037 > command,
1038             which is available only in this mode.</P
1039 ></LI
1040 ><LI
1041 ><P
1042 >You can cancel current and pending operations with the <SPAN
1043 CLASS="bold"
1044 ><B
1045 CLASS="emphasis"
1046 >(backup) kill</B
1047 ></SPAN
1048 > command,
1049             which is available only in this mode.</P
1050 ></LI
1051 ></UL
1052 ></P
1053 ><P
1054 >Before issuing a command that requires reading or writing a tape (or backup data file), you must also open a connection
1055       to the Tape Coordinator machine that is attached to the relevant tape device (or that has the backup data file on its local
1056       disk), and issue the <SPAN
1057 CLASS="bold"
1058 ><B
1059 CLASS="emphasis"
1060 >butc</B
1061 ></SPAN
1062 > command to initialize the Tape Coordinator process. The process
1063       must continue to run and the connection remain open as long as you need to use the tape device or file for backup
1064       operations.</P
1065 ><P
1066 >For further discussion and instructions, see <A
1067 HREF="c15383.html#HDRWQ286"
1068 >Using the Backup System's
1069       Interfaces</A
1070 >.</P
1071 ></DIV
1072 ></DIV
1073 ><DIV
1074 CLASS="sect1"
1075 ><H1
1076 CLASS="sect1"
1077 ><A
1078 NAME="HDRWQ257"
1079 >Overview of Backup System Configuration</A
1080 ></H1
1081 ><P
1082 >Before you can use the Backup System to back up and restore data, you must configure several of its basic components. The
1083     indicated sections of this chapter explain how to perform the following configuration tasks: <UL
1084 ><LI
1085 ><P
1086 >Determining a tape's capacity and a tape device's filemark size, and recording them in the <SPAN
1087 CLASS="bold"
1088 ><B
1089 CLASS="emphasis"
1090 >/usr/afs/backup/tapeconfig</B
1091 ></SPAN
1092 > file (see <A
1093 HREF="c12776.html#HDRWQ258"
1094 >Configuring the tapeconfig
1095           File</A
1096 >)</P
1097 ></LI
1098 ><LI
1099 ><P
1100 >Determining how to grant administrative privilege to backup operators (see <A
1101 HREF="c12776.html#HDRWQ260"
1102 >Granting
1103           Administrative Privilege to Backup Operators</A
1104 >)</P
1105 ></LI
1106 ><LI
1107 ><P
1108 >Configuring Tape Coordinator machines, tape devices, and backup data files (see <A
1109 HREF="c12776.html#HDRWQ261"
1110 >Configuring
1111           Tape Coordinator Machines and Tape Devices</A
1112 >)</P
1113 ></LI
1114 ><LI
1115 ><P
1116 >Defining volume sets and volume entries (see <A
1117 HREF="c12776.html#HDRWQ265"
1118 >Defining and Displaying Volume Sets and Volume
1119           Entries</A
1120 >)</P
1121 ></LI
1122 ><LI
1123 ><P
1124 >Defining dump levels to create a dump hierarchy (see <A
1125 HREF="c12776.html#HDRWQ267"
1126 >Defining and Displaying the Dump
1127           Hierarchy</A
1128 >)</P
1129 ></LI
1130 ><LI
1131 ><P
1132 >Labeling tapes (see <A
1133 HREF="c12776.html#HDRWQ272"
1134 >Writing and Reading Tape Labels</A
1135 >)</P
1136 ></LI
1137 ><LI
1138 ><P
1139 >Creating a device configuration file to automate the backup process (see <A
1140 HREF="c12776.html#HDRWQ275"
1141 >Automating and
1142           Increasing the Efficiency of the Backup Process</A
1143 >)</P
1144 ></LI
1145 ></UL
1146 ></P
1147 ><P
1148 >If you have already configured all of the components required for performing a backup dump or restore operation, you can
1149     proceed to the instructions in <A
1150 HREF="c15383.html#HDRWQ296"
1151 >Backing Up Data</A
1152 > and <A
1153 HREF="c15383.html#HDRWQ306"
1154 >Restoring and
1155     Recovering Data</A
1156 >.</P
1157 ></DIV
1158 ><DIV
1159 CLASS="sect1"
1160 ><H1
1161 CLASS="sect1"
1162 ><A
1163 NAME="HDRWQ258"
1164 >Configuring the tapeconfig File</A
1165 ></H1
1166 ><P
1167 >Several factors interact to determine how much data the Tape Coordinator can fit on a tape: <UL
1168 ><LI
1169 ><P
1170 >The tape's capacity (size), as set by the tape manufacturer.</P
1171 ></LI
1172 ><LI
1173 ><P
1174 >The tape device's filemark size, as set by the tape device's manufacturer. Recall from <A
1175 HREF="c12776.html#HDRWQ254"
1176 >Tape
1177           Labels, Dump Labels, and EOF Markers</A
1178 > that the Tape Coordinator writes a filemark between the data from each volume
1179           in a dump. If a dump contains a small amount of data from each of a large number of volumes, as incremental dumps often
1180           do, then the filemark size can significantly affect how much volume data fits on the tape.</P
1181 ></LI
1182 ><LI
1183 ><P
1184 >Whether or not you use the tape device's compression mode.</P
1185 ></LI
1186 ></UL
1187 ></P
1188 ><P
1189 >(The amount of data that can fit in a backup data file is determined by amount of space available on the partition, and
1190     the operating system's maximum file size. The Tape Coordinator does not write filemarks when writing to a backup data file. For
1191     further information about configuring a Tape Coordinator to write to a backup data file, see <A
1192 HREF="c12776.html#HDRWQ282"
1193 >Dumping
1194     Data to a Backup Data File</A
1195 >.)</P
1196 ><P
1197 >As the Tape Coordinator (<SPAN
1198 CLASS="bold"
1199 ><B
1200 CLASS="emphasis"
1201 >butc</B
1202 ></SPAN
1203 >) process initializes, it reads the <SPAN
1204 CLASS="bold"
1205 ><B
1206 CLASS="emphasis"
1207 >/usr/afs/backup/tapeconfig</B
1208 ></SPAN
1209 > file on its local disk to learn the tape capacity and filemark size (for a
1210     tape device) or the file size (for a backup data file) to use for dump operations. When you begin a dump operation, the Tape
1211     Coordinator also reads the tape or backup data file's label to see if you have recorded a different tape capacity or file size.
1212     If you have, the value on the label overrides the default value from the <SPAN
1213 CLASS="bold"
1214 ><B
1215 CLASS="emphasis"
1216 >tapeconfig</B
1217 ></SPAN
1218 >
1219     file.</P
1220 ><P
1221 >As the Tape Coordinator writes data to a tape during a dump operation, it uses the capacity and filemark information to
1222     track how much tape it has used and how much remains before the physical end-of-tape (EOT). Shortly before reaching EOT, the
1223     Tape Coordinator stops writing and requests a new tape. Similarly, it uses a backup data file's size to know when it is about to
1224     exhaust the space in the file. If the Tape Coordinator reaches the EOT unexpectedly, it recovers by obtaining a new tape and
1225     writing to it the entire contents of the volume it was writing when it reached EOT. The interrupted volume remains on the first
1226     tape, but is never used.</P
1227 ><P
1228 >Many tape devices use tapes that can accommodate multiple gigabytes, or even multiple terabytes, of backup data,
1229     especially if you use the device's compression mode. When writing to such devices and tapes, allowing the Tape Coordinator to
1230     hit the EOT unexpectedly is generally recommended. The devices write data so quickly that it usually does not take much extra
1231     time to rewrite the interrupted volume on the new tape. Similarly, they compress data so well that the data abandoned on the
1232     first tape from the interrupted volume does not constitute a waste of much tape.</P
1233 ><P
1234 >When writing to tapes that accommodate a smaller amount of data (say, less than two GB), it is better to avoid having the
1235     Tape Coordinator hit EOT unexpectedly. AFS supports volumes up to 2 GB in size, so an interrupted volume can in fact take up
1236     most of the tape. For such tapes, recording accurate values for tape capacity and filemark size, if possible, helps to maximize
1237     both use of tape and the efficiency of dump operations. The following discussion of the fields in the <SPAN
1238 CLASS="bold"
1239 ><B
1240 CLASS="emphasis"
1241 >tapeconfig</B
1242 ></SPAN
1243 > file explains how to determine the appropriate values.</P
1244 ><P
1245 >Use a text editor to create an entry in a Tape Coordinator's <SPAN
1246 CLASS="bold"
1247 ><B
1248 CLASS="emphasis"
1249 >tapeconfig</B
1250 ></SPAN
1251 > file for each
1252     tape device or backup data file that it uses. Each device or file's entry is on its own line and has the following
1253     format:</P
1254 ><PRE
1255 CLASS="programlisting"
1256 >&#13;   [capacity   filemark_size]    device_name    port_offset
1257 </PRE
1258 ><P
1259 >where <DIV
1260 CLASS="variablelist"
1261 ><DL
1262 ><DT
1263 ><SPAN
1264 CLASS="bold"
1265 ><B
1266 CLASS="emphasis"
1267 >capacity</B
1268 ></SPAN
1269 ></DT
1270 ><DD
1271 ><P
1272 >Specifies the capacity of the tapes used with a tape device, or the amount of data to write into a backup data
1273             file. Specify an integer value followed by a letter that indicates units, with no intervening space. The letter
1274             <SPAN
1275 CLASS="bold"
1276 ><B
1277 CLASS="emphasis"
1278 >k</B
1279 ></SPAN
1280 > or <SPAN
1281 CLASS="bold"
1282 ><B
1283 CLASS="emphasis"
1284 >K</B
1285 ></SPAN
1286 > indicates kilobytes, <SPAN
1287 CLASS="bold"
1288 ><B
1289 CLASS="emphasis"
1290 >m</B
1291 ></SPAN
1292 > or <SPAN
1293 CLASS="bold"
1294 ><B
1295 CLASS="emphasis"
1296 >M</B
1297 ></SPAN
1298 > indicates megabytes, <SPAN
1299 CLASS="bold"
1300 ><B
1301 CLASS="emphasis"
1302 >g</B
1303 ></SPAN
1304 >
1305             or <SPAN
1306 CLASS="bold"
1307 ><B
1308 CLASS="emphasis"
1309 >G</B
1310 ></SPAN
1311 > indicates gigabytes, and <SPAN
1312 CLASS="bold"
1313 ><B
1314 CLASS="emphasis"
1315 >t</B
1316 ></SPAN
1317 > or <SPAN
1318 CLASS="bold"
1319 ><B
1320 CLASS="emphasis"
1321 >T</B
1322 ></SPAN
1323 > indicates terabytes. If the units letter is omitted, the default is kilobytes.</P
1324 ><P
1325 >To determine the capacity of a tape under two GB in size that you are going to use in regular (noncompression)
1326             mode, you can either use the value that the tape's manufacturer specifies on the tape's packaging or use the <SPAN
1327 CLASS="bold"
1328 ><B
1329 CLASS="emphasis"
1330 >fms</B
1331 ></SPAN
1332 > command to calculate the capacity, as described later in this section. To avoid having the
1333             Tape Coordinator reach the EOT unexpectedly, it is best to record in the <SPAN
1334 CLASS="bold"
1335 ><B
1336 CLASS="emphasis"
1337 >tapeconfig</B
1338 ></SPAN
1339 >
1340             file or on the label a capacity that is about 10% smaller than the actual capacity of the tape. To calculate the
1341             appropriate value for a small tape used in compression mode, one method is to multiply the tape capacity (as recorded by
1342             the manufacturer) by the device's compression ratio.</P
1343 ><P
1344 >For tapes that hold multiple gigabytes or terabytes of data, or if using a tape drive's compression mode, the
1345             recommended configuration is to record a value quite a bit (for instance, two times) larger than the maximum amount you
1346             believe can fit on the tape. It is not generally worthwhile to run the <SPAN
1347 CLASS="bold"
1348 ><B
1349 CLASS="emphasis"
1350 >fms</B
1351 ></SPAN
1352 > command on
1353             large tapes, even in noncompression mode. The command definitely does not yield accurate results in compression mode.
1354             The Tape Coordinator is likely to reach the EOT unexpectedly, but compression mode fits so much data on the tape that
1355             the data abandoned from an interrupted volume does not represent much of the tape's capacity.</P
1356 ><P
1357 >For a backup data file, record a value slightly smaller than the amount of space available on the partition, and
1358             definitely smaller than the operating system's maximum file size. It is also best to limit the ability of other
1359             processes to write to the partition, to prevent them from using up the space in the partition.</P
1360 ><P
1361 >If this field is empty, the Tape Coordinator uses the maximum acceptable value (2048 GB or 2 TB). Either leave
1362             both this field and the filemark_size field empty, or provide a value in both of them.</P
1363 ></DD
1364 ><DT
1365 ><SPAN
1366 CLASS="bold"
1367 ><B
1368 CLASS="emphasis"
1369 >filemark_size</B
1370 ></SPAN
1371 ></DT
1372 ><DD
1373 ><P
1374 >Specifies the tape device's filemark size, which usually falls between 2 KB and 2 MB. Use the same notation as for
1375             the capacity field, but note that if you omit the units letter, the default unit is bytes rather than kilobytes.</P
1376 ><P
1377 >For a tape device in regular (noncompression) mode, you can use the <SPAN
1378 CLASS="bold"
1379 ><B
1380 CLASS="emphasis"
1381 >fms</B
1382 ></SPAN
1383 > command
1384             to determine filemark size, or use the value reported by the device's manufacturer. To help the Tape Coordinator avoid
1385             reaching EOT unexpectedly, increase the value by about 10% when recording it in the <SPAN
1386 CLASS="bold"
1387 ><B
1388 CLASS="emphasis"
1389 >tapeconfig</B
1390 ></SPAN
1391 > file.</P
1392 ><P
1393 >The recommended value for a tape device in compression mode is <SPAN
1394 CLASS="bold"
1395 ><B
1396 CLASS="emphasis"
1397 >0</B
1398 ></SPAN
1399 > (zero). The
1400             <SPAN
1401 CLASS="bold"
1402 ><B
1403 CLASS="emphasis"
1404 >fms</B
1405 ></SPAN
1406 > command does not yield accurate results in compression mode, so you cannot use it
1407             to determine the filemark size.</P
1408 ><P
1409 >The recommended value for a backup data file is also <SPAN
1410 CLASS="bold"
1411 ><B
1412 CLASS="emphasis"
1413 >0</B
1414 ></SPAN
1415 > (zero). The Tape
1416             Coordinator does not use filemarks when writing to a file, but a value must appear in this field nevertheless if there
1417             is also a value in the capacity field.</P
1418 ><P
1419 >If this field is empty, the Tape Coordinator uses the value <SPAN
1420 CLASS="bold"
1421 ><B
1422 CLASS="emphasis"
1423 >0</B
1424 ></SPAN
1425 > (zero). Either
1426             leave both this field and the capacity field empty, or provide a value in both of them.</P
1427 ></DD
1428 ><DT
1429 ><SPAN
1430 CLASS="bold"
1431 ><B
1432 CLASS="emphasis"
1433 >device_name</B
1434 ></SPAN
1435 ></DT
1436 ><DD
1437 ><P
1438 >Specifies the complete pathname of the tape device or backup data file. The format of tape device names depends on
1439             the operating system, but on UNIX systems, device names generally begin with the string <SPAN
1440 CLASS="bold"
1441 ><B
1442 CLASS="emphasis"
1443 >/dev/</B
1444 ></SPAN
1445 >. For a backup data file, this field defines the complete pathname, but for suggestions on
1446             how to name a backup data file, see <A
1447 HREF="c12776.html#HDRWQ282"
1448 >Dumping Data to a Backup Data File</A
1449 >.</P
1450 ></DD
1451 ><DT
1452 ><SPAN
1453 CLASS="bold"
1454 ><B
1455 CLASS="emphasis"
1456 >port_offset</B
1457 ></SPAN
1458 ></DT
1459 ><DD
1460 ><P
1461 >Specifies the port offset number for a specific tape device or backup data file. Each tape device listens for
1462             backup requests on a different UNIX port. You pick the port indirectly by recording a value in this field. The Backup
1463             System sets the device's actual port by adding the port offset to a base port number that it determines
1464             internally.</P
1465 ><P
1466 >Legal values are the integers <SPAN
1467 CLASS="bold"
1468 ><B
1469 CLASS="emphasis"
1470 >0</B
1471 ></SPAN
1472 > through <SPAN
1473 CLASS="bold"
1474 ><B
1475 CLASS="emphasis"
1476 >58510</B
1477 ></SPAN
1478 >
1479             (the Backup System can track a maximum of 58,511 port offset numbers). Each value must be unique among the cell's Tape
1480             Coordinators, but you do not have to assign port offset numbers sequentially, and you can associate any number of them
1481             with a single machine or even tape device. For example, if you plan to use a device in both compression and
1482             noncompression mode, assign it two different port offsets with appropriate tape capacity and filemark values for the
1483             different modes.</P
1484 ><P
1485 >Assign port offset <SPAN
1486 CLASS="bold"
1487 ><B
1488 CLASS="emphasis"
1489 >0</B
1490 ></SPAN
1491 > (zero) to the Tape Coordinator for the tape device or backup
1492             data file that you use most often for backup operations; doing so enables you to omit the <SPAN
1493 CLASS="bold"
1494 ><B
1495 CLASS="emphasis"
1496 >-portoffset</B
1497 ></SPAN
1498 > argument from the largest possible number of <SPAN
1499 CLASS="bold"
1500 ><B
1501 CLASS="emphasis"
1502 >backup</B
1503 ></SPAN
1504 >
1505             commands.</P
1506 ></DD
1507 ></DL
1508 ></DIV
1509 ></P
1510 ><P
1511 >The following example <SPAN
1512 CLASS="bold"
1513 ><B
1514 CLASS="emphasis"
1515 >tapeconfig</B
1516 ></SPAN
1517 > file includes entries for two tape devices, <SPAN
1518 CLASS="bold"
1519 ><B
1520 CLASS="emphasis"
1521 >/dev/rmt0h</B
1522 ></SPAN
1523 > and <SPAN
1524 CLASS="bold"
1525 ><B
1526 CLASS="emphasis"
1527 >/dev/rmt1h</B
1528 ></SPAN
1529 >. Each one uses tapes with a capacity of 2 GB
1530     and has a filemark size of 1 MB. Their port offset numbers are <SAMP
1531 CLASS="computeroutput"
1532 >0</SAMP
1533 > and
1534     <SAMP
1535 CLASS="computeroutput"
1536 >1</SAMP
1537 >.</P
1538 ><PRE
1539 CLASS="programlisting"
1540 >&#13;   2g 1m /dev/rmt0h 0
1541    2G 1M /dev/rmt1h 1
1542 </PRE
1543 ><P
1544 >The <SPAN
1545 CLASS="bold"
1546 ><B
1547 CLASS="emphasis"
1548 >fms</B
1549 ></SPAN
1550 > command reports the capacity of the tape you have inserted and the tape device's
1551     filemark size, both on the standard output stream (stdout) and in its <SPAN
1552 CLASS="bold"
1553 ><B
1554 CLASS="emphasis"
1555 >fms.log</B
1556 ></SPAN
1557 > file, which it
1558     writes in the current working directory. The command interpreter must write data to the entire tape, so running the command can
1559     take from several hours to more than a day, depending on the size of the tape.</P
1560 ><DIV
1561 CLASS="sect2"
1562 ><H2
1563 CLASS="sect2"
1564 ><A
1565 NAME="HDRWQ259"
1566 >To run the fms command on a noncompressing tape device</A
1567 ></H2
1568 ><OL
1569 TYPE="1"
1570 ><LI
1571 ><P
1572 >If an <SPAN
1573 CLASS="bold"
1574 ><B
1575 CLASS="emphasis"
1576 >fms.log</B
1577 ></SPAN
1578 > file does not already exist in the current directory, verify that you
1579           can insert and write to files in the current directory. If the log file already exists, you must be able to write to the
1580           file.</P
1581 ></LI
1582 ><LI
1583 ><P
1584 >Insert a tape into the drive. Running the command completely overwrites the tape, so use a blank tape or one that
1585           you want to recycle.</P
1586 ></LI
1587 ><LI
1588 ><P
1589 >Issue the <SPAN
1590 CLASS="bold"
1591 ><B
1592 CLASS="emphasis"
1593 >fms</B
1594 ></SPAN
1595 > command. <PRE
1596 CLASS="programlisting"
1597 >&#13;   % <SPAN
1598 CLASS="bold"
1599 ><B
1600 CLASS="emphasis"
1601 >fms</B
1602 ></SPAN
1603 > &#60;<VAR
1604 CLASS="replaceable"
1605 >tape special file</VAR
1606 >&#62;
1607 </PRE
1608 ></P
1609 ><P
1610 >where <DIV
1611 CLASS="variablelist"
1612 ><DL
1613 ><DT
1614 ><SPAN
1615 CLASS="bold"
1616 ><B
1617 CLASS="emphasis"
1618 >fms</B
1619 ></SPAN
1620 ></DT
1621 ><DD
1622 ><P
1623 >Must be typed in full.</P
1624 ></DD
1625 ><DT
1626 ><SPAN
1627 CLASS="bold"
1628 ><B
1629 CLASS="emphasis"
1630 >tape special file</B
1631 ></SPAN
1632 ></DT
1633 ><DD
1634 ><P
1635 >Specifies the tape device's UNIX device name, such as <SPAN
1636 CLASS="bold"
1637 ><B
1638 CLASS="emphasis"
1639 >/dev/rmt0h</B
1640 ></SPAN
1641 >.</P
1642 ></DD
1643 ></DL
1644 ></DIV
1645 ></P
1646 ></LI
1647 ></OL
1648 ><P
1649 >The following example output reports that the tape in the device with device name <SPAN
1650 CLASS="bold"
1651 ><B
1652 CLASS="emphasis"
1653 >/dev/rmt0h</B
1654 ></SPAN
1655 > has a capacity of 2136604672 bytes (about 2 GB), and that the device's filemark size is
1656       1910205 bytes (close to 2 MB).</P
1657 ><PRE
1658 CLASS="programlisting"
1659 >&#13;   % <SPAN
1660 CLASS="bold"
1661 ><B
1662 CLASS="emphasis"
1663 >fms /dev/rmt0h</B
1664 ></SPAN
1665 >
1666    wrote block: 130408
1667    Finished data capacity test - rewinding
1668    wrote 1109 blocks, 1109 file marks
1669    Finished file mark test
1670    Tape capacity is 2136604672 bytes
1671    File marks are 1910205 bytes
1672 </PRE
1673 ></DIV
1674 ></DIV
1675 ><DIV
1676 CLASS="sect1"
1677 ><H1
1678 CLASS="sect1"
1679 ><A
1680 NAME="HDRWQ260"
1681 >Granting Administrative Privilege to Backup Operators</A
1682 ></H1
1683 ><P
1684 >Each person who issues the <SPAN
1685 CLASS="bold"
1686 ><B
1687 CLASS="emphasis"
1688 >backup</B
1689 ></SPAN
1690 > and <SPAN
1691 CLASS="bold"
1692 ><B
1693 CLASS="emphasis"
1694 >butc</B
1695 ></SPAN
1696 > commands in
1697     your cell must be listed in the <SPAN
1698 CLASS="bold"
1699 ><B
1700 CLASS="emphasis"
1701 >/usr/afs/etc/UserList</B
1702 ></SPAN
1703 > file on every database server machine
1704     that stores the Backup Database and Volume Location Database (VLDB), and every machine that houses a volume included in a volume
1705     set. By convention, the <SPAN
1706 CLASS="bold"
1707 ><B
1708 CLASS="emphasis"
1709 >UserList</B
1710 ></SPAN
1711 > file is the same on every server machine in the cell; the
1712     instructions in this document assume that your cell is configured in this way. To edit the <SPAN
1713 CLASS="bold"
1714 ><B
1715 CLASS="emphasis"
1716 >UserList</B
1717 ></SPAN
1718 > file, use the <SPAN
1719 CLASS="bold"
1720 ><B
1721 CLASS="emphasis"
1722 >bos adduser</B
1723 ></SPAN
1724 > and <SPAN
1725 CLASS="bold"
1726 ><B
1727 CLASS="emphasis"
1728 >bos
1729     removeuser</B
1730 ></SPAN
1731 > commands as described in <A
1732 HREF="c32432.html#HDRWQ592"
1733 >Administering the UserList File</A
1734 >.</P
1735 ><P
1736 >In addition to being listed in the <SPAN
1737 CLASS="bold"
1738 ><B
1739 CLASS="emphasis"
1740 >UserList</B
1741 ></SPAN
1742 > file, backup operators who issue the
1743     <SPAN
1744 CLASS="bold"
1745 ><B
1746 CLASS="emphasis"
1747 >butc</B
1748 ></SPAN
1749 > command must be able to write to the files stored in each Tape Coordinator machine's local
1750     <SPAN
1751 CLASS="bold"
1752 ><B
1753 CLASS="emphasis"
1754 >/usr/afs/backup</B
1755 ></SPAN
1756 > directory, which are protected by UNIX mode bits. Before configuring your
1757     cell's first Tape Coordinator machine, decide which local user and group to designate as the owner of the directory and the
1758     files in it. Among the possible ownership options are the following: <UL
1759 ><LI
1760 ><P
1761 >The local superuser <SPAN
1762 CLASS="bold"
1763 ><B
1764 CLASS="emphasis"
1765 >root</B
1766 ></SPAN
1767 >. With this option, the issuer of the <SPAN
1768 CLASS="bold"
1769 ><B
1770 CLASS="emphasis"
1771 >butc</B
1772 ></SPAN
1773 > command must log onto the local file system as the local superuser <SPAN
1774 CLASS="bold"
1775 ><B
1776 CLASS="emphasis"
1777 >root</B
1778 ></SPAN
1779 >. If the Tape Coordinator is also a server machine, the <SPAN
1780 CLASS="bold"
1781 ><B
1782 CLASS="emphasis"
1783 >-localauth</B
1784 ></SPAN
1785 > flag is used on the <SPAN
1786 CLASS="bold"
1787 ><B
1788 CLASS="emphasis"
1789 >butc</B
1790 ></SPAN
1791 > command to construct a server
1792           ticket from the local <SPAN
1793 CLASS="bold"
1794 ><B
1795 CLASS="emphasis"
1796 >/usr/afs/etc/KeyFile</B
1797 ></SPAN
1798 > file. On non-server machine, the issuer must
1799           issue the <SPAN
1800 CLASS="bold"
1801 ><B
1802 CLASS="emphasis"
1803 >klog</B
1804 ></SPAN
1805 > command to authenticate as an AFS administrator while logged in as
1806           <SPAN
1807 CLASS="bold"
1808 ><B
1809 CLASS="emphasis"
1810 >root</B
1811 ></SPAN
1812 >.</P
1813 ></LI
1814 ><LI
1815 ><P
1816 >A single AFS administrator. Logging in and authenticating are a single step if an AFS-modified login utility is
1817           used. The administrator is the only user who can start the Tape Coordinator.</P
1818 ></LI
1819 ><LI
1820 ><P
1821 >An administrative account for which several operators know the password. This allows them all to start the Tape
1822           Coordinator.</P
1823 ></LI
1824 ></UL
1825 ></P
1826 ><P
1827 >Another option is to define a group in the local group file (<SPAN
1828 CLASS="bold"
1829 ><B
1830 CLASS="emphasis"
1831 >/etc/group</B
1832 ></SPAN
1833 > or equivalent) to
1834     which all backup operators belong. Then turn on the <SPAN
1835 CLASS="bold"
1836 ><B
1837 CLASS="emphasis"
1838 >w</B
1839 ></SPAN
1840 > mode bit (<SPAN
1841 CLASS="bold"
1842 ><B
1843 CLASS="emphasis"
1844 >write</B
1845 ></SPAN
1846 > permission) in the group mode bits rather than the user mode bits of the <SPAN
1847 CLASS="bold"
1848 ><B
1849 CLASS="emphasis"
1850 >/usr/afs/backup</B
1851 ></SPAN
1852 > directory and files in it. An advantage over the methods listed previously is that each
1853     operator can retain an individual administrative account for finer granularity in auditing.</P
1854 ><P
1855 >For instructions on implementing your choice of protection methods, see <A
1856 HREF="c12776.html#HDRWQ261"
1857 >Configuring Tape
1858     Coordinator Machines and Tape Devices</A
1859 >.</P
1860 ></DIV
1861 ><DIV
1862 CLASS="sect1"
1863 ><H1
1864 CLASS="sect1"
1865 ><A
1866 NAME="HDRWQ261"
1867 >Configuring Tape Coordinator Machines and Tape Devices</A
1868 ></H1
1869 ><P
1870 >This section explains how to configure a machine as a Tape Coordinator machine, and how to configure or remove the Tape
1871     Coordinator associated with a single tape device or backup data file.</P
1872 ><DIV
1873 CLASS="note"
1874 ><BLOCKQUOTE
1875 CLASS="note"
1876 ><P
1877 ><B
1878 >Note: </B
1879 >When configuring a tape device attached to an AIX system, you must set the device's tape block size to <SPAN
1880 CLASS="bold"
1881 ><B
1882 CLASS="emphasis"
1883 >0</B
1884 ></SPAN
1885 > (zero) to indicate variable block size. If you do not, it is possible that devices attached to
1886       machines of other system types cannot read the tapes made on the AIX system. Use the AIX <SPAN
1887 CLASS="bold"
1888 ><B
1889 CLASS="emphasis"
1890 >smit</B
1891 ></SPAN
1892 >
1893       program to verify or change the value of the tape block size for a tape device, as instructed in Sep <A
1894 HREF="c12776.html#LIWQ263"
1895 >3</A
1896 >.</P
1897 ></BLOCKQUOTE
1898 ></DIV
1899 ><DIV
1900 CLASS="sect2"
1901 ><H2
1902 CLASS="sect2"
1903 ><A
1904 NAME="HDRWQ262"
1905 >To configure a Tape Coordinator machine</A
1906 ></H2
1907 ><OL
1908 TYPE="1"
1909 ><LI
1910 ><P
1911 >Verify that you are authenticated as a user listed in the <SPAN
1912 CLASS="bold"
1913 ><B
1914 CLASS="emphasis"
1915 >/usr/afs/etc/UserList</B
1916 ></SPAN
1917 >
1918           file. If necessary, issue the <SPAN
1919 CLASS="bold"
1920 ><B
1921 CLASS="emphasis"
1922 >bos listusers</B
1923 ></SPAN
1924 > command, which is fully described in <A
1925 HREF="c32432.html#HDRWQ593"
1926 >To display the users in the UserList file</A
1927 >. <PRE
1928 CLASS="programlisting"
1929 >&#13;   % <SPAN
1930 CLASS="bold"
1931 ><B
1932 CLASS="emphasis"
1933 >bos listusers</B
1934 ></SPAN
1935 > &#60;<VAR
1936 CLASS="replaceable"
1937 >machine name</VAR
1938 >&#62;
1939 </PRE
1940 ></P
1941 ></LI
1942 ><LI
1943 ><P
1944 >Become the local superuser <SPAN
1945 CLASS="bold"
1946 ><B
1947 CLASS="emphasis"
1948 >root</B
1949 ></SPAN
1950 > on the machine, if you are not already, by issuing
1951           the <SPAN
1952 CLASS="bold"
1953 ><B
1954 CLASS="emphasis"
1955 >su</B
1956 ></SPAN
1957 > command. <PRE
1958 CLASS="programlisting"
1959 >&#13;   % <SPAN
1960 CLASS="bold"
1961 ><B
1962 CLASS="emphasis"
1963 >su root</B
1964 ></SPAN
1965 >
1966    Password: &#60;<VAR
1967 CLASS="replaceable"
1968 >root_password</VAR
1969 >&#62;
1970 </PRE
1971 ></P
1972 ></LI
1973 ><LI
1974 ><P
1975 ><A
1976 NAME="LIWQ263"
1977 ></A
1978 >Install one or more tape devices on the Tape Coordinator machine according to the
1979           manufacturer's instructions. The Backup System can track a maximum of 58,511 tape devices or backup data files per
1980           cell.</P
1981 ><P
1982 >If the Tape Coordinator machine is an AIX system, issue the following command to change the tape device's tape block
1983           size to <SPAN
1984 CLASS="bold"
1985 ><B
1986 CLASS="emphasis"
1987 >0</B
1988 ></SPAN
1989 > (zero), which indicates variable block size. Repeat for each tape
1990           device.</P
1991 ><PRE
1992 CLASS="programlisting"
1993 >&#13;   # <SPAN
1994 CLASS="bold"
1995 ><B
1996 CLASS="emphasis"
1997 >chdev -l '</B
1998 ></SPAN
1999 >device_name<SPAN
2000 CLASS="bold"
2001 ><B
2002 CLASS="emphasis"
2003 >' -a block_size='0'</B
2004 ></SPAN
2005 >
2006 </PRE
2007 ><P
2008 >where device_name is the tape device's device name (for example, <SPAN
2009 CLASS="bold"
2010 ><B
2011 CLASS="emphasis"
2012 >/dev/rmt0h</B
2013 ></SPAN
2014 >).</P
2015 ></LI
2016 ><LI
2017 ><P
2018 >Verify that the binary files for the <SPAN
2019 CLASS="bold"
2020 ><B
2021 CLASS="emphasis"
2022 >backup</B
2023 ></SPAN
2024 >, <SPAN
2025 CLASS="bold"
2026 ><B
2027 CLASS="emphasis"
2028 >butc</B
2029 ></SPAN
2030 >,
2031           and <SPAN
2032 CLASS="bold"
2033 ><B
2034 CLASS="emphasis"
2035 >fms</B
2036 ></SPAN
2037 > commands are available on the local disk. If the machine is an AFS client, the
2038           conventional location is the <SPAN
2039 CLASS="bold"
2040 ><B
2041 CLASS="emphasis"
2042 >/usr/afsws/etc</B
2043 ></SPAN
2044 > directory. <PRE
2045 CLASS="programlisting"
2046 >&#13;   # <SPAN
2047 CLASS="bold"
2048 ><B
2049 CLASS="emphasis"
2050 >ls /usr/afsws/etc</B
2051 ></SPAN
2052 >
2053 </PRE
2054 ></P
2055 ></LI
2056 ><LI
2057 ><P
2058 >Create the <SPAN
2059 CLASS="bold"
2060 ><B
2061 CLASS="emphasis"
2062 >/usr/afs</B
2063 ></SPAN
2064 > directory. (If the Tape Coordinator machine is also configured
2065           as a file server machine, this directory already exists.) Then create the <SPAN
2066 CLASS="bold"
2067 ><B
2068 CLASS="emphasis"
2069 >/usr/afs/backup</B
2070 ></SPAN
2071 >
2072           directory. <PRE
2073 CLASS="programlisting"
2074 >&#13;   # <SPAN
2075 CLASS="bold"
2076 ><B
2077 CLASS="emphasis"
2078 >mkdir /usr/afs</B
2079 ></SPAN
2080 >
2081    # <SPAN
2082 CLASS="bold"
2083 ><B
2084 CLASS="emphasis"
2085 >mkdir /usr/afs/backup</B
2086 ></SPAN
2087 >
2088 </PRE
2089 ></P
2090 ></LI
2091 ><LI
2092 ><P
2093 >Use a text editor to create the <SPAN
2094 CLASS="bold"
2095 ><B
2096 CLASS="emphasis"
2097 >/usr/afs/backup/tapeconfig</B
2098 ></SPAN
2099 > file. Include a single
2100           line for each tape device or backup data file, specifying the following information in the indicated order. For syntax
2101           details and suggestions on the values to use in each field, see <A
2102 HREF="c12776.html#HDRWQ258"
2103 >Configuring the tapeconfig
2104           File</A
2105 >. <UL
2106 ><LI
2107 ><P
2108 >The capacity of tapes to be used in the device, or the size of the backup data file</P
2109 ></LI
2110 ><LI
2111 ><P
2112 >The device's filemark size</P
2113 ></LI
2114 ><LI
2115 ><P
2116 >The device's device name, starting with the string <SPAN
2117 CLASS="bold"
2118 ><B
2119 CLASS="emphasis"
2120 >/dev/</B
2121 ></SPAN
2122 ></P
2123 ></LI
2124 ><LI
2125 ><P
2126 >The device's port offset number</P
2127 ></LI
2128 ></UL
2129 ></P
2130 ></LI
2131 ><LI
2132 ><P
2133 >Decide which user and group are to own the <SPAN
2134 CLASS="bold"
2135 ><B
2136 CLASS="emphasis"
2137 >/usr/afs/backup</B
2138 ></SPAN
2139 > directory and <SPAN
2140 CLASS="bold"
2141 ><B
2142 CLASS="emphasis"
2143 >/usr/afs/backup/tapeconfig</B
2144 ></SPAN
2145 > file, based on the suggestions in <A
2146 HREF="c12776.html#HDRWQ260"
2147 >Granting
2148           Administrative Privilege to Backup Operators</A
2149 >. Correct the UNIX mode bits on the directory and file, if necessary.
2150           <PRE
2151 CLASS="programlisting"
2152 >&#13;   # <SPAN
2153 CLASS="bold"
2154 ><B
2155 CLASS="emphasis"
2156 >chown</B
2157 ></SPAN
2158 > admin_owner <SPAN
2159 CLASS="bold"
2160 ><B
2161 CLASS="emphasis"
2162 >/usr/afs/backup</B
2163 ></SPAN
2164 >
2165    # <SPAN
2166 CLASS="bold"
2167 ><B
2168 CLASS="emphasis"
2169 >chown</B
2170 ></SPAN
2171 > admin_owner <SPAN
2172 CLASS="bold"
2173 ><B
2174 CLASS="emphasis"
2175 >/usr/afs/backup/tapeconfig</B
2176 ></SPAN
2177 >
2178    # <SPAN
2179 CLASS="bold"
2180 ><B
2181 CLASS="emphasis"
2182 >chgrp</B
2183 ></SPAN
2184 > admin_group <SPAN
2185 CLASS="bold"
2186 ><B
2187 CLASS="emphasis"
2188 >/usr/afs/backup</B
2189 ></SPAN
2190 >
2191    # <SPAN
2192 CLASS="bold"
2193 ><B
2194 CLASS="emphasis"
2195 >chgrp</B
2196 ></SPAN
2197 > admin_group <SPAN
2198 CLASS="bold"
2199 ><B
2200 CLASS="emphasis"
2201 >/usr/afs/backup/tapeconfig</B
2202 ></SPAN
2203 >
2204    # <SPAN
2205 CLASS="bold"
2206 ><B
2207 CLASS="emphasis"
2208 >chmod 774 /usr/afs/backup</B
2209 ></SPAN
2210 >
2211    # <SPAN
2212 CLASS="bold"
2213 ><B
2214 CLASS="emphasis"
2215 >chmod 664 /usr/afs/backup/tapeconfig</B
2216 ></SPAN
2217 >
2218 </PRE
2219 ></P
2220 ></LI
2221 ><LI
2222 ><P
2223 ><A
2224 NAME="LICONFTC-ADDHOST"
2225 ></A
2226 >Issue the <SPAN
2227 CLASS="bold"
2228 ><B
2229 CLASS="emphasis"
2230 >backup addhost</B
2231 ></SPAN
2232 > command to create a Tape
2233           Coordinator entry in the Backup Database. Repeat the command for each Tape Coordinator. <PRE
2234 CLASS="programlisting"
2235 >&#13;   # <SPAN
2236 CLASS="bold"
2237 ><B
2238 CLASS="emphasis"
2239 >backup addhost</B
2240 ></SPAN
2241 > &#60;<VAR
2242 CLASS="replaceable"
2243 >tape machine name</VAR
2244 >&#62; [&#60;<VAR
2245 CLASS="replaceable"
2246 >TC port offset</VAR
2247 >&#62;]
2248 </PRE
2249 ></P
2250 ><P
2251 >where <DIV
2252 CLASS="variablelist"
2253 ><DL
2254 ><DT
2255 ><SPAN
2256 CLASS="bold"
2257 ><B
2258 CLASS="emphasis"
2259 >addh</B
2260 ></SPAN
2261 ></DT
2262 ><DD
2263 ><P
2264 >Is the shortest acceptable abbreviation of <SPAN
2265 CLASS="bold"
2266 ><B
2267 CLASS="emphasis"
2268 >addhost</B
2269 ></SPAN
2270 >.</P
2271 ></DD
2272 ><DT
2273 ><SPAN
2274 CLASS="bold"
2275 ><B
2276 CLASS="emphasis"
2277 >tape machine name</B
2278 ></SPAN
2279 ></DT
2280 ><DD
2281 ><P
2282 >Specifies the Tape Coordinator machine's fully qualified hostname.</P
2283 ></DD
2284 ><DT
2285 ><SPAN
2286 CLASS="bold"
2287 ><B
2288 CLASS="emphasis"
2289 >TC port offset</B
2290 ></SPAN
2291 ></DT
2292 ><DD
2293 ><P
2294 >Specifies the tape device's port offset number. Provide the same value as you specified for the device in
2295                   the <SPAN
2296 CLASS="bold"
2297 ><B
2298 CLASS="emphasis"
2299 >tapeconfig</B
2300 ></SPAN
2301 > file. You must provide this argument unless the default value of 0
2302                   (zero) is appropriate.</P
2303 ></DD
2304 ></DL
2305 ></DIV
2306 ></P
2307 ></LI
2308 ></OL
2309 ></DIV
2310 ><DIV
2311 CLASS="sect2"
2312 ><H2
2313 CLASS="sect2"
2314 ><A
2315 NAME="Header_287"
2316 >To configure an additional Tape Coordinator on an existing Tape Coordinator machine</A
2317 ></H2
2318 ><OL
2319 TYPE="1"
2320 ><LI
2321 ><P
2322 >Verify that you are authenticated as a user listed in the <SPAN
2323 CLASS="bold"
2324 ><B
2325 CLASS="emphasis"
2326 >/usr/afs/etc/UserList</B
2327 ></SPAN
2328 >
2329           file. If necessary, issue the <SPAN
2330 CLASS="bold"
2331 ><B
2332 CLASS="emphasis"
2333 >bos listusers</B
2334 ></SPAN
2335 > command, which is fully described in <A
2336 HREF="c32432.html#HDRWQ593"
2337 >To display the users in the UserList file</A
2338 >. <PRE
2339 CLASS="programlisting"
2340 >&#13;   % <SPAN
2341 CLASS="bold"
2342 ><B
2343 CLASS="emphasis"
2344 >bos listusers</B
2345 ></SPAN
2346 > &#60;<VAR
2347 CLASS="replaceable"
2348 >machine name</VAR
2349 >&#62;
2350 </PRE
2351 ></P
2352 ></LI
2353 ><LI
2354 ><P
2355 >Become the local superuser <SPAN
2356 CLASS="bold"
2357 ><B
2358 CLASS="emphasis"
2359 >root</B
2360 ></SPAN
2361 > on the machine, if you are not already, by issuing
2362           the <SPAN
2363 CLASS="bold"
2364 ><B
2365 CLASS="emphasis"
2366 >su</B
2367 ></SPAN
2368 > command. <PRE
2369 CLASS="programlisting"
2370 >&#13;   % <SPAN
2371 CLASS="bold"
2372 ><B
2373 CLASS="emphasis"
2374 >su root</B
2375 ></SPAN
2376 >
2377    Password: &#60;<VAR
2378 CLASS="replaceable"
2379 >root_password</VAR
2380 >&#62;
2381 </PRE
2382 ></P
2383 ></LI
2384 ><LI
2385 ><P
2386 >Install the tape device on the Tape Coordinator machine according to the manufacturer's instructions.</P
2387 ><P
2388 >If the Tape Coordinator machine is an AIX system, issue the following command to change the tape device's tape block
2389           size to <SPAN
2390 CLASS="bold"
2391 ><B
2392 CLASS="emphasis"
2393 >0</B
2394 ></SPAN
2395 > (zero), which indicates variable block size.</P
2396 ><PRE
2397 CLASS="programlisting"
2398 >&#13;   # <SPAN
2399 CLASS="bold"
2400 ><B
2401 CLASS="emphasis"
2402 >chdev -l '</B
2403 ></SPAN
2404 >device_name<SPAN
2405 CLASS="bold"
2406 ><B
2407 CLASS="emphasis"
2408 >' -a block_size='0'</B
2409 ></SPAN
2410 >
2411 </PRE
2412 ></LI
2413 ><LI
2414 ><P
2415 >Choose the port offset number to assign to the tape device. If necessary, use the <SPAN
2416 CLASS="bold"
2417 ><B
2418 CLASS="emphasis"
2419 >backup
2420           listhosts</B
2421 ></SPAN
2422 > command to display the port offset numbers that are already used; for a discussion of the output, see
2423           <A
2424 HREF="c12776.html#HDRWQ264"
2425 >To display the list of configured Tape Coordinators</A
2426 >. <PRE
2427 CLASS="programlisting"
2428 >&#13;   # <SPAN
2429 CLASS="bold"
2430 ><B
2431 CLASS="emphasis"
2432 >backup listhosts</B
2433 ></SPAN
2434 >
2435 </PRE
2436 ></P
2437 ><P
2438 >where <SPAN
2439 CLASS="bold"
2440 ><B
2441 CLASS="emphasis"
2442 >listh</B
2443 ></SPAN
2444 > is the shortest acceptable abbreviation of <SPAN
2445 CLASS="bold"
2446 ><B
2447 CLASS="emphasis"
2448 >listhosts</B
2449 ></SPAN
2450 >.</P
2451 ></LI
2452 ><LI
2453 ><P
2454 >Use a text editor to add one or more entries for the device to the <SPAN
2455 CLASS="bold"
2456 ><B
2457 CLASS="emphasis"
2458 >/usr/afs/backup/tapeconfig</B
2459 ></SPAN
2460 > file. Specify the following information in the indicated order. For
2461           syntax details and suggestions on the values to use in each field, see <A
2462 HREF="c12776.html#HDRWQ258"
2463 >Configuring the tapeconfig
2464           File</A
2465 >. <UL
2466 ><LI
2467 ><P
2468 >The capacity of tapes to be used in the device, or the size of the backup data file</P
2469 ></LI
2470 ><LI
2471 ><P
2472 >The device's filemark size</P
2473 ></LI
2474 ><LI
2475 ><P
2476 >The device's device name, starting with the string <SPAN
2477 CLASS="bold"
2478 ><B
2479 CLASS="emphasis"
2480 >/dev/</B
2481 ></SPAN
2482 ></P
2483 ></LI
2484 ><LI
2485 ><P
2486 >The device's port offset number</P
2487 ></LI
2488 ></UL
2489 ></P
2490 ></LI
2491 ><LI
2492 ><P
2493 >Issue the <SPAN
2494 CLASS="bold"
2495 ><B
2496 CLASS="emphasis"
2497 >backup addhost</B
2498 ></SPAN
2499 > command to create an entry in the Backup Database for the
2500           Tape Coordinator. For complete syntax, see Step <A
2501 HREF="c12776.html#LICONFTC-ADDHOST"
2502 >8</A
2503 > in <A
2504 HREF="c12776.html#HDRWQ262"
2505 >To
2506           configure a Tape Coordinator machine</A
2507 >. <PRE
2508 CLASS="programlisting"
2509 >&#13;   # <SPAN
2510 CLASS="bold"
2511 ><B
2512 CLASS="emphasis"
2513 >backup addhost</B
2514 ></SPAN
2515 > &#60;<VAR
2516 CLASS="replaceable"
2517 >tape machine name</VAR
2518 >&#62; [&#60;<VAR
2519 CLASS="replaceable"
2520 >TC port offset</VAR
2521 >&#62;]
2522 </PRE
2523 ></P
2524 ></LI
2525 ></OL
2526 ></DIV
2527 ><DIV
2528 CLASS="sect2"
2529 ><H2
2530 CLASS="sect2"
2531 ><A
2532 NAME="Header_288"
2533 >To unconfigure a Tape Coordinator</A
2534 ></H2
2535 ><OL
2536 TYPE="1"
2537 ><LI
2538 ><P
2539 >Verify that you are authenticated as a user listed in the <SPAN
2540 CLASS="bold"
2541 ><B
2542 CLASS="emphasis"
2543 >/usr/afs/etc/UserList</B
2544 ></SPAN
2545 >
2546           file. If necessary, issue the <SPAN
2547 CLASS="bold"
2548 ><B
2549 CLASS="emphasis"
2550 >bos listusers</B
2551 ></SPAN
2552 > command, which is fully described in <A
2553 HREF="c32432.html#HDRWQ593"
2554 >To display the users in the UserList file</A
2555 >. <PRE
2556 CLASS="programlisting"
2557 >&#13;   % <SPAN
2558 CLASS="bold"
2559 ><B
2560 CLASS="emphasis"
2561 >bos listusers</B
2562 ></SPAN
2563 > &#60;<VAR
2564 CLASS="replaceable"
2565 >machine name</VAR
2566 >&#62;
2567 </PRE
2568 ></P
2569 ></LI
2570 ><LI
2571 ><P
2572 >Using a text editor, remove each of the Tape Coordinator's entries from the <SPAN
2573 CLASS="bold"
2574 ><B
2575 CLASS="emphasis"
2576 >/usr/afs/backup/tapeconfig</B
2577 ></SPAN
2578 > file.</P
2579 ></LI
2580 ><LI
2581 ><P
2582 >Issue the <SPAN
2583 CLASS="bold"
2584 ><B
2585 CLASS="emphasis"
2586 >backup delhost</B
2587 ></SPAN
2588 > command to delete the Tape Coordinator's Backup Database
2589           entry. <PRE
2590 CLASS="programlisting"
2591 >&#13;   % <SPAN
2592 CLASS="bold"
2593 ><B
2594 CLASS="emphasis"
2595 >backup delhost</B
2596 ></SPAN
2597 > &#60;<VAR
2598 CLASS="replaceable"
2599 >tape machine name</VAR
2600 >&#62; [&#60;<VAR
2601 CLASS="replaceable"
2602 >TC port offset</VAR
2603 >&#62;]
2604 </PRE
2605 ></P
2606 ><P
2607 >where <DIV
2608 CLASS="variablelist"
2609 ><DL
2610 ><DT
2611 ><SPAN
2612 CLASS="bold"
2613 ><B
2614 CLASS="emphasis"
2615 >delh</B
2616 ></SPAN
2617 ></DT
2618 ><DD
2619 ><P
2620 >Is the shortest acceptable abbreviation of <SPAN
2621 CLASS="bold"
2622 ><B
2623 CLASS="emphasis"
2624 >delhost</B
2625 ></SPAN
2626 >.</P
2627 ></DD
2628 ><DT
2629 ><SPAN
2630 CLASS="bold"
2631 ><B
2632 CLASS="emphasis"
2633 >tape machine name</B
2634 ></SPAN
2635 ></DT
2636 ><DD
2637 ><P
2638 >Is the complete Internet host name of the Tape Coordinator machine.</P
2639 ></DD
2640 ><DT
2641 ><SPAN
2642 CLASS="bold"
2643 ><B
2644 CLASS="emphasis"
2645 >TC port offset</B
2646 ></SPAN
2647 ></DT
2648 ><DD
2649 ><P
2650 >Is the same port offset number removed from the <SPAN
2651 CLASS="bold"
2652 ><B
2653 CLASS="emphasis"
2654 >tapeconfig</B
2655 ></SPAN
2656 > file. You must
2657                   provide this argument unless the default value of <SPAN
2658 CLASS="bold"
2659 ><B
2660 CLASS="emphasis"
2661 >0</B
2662 ></SPAN
2663 > (zero) is appropriate.</P
2664 ></DD
2665 ></DL
2666 ></DIV
2667 ></P
2668 ></LI
2669 ></OL
2670 ></DIV
2671 ><DIV
2672 CLASS="sect2"
2673 ><H2
2674 CLASS="sect2"
2675 ><A
2676 NAME="HDRWQ264"
2677 >To display the list of configured Tape Coordinators</A
2678 ></H2
2679 ><OL
2680 TYPE="1"
2681 ><LI
2682 ><P
2683 >Issue the <SPAN
2684 CLASS="bold"
2685 ><B
2686 CLASS="emphasis"
2687 >backup listhosts</B
2688 ></SPAN
2689 > command to list the Tape Coordinators and port offset
2690           numbers currently configured in the Backup Database. <PRE
2691 CLASS="programlisting"
2692 >&#13;   % <SPAN
2693 CLASS="bold"
2694 ><B
2695 CLASS="emphasis"
2696 >backup listhosts</B
2697 ></SPAN
2698 >
2699 </PRE
2700 ></P
2701 ><P
2702 >where <DIV
2703 CLASS="variablelist"
2704 ><DL
2705 ><DT
2706 ><SPAN
2707 CLASS="bold"
2708 ><B
2709 CLASS="emphasis"
2710 >listh</B
2711 ></SPAN
2712 ></DT
2713 ><DD
2714 ><P
2715 >Is the shortest acceptable abbreviation of <SPAN
2716 CLASS="bold"
2717 ><B
2718 CLASS="emphasis"
2719 >listhosts</B
2720 ></SPAN
2721 >.</P
2722 ></DD
2723 ></DL
2724 ></DIV
2725 ></P
2726 ></LI
2727 ></OL
2728 ><P
2729 >The output lists each Tape Coordinator machine and the port offset numbers currently allocated to it in the Backup
2730       Database. The appearance of a port offset number does not imply that the associated Tape Coordinator is actually running.
2731       Machine names appear in the format in which they were specified with the <SPAN
2732 CLASS="bold"
2733 ><B
2734 CLASS="emphasis"
2735 >backup addhost</B
2736 ></SPAN
2737 >
2738       command.</P
2739 ><P
2740 >The following example output lists the Tape Coordinators currently defined in the Backup Database of the ABC Corporation
2741       cell:</P
2742 ><PRE
2743 CLASS="programlisting"
2744 >&#13;   % <SPAN
2745 CLASS="bold"
2746 ><B
2747 CLASS="emphasis"
2748 >backup listhosts</B
2749 ></SPAN
2750 >
2751    Tape hosts:
2752        Host backup1.abc.com, port offset 0
2753        Host backup1.abc.com, port offset 2
2754        Host backup2.abc.com, port offset 1
2755        Host backup2.abc.com, port offset 3
2756 </PRE
2757 ></DIV
2758 ></DIV
2759 ><DIV
2760 CLASS="sect1"
2761 ><H1
2762 CLASS="sect1"
2763 ><A
2764 NAME="HDRWQ265"
2765 >Defining and Displaying Volume Sets and Volume Entries</A
2766 ></H1
2767 ><P
2768 >The Backup System handles data at the level of volumes rather than individual files. You must define groups of volumes
2769     called <SPAN
2770 CLASS="emphasis"
2771 ><I
2772 CLASS="emphasis"
2773 >volume sets</I
2774 ></SPAN
2775 > before performing backup operations, by using the <SPAN
2776 CLASS="bold"
2777 ><B
2778 CLASS="emphasis"
2779 >backup
2780     addvolset</B
2781 ></SPAN
2782 > command. A volume set name can be up to 31 characters long and can include any character other than the
2783     period (<SPAN
2784 CLASS="bold"
2785 ><B
2786 CLASS="emphasis"
2787 >.</B
2788 ></SPAN
2789 >), but avoid using metacharacters that have special meanings to the shell.</P
2790 ><P
2791 >After creating a volume set, use the <SPAN
2792 CLASS="bold"
2793 ><B
2794 CLASS="emphasis"
2795 >backup addvolentry</B
2796 ></SPAN
2797 > command to place one or more
2798     <SPAN
2799 CLASS="emphasis"
2800 ><I
2801 CLASS="emphasis"
2802 >volume entries</I
2803 ></SPAN
2804 > in it. They define the volumes that belong to it in terms of their location (file server
2805     machine and partition) and name. Use the command's required <SPAN
2806 CLASS="bold"
2807 ><B
2808 CLASS="emphasis"
2809 >-server</B
2810 ></SPAN
2811 > argument to designate the
2812     file server machine that houses the volumes of interest and its required <SPAN
2813 CLASS="bold"
2814 ><B
2815 CLASS="emphasis"
2816 >-partition</B
2817 ></SPAN
2818 > argument to
2819     designate the partition. Two types of values are acceptable: <UL
2820 ><LI
2821 ><P
2822 >The fully qualified hostname of one machine or full name of one partition (such as <SPAN
2823 CLASS="bold"
2824 ><B
2825 CLASS="emphasis"
2826 >/vicepm</B
2827 ></SPAN
2828 >)</P
2829 ></LI
2830 ><LI
2831 ><P
2832 >The regular expression <SPAN
2833 CLASS="bold"
2834 ><B
2835 CLASS="emphasis"
2836 >.*</B
2837 ></SPAN
2838 > (period and asterisk), which matches every machine name
2839           or partition name in the VLDB</P
2840 ></LI
2841 ></UL
2842 ></P
2843 ><P
2844 >For the volume name (the required <SPAN
2845 CLASS="bold"
2846 ><B
2847 CLASS="emphasis"
2848 >-volume</B
2849 ></SPAN
2850 > argument), specify a combination of
2851     alphanumeric characters and one or more metacharacters to specify part or all of the volume name with a wildcard. You can use
2852     any of the following metacharacters in the volume name field: <DIV
2853 CLASS="variablelist"
2854 ><DL
2855 ><DT
2856 ><SPAN
2857 CLASS="bold"
2858 ><B
2859 CLASS="emphasis"
2860 >.</B
2861 ></SPAN
2862 ></DT
2863 ><DD
2864 ><P
2865 >The period matches any single character.</P
2866 ></DD
2867 ><DT
2868 ><SPAN
2869 CLASS="bold"
2870 ><B
2871 CLASS="emphasis"
2872 >*</B
2873 ></SPAN
2874 ></DT
2875 ><DD
2876 ><P
2877 >The asterisk matches zero or more instances of the preceding character. Combine it with any other alphanumeric
2878             character or metacharacter.</P
2879 ></DD
2880 ><DT
2881 ><SPAN
2882 CLASS="bold"
2883 ><B
2884 CLASS="emphasis"
2885 >[ ]</B
2886 ></SPAN
2887 ></DT
2888 ><DD
2889 ><P
2890 >Square brackets around a list of characters match a single instance of any of the characters, but no other
2891             characters; for example, <SPAN
2892 CLASS="bold"
2893 ><B
2894 CLASS="emphasis"
2895 >[abc]</B
2896 ></SPAN
2897 > matches a single <SPAN
2898 CLASS="bold"
2899 ><B
2900 CLASS="emphasis"
2901 >a</B
2902 ></SPAN
2903 > or
2904             <SPAN
2905 CLASS="bold"
2906 ><B
2907 CLASS="emphasis"
2908 >b</B
2909 ></SPAN
2910 > or <SPAN
2911 CLASS="bold"
2912 ><B
2913 CLASS="emphasis"
2914 >c</B
2915 ></SPAN
2916 >, but not <SPAN
2917 CLASS="bold"
2918 ><B
2919 CLASS="emphasis"
2920 >d</B
2921 ></SPAN
2922 > or
2923             <SPAN
2924 CLASS="bold"
2925 ><B
2926 CLASS="emphasis"
2927 >A</B
2928 ></SPAN
2929 >. You can combine this expression with the asterisk.</P
2930 ></DD
2931 ><DT
2932 ><SPAN
2933 CLASS="bold"
2934 ><B
2935 CLASS="emphasis"
2936 >^</B
2937 ></SPAN
2938 ></DT
2939 ><DD
2940 ><P
2941 >The caret, when used as the first character in a square-bracketed set, designates a match with any single
2942             character other than the characters that follow it; for example, <SPAN
2943 CLASS="bold"
2944 ><B
2945 CLASS="emphasis"
2946 >[^a]</B
2947 ></SPAN
2948 > matches any
2949             single character except lowercase <SPAN
2950 CLASS="bold"
2951 ><B
2952 CLASS="emphasis"
2953 >a</B
2954 ></SPAN
2955 >. You can combine this expression with the
2956             asterisk.</P
2957 ></DD
2958 ><DT
2959 ><SPAN
2960 CLASS="bold"
2961 ><B
2962 CLASS="emphasis"
2963 >\</B
2964 ></SPAN
2965 ></DT
2966 ><DD
2967 ><P
2968 >A backslash preceding any of the metacharacters in this list makes it match its literal value only. For example,
2969             the expression <SPAN
2970 CLASS="bold"
2971 ><B
2972 CLASS="emphasis"
2973 >\.</B
2974 ></SPAN
2975 > (backslash and period) matches a single period, <SPAN
2976 CLASS="bold"
2977 ><B
2978 CLASS="emphasis"
2979 >\*</B
2980 ></SPAN
2981 > matches a single asterisk, and <SPAN
2982 CLASS="bold"
2983 ><B
2984 CLASS="emphasis"
2985 >\\</B
2986 ></SPAN
2987 > matches a single backslash.
2988             You can combine such expressions with the asterisk (for example, <SPAN
2989 CLASS="bold"
2990 ><B
2991 CLASS="emphasis"
2992 >\.*</B
2993 ></SPAN
2994 > matches any number
2995             of periods).</P
2996 ></DD
2997 ></DL
2998 ></DIV
2999 ></P
3000 ><P
3001 >Perhaps the most common regular expression is the period followed by an asterisk (<SPAN
3002 CLASS="bold"
3003 ><B
3004 CLASS="emphasis"
3005 >.*</B
3006 ></SPAN
3007 >).
3008     This expression matches any string of any length, because the period matches any character and the asterisk means any number of
3009     that character. As mentioned, it is the only acceptable regular expression in the file server and partition fields of a volume
3010     entry. In the volume name field, it can stand alone (in which case it matches every volume listed in the VLDB), or can combine
3011     with alphanumeric characters. For example, the string <SPAN
3012 CLASS="bold"
3013 ><B
3014 CLASS="emphasis"
3015 >user.*\.backup</B
3016 ></SPAN
3017 > matches any volume name
3018     that begins with the string <SPAN
3019 CLASS="bold"
3020 ><B
3021 CLASS="emphasis"
3022 >user</B
3023 ></SPAN
3024 > and ends with <SPAN
3025 CLASS="bold"
3026 ><B
3027 CLASS="emphasis"
3028 >.backup</B
3029 ></SPAN
3030 >.</P
3031 ><P
3032 >Issuing the <SPAN
3033 CLASS="bold"
3034 ><B
3035 CLASS="emphasis"
3036 >backup addvolentry</B
3037 ></SPAN
3038 > command in interactive mode is simplest. If you issue it
3039     at the shell prompt, you must surround any string that includes a regular expression with double quotes (<SPAN
3040 CLASS="bold"
3041 ><B
3042 CLASS="emphasis"
3043 >"
3044     "</B
3045 ></SPAN
3046 >) so that the shell passes them uninterpreted to the <SPAN
3047 CLASS="bold"
3048 ><B
3049 CLASS="emphasis"
3050 >backup</B
3051 ></SPAN
3052 > command interpreter
3053     rather than resolving them.</P
3054 ><P
3055 >To define various combinations of volumes, provide the following types of values for the <SPAN
3056 CLASS="bold"
3057 ><B
3058 CLASS="emphasis"
3059 >backup
3060     addvolentry</B
3061 ></SPAN
3062 > command's three arguments. The list uses the notation appropriate for interactive mode; if you issue the
3063     command at the shell prompt instead, place double quotes around any string that includes a regular expression. To create a
3064     volume entry that includes: <UL
3065 ><LI
3066 ><P
3067 >All volumes listed in the VLDB, use the regular expression <SPAN
3068 CLASS="bold"
3069 ><B
3070 CLASS="emphasis"
3071 >.*</B
3072 ></SPAN
3073 > for all three
3074           arguments (<SPAN
3075 CLASS="bold"
3076 ><B
3077 CLASS="emphasis"
3078 >-server .* -partition .* -volume .*</B
3079 ></SPAN
3080 >)</P
3081 ></LI
3082 ><LI
3083 ><P
3084 >Every volume on a specific file server machine, specify its fully qualified hostname as the <SPAN
3085 CLASS="bold"
3086 ><B
3087 CLASS="emphasis"
3088 >-server</B
3089 ></SPAN
3090 > argument and use the regular expression <SPAN
3091 CLASS="bold"
3092 ><B
3093 CLASS="emphasis"
3094 >.*</B
3095 ></SPAN
3096 > for the
3097           <SPAN
3098 CLASS="bold"
3099 ><B
3100 CLASS="emphasis"
3101 >-partition</B
3102 ></SPAN
3103 > and -<SPAN
3104 CLASS="bold"
3105 ><B
3106 CLASS="emphasis"
3107 >volume</B
3108 ></SPAN
3109 > arguments (for example: <SPAN
3110 CLASS="bold"
3111 ><B
3112 CLASS="emphasis"
3113 >-server fs1.abc.com -partition .* -volume .*</B
3114 ></SPAN
3115 >)</P
3116 ></LI
3117 ><LI
3118 ><P
3119 >All volumes that reside on a partition with the same name on various file server machines, specify the complete
3120           partition name as the <SPAN
3121 CLASS="bold"
3122 ><B
3123 CLASS="emphasis"
3124 >-partition</B
3125 ></SPAN
3126 > argument and use the regular expression <SPAN
3127 CLASS="bold"
3128 ><B
3129 CLASS="emphasis"
3130 >.*</B
3131 ></SPAN
3132 > for the <SPAN
3133 CLASS="bold"
3134 ><B
3135 CLASS="emphasis"
3136 >-server</B
3137 ></SPAN
3138 > and <SPAN
3139 CLASS="bold"
3140 ><B
3141 CLASS="emphasis"
3142 >-volume</B
3143 ></SPAN
3144 >
3145           arguments (for example: <SPAN
3146 CLASS="bold"
3147 ><B
3148 CLASS="emphasis"
3149 >-server .* -partition /vicepd -volume .*</B
3150 ></SPAN
3151 >)</P
3152 ></LI
3153 ><LI
3154 ><P
3155 >Every volume with a common string in its name, use the regular expression <SPAN
3156 CLASS="bold"
3157 ><B
3158 CLASS="emphasis"
3159 >.*</B
3160 ></SPAN
3161 > for
3162           the <SPAN
3163 CLASS="bold"
3164 ><B
3165 CLASS="emphasis"
3166 >-server</B
3167 ></SPAN
3168 > and <SPAN
3169 CLASS="bold"
3170 ><B
3171 CLASS="emphasis"
3172 >-partition</B
3173 ></SPAN
3174 > arguments, and provide a
3175           combination of alphanumeric characters and metacharacters as the <SPAN
3176 CLASS="bold"
3177 ><B
3178 CLASS="emphasis"
3179 >-volume</B
3180 ></SPAN
3181 > argument (for
3182           example: <SPAN
3183 CLASS="bold"
3184 ><B
3185 CLASS="emphasis"
3186 >-server .* -partition .* -volume .*\.backup</B
3187 ></SPAN
3188 > includes all volumes whose names end
3189           in the string <SPAN
3190 CLASS="bold"
3191 ><B
3192 CLASS="emphasis"
3193 >.backup</B
3194 ></SPAN
3195 >).</P
3196 ></LI
3197 ><LI
3198 ><P
3199 >All volumes on one partition, specify the machine's fully qualified hostname as the <SPAN
3200 CLASS="bold"
3201 ><B
3202 CLASS="emphasis"
3203 >-server</B
3204 ></SPAN
3205 > argument and the full partition name as the <SPAN
3206 CLASS="bold"
3207 ><B
3208 CLASS="emphasis"
3209 >-partition</B
3210 ></SPAN
3211 >
3212           argument, and use the regular expression <SPAN
3213 CLASS="bold"
3214 ><B
3215 CLASS="emphasis"
3216 >.*</B
3217 ></SPAN
3218 > for the <SPAN
3219 CLASS="bold"
3220 ><B
3221 CLASS="emphasis"
3222 >-volume</B
3223 ></SPAN
3224 > argument (for example: <SPAN
3225 CLASS="bold"
3226 ><B
3227 CLASS="emphasis"
3228 >-server fs2.abc.com -partition /vicepb -volume
3229           .*</B
3230 ></SPAN
3231 >).</P
3232 ></LI
3233 ><LI
3234 ><P
3235 >A single volume, specify its complete name as the <SPAN
3236 CLASS="bold"
3237 ><B
3238 CLASS="emphasis"
3239 >-volume</B
3240 ></SPAN
3241 > argument. To bypass the
3242           potentially time-consuming search through the VLDB for matching entries, you can specify an actual machine and partition
3243           name for the <SPAN
3244 CLASS="bold"
3245 ><B
3246 CLASS="emphasis"
3247 >-server</B
3248 ></SPAN
3249 > and <SPAN
3250 CLASS="bold"
3251 ><B
3252 CLASS="emphasis"
3253 >-partition</B
3254 ></SPAN
3255 > arguments
3256           respectively. However, if it is possible that you need to move the volume in future, it is best to use the regular
3257           expression <SPAN
3258 CLASS="bold"
3259 ><B
3260 CLASS="emphasis"
3261 >.*</B
3262 ></SPAN
3263 > for the machine and partition name.</P
3264 ></LI
3265 ></UL
3266 ></P
3267 ><P
3268 >As you create volume sets, define groups of volumes you want to dump to the same tape at the same time (for example,
3269     weekly or daily) and in the same manner (fully or incrementally). In general, a volume set that includes volumes with similar
3270     contents (as indicated by similar names) is more useful than one that includes volumes that share a common location, especially
3271     if you often move volumes for load-balancing or space reasons. Most often, then, it is appropriate to use the regular expression
3272     <SPAN
3273 CLASS="bold"
3274 ><B
3275 CLASS="emphasis"
3276 >.*</B
3277 ></SPAN
3278 > (period followed by a backslash) for the <SPAN
3279 CLASS="bold"
3280 ><B
3281 CLASS="emphasis"
3282 >-server</B
3283 ></SPAN
3284 > and
3285     <SPAN
3286 CLASS="bold"
3287 ><B
3288 CLASS="emphasis"
3289 >-partition</B
3290 ></SPAN
3291 > arguments to the <SPAN
3292 CLASS="bold"
3293 ><B
3294 CLASS="emphasis"
3295 >backup addvolentry</B
3296 ></SPAN
3297 > command.</P
3298 ><P
3299 >It is generally more efficient to include a limited number of volumes in a volume entry. Dumps of a volume set that
3300     includes a large number of volume can take a long time to complete, increasing the possibility that the operation fails due to a
3301     service interruption or outage.</P
3302 ><P
3303 >To remove a volume entry from a volume set, use the <SPAN
3304 CLASS="bold"
3305 ><B
3306 CLASS="emphasis"
3307 >backup delvolentry</B
3308 ></SPAN
3309 > command. To remove
3310     a volume set and all of its component volume entries from the Backup Database, use the <SPAN
3311 CLASS="bold"
3312 ><B
3313 CLASS="emphasis"
3314 >backup
3315     delvolset</B
3316 ></SPAN
3317 > command. To display the volume entries in a volume set, use the <SPAN
3318 CLASS="bold"
3319 ><B
3320 CLASS="emphasis"
3321 >backup
3322     listvolsets</B
3323 ></SPAN
3324 > command.</P
3325 ><P
3326 >By default, a Backup Database record is created for the new volume set. Sometimes it is convenient to create volume sets
3327     without recording them permanently in the Backup Database, for example when using the <SPAN
3328 CLASS="bold"
3329 ><B
3330 CLASS="emphasis"
3331 >backup
3332     volsetrestore</B
3333 ></SPAN
3334 > command to restore a group of volumes that were not necessarily backed up together (for further
3335     discussion, see <A
3336 HREF="c15383.html#HDRWQ312"
3337 >Using the backup volsetrestore Command</A
3338 >). To create a
3339     <SPAN
3340 CLASS="emphasis"
3341 ><I
3342 CLASS="emphasis"
3343 >temporary</I
3344 ></SPAN
3345 > volume set, include the <SPAN
3346 CLASS="bold"
3347 ><B
3348 CLASS="emphasis"
3349 >-temporary</B
3350 ></SPAN
3351 > flag to the <SPAN
3352 CLASS="bold"
3353 ><B
3354 CLASS="emphasis"
3355 >backup addvolset</B
3356 ></SPAN
3357 > command. A temporary volume set exists only during the lifetime of the current
3358     interactive session, so the flag is effective only when used during an interactive session (opened by issuing the <SPAN
3359 CLASS="bold"
3360 ><B
3361 CLASS="emphasis"
3362 >backup (interactive)</B
3363 ></SPAN
3364 > command). You can use the <SPAN
3365 CLASS="bold"
3366 ><B
3367 CLASS="emphasis"
3368 >backup delvolset</B
3369 ></SPAN
3370 > command
3371     to delete a temporary volume set before the interactive session ends, if you wish, but as noted it is automatically deleted when
3372     you end the session. One advantage of temporary volume sets is that the <SPAN
3373 CLASS="bold"
3374 ><B
3375 CLASS="emphasis"
3376 >backup addvolset</B
3377 ></SPAN
3378 >
3379     command, and any <SPAN
3380 CLASS="bold"
3381 ><B
3382 CLASS="emphasis"
3383 >backup addvolentry</B
3384 ></SPAN
3385 > commands subsequently used to add volume entries to it,
3386     complete more quickly than for regular volume sets, because you are not creating any Backup Database records.</P
3387 ><DIV
3388 CLASS="sect2"
3389 ><H2
3390 CLASS="sect2"
3391 ><A
3392 NAME="Header_291"
3393 >To create a volume set</A
3394 ></H2
3395 ><OL
3396 TYPE="1"
3397 ><LI
3398 ><P
3399 >Verify that you are authenticated as a user listed in the <SPAN
3400 CLASS="bold"
3401 ><B
3402 CLASS="emphasis"
3403 >/usr/afs/etc/UserList</B
3404 ></SPAN
3405 >
3406           file. If necessary, issue the <SPAN
3407 CLASS="bold"
3408 ><B
3409 CLASS="emphasis"
3410 >bos listusers</B
3411 ></SPAN
3412 > command, which is fully described in <A
3413 HREF="c32432.html#HDRWQ593"
3414 >To display the users in the UserList file</A
3415 >. <PRE
3416 CLASS="programlisting"
3417 >&#13;   % <SPAN
3418 CLASS="bold"
3419 ><B
3420 CLASS="emphasis"
3421 >bos listusers</B
3422 ></SPAN
3423 > &#60;<VAR
3424 CLASS="replaceable"
3425 >machine name</VAR
3426 >&#62;
3427 </PRE
3428 ></P
3429 ></LI
3430 ><LI
3431 ><P
3432 ><SPAN
3433 CLASS="bold"
3434 ><B
3435 CLASS="emphasis"
3436 >(Optional)</B
3437 ></SPAN
3438 > Issue the <SPAN
3439 CLASS="bold"
3440 ><B
3441 CLASS="emphasis"
3442 >backup</B
3443 ></SPAN
3444 > command to enter
3445           interactive mode. If you are going to define volume entries right away with the <SPAN
3446 CLASS="bold"
3447 ><B
3448 CLASS="emphasis"
3449 >backup
3450           addvolentry</B
3451 ></SPAN
3452 > command, this eliminates the need to surround metacharacter expressions with double quotes. You
3453           must enter interactive mode if creating a temporary volume set. <PRE
3454 CLASS="programlisting"
3455 >&#13;   % <SPAN
3456 CLASS="bold"
3457 ><B
3458 CLASS="emphasis"
3459 >backup</B
3460 ></SPAN
3461 >
3462 </PRE
3463 ></P
3464 ></LI
3465 ><LI
3466 ><P
3467 >Issue the <SPAN
3468 CLASS="bold"
3469 ><B
3470 CLASS="emphasis"
3471 >(backup) addvolset</B
3472 ></SPAN
3473 > command to create the volume set. You must then issue
3474           the <SPAN
3475 CLASS="bold"
3476 ><B
3477 CLASS="emphasis"
3478 >(backup) addvolentry</B
3479 ></SPAN
3480 > command to define volume entries in it. <PRE
3481 CLASS="programlisting"
3482 >&#13;   backup&#62;  <SPAN
3483 CLASS="bold"
3484 ><B
3485 CLASS="emphasis"
3486 >addvolset</B
3487 ></SPAN
3488 > &#60;<VAR
3489 CLASS="replaceable"
3490 >volume set name</VAR
3491 >&#62; [<SPAN
3492 CLASS="bold"
3493 ><B
3494 CLASS="emphasis"
3495 >-temporary</B
3496 ></SPAN
3497 >]
3498 </PRE
3499 ></P
3500 ><P
3501 >where <DIV
3502 CLASS="variablelist"
3503 ><DL
3504 ><DT
3505 ><SPAN
3506 CLASS="bold"
3507 ><B
3508 CLASS="emphasis"
3509 >addvols</B
3510 ></SPAN
3511 ></DT
3512 ><DD
3513 ><P
3514 >Is the shortest acceptable abbreviation of <SPAN
3515 CLASS="bold"
3516 ><B
3517 CLASS="emphasis"
3518 >addvolset</B
3519 ></SPAN
3520 >.</P
3521 ></DD
3522 ><DT
3523 ><SPAN
3524 CLASS="bold"
3525 ><B
3526 CLASS="emphasis"
3527 >volume set name</B
3528 ></SPAN
3529 ></DT
3530 ><DD
3531 ><P
3532 >Names the volume set. The name can include no more than 31 characters, cannot include periods, and must be
3533                   unique within the Backup Database. (A temporary volume set can have the same name as an existing permanent volume
3534                   set, but this is not recommended because of the confusion it can cause.)</P
3535 ></DD
3536 ><DT
3537 ><SPAN
3538 CLASS="bold"
3539 ><B
3540 CLASS="emphasis"
3541 >-temporary</B
3542 ></SPAN
3543 ></DT
3544 ><DD
3545 ><P
3546 >Creates a temporary volume set, which exists only during the current interactive session.</P
3547 ></DD
3548 ></DL
3549 ></DIV
3550 ></P
3551 ></LI
3552 ></OL
3553 ></DIV
3554 ><DIV
3555 CLASS="sect2"
3556 ><H2
3557 CLASS="sect2"
3558 ><A
3559 NAME="Header_292"
3560 >To add a volume entry to a volume set</A
3561 ></H2
3562 ><OL
3563 TYPE="1"
3564 ><LI
3565 ><P
3566 >Verify that you are authenticated as a user listed in the <SPAN
3567 CLASS="bold"
3568 ><B
3569 CLASS="emphasis"
3570 >/usr/afs/etc/UserList</B
3571 ></SPAN
3572 >
3573           file. If necessary, issue the <SPAN
3574 CLASS="bold"
3575 ><B
3576 CLASS="emphasis"
3577 >bos listusers</B
3578 ></SPAN
3579 > command, which is fully described in <A
3580 HREF="c32432.html#HDRWQ593"
3581 >To display the users in the UserList file</A
3582 >. <PRE
3583 CLASS="programlisting"
3584 >&#13;   % <SPAN
3585 CLASS="bold"
3586 ><B
3587 CLASS="emphasis"
3588 >bos listusers</B
3589 ></SPAN
3590 > &#60;<VAR
3591 CLASS="replaceable"
3592 >machine name</VAR
3593 >&#62;
3594 </PRE
3595 ></P
3596 ></LI
3597 ><LI
3598 ><P
3599 ><SPAN
3600 CLASS="bold"
3601 ><B
3602 CLASS="emphasis"
3603 >(Optional)</B
3604 ></SPAN
3605 > Issue the <SPAN
3606 CLASS="bold"
3607 ><B
3608 CLASS="emphasis"
3609 >backup</B
3610 ></SPAN
3611 > command to enter
3612           interactive mode if you have not already. This makes it simpler to use metacharacter expressions, because you do not need
3613           to surround them with double quotes. If you are adding entries to a temporary volume set, you must already have entered
3614           interactive mode before creating the volume set. <PRE
3615 CLASS="programlisting"
3616 >&#13;   % <SPAN
3617 CLASS="bold"
3618 ><B
3619 CLASS="emphasis"
3620 >backup</B
3621 ></SPAN
3622 >
3623 </PRE
3624 ></P
3625 ></LI
3626 ><LI
3627 ><P
3628 >Issue the <SPAN
3629 CLASS="bold"
3630 ><B
3631 CLASS="emphasis"
3632 >(backup) addvolentry</B
3633 ></SPAN
3634 > command to define volume entries in an existing
3635           volume set. The Backup System assigns each volume entry an index within the volume set, starting with 1 (one).
3636           <PRE
3637 CLASS="programlisting"
3638 >&#13;   backup&#62; <SPAN
3639 CLASS="bold"
3640 ><B
3641 CLASS="emphasis"
3642 >addvolentry  -name</B
3643 ></SPAN
3644 > &#60;<VAR
3645 CLASS="replaceable"
3646 >volume set name</VAR
3647 >&#62;  \
3648                         <SPAN
3649 CLASS="bold"
3650 ><B
3651 CLASS="emphasis"
3652 >-server</B
3653 ></SPAN
3654 > &#60;<VAR
3655 CLASS="replaceable"
3656 >machine name</VAR
3657 >&#62;  \
3658                         <SPAN
3659 CLASS="bold"
3660 ><B
3661 CLASS="emphasis"
3662 >-partition</B
3663 ></SPAN
3664 > &#60;<VAR
3665 CLASS="replaceable"
3666 >partition name</VAR
3667 >&#62;  \
3668                         <SPAN
3669 CLASS="bold"
3670 ><B
3671 CLASS="emphasis"
3672 >-volumes</B
3673 ></SPAN
3674 > &#60;<VAR
3675 CLASS="replaceable"
3676 >volume name (regular expression)</VAR
3677 >&#62;
3678 </PRE
3679 ></P
3680 ><P
3681 >where <DIV
3682 CLASS="variablelist"
3683 ><DL
3684 ><DT
3685 ><SPAN
3686 CLASS="bold"
3687 ><B
3688 CLASS="emphasis"
3689 >addvole</B
3690 ></SPAN
3691 ></DT
3692 ><DD
3693 ><P
3694 >Is the shortest acceptable abbreviation of <SPAN
3695 CLASS="bold"
3696 ><B
3697 CLASS="emphasis"
3698 >addvolentry</B
3699 ></SPAN
3700 >.</P
3701 ></DD
3702 ><DT
3703 ><SPAN
3704 CLASS="bold"
3705 ><B
3706 CLASS="emphasis"
3707 >-name</B
3708 ></SPAN
3709 ></DT
3710 ><DD
3711 ><P
3712 >Names the volume set to which to add the volume entry. It must already exist (use the <SPAN
3713 CLASS="bold"
3714 ><B
3715 CLASS="emphasis"
3716 >backup addvolset</B
3717 ></SPAN
3718 > command to create it).</P
3719 ></DD
3720 ><DT
3721 ><SPAN
3722 CLASS="bold"
3723 ><B
3724 CLASS="emphasis"
3725 >-server</B
3726 ></SPAN
3727 ></DT
3728 ><DD
3729 ><P
3730 >Defines the set of one or more file server machines that house the volumes in the volume entry. Provide
3731                   either one fully-qualified hostname (such as <SPAN
3732 CLASS="bold"
3733 ><B
3734 CLASS="emphasis"
3735 >fs1.abc.com</B
3736 ></SPAN
3737 >) or the metacharacter
3738                   expression <SPAN
3739 CLASS="bold"
3740 ><B
3741 CLASS="emphasis"
3742 >.*</B
3743 ></SPAN
3744 > (period and asterisk), which matches all machine names in the
3745                   VLDB.</P
3746 ></DD
3747 ><DT
3748 ><SPAN
3749 CLASS="bold"
3750 ><B
3751 CLASS="emphasis"
3752 >-partition</B
3753 ></SPAN
3754 ></DT
3755 ><DD
3756 ><P
3757 >Defines the set of one or more partitions that house the volumes in the volume entry. Provide either one
3758                   complete partition name (such as <SPAN
3759 CLASS="bold"
3760 ><B
3761 CLASS="emphasis"
3762 >/vicepa</B
3763 ></SPAN
3764 >) or the metacharacter expression
3765                   <SPAN
3766 CLASS="bold"
3767 ><B
3768 CLASS="emphasis"
3769 >.*</B
3770 ></SPAN
3771 > (period and asterisk), which matches all partition names.</P
3772 ></DD
3773 ><DT
3774 ><SPAN
3775 CLASS="bold"
3776 ><B
3777 CLASS="emphasis"
3778 >-volumes</B
3779 ></SPAN
3780 ></DT
3781 ><DD
3782 ><P
3783 >Defines the set of one or more volumes included in the volume entry, identifying them by name. This argument
3784                   can include a combination of alphanumeric characters and one or more of the metacharacter expressions discussed in
3785                   the introductory material in this section.</P
3786 ></DD
3787 ></DL
3788 ></DIV
3789 ></P
3790 ></LI
3791 ></OL
3792 ></DIV
3793 ><DIV
3794 CLASS="sect2"
3795 ><H2
3796 CLASS="sect2"
3797 ><A
3798 NAME="HDRWQ266"
3799 >To display volume sets and volume entries</A
3800 ></H2
3801 ><OL
3802 TYPE="1"
3803 ><LI
3804 ><P
3805 >Issue the <SPAN
3806 CLASS="bold"
3807 ><B
3808 CLASS="emphasis"
3809 >backup listvolsets</B
3810 ></SPAN
3811 > command to display the volume entries in a specific
3812           volume set or all of them. If you are displaying a temporary volume set, you must still be in the interactive session in
3813           which you created it. <PRE
3814 CLASS="programlisting"
3815 >&#13;   % <SPAN
3816 CLASS="bold"
3817 ><B
3818 CLASS="emphasis"
3819 >backup listvolsets</B
3820 ></SPAN
3821 > [&#60;<VAR
3822 CLASS="replaceable"
3823 >volume set name</VAR
3824 >&#62;]
3825 </PRE
3826 ></P
3827 ><P
3828 >where <DIV
3829 CLASS="variablelist"
3830 ><DL
3831 ><DT
3832 ><SPAN
3833 CLASS="bold"
3834 ><B
3835 CLASS="emphasis"
3836 >listv</B
3837 ></SPAN
3838 ></DT
3839 ><DD
3840 ><P
3841 >Is the shortest acceptable abbreviation of <SPAN
3842 CLASS="bold"
3843 ><B
3844 CLASS="emphasis"
3845 >listvolsets</B
3846 ></SPAN
3847 >.</P
3848 ></DD
3849 ><DT
3850 ><SPAN
3851 CLASS="bold"
3852 ><B
3853 CLASS="emphasis"
3854 >volume set name</B
3855 ></SPAN
3856 ></DT
3857 ><DD
3858 ><P
3859 >Names the volume set to display. Omit this argument to display all defined volume sets.</P
3860 ></DD
3861 ></DL
3862 ></DIV
3863 ></P
3864 ><P
3865 >The output from the command uses the wildcard notation used when the volume entries were created. The string
3866           <SAMP
3867 CLASS="computeroutput"
3868 >(temporary)</SAMP
3869 > marks a temporary volume set. The following example displays all three of the
3870           volume sets defined in a cell's Backup Database, plus a temporary volume set <SPAN
3871 CLASS="bold"
3872 ><B
3873 CLASS="emphasis"
3874 >pat+jones</B
3875 ></SPAN
3876 >
3877           created during the current interactive session:</P
3878 ><PRE
3879 CLASS="programlisting"
3880 >&#13;   backup&#62; <SPAN
3881 CLASS="bold"
3882 ><B
3883 CLASS="emphasis"
3884 >listv</B
3885 ></SPAN
3886 >
3887    Volume set pat+jones (temporary):
3888      Entry 1: server fs1.abc.com, partition /vicepe, volumes: user.pat.backup
3889      Entry 2: server fs5.abc.com, partition /viceph, volumes: user.jones.backup
3890    Volume set user:
3891      Entry 1: server .*, partition .*, volumes: user.*\.backup
3892    Volume set sun:
3893      Entry 1: server .*, partition .*, volumes: sun4x_55\..*
3894      Entry 2: server .*, partition .*, volumes: sun4x_56\..*
3895    Volume set rs:
3896      Entry 1: server .*, partition .*, volumes: rs_aix42\..*
3897 </PRE
3898 ></LI
3899 ></OL
3900 ></DIV
3901 ><DIV
3902 CLASS="sect2"
3903 ><H2
3904 CLASS="sect2"
3905 ><A
3906 NAME="Header_294"
3907 >To delete a volume set</A
3908 ></H2
3909 ><OL
3910 TYPE="1"
3911 ><LI
3912 ><P
3913 >Verify that you are authenticated as a user listed in the <SPAN
3914 CLASS="bold"
3915 ><B
3916 CLASS="emphasis"
3917 >/usr/afs/etc/UserList</B
3918 ></SPAN
3919 >
3920           file. If necessary, issue the <SPAN
3921 CLASS="bold"
3922 ><B
3923 CLASS="emphasis"
3924 >bos listusers</B
3925 ></SPAN
3926 > command, which is fully described in <A
3927 HREF="c32432.html#HDRWQ593"
3928 >To display the users in the UserList file</A
3929 >. <PRE
3930 CLASS="programlisting"
3931 >&#13;   % <SPAN
3932 CLASS="bold"
3933 ><B
3934 CLASS="emphasis"
3935 >bos listusers</B
3936 ></SPAN
3937 > &#60;<VAR
3938 CLASS="replaceable"
3939 >machine name</VAR
3940 >&#62;
3941 </PRE
3942 ></P
3943 ></LI
3944 ><LI
3945 ><P
3946 >Issue the <SPAN
3947 CLASS="bold"
3948 ><B
3949 CLASS="emphasis"
3950 >backup delvolset</B
3951 ></SPAN
3952 > command to delete one or more volume sets and all of the
3953           component volume entries in them. If you are deleting a temporary volume set, you must still be in the interactive session
3954           in which you created it. <PRE
3955 CLASS="programlisting"
3956 >&#13;   % <SPAN
3957 CLASS="bold"
3958 ><B
3959 CLASS="emphasis"
3960 >backup delvolset</B
3961 ></SPAN
3962 > &#60;<VAR
3963 CLASS="replaceable"
3964 >volume set name</VAR
3965 >&#62;+
3966 </PRE
3967 ></P
3968 ><P
3969 >where <DIV
3970 CLASS="variablelist"
3971 ><DL
3972 ><DT
3973 ><SPAN
3974 CLASS="bold"
3975 ><B
3976 CLASS="emphasis"
3977 >delvols</B
3978 ></SPAN
3979 ></DT
3980 ><DD
3981 ><P
3982 >Is the shortest acceptable abbreviation of <SPAN
3983 CLASS="bold"
3984 ><B
3985 CLASS="emphasis"
3986 >delvolset</B
3987 ></SPAN
3988 >.</P
3989 ></DD
3990 ><DT
3991 ><SPAN
3992 CLASS="bold"
3993 ><B
3994 CLASS="emphasis"
3995 >volume set name</B
3996 ></SPAN
3997 ></DT
3998 ><DD
3999 ><P
4000 >Names each volume set to delete.</P
4001 ></DD
4002 ></DL
4003 ></DIV
4004 ></P
4005 ></LI
4006 ></OL
4007 ></DIV
4008 ><DIV
4009 CLASS="sect2"
4010 ><H2
4011 CLASS="sect2"
4012 ><A
4013 NAME="Header_295"
4014 >To delete a volume entry from a volume set</A
4015 ></H2
4016 ><OL
4017 TYPE="1"
4018 ><LI
4019 ><P
4020 >Verify that you are authenticated as a user listed in the <SPAN
4021 CLASS="bold"
4022 ><B
4023 CLASS="emphasis"
4024 >/usr/afs/etc/UserList</B
4025 ></SPAN
4026 >
4027           file. If necessary, issue the <SPAN
4028 CLASS="bold"
4029 ><B
4030 CLASS="emphasis"
4031 >bos listusers</B
4032 ></SPAN
4033 > command, which is fully described in <A
4034 HREF="c32432.html#HDRWQ593"
4035 >To display the users in the UserList file</A
4036 >. <PRE
4037 CLASS="programlisting"
4038 >&#13;   % <SPAN
4039 CLASS="bold"
4040 ><B
4041 CLASS="emphasis"
4042 >bos listusers</B
4043 ></SPAN
4044 > &#60;<VAR
4045 CLASS="replaceable"
4046 >machine name</VAR
4047 >&#62;
4048 </PRE
4049 ></P
4050 ></LI
4051 ><LI
4052 ><P
4053 >Issue the <SPAN
4054 CLASS="bold"
4055 ><B
4056 CLASS="emphasis"
4057 >backup</B
4058 ></SPAN
4059 > command to enter interactive mode. <PRE
4060 CLASS="programlisting"
4061 >&#13;   % <SPAN
4062 CLASS="bold"
4063 ><B
4064 CLASS="emphasis"
4065 >backup</B
4066 ></SPAN
4067 >
4068 </PRE
4069 ></P
4070 ></LI
4071 ><LI
4072 ><P
4073 >If the volume set includes more than one volume entry, issue the <SPAN
4074 CLASS="bold"
4075 ><B
4076 CLASS="emphasis"
4077 >(backup)
4078           listvolsets</B
4079 ></SPAN
4080 > command to display the index number associated with each one (if there is only one volume entry,
4081           its index is 1). For a more detailed description of the command's output, see <A
4082 HREF="c12776.html#HDRWQ266"
4083 >To display volume
4084           sets and volume entries</A
4085 >. <PRE
4086 CLASS="programlisting"
4087 >&#13;   backup&#62; <SPAN
4088 CLASS="bold"
4089 ><B
4090 CLASS="emphasis"
4091 >listvolsets</B
4092 ></SPAN
4093 > &#60;<VAR
4094 CLASS="replaceable"
4095 >volume set name</VAR
4096 >&#62;
4097 </PRE
4098 ></P
4099 ><P
4100 >where <DIV
4101 CLASS="variablelist"
4102 ><DL
4103 ><DT
4104 ><SPAN
4105 CLASS="bold"
4106 ><B
4107 CLASS="emphasis"
4108 >listv</B
4109 ></SPAN
4110 ></DT
4111 ><DD
4112 ><P
4113 >Is the shortest acceptable abbreviation of <SPAN
4114 CLASS="bold"
4115 ><B
4116 CLASS="emphasis"
4117 >listvolsets</B
4118 ></SPAN
4119 >.</P
4120 ></DD
4121 ><DT
4122 ><SPAN
4123 CLASS="bold"
4124 ><B
4125 CLASS="emphasis"
4126 >volume set name</B
4127 ></SPAN
4128 ></DT
4129 ><DD
4130 ><P
4131 >Names the volume set for which to display volume entries.</P
4132 ></DD
4133 ></DL
4134 ></DIV
4135 ></P
4136 ></LI
4137 ><LI
4138 ><P
4139 >Issue the <SPAN
4140 CLASS="bold"
4141 ><B
4142 CLASS="emphasis"
4143 >(backup) delvolentry</B
4144 ></SPAN
4145 > command to delete the volume entry. <PRE
4146 CLASS="programlisting"
4147 >&#13;   backup&#62; <SPAN
4148 CLASS="bold"
4149 ><B
4150 CLASS="emphasis"
4151 >delvolentry</B
4152 ></SPAN
4153 > &#60;<VAR
4154 CLASS="replaceable"
4155 >volume set name</VAR
4156 >&#62;  &#60;<VAR
4157 CLASS="replaceable"
4158 >volume entry index</VAR
4159 >&#62;
4160 </PRE
4161 ></P
4162 ><P
4163 >where <DIV
4164 CLASS="variablelist"
4165 ><DL
4166 ><DT
4167 ><SPAN
4168 CLASS="bold"
4169 ><B
4170 CLASS="emphasis"
4171 >delvole</B
4172 ></SPAN
4173 ></DT
4174 ><DD
4175 ><P
4176 >Is the shortest acceptable abbreviation of <SPAN
4177 CLASS="bold"
4178 ><B
4179 CLASS="emphasis"
4180 >delvolentry</B
4181 ></SPAN
4182 >.</P
4183 ></DD
4184 ><DT
4185 ><SPAN
4186 CLASS="bold"
4187 ><B
4188 CLASS="emphasis"
4189 >volume set name</B
4190 ></SPAN
4191 ></DT
4192 ><DD
4193 ><P
4194 >Names the volume set from which to delete a volume entry.</P
4195 ></DD
4196 ><DT
4197 ><SPAN
4198 CLASS="bold"
4199 ><B
4200 CLASS="emphasis"
4201 >volume entry index</B
4202 ></SPAN
4203 ></DT
4204 ><DD
4205 ><P
4206 >Specifies the index number of the volume entry to delete.</P
4207 ></DD
4208 ></DL
4209 ></DIV
4210 ></P
4211 ></LI
4212 ></OL
4213 ></DIV
4214 ></DIV
4215 ><DIV
4216 CLASS="sect1"
4217 ><H1
4218 CLASS="sect1"
4219 ><A
4220 NAME="HDRWQ267"
4221 >Defining and Displaying the Dump Hierarchy</A
4222 ></H1
4223 ><P
4224 >A dump hierarchy is a logical structure in the Backup Database that defines the relationship between full and incremental
4225     dumps; that is, it defines which dump serves as the parent for an incremental dump. Each individual component of a hierarchy is
4226     a dump level.</P
4227 ><P
4228 >As you define dump levels with the <SPAN
4229 CLASS="bold"
4230 ><B
4231 CLASS="emphasis"
4232 >backup adddump</B
4233 ></SPAN
4234 > command, keep the following rules and
4235     suggestions in mind: <UL
4236 ><LI
4237 ><P
4238 >Each full dump level is the top level of a hierarchy. You can create as many hierarchies as you need to dump
4239           different volume sets on different schedules.</P
4240 ></LI
4241 ><LI
4242 ><P
4243 >The name of a full dump level consists of an initial slash (<SPAN
4244 CLASS="bold"
4245 ><B
4246 CLASS="emphasis"
4247 >/</B
4248 ></SPAN
4249 >), followed by a
4250           string of up to 28 alphanumeric characters.</P
4251 ></LI
4252 ><LI
4253 ><P
4254 >The name of an incremental dump level resembles a pathname, starting with the name of a full dump level, then the
4255           first incremental level, and so on, down to the final incremental level. Precede each level name with a slash to separate
4256           it from the preceding level. Like the full level, each component level in the name can have up to 28 alphanumeric
4257           characters, not including the slash.</P
4258 ></LI
4259 ><LI
4260 ><P
4261 >A hierarchy can have any have any number of levels, but the maximum length of a complete dump level name is 256
4262           characters, including the slashes.</P
4263 ></LI
4264 ><LI
4265 ><P
4266 >Before defining a given incremental level, you must define all of the levels above it in the hierarchy.</P
4267 ></LI
4268 ><LI
4269 ><P
4270 >Do not use the period (<SPAN
4271 CLASS="bold"
4272 ><B
4273 CLASS="emphasis"
4274 >.</B
4275 ></SPAN
4276 >) in dump level names. The Backup System uses the period as
4277           the separator between a dump's volume set name and dump level name when it creates the dump name and AFS tape name. Any
4278           other alphanumeric and punctuation characters are allowed, but it is best to avoid metacharacters. If you include a
4279           metacharacter, you must precede it with a backslash (<SPAN
4280 CLASS="bold"
4281 ><B
4282 CLASS="emphasis"
4283 >\</B
4284 ></SPAN
4285 >) or surround the entire dump level
4286           name with double quotes (<SPAN
4287 CLASS="bold"
4288 ><B
4289 CLASS="emphasis"
4290 >" "</B
4291 ></SPAN
4292 >).</P
4293 ></LI
4294 ><LI
4295 ><P
4296 >Naming dump levels for days or other actual time points reminds you when to perform dumps, and makes it easier to
4297           track the relationship between dumps performed at different levels. However, the names have no meaning to the Backup
4298           System: it does not automatically create dumps according to the names, and does not prevent you from, for example, using
4299           the <SPAN
4300 CLASS="bold"
4301 ><B
4302 CLASS="emphasis"
4303 >/sunday</B
4304 ></SPAN
4305 > level when creating a dump on a Tuesday.</P
4306 ></LI
4307 ><LI
4308 ><P
4309 >It is best not to use the same name for more than one component level in a hierarchy, because it means the resulting
4310           dump name no longer indicates which level was used. For example, if you name a dump level <SPAN
4311 CLASS="bold"
4312 ><B
4313 CLASS="emphasis"
4314 >/full/incr/incr</B
4315 ></SPAN
4316 >, then the dump name and AFS tape name that result from dumping a volume set at the
4317           first incremental level (<SPAN
4318 CLASS="bold"
4319 ><B
4320 CLASS="emphasis"
4321 >/full/incr</B
4322 ></SPAN
4323 >) look the same as the names that result from dumping
4324           at the second incremental level (<SPAN
4325 CLASS="bold"
4326 ><B
4327 CLASS="emphasis"
4328 >/full/incr/incr</B
4329 ></SPAN
4330 >).</P
4331 ></LI
4332 ><LI
4333 ><P
4334 >Individual levels in different hierarchies can have the same name, but the complete pathnames must be unique. For
4335           example, <SPAN
4336 CLASS="bold"
4337 ><B
4338 CLASS="emphasis"
4339 >/sunday1/monday</B
4340 ></SPAN
4341 > and <SPAN
4342 CLASS="bold"
4343 ><B
4344 CLASS="emphasis"
4345 >/sunday2/monday</B
4346 ></SPAN
4347 > share the
4348           same name at the final level, but are unique because they have different names at the full level (belong to different
4349           hierarchies). However, using the same name in multiple hierarchies means that dump and AFS tape names do not unambiguously
4350           indicate which hierarchy was used.</P
4351 ></LI
4352 ></UL
4353 ></P
4354 ><P
4355 >The following example shows three hierarchies. Each begins with a full dump at the top: <SPAN
4356 CLASS="bold"
4357 ><B
4358 CLASS="emphasis"
4359 >sunday1</B
4360 ></SPAN
4361 > for the first hierarchy, <SPAN
4362 CLASS="bold"
4363 ><B
4364 CLASS="emphasis"
4365 >sunday2</B
4366 ></SPAN
4367 > for the second hierarchy, and
4368     <SPAN
4369 CLASS="bold"
4370 ><B
4371 CLASS="emphasis"
4372 >sunday_bin</B
4373 ></SPAN
4374 > for the third hierarchy. In all three hierarchies, each of the other dump levels is
4375     an incremental level.</P
4376 ><PRE
4377 CLASS="programlisting"
4378 >&#13;   /sunday1
4379            /monday
4380            /tuesday
4381            /wednesday
4382            /thursday
4383            /friday
4384    /sunday2
4385            /monday
4386                   /tuesday
4387                           /wednesday
4388                                     /thursday
4389                                              /friday
4390     /sunday_bin
4391                /monday
4392                       /wednesday
4393                                 /friday
4394 </PRE
4395 ><P
4396 >In the first hierarchy, each incremental dump level refers to the full level <SPAN
4397 CLASS="bold"
4398 ><B
4399 CLASS="emphasis"
4400 >/sunday1</B
4401 ></SPAN
4402 > as
4403     its parent. When (for example) you dump a volume set at the <SPAN
4404 CLASS="bold"
4405 ><B
4406 CLASS="emphasis"
4407 >/sunday1/wednesday</B
4408 ></SPAN
4409 > level, it
4410     includes data that has changed since the volume set was dumped at the <SPAN
4411 CLASS="bold"
4412 ><B
4413 CLASS="emphasis"
4414 >/sunday1</B
4415 ></SPAN
4416 > level.</P
4417 ><P
4418 >In contrast, each incremental dump level in the second hierarchy refers to the immediately preceding dump level as its
4419     parent. When you dump a volume set at the corresponding level in the second hierarchy (<SPAN
4420 CLASS="bold"
4421 ><B
4422 CLASS="emphasis"
4423 >/sunday2/monday/tuesday/wednesday</B
4424 ></SPAN
4425 >), the dump includes only data that has changed since the volume set was
4426     dumped at the <SPAN
4427 CLASS="bold"
4428 ><B
4429 CLASS="emphasis"
4430 >/sunday2/monday/tuesday</B
4431 ></SPAN
4432 > level (presumably the day before). Assuming you create
4433     dumps on the indicated days, an incremental dump made using this hierarchy contains less data than an incremental dump made at
4434     the corresponding level in the first hierarchy.</P
4435 ><P
4436 >The third hierarchy is more appropriate for dumping volumes for which a daily backup is excessive because the data does
4437     not change often (for example, system binaries).</P
4438 ><DIV
4439 CLASS="sect2"
4440 ><H2
4441 CLASS="sect2"
4442 ><A
4443 NAME="HDRWQ268"
4444 >Creating a Tape Recycling Schedule</A
4445 ></H2
4446 ><P
4447 >If your cell is like most cells, you have a limited amount of room for storing backup tapes and a limited budget for new
4448       tapes. The easiest solution is to recycle tapes by overwriting them when you no longer need the backup data on them. The
4449       Backup System helps you implement a recycling schedule by enabling you to associate an expiration date with each dump level.
4450       The expiration date defines when a dump created at that level expires. Until that time the Backup System refuses to overwrite
4451       a tape that contains the dump. Thus, assigning expiration dates automatically determines how you recycle tapes.</P
4452 ><P
4453 >When designing a tape-recycling schedule, you must decide how far in the past and to what level of precision you want to
4454       guarantee access to backed up data. For instance, if you decide to guarantee that you can restore a user's home volume to its
4455       state on any given day in the last two weeks, you cannot recycle the tape that contains a given daily dump for at least two
4456       weeks after you create it. Similarly, if you decide to guarantee that you can restore home volumes to their state at the
4457       beginning of any given week in the last month, you cannot recycle the tapes in a dump set containing a weekly dump for at
4458       least four weeks. The following example dump hierarchy implements this recycling schedule by setting the expiration date for
4459       each daily incremental dump to 13 days and the expiration date of the weekly full dumps to 27 days.</P
4460 ><P
4461 >The tapes used to store dumps created at the daily incremental levels in the <SPAN
4462 CLASS="bold"
4463 ><B
4464 CLASS="emphasis"
4465 >/sunday1</B
4466 ></SPAN
4467 >
4468       hierarchy expire just in time to be recycled for daily dumps in the <SPAN
4469 CLASS="bold"
4470 ><B
4471 CLASS="emphasis"
4472 >/sunday3</B
4473 ></SPAN
4474 > hierarchy (and
4475       vice versa), and there is a similar relationship between the <SPAN
4476 CLASS="bold"
4477 ><B
4478 CLASS="emphasis"
4479 >/sunday2</B
4480 ></SPAN
4481 > and <SPAN
4482 CLASS="bold"
4483 ><B
4484 CLASS="emphasis"
4485 >/sunday4</B
4486 ></SPAN
4487 > hierarchies. Similarly, the tape that houses a full dump at the <SPAN
4488 CLASS="bold"
4489 ><B
4490 CLASS="emphasis"
4491 >/sunday1</B
4492 ></SPAN
4493 > level expires just in time to be used for a full dump on the first Sunday of the following
4494       month.</P
4495 ><PRE
4496 CLASS="programlisting"
4497 >&#13;   /sunday1   expires in 27d
4498            /monday1  expires in 13d
4499            /tuesday1  expires in 13d
4500            /wednesday1  expires in 13d
4501            /thursday1  expires in 13d
4502            /friday1  expires in 13d
4503    /sunday2   expires in 27d
4504            /monday2  expires in 13d
4505            /tuesday2  expires in 13d
4506            /wednesday2  expires in 13d
4507            /thursday2  expires in 13d
4508            /friday2  expires in 13d
4509    /sunday3   expires in 27d
4510            /monday1  expires in 13d
4511            /tuesday1  expires in 13d
4512            /wednesday1  expires in 13d
4513            /thursday1  expires in 13d
4514            /friday1  expires in 13d
4515    /sunday4   expires in 27d
4516            /monday2  expires in 13d
4517            /tuesday2  expires in 13d
4518            /wednesday2  expires in 13d
4519            /thursday2  expires in 13d
4520            /friday2  expires in 13d
4521 </PRE
4522 ><P
4523 >If you use appended dumps in your cell, keep in mind that all dumps in a dump set are subject to the latest (furthest
4524       into the future) expiration date associated with any of the constituent dumps. You cannot recycle any of the tapes that
4525       contain a dump set until all of the dumps have reached their expiration date. See also <A
4526 HREF="c15383.html#HDRWQ299"
4527 >Appending
4528       Dumps to an Existing Dump Set</A
4529 >.</P
4530 ><P
4531 >Most tape manufacturers recommend that you write to a tape a limited number of times, and it is best not to exceed this
4532       limit when recycling tapes. To help you track tape usage, the Backup System records a
4533       <SAMP
4534 CLASS="computeroutput"
4535 >useCount</SAMP
4536 > counter on the tape's label. It increments the counter each time the tape's label is
4537       rewritten (each time you use the <SPAN
4538 CLASS="bold"
4539 ><B
4540 CLASS="emphasis"
4541 >backup labeltape</B
4542 ></SPAN
4543 > or <SPAN
4544 CLASS="bold"
4545 ><B
4546 CLASS="emphasis"
4547 >backup
4548       dump</B
4549 ></SPAN
4550 > command). To display the <SAMP
4551 CLASS="computeroutput"
4552 >useCount</SAMP
4553 > counter, use the <SPAN
4554 CLASS="bold"
4555 ><B
4556 CLASS="emphasis"
4557 >backup readlabel</B
4558 ></SPAN
4559 > or <SPAN
4560 CLASS="bold"
4561 ><B
4562 CLASS="emphasis"
4563 >backup scantape</B
4564 ></SPAN
4565 > command or include the <SPAN
4566 CLASS="bold"
4567 ><B
4568 CLASS="emphasis"
4569 >-id</B
4570 ></SPAN
4571 > and <SPAN
4572 CLASS="bold"
4573 ><B
4574 CLASS="emphasis"
4575 >-verbose</B
4576 ></SPAN
4577 > options when you issue the <SPAN
4578 CLASS="bold"
4579 ><B
4580 CLASS="emphasis"
4581 >backup dumpinfo</B
4582 ></SPAN
4583 > command. For instructions see <A
4584 HREF="c12776.html#HDRWQ272"
4585 >Writing and Reading Tape
4586       Labels</A
4587 > or <A
4588 HREF="c15383.html#HDRWQ302"
4589 >Displaying Backup Dump Records</A
4590 >.</P
4591 ></DIV
4592 ><DIV
4593 CLASS="sect2"
4594 ><H2
4595 CLASS="sect2"
4596 ><A
4597 NAME="HDRWQ269"
4598 >Archiving Tapes</A
4599 ></H2
4600 ><P
4601 >Even if you make extensive use of tape recycling, there is probably some backup data that you need to archive for a long
4602       (or even an indefinite) period of time. You can use the Backup System to archive data on a regular schedule, and you can also
4603       choose to archive data on tapes that you previously expected to recycle.</P
4604 ><P
4605 >If you want to archive data on a regular basis, you can create date-specific dump levels in the dump hierarchy. For
4606       example, if you decide to archive a full dump of all data in your cell at the beginning of each quarter in the year 2000, you
4607       can define the following levels in the dump hierarchy:</P
4608 ><PRE
4609 CLASS="programlisting"
4610 >&#13;   /1Q2000
4611    /2Q2000
4612    /3Q2000
4613    /4Q2000
4614 </PRE
4615 ><P
4616 >If you decide to archive data that is on tapes you previously planned to recycle, you must gather all of the tapes that
4617       contain the relevant dumps, both full and incremental. To avoid accidental erasure, it is best to set the switch on the tapes
4618       that makes them read-only, before placing them in your archive storage area. If the tapes also contain a large amount of
4619       extraneous data that you do not want to archive, you can restore just the relevant data into a new temporary volume, and back
4620       up that volume to the smallest number of tapes possible. One reason to keep a dump set small is to minimize the amount of
4621       irrelevant data in a dump set you end up needing to archive.</P
4622 ><P
4623 >If you do not expect to restore archived data to the file system, you can consider using the <SPAN
4624 CLASS="bold"
4625 ><B
4626 CLASS="emphasis"
4627 >backup deletedump</B
4628 ></SPAN
4629 > command to remove the associated dump records from the Backup Database, which helps
4630       keep it to an efficient size. If you ever need to restore the data, you can use the <SPAN
4631 CLASS="bold"
4632 ><B
4633 CLASS="emphasis"
4634 >-dbadd</B
4635 ></SPAN
4636 >
4637       flag to the <SPAN
4638 CLASS="bold"
4639 ><B
4640 CLASS="emphasis"
4641 >backup scantape</B
4642 ></SPAN
4643 > command to reinsert the dump records into the database. For
4644       instructions, see <A
4645 HREF="c15383.html#HDRWQ305"
4646 >To scan the contents of a tape</A
4647 >.</P
4648 ></DIV
4649 ><DIV
4650 CLASS="sect2"
4651 ><H2
4652 CLASS="sect2"
4653 ><A
4654 NAME="HDRWQ270"
4655 >Defining Expiration Dates</A
4656 ></H2
4657 ><P
4658 >To associate an expiration date with a dump level as you create it, use the <SPAN
4659 CLASS="bold"
4660 ><B
4661 CLASS="emphasis"
4662 >-expires</B
4663 ></SPAN
4664 >
4665       argument to the <SPAN
4666 CLASS="bold"
4667 ><B
4668 CLASS="emphasis"
4669 >backup adddump</B
4670 ></SPAN
4671 > command. To change an existing dump level's expiration date,
4672       use the <SPAN
4673 CLASS="bold"
4674 ><B
4675 CLASS="emphasis"
4676 >-expires</B
4677 ></SPAN
4678 > argument to the <SPAN
4679 CLASS="bold"
4680 ><B
4681 CLASS="emphasis"
4682 >backup setexp</B
4683 ></SPAN
4684 > command.
4685       (Note that it is not possible to change the expiration date of an actual dump that has already been created at that level).
4686       With both commands, you can define an expiration date either in absolute terms (for example, 13 January 2000) or relative
4687       terms (for example, 30 days from when the dump is created). <UL
4688 ><LI
4689 ><P
4690 >To define an absolute expiration date, provide a value for the <SPAN
4691 CLASS="bold"
4692 ><B
4693 CLASS="emphasis"
4694 >-expires</B
4695 ></SPAN
4696 > argument
4697             with the following format: <PRE
4698 CLASS="programlisting"
4699 >&#13;   [<SPAN
4700 CLASS="bold"
4701 ><B
4702 CLASS="emphasis"
4703 >at</B
4704 ></SPAN
4705 >] mm<SPAN
4706 CLASS="bold"
4707 ><B
4708 CLASS="emphasis"
4709 >/</B
4710 ></SPAN
4711 >dd<SPAN
4712 CLASS="bold"
4713 ><B
4714 CLASS="emphasis"
4715 >/</B
4716 ></SPAN
4717 >yyyy [hh<SPAN
4718 CLASS="bold"
4719 ><B
4720 CLASS="emphasis"
4721 >:</B
4722 ></SPAN
4723 >MM]
4724 </PRE
4725 ></P
4726 ><P
4727 >where mm indicates the month, dd the day, and yyyy the year when the dump expires. Valid values for the year fall
4728             in the range <SPAN
4729 CLASS="bold"
4730 ><B
4731 CLASS="emphasis"
4732 >1970</B
4733 ></SPAN
4734 > through <SPAN
4735 CLASS="bold"
4736 ><B
4737 CLASS="emphasis"
4738 >2037</B
4739 ></SPAN
4740 > (the latest possible
4741             date that the UNIX time representation can express is in early 2038). If you provide a time, it must be in 24-hour
4742             format with hh the hours and MM the minutes (for example, <SPAN
4743 CLASS="bold"
4744 ><B
4745 CLASS="emphasis"
4746 >21:50</B
4747 ></SPAN
4748 > is 9:50 p.m.). If you
4749             omit the time, the default is 00:00 hours (12:00 midnight) on the indicated date.</P
4750 ></LI
4751 ><LI
4752 ><P
4753 >To define a relative expiration date, provide a value for the <SPAN
4754 CLASS="bold"
4755 ><B
4756 CLASS="emphasis"
4757 >-expires</B
4758 ></SPAN
4759 > argument
4760             with the following format: <PRE
4761 CLASS="programlisting"
4762 >&#13;   [<SPAN
4763 CLASS="bold"
4764 ><B
4765 CLASS="emphasis"
4766 >in</B
4767 ></SPAN
4768 >] [years<SPAN
4769 CLASS="bold"
4770 ><B
4771 CLASS="emphasis"
4772 >y</B
4773 ></SPAN
4774 >] [months<SPAN
4775 CLASS="bold"
4776 ><B
4777 CLASS="emphasis"
4778 >m</B
4779 ></SPAN
4780 >] [days<SPAN
4781 CLASS="bold"
4782 ><B
4783 CLASS="emphasis"
4784 >d</B
4785 ></SPAN
4786 >]
4787 </PRE
4788 ></P
4789 ><P
4790 >where each of years, months, and days is an integer. Provide at least one of them together with the corresponding
4791             units letter (<SPAN
4792 CLASS="bold"
4793 ><B
4794 CLASS="emphasis"
4795 >y</B
4796 ></SPAN
4797 >, <SPAN
4798 CLASS="bold"
4799 ><B
4800 CLASS="emphasis"
4801 >m</B
4802 ></SPAN
4803 >, or <SPAN
4804 CLASS="bold"
4805 ><B
4806 CLASS="emphasis"
4807 >d</B
4808 ></SPAN
4809 > respectively), with no intervening space. If you provide more than one of the three, list them
4810             in the indicated order.</P
4811 ><P
4812 >The Backup System calculates a dump's actual expiration date by adding the indicated relative value to the start
4813             time of the dump operation. For example, it assigns an expiration date 1 year, 6 months, and 2 days in the future to a
4814             dump created at a dump level with associated expiration date <SPAN
4815 CLASS="bold"
4816 ><B
4817 CLASS="emphasis"
4818 >in 1y 6m 2d</B
4819 ></SPAN
4820 >.</P
4821 ></LI
4822 ><LI
4823 ><P
4824 >To indicate that a dump backed up at the corresponding dump level never expires, provide the value <SPAN
4825 CLASS="bold"
4826 ><B
4827 CLASS="emphasis"
4828 >NEVER</B
4829 ></SPAN
4830 > instead of a date and time. To recycle tapes that contain dumps created at such a level,
4831             you must use the <SPAN
4832 CLASS="bold"
4833 ><B
4834 CLASS="emphasis"
4835 >backup readlabel</B
4836 ></SPAN
4837 > command to overwrite the tape's label.</P
4838 ></LI
4839 ></UL
4840 ></P
4841 ><P
4842 >If you omit the <SPAN
4843 CLASS="bold"
4844 ><B
4845 CLASS="emphasis"
4846 >-expires</B
4847 ></SPAN
4848 > argument to the <SPAN
4849 CLASS="bold"
4850 ><B
4851 CLASS="emphasis"
4852 >backup
4853       adddump</B
4854 ></SPAN
4855 > command, then the expiration date is set to UNIX time zero (00:00 hours on 1 January 1970). The Backup
4856       System considers dumps created at such a dump level to expire at their creation time. If no dumps in a dump set have an
4857       expiration date, then the Backup System does not impose any restriction on recycling the tapes that contain the dump set. If
4858       you need to prevent premature recycling of the tapes that contain the dump set, you must use a manual tracking system.</P
4859 ></DIV
4860 ><DIV
4861 CLASS="sect2"
4862 ><H2
4863 CLASS="sect2"
4864 ><A
4865 NAME="Header_300"
4866 >To add a dump level to the dump hierarchy</A
4867 ></H2
4868 ><OL
4869 TYPE="1"
4870 ><LI
4871 ><P
4872 >Verify that you are authenticated as a user listed in the <SPAN
4873 CLASS="bold"
4874 ><B
4875 CLASS="emphasis"
4876 >/usr/afs/etc/UserList</B
4877 ></SPAN
4878 >
4879           file. If necessary, issue the <SPAN
4880 CLASS="bold"
4881 ><B
4882 CLASS="emphasis"
4883 >bos listusers</B
4884 ></SPAN
4885 > command, which is fully described in <A
4886 HREF="c32432.html#HDRWQ593"
4887 >To display the users in the UserList file</A
4888 >. <PRE
4889 CLASS="programlisting"
4890 >&#13;   % <SPAN
4891 CLASS="bold"
4892 ><B
4893 CLASS="emphasis"
4894 >bos listusers</B
4895 ></SPAN
4896 > &#60;<VAR
4897 CLASS="replaceable"
4898 >machine name</VAR
4899 >&#62;
4900 </PRE
4901 ></P
4902 ></LI
4903 ><LI
4904 ><P
4905 ><SPAN
4906 CLASS="bold"
4907 ><B
4908 CLASS="emphasis"
4909 >Optional</B
4910 ></SPAN
4911 >. Issue the <SPAN
4912 CLASS="bold"
4913 ><B
4914 CLASS="emphasis"
4915 >backup</B
4916 ></SPAN
4917 > command to enter
4918           interactive mode. <PRE
4919 CLASS="programlisting"
4920 >&#13;   % <SPAN
4921 CLASS="bold"
4922 ><B
4923 CLASS="emphasis"
4924 >backup</B
4925 ></SPAN
4926 >
4927 </PRE
4928 ></P
4929 ></LI
4930 ><LI
4931 ><P
4932 >Issue the <SPAN
4933 CLASS="bold"
4934 ><B
4935 CLASS="emphasis"
4936 >backup adddump</B
4937 ></SPAN
4938 > command to define one or more dump levels. If you are
4939           defining an incremental level, then all of the parent levels that precede it in its pathname must either already exist or
4940           precede it on the command line. <PRE
4941 CLASS="programlisting"
4942 >&#13;   backup&#62; <SPAN
4943 CLASS="bold"
4944 ><B
4945 CLASS="emphasis"
4946 >adddump -dump</B
4947 ></SPAN
4948 > &#60;<VAR
4949 CLASS="replaceable"
4950 >dump level name</VAR
4951 >&#62;+ [<SPAN
4952 CLASS="bold"
4953 ><B
4954 CLASS="emphasis"
4955 >-expires</B
4956 ></SPAN
4957 > &#60;<VAR
4958 CLASS="replaceable"
4959 >expiration date</VAR
4960 >&#62;+]
4961 </PRE
4962 ></P
4963 ><P
4964 >where <DIV
4965 CLASS="variablelist"
4966 ><DL
4967 ><DT
4968 ><SPAN
4969 CLASS="bold"
4970 ><B
4971 CLASS="emphasis"
4972 >addd</B
4973 ></SPAN
4974 ></DT
4975 ><DD
4976 ><P
4977 >Is the shortest acceptable abbreviation of <SPAN
4978 CLASS="bold"
4979 ><B
4980 CLASS="emphasis"
4981 >adddump</B
4982 ></SPAN
4983 >.</P
4984 ></DD
4985 ><DT
4986 ><SPAN
4987 CLASS="bold"
4988 ><B
4989 CLASS="emphasis"
4990 >-dump</B
4991 ></SPAN
4992 ></DT
4993 ><DD
4994 ><P
4995 >Names each dump level to added. If you specify more than one dump level name, you must include the <SPAN
4996 CLASS="bold"
4997 ><B
4998 CLASS="emphasis"
4999 >-dump</B
5000 ></SPAN
5001 > switch.</P
5002 ><P
5003 >Provide the entire pathname of the dump level, preceding each level in the pathname with a slash (<SPAN
5004 CLASS="bold"
5005 ><B
5006 CLASS="emphasis"
5007 >/</B
5008 ></SPAN
5009 >). Each component level can be up to 28 characters in length, and the pathname can include
5010                   up to 256 characters including the slashes.</P
5011 ></DD
5012 ><DT
5013 ><SPAN
5014 CLASS="bold"
5015 ><B
5016 CLASS="emphasis"
5017 >-expires</B
5018 ></SPAN
5019 ></DT
5020 ><DD
5021 ><P
5022 >Sets the expiration date associated with each dump level. Specify either a relative or absolute expiration
5023                   date, as described in <A
5024 HREF="c12776.html#HDRWQ270"
5025 >Defining Expiration Dates</A
5026 >, or omit this argument to assign
5027                   no expiration date to the dump levels.</P
5028 ><DIV
5029 CLASS="note"
5030 ><BLOCKQUOTE
5031 CLASS="note"
5032 ><P
5033 ><B
5034 >Note: </B
5035 >A plus sign follows this argument in the command's syntax statement because it accepts a multiword value
5036                     which does not need to be enclosed in double quotes or other delimiters, not because it accepts multiple dates.
5037                     Provide only one date (and optionally, time) definition to be associated with each dump level specified by the
5038                     <SPAN
5039 CLASS="bold"
5040 ><B
5041 CLASS="emphasis"
5042 >-dump</B
5043 ></SPAN
5044 > argument.</P
5045 ></BLOCKQUOTE
5046 ></DIV
5047 ></DD
5048 ></DL
5049 ></DIV
5050 ></P
5051 ></LI
5052 ></OL
5053 ></DIV
5054 ><DIV
5055 CLASS="sect2"
5056 ><H2
5057 CLASS="sect2"
5058 ><A
5059 NAME="Header_301"
5060 >To change a dump level's expiration date</A
5061 ></H2
5062 ><OL
5063 TYPE="1"
5064 ><LI
5065 ><P
5066 >Verify that you are authenticated as a user listed in the <SPAN
5067 CLASS="bold"
5068 ><B
5069 CLASS="emphasis"
5070 >/usr/afs/etc/UserList</B
5071 ></SPAN
5072 >
5073           file. If necessary, issue the <SPAN
5074 CLASS="bold"
5075 ><B
5076 CLASS="emphasis"
5077 >bos listusers</B
5078 ></SPAN
5079 > command, which is fully described in <A
5080 HREF="c32432.html#HDRWQ593"
5081 >To display the users in the UserList file</A
5082 >. <PRE
5083 CLASS="programlisting"
5084 >&#13;   % <SPAN
5085 CLASS="bold"
5086 ><B
5087 CLASS="emphasis"
5088 >bos listusers</B
5089 ></SPAN
5090 > &#60;<VAR
5091 CLASS="replaceable"
5092 >machine name</VAR
5093 >&#62;
5094 </PRE
5095 ></P
5096 ></LI
5097 ><LI
5098 ><P
5099 ><SPAN
5100 CLASS="bold"
5101 ><B
5102 CLASS="emphasis"
5103 >Optional</B
5104 ></SPAN
5105 >. Issue the <SPAN
5106 CLASS="bold"
5107 ><B
5108 CLASS="emphasis"
5109 >backup</B
5110 ></SPAN
5111 > command to enter
5112           interactive mode. <PRE
5113 CLASS="programlisting"
5114 >&#13;   % <SPAN
5115 CLASS="bold"
5116 ><B
5117 CLASS="emphasis"
5118 >backup</B
5119 ></SPAN
5120 >
5121 </PRE
5122 ></P
5123 ></LI
5124 ><LI
5125 ><P
5126 >Issue the <SPAN
5127 CLASS="bold"
5128 ><B
5129 CLASS="emphasis"
5130 >(backup) setexp</B
5131 ></SPAN
5132 > command to change the expiration date associated with one
5133           or more dump levels. <PRE
5134 CLASS="programlisting"
5135 >&#13;   backup&#62; <SPAN
5136 CLASS="bold"
5137 ><B
5138 CLASS="emphasis"
5139 >setexp -dump</B
5140 ></SPAN
5141 > &#60;<VAR
5142 CLASS="replaceable"
5143 >dump level name</VAR
5144 >&#62;+ [<SPAN
5145 CLASS="bold"
5146 ><B
5147 CLASS="emphasis"
5148 >-expires</B
5149 ></SPAN
5150 > &#60;<VAR
5151 CLASS="replaceable"
5152 >expiration date</VAR
5153 >&#62;+]
5154 </PRE
5155 ></P
5156 ><P
5157 >where <DIV
5158 CLASS="variablelist"
5159 ><DL
5160 ><DT
5161 ><SPAN
5162 CLASS="bold"
5163 ><B
5164 CLASS="emphasis"
5165 >se</B
5166 ></SPAN
5167 ></DT
5168 ><DD
5169 ><P
5170 >Is the shortest acceptable abbreviation of <SPAN
5171 CLASS="bold"
5172 ><B
5173 CLASS="emphasis"
5174 >setexp</B
5175 ></SPAN
5176 >.</P
5177 ></DD
5178 ><DT
5179 ><SPAN
5180 CLASS="bold"
5181 ><B
5182 CLASS="emphasis"
5183 >-dump</B
5184 ></SPAN
5185 ></DT
5186 ><DD
5187 ><P
5188 >Names each existing dump level for which to change the expiration date.</P
5189 ></DD
5190 ><DT
5191 ><SPAN
5192 CLASS="bold"
5193 ><B
5194 CLASS="emphasis"
5195 >-expires</B
5196 ></SPAN
5197 ></DT
5198 ><DD
5199 ><P
5200 >Sets the expiration date associated with each dump level. Specify either a relative or absolute expiration
5201                   date, as described in <A
5202 HREF="c12776.html#HDRWQ270"
5203 >Defining Expiration Dates</A
5204 >; omit this argument to remove the
5205                   expiration date currently associated with each dump level.</P
5206 ><DIV
5207 CLASS="note"
5208 ><BLOCKQUOTE
5209 CLASS="note"
5210 ><P
5211 ><B
5212 >Note: </B
5213 >A plus sign follows this argument in the command's syntax statement because it accepts a multiword value
5214                     which does not need to be enclosed in double quotes or other delimiters, not because it accepts multiple dates.
5215                     Provide only one date (and optionally, time) definition to be associated with each dump level specified by the
5216                     <SPAN
5217 CLASS="bold"
5218 ><B
5219 CLASS="emphasis"
5220 >-dump</B
5221 ></SPAN
5222 > argument.</P
5223 ></BLOCKQUOTE
5224 ></DIV
5225 ></DD
5226 ></DL
5227 ></DIV
5228 ></P
5229 ></LI
5230 ></OL
5231 ></DIV
5232 ><DIV
5233 CLASS="sect2"
5234 ><H2
5235 CLASS="sect2"
5236 ><A
5237 NAME="Header_302"
5238 >To delete a dump level from the dump hierarchy</A
5239 ></H2
5240 ><OL
5241 TYPE="1"
5242 ><LI
5243 ><P
5244 >Verify that you are authenticated as a user listed in the <SPAN
5245 CLASS="bold"
5246 ><B
5247 CLASS="emphasis"
5248 >/usr/afs/etc/UserList</B
5249 ></SPAN
5250 >
5251           file. If necessary, issue the <SPAN
5252 CLASS="bold"
5253 ><B
5254 CLASS="emphasis"
5255 >bos listusers</B
5256 ></SPAN
5257 > command, which is fully described in <A
5258 HREF="c32432.html#HDRWQ593"
5259 >To display the users in the UserList file</A
5260 >. <PRE
5261 CLASS="programlisting"
5262 >&#13;   % <SPAN
5263 CLASS="bold"
5264 ><B
5265 CLASS="emphasis"
5266 >bos listusers</B
5267 ></SPAN
5268 > &#60;<VAR
5269 CLASS="replaceable"
5270 >machine name</VAR
5271 >&#62;
5272 </PRE
5273 ></P
5274 ></LI
5275 ><LI
5276 ><P
5277 ><SPAN
5278 CLASS="bold"
5279 ><B
5280 CLASS="emphasis"
5281 >Optional</B
5282 ></SPAN
5283 >. Issue the <SPAN
5284 CLASS="bold"
5285 ><B
5286 CLASS="emphasis"
5287 >backup</B
5288 ></SPAN
5289 > command to enter
5290           interactive mode. <PRE
5291 CLASS="programlisting"
5292 >&#13;   % <SPAN
5293 CLASS="bold"
5294 ><B
5295 CLASS="emphasis"
5296 >backup</B
5297 ></SPAN
5298 >
5299 </PRE
5300 ></P
5301 ></LI
5302 ><LI
5303 ><P
5304 >Issue the <SPAN
5305 CLASS="bold"
5306 ><B
5307 CLASS="emphasis"
5308 >(backup) deldump</B
5309 ></SPAN
5310 > command to delete the dump level. Note that the command
5311           automatically removes all incremental dump levels for which the specified level serves as parent, either directly or
5312           indirectly. <PRE
5313 CLASS="programlisting"
5314 >&#13;   backup&#62; <SPAN
5315 CLASS="bold"
5316 ><B
5317 CLASS="emphasis"
5318 >deldump</B
5319 ></SPAN
5320 > &#60;<VAR
5321 CLASS="replaceable"
5322 >dump level name</VAR
5323 >&#62;
5324 </PRE
5325 ></P
5326 ><P
5327 >where <DIV
5328 CLASS="variablelist"
5329 ><DL
5330 ><DT
5331 ><SPAN
5332 CLASS="bold"
5333 ><B
5334 CLASS="emphasis"
5335 >deld</B
5336 ></SPAN
5337 ></DT
5338 ><DD
5339 ><P
5340 >Is the shortest acceptable abbreviation of <SPAN
5341 CLASS="bold"
5342 ><B
5343 CLASS="emphasis"
5344 >deldump</B
5345 ></SPAN
5346 >.</P
5347 ></DD
5348 ><DT
5349 ><SPAN
5350 CLASS="bold"
5351 ><B
5352 CLASS="emphasis"
5353 >dump level name</B
5354 ></SPAN
5355 ></DT
5356 ><DD
5357 ><P
5358 >Specifies the complete pathname of the dump level to delete.</P
5359 ></DD
5360 ></DL
5361 ></DIV
5362 ></P
5363 ></LI
5364 ></OL
5365 ></DIV
5366 ><DIV
5367 CLASS="sect2"
5368 ><H2
5369 CLASS="sect2"
5370 ><A
5371 NAME="HDRWQ271"
5372 >To display the dump hierarchy</A
5373 ></H2
5374 ><OL
5375 TYPE="1"
5376 ><LI
5377 ><P
5378 >Issue the <SPAN
5379 CLASS="bold"
5380 ><B
5381 CLASS="emphasis"
5382 >backup listdumps</B
5383 ></SPAN
5384 > command to display the dump hierarchy. <PRE
5385 CLASS="programlisting"
5386 >&#13;   % <SPAN
5387 CLASS="bold"
5388 ><B
5389 CLASS="emphasis"
5390 >backup listdumps</B
5391 ></SPAN
5392 >
5393 </PRE
5394 ></P
5395 ><P
5396 >where <SPAN
5397 CLASS="bold"
5398 ><B
5399 CLASS="emphasis"
5400 >listd</B
5401 ></SPAN
5402 > is the shortest acceptable abbreviation of <SPAN
5403 CLASS="bold"
5404 ><B
5405 CLASS="emphasis"
5406 >listdumps</B
5407 ></SPAN
5408 >.</P
5409 ><P
5410 >The output from this command displays the dump hierarchy, reporting the expiration date associated with each dump
5411           level, as in the following example.</P
5412 ><PRE
5413 CLASS="programlisting"
5414 >&#13;    % <SPAN
5415 CLASS="bold"
5416 ><B
5417 CLASS="emphasis"
5418 >backup listdumps</B
5419 ></SPAN
5420 >
5421    /week1  expires in  27d
5422          /tuesday  expires in  13d
5423                  /thursday  expires in  13d
5424          /sunday  expires in  13d
5425                 /tuesday expires in  13d
5426                         /thursday expires in  13d
5427    /week3  expires in  27d
5428          /tuesday  expires in  13d
5429                  /thursday  expires in  13d
5430          /sunday  expires in  13d
5431                 /tuesday  expires in  13d
5432                         /thursday  expires in  13d
5433    sunday1   expires in  27d
5434           /monday1  expires in  13d
5435           /tuesday1  expires in  13d 
5436           /wednesday1  expires in  13d
5437           /thursday1  expires in  13d
5438           /friday1  expires in  13d
5439    sunday2   expires in  27d
5440           /monday2  expires in  13d
5441           /tuesday2  expires in  13d
5442           /wednesday2  expires in  13d
5443           /thursday2  expires in  13d
5444           /friday2  expires in  13d
5445    sunday3   expires in  27d
5446           /monday1  expires in  13d
5447           /tuesday1  expires in  13d 
5448           /wednesday1  expires in  13d
5449           /thursday1  expires in  13d
5450           /friday1  expires in  13d
5451    sunday4   expires in  27d
5452           /monday2  expires in  13d
5453           /tuesday2  expires in  13d
5454           /wednesday2  expires in  13d
5455           /thursday2  expires in  13d
5456           /friday2  expires in  13d
5457 </PRE
5458 ></LI
5459 ></OL
5460 ></DIV
5461 ></DIV
5462 ><DIV
5463 CLASS="sect1"
5464 ><H1
5465 CLASS="sect1"
5466 ><A
5467 NAME="HDRWQ272"
5468 >Writing and Reading Tape Labels</A
5469 ></H1
5470 ><P
5471 >As described in <A
5472 HREF="c12776.html#HDRWQ253"
5473 >Dump Names and Tape Names</A
5474 > and <A
5475 HREF="c12776.html#HDRWQ254"
5476 >Tape Labels, Dump
5477     Labels, and EOF Markers</A
5478 >, you can assign either a permanent name or an AFS tape name to a tape that you use in the Backup
5479     System. The names are recorded on the tape's magnetic label, along with an indication of the tape's capacity (size).</P
5480 ><P
5481 >You can assign either a permanent name or an AFS tape name, but not both. In general, assigning permanent names rather
5482     than AFS tape names simplifies the backup process, because the Backup System does not dictate the format of permanent names. If
5483     a tape does not have a permanent name, then by default the Backup System accepts only three strictly defined values in the AFS
5484     tape name field, and refuses to write a dump to a tape with an inappropriate AFS tape name. The acceptable values are a name
5485     that matches the volume set and dump level of the initial dump, the value <SAMP
5486 CLASS="computeroutput"
5487 >&#60;NULL&#62;</SAMP
5488 >, and no
5489     value in the field at all.</P
5490 ><P
5491 >If a tape has a permanent name, the Backup System does not check the AFS tape name, and as part of the dump operation
5492     constructs the appropriate AFS tape name itself and records it on the label. This means that if you assign a permanent name, the
5493     Backup System assigns an AFS tape name itself and the tape has both types of name. In contrast, if a tape has an AFS tape name
5494     but not a permanent name, you cannot assign a permanent name without first erasing the AFS tape name.</P
5495 ><P
5496 >(You can also suppress the Backup System's check of a tape's AFS tape name, even it does not have a permanent name, by
5497     assigning the value <SPAN
5498 CLASS="bold"
5499 ><B
5500 CLASS="emphasis"
5501 >NO</B
5502 ></SPAN
5503 > to the <SPAN
5504 CLASS="bold"
5505 ><B
5506 CLASS="emphasis"
5507 >NAME_CHECK</B
5508 ></SPAN
5509 > instruction in the
5510     <SPAN
5511 CLASS="emphasis"
5512 ><I
5513 CLASS="emphasis"
5514 >device configuration file</I
5515 ></SPAN
5516 >. See <A
5517 HREF="c12776.html#HDRWQ280"
5518 >Eliminating the AFS Tape Name Check</A
5519 >.)</P
5520 ><P
5521 >Because the Backup System accepts unlabeled tapes, you do not have to label a tape before using it for the first time.
5522     After the first use, there are a couple of cases in which you must relabel a tape in order to write a dump to it: <UL
5523 ><LI
5524 ><P
5525 >The tape does not have a permanent name, and the AFS tape name on it does not match the new initial dump set you
5526           want to create (the volume set and dump level names are different, or the index is incorrect).</P
5527 ></LI
5528 ><LI
5529 ><P
5530 >You want to recycle a tape before all of the dumps on it have expired. The Backup System does not overwrite a tape
5531           with any unexpired dumps. Keep in mind, though, that if you relabel the tape to making recycling possible, you erase all
5532           the dump records for the tape from the Backup Database, which makes it impossible to restore any data from the
5533           tape.</P
5534 ></LI
5535 ></UL
5536 ></P
5537 ><DIV
5538 CLASS="note"
5539 ><BLOCKQUOTE
5540 CLASS="note"
5541 ><P
5542 ><B
5543 >Note: </B
5544 >Labeling a tape that contains dump data makes it impossible to use that data in a restore operation, because the
5545       labeling operation removes the dump's records from the Backup Database. If you want to record a permanent name on a tape
5546       label, you must do it before dumping any data to the tape.</P
5547 ></BLOCKQUOTE
5548 ></DIV
5549 ><DIV
5550 CLASS="sect2"
5551 ><H2
5552 CLASS="sect2"
5553 ><A
5554 NAME="Header_305"
5555 >Recording a Name on the Label</A
5556 ></H2
5557 ><P
5558 >To write a permanent name on a tape's label, include the <SPAN
5559 CLASS="bold"
5560 ><B
5561 CLASS="emphasis"
5562 >-pname</B
5563 ></SPAN
5564 > argument to specify a
5565       string of up to 32 characters. Check that no other tape used with the Backup System in your cell already has the permanent
5566       name you are assigning, because the Backup System does not prevent you from assigning the same name to multiple tapes. The
5567       Backup System overwrites the existing AFS tape name, if any, with the value <SAMP
5568 CLASS="computeroutput"
5569 >&#60;NULL&#62;</SAMP
5570 >.
5571       When a tape has a permanent name, the Backup System uses it instead of the AFS tape name in most prompts and when referring to
5572       the tape in output from <SPAN
5573 CLASS="bold"
5574 ><B
5575 CLASS="emphasis"
5576 >backup</B
5577 ></SPAN
5578 > commands. The permanent name persists until you again include
5579       the <SPAN
5580 CLASS="bold"
5581 ><B
5582 CLASS="emphasis"
5583 >-pname</B
5584 ></SPAN
5585 > argument to the <SPAN
5586 CLASS="bold"
5587 ><B
5588 CLASS="emphasis"
5589 >backup labeltape</B
5590 ></SPAN
5591 > command,
5592       regardless of the tape's contents and of how often you recycle the tape or use the <SPAN
5593 CLASS="bold"
5594 ><B
5595 CLASS="emphasis"
5596 >backup
5597       labeltape</B
5598 ></SPAN
5599 > command without the <SPAN
5600 CLASS="bold"
5601 ><B
5602 CLASS="emphasis"
5603 >-pname</B
5604 ></SPAN
5605 > argument.</P
5606 ><P
5607 >To write an AFS tape name on the label, provide a value for the <SPAN
5608 CLASS="bold"
5609 ><B
5610 CLASS="emphasis"
5611 >-name</B
5612 ></SPAN
5613 > argument that
5614       matches the volume set name and the final element in the dump level pathname of the initial dump that you plan to write to the
5615       tape, and an index that indicates the tape's place in the sequence of tapes for the dump set. The format is as follows:</P
5616 ><PRE
5617 CLASS="programlisting"
5618 >&#13;   volume_set_name<SPAN
5619 CLASS="bold"
5620 ><B
5621 CLASS="emphasis"
5622 >.</B
5623 ></SPAN
5624 >dump_level_name<SPAN
5625 CLASS="bold"
5626 ><B
5627 CLASS="emphasis"
5628 >.</B
5629 ></SPAN
5630 >tape_index
5631 </PRE
5632 ><P
5633 >If you omit the <SPAN
5634 CLASS="bold"
5635 ><B
5636 CLASS="emphasis"
5637 >-name</B
5638 ></SPAN
5639 > argument, the Backup System sets the AFS tape name to
5640       <SAMP
5641 CLASS="computeroutput"
5642 >&#60;NULL&#62;</SAMP
5643 >. The Backup System automatically constructs and records the appropriate name
5644       when you later write an initial dump to the tape by using the <SPAN
5645 CLASS="bold"
5646 ><B
5647 CLASS="emphasis"
5648 >backup dump</B
5649 ></SPAN
5650 > or <SPAN
5651 CLASS="bold"
5652 ><B
5653 CLASS="emphasis"
5654 >backup savedb</B
5655 ></SPAN
5656 > command.</P
5657 ><P
5658 >You cannot use the <SPAN
5659 CLASS="bold"
5660 ><B
5661 CLASS="emphasis"
5662 >-name</B
5663 ></SPAN
5664 > argument if the tape already has a permanent name. To erase a
5665       tape's permanent name, provide a null value to the <SPAN
5666 CLASS="bold"
5667 ><B
5668 CLASS="emphasis"
5669 >-pname</B
5670 ></SPAN
5671 > argument by issuing the following
5672       command:</P
5673 ><PRE
5674 CLASS="programlisting"
5675 >&#13;   % <SPAN
5676 CLASS="bold"
5677 ><B
5678 CLASS="emphasis"
5679 >backup labeltape -pname ""</B
5680 ></SPAN
5681 >
5682 </PRE
5683 ></DIV
5684 ><DIV
5685 CLASS="sect2"
5686 ><H2
5687 CLASS="sect2"
5688 ><A
5689 NAME="Header_306"
5690 >Recording a Capacity on the Label</A
5691 ></H2
5692 ><P
5693 >To record the tape's capacity on the label, specify a number of kilobytes as the <SPAN
5694 CLASS="bold"
5695 ><B
5696 CLASS="emphasis"
5697 >-size</B
5698 ></SPAN
5699 >
5700       argument. If you omit this argument the first time you label a tape, the Backup System records the default tape capacity
5701       associated with the specified port offset in the <SPAN
5702 CLASS="bold"
5703 ><B
5704 CLASS="emphasis"
5705 >/usr/afs/backup/tapeconfig</B
5706 ></SPAN
5707 > file on the Tape
5708       Coordinator machine. If the tape's capacity is different (in particular, larger) than the capacity recorded in the <SPAN
5709 CLASS="bold"
5710 ><B
5711 CLASS="emphasis"
5712 >tapeconfig</B
5713 ></SPAN
5714 > file, it is best to record a capacity on the label before using the tape. Once set, the
5715       value in the label's capacity field persists until you again use the <SPAN
5716 CLASS="bold"
5717 ><B
5718 CLASS="emphasis"
5719 >-size</B
5720 ></SPAN
5721 > argument to the
5722       <SPAN
5723 CLASS="bold"
5724 ><B
5725 CLASS="emphasis"
5726 >backup labeltape</B
5727 ></SPAN
5728 > command. For a discussion of the appropriate capacity to record for tapes,
5729       see <A
5730 HREF="c12776.html#HDRWQ258"
5731 >Configuring the tapeconfig File</A
5732 >.</P
5733 ><P
5734 >To read a tape's label, use the <SPAN
5735 CLASS="bold"
5736 ><B
5737 CLASS="emphasis"
5738 >backup readlabel</B
5739 ></SPAN
5740 > command.</P
5741 ><P
5742 >Most tapes also come with an adhesive label you can apply to the exterior casing. To help you easily identify a tape,
5743       record at least the tape's permanent and AFS tape names on the adhesive label. Depending on the recycling scheme you use, it
5744       can be useful to record other information, such as the dump ID, dump creation date, and expiration date of each dump you write
5745       to the tape.</P
5746 ></DIV
5747 ><DIV
5748 CLASS="sect2"
5749 ><H2
5750 CLASS="sect2"
5751 ><A
5752 NAME="HDRWQ273"
5753 >To label a tape</A
5754 ></H2
5755 ><OL
5756 TYPE="1"
5757 ><LI
5758 ><P
5759 >Verify that you are authenticated as a user listed in the <SPAN
5760 CLASS="bold"
5761 ><B
5762 CLASS="emphasis"
5763 >/usr/afs/etc/UserList</B
5764 ></SPAN
5765 >
5766           file. If necessary, issue the <SPAN
5767 CLASS="bold"
5768 ><B
5769 CLASS="emphasis"
5770 >bos listusers</B
5771 ></SPAN
5772 > command, which is fully described in <A
5773 HREF="c32432.html#HDRWQ593"
5774 >To display the users in the UserList file</A
5775 >. <PRE
5776 CLASS="programlisting"
5777 >&#13;   % <SPAN
5778 CLASS="bold"
5779 ><B
5780 CLASS="emphasis"
5781 >bos listusers</B
5782 ></SPAN
5783 > &#60;<VAR
5784 CLASS="replaceable"
5785 >machine name</VAR
5786 >&#62;
5787 </PRE
5788 ></P
5789 ></LI
5790 ><LI
5791 ><P
5792 >If the Tape Coordinator for the tape device that is to perform the operation is not already running, open a
5793           connection to the appropriate Tape Coordinator machine and issue the <SPAN
5794 CLASS="bold"
5795 ><B
5796 CLASS="emphasis"
5797 >butc</B
5798 ></SPAN
5799 > command, for
5800           which complete instructions appear in <A
5801 HREF="c15383.html#HDRWQ292"
5802 >To start a Tape Coordinator process</A
5803 >.
5804           <PRE
5805 CLASS="programlisting"
5806 >&#13;   % <SPAN
5807 CLASS="bold"
5808 ><B
5809 CLASS="emphasis"
5810 >butc</B
5811 ></SPAN
5812 > [&#60;<VAR
5813 CLASS="replaceable"
5814 >port offset</VAR
5815 >&#62;] [<SPAN
5816 CLASS="bold"
5817 ><B
5818 CLASS="emphasis"
5819 >-noautoquery</B
5820 ></SPAN
5821 >]
5822 </PRE
5823 ></P
5824 ></LI
5825 ><LI
5826 ><P
5827 >Place the tape in the device.</P
5828 ></LI
5829 ><LI
5830 ><P
5831 ><SPAN
5832 CLASS="bold"
5833 ><B
5834 CLASS="emphasis"
5835 >Optional</B
5836 ></SPAN
5837 >. Issue the <SPAN
5838 CLASS="bold"
5839 ><B
5840 CLASS="emphasis"
5841 >backup</B
5842 ></SPAN
5843 > command to enter
5844           interactive mode, if you want to label multiple tapes or issue additional commands after labeling the tape. The
5845           interactive prompt appears in the following step. <PRE
5846 CLASS="programlisting"
5847 >&#13;   % <SPAN
5848 CLASS="bold"
5849 ><B
5850 CLASS="emphasis"
5851 >backup</B
5852 ></SPAN
5853 >
5854 </PRE
5855 ></P
5856 ></LI
5857 ><LI
5858 ><P
5859 >Issue the <SPAN
5860 CLASS="bold"
5861 ><B
5862 CLASS="emphasis"
5863 >(backup) labeltape</B
5864 ></SPAN
5865 > command to label the tape. <PRE
5866 CLASS="programlisting"
5867 >&#13;   backup&#62; <SPAN
5868 CLASS="bold"
5869 ><B
5870 CLASS="emphasis"
5871 >labeltape</B
5872 ></SPAN
5873 > [<SPAN
5874 CLASS="bold"
5875 ><B
5876 CLASS="emphasis"
5877 >-name</B
5878 ></SPAN
5879 > &#60;<VAR
5880 CLASS="replaceable"
5881 >tape name, defaults to NULL</VAR
5882 >&#62;]  \
5883       [<SPAN
5884 CLASS="bold"
5885 ><B
5886 CLASS="emphasis"
5887 >-size</B
5888 ></SPAN
5889 > &#60;<VAR
5890 CLASS="replaceable"
5891 >tape size in Kbytes, defaults to size in tapeconfig</VAR
5892 >&#62;]  \
5893       [<SPAN
5894 CLASS="bold"
5895 ><B
5896 CLASS="emphasis"
5897 >-portoffset</B
5898 ></SPAN
5899 > &#60;<VAR
5900 CLASS="replaceable"
5901 >TC port offset</VAR
5902 >&#62;] [<SPAN
5903 CLASS="bold"
5904 ><B
5905 CLASS="emphasis"
5906 >-pname</B
5907 ></SPAN
5908 > &#60;<VAR
5909 CLASS="replaceable"
5910 >permanent tape name</VAR
5911 >&#62;]
5912 </PRE
5913 ></P
5914 ><P
5915 >where <DIV
5916 CLASS="variablelist"
5917 ><DL
5918 ><DT
5919 ><SPAN
5920 CLASS="bold"
5921 ><B
5922 CLASS="emphasis"
5923 >la</B
5924 ></SPAN
5925 ></DT
5926 ><DD
5927 ><P
5928 >Is the shortest acceptable abbreviation of <SPAN
5929 CLASS="bold"
5930 ><B
5931 CLASS="emphasis"
5932 >labeltape</B
5933 ></SPAN
5934 >.</P
5935 ></DD
5936 ><DT
5937 ><SPAN
5938 CLASS="bold"
5939 ><B
5940 CLASS="emphasis"
5941 >-name</B
5942 ></SPAN
5943 ></DT
5944 ><DD
5945 ><P
5946 >Specifies the AFS tape name to record on the label. Include this argument or the <SPAN
5947 CLASS="bold"
5948 ><B
5949 CLASS="emphasis"
5950 >-pname</B
5951 ></SPAN
5952 > argument, but not both. If you omit this argument, the AFS tape name is set to
5953                   &#60;<VAR
5954 CLASS="replaceable"
5955 >NULL</VAR
5956 >&#62;. If you provide it, it must have the following format. <PRE
5957 CLASS="programlisting"
5958 >&#13;volume_set_name<SPAN
5959 CLASS="bold"
5960 ><B
5961 CLASS="emphasis"
5962 >.</B
5963 ></SPAN
5964 >dump_level_name<SPAN
5965 CLASS="bold"
5966 ><B
5967 CLASS="emphasis"
5968 >.</B
5969 ></SPAN
5970 >tape_index
5971 </PRE
5972 ></P
5973 ><P
5974 >for the tape to be acceptable for use in a future <SPAN
5975 CLASS="bold"
5976 ><B
5977 CLASS="emphasis"
5978 >backup dump</B
5979 ></SPAN
5980 > operation.
5981                   The volume_set_name must match the volume set name of the initial dump to be written to the tape, dump_level_name
5982                   must match the last element of the dump level pathname at which the volume set is to be dumped, and tape_index
5983                   must correctly indicate the tape's place in the sequence of tapes that house the dump set; indexing begins with
5984                   the number 1 (one).</P
5985 ></DD
5986 ><DT
5987 ><SPAN
5988 CLASS="bold"
5989 ><B
5990 CLASS="emphasis"
5991 >-size</B
5992 ></SPAN
5993 ></DT
5994 ><DD
5995 ><P
5996 >Specifies the tape capacity to record on the label. If you are labeling the tape for the first time, you
5997                   need to include this argument only if the tape's capacity differs from the capacity associated with the specified
5998                   port offset in the <SPAN
5999 CLASS="bold"
6000 ><B
6001 CLASS="emphasis"
6002 >/usr/afs/backup/tapeconfig</B
6003 ></SPAN
6004 > file on the Tape Coordinator
6005                   machine.</P
6006 ><P
6007 >If you provide a value, it is an integer value followed by a letter that indicates units, with no
6008                   intervening space. A unit value of <SPAN
6009 CLASS="bold"
6010 ><B
6011 CLASS="emphasis"
6012 >k</B
6013 ></SPAN
6014 > or <SPAN
6015 CLASS="bold"
6016 ><B
6017 CLASS="emphasis"
6018 >K</B
6019 ></SPAN
6020 >
6021                   indicates kilobytes, <SPAN
6022 CLASS="bold"
6023 ><B
6024 CLASS="emphasis"
6025 >m</B
6026 ></SPAN
6027 > or <SPAN
6028 CLASS="bold"
6029 ><B
6030 CLASS="emphasis"
6031 >M</B
6032 ></SPAN
6033 > indicates megabytes,
6034                   and <SPAN
6035 CLASS="bold"
6036 ><B
6037 CLASS="emphasis"
6038 >g</B
6039 ></SPAN
6040 > or <SPAN
6041 CLASS="bold"
6042 ><B
6043 CLASS="emphasis"
6044 >G</B
6045 ></SPAN
6046 > indicates gigabytes. If you omit the
6047                   units letter, the default is kilobytes.</P
6048 ></DD
6049 ><DT
6050 ><SPAN
6051 CLASS="bold"
6052 ><B
6053 CLASS="emphasis"
6054 >-portoffset</B
6055 ></SPAN
6056 ></DT
6057 ><DD
6058 ><P
6059 >Specifies the port offset number of the Tape Coordinator handling the tape or backup data file for this
6060                   operation. You must provide this argument unless the default value of <SPAN
6061 CLASS="bold"
6062 ><B
6063 CLASS="emphasis"
6064 >0</B
6065 ></SPAN
6066 > (zero) is
6067                   appropriate.</P
6068 ></DD
6069 ><DT
6070 ><SPAN
6071 CLASS="bold"
6072 ><B
6073 CLASS="emphasis"
6074 >-pname</B
6075 ></SPAN
6076 ></DT
6077 ><DD
6078 ><P
6079 >Specifies the permanent name to record on the label. It can be up to 32 characters in length, and include
6080                   any alphanumeric characters. Avoid metacharacters that have a special meaning to the shell, to avoid having to
6081                   mark them as literal in commands issued at the shell prompt.</P
6082 ><P
6083 >Include this argument or the <SPAN
6084 CLASS="bold"
6085 ><B
6086 CLASS="emphasis"
6087 >-name</B
6088 ></SPAN
6089 > argument, but not both. When you provide
6090                   this argument, the AFS tape name is set to <SAMP
6091 CLASS="computeroutput"
6092 >&#60;NULL&#62;</SAMP
6093 >. If you omit this
6094                   argument, any existing permanent name is retained.</P
6095 ></DD
6096 ></DL
6097 ></DIV
6098 ></P
6099 ></LI
6100 ><LI
6101 ><P
6102 >If you did not include the <SPAN
6103 CLASS="bold"
6104 ><B
6105 CLASS="emphasis"
6106 >-noautoquery</B
6107 ></SPAN
6108 > flag when you issued the <SPAN
6109 CLASS="bold"
6110 ><B
6111 CLASS="emphasis"
6112 >butc</B
6113 ></SPAN
6114 > command, or if the device's device configuration file includes the instruction <SPAN
6115 CLASS="bold"
6116 ><B
6117 CLASS="emphasis"
6118 >AUTOQUERY YES</B
6119 ></SPAN
6120 >, then the Tape Coordinator prompts you to place the tape in the device's drive. You
6121           have already done so, but you must now press <SPAN
6122 CLASS="bold"
6123 ><B
6124 CLASS="emphasis"
6125 >&#60;Return&#62;</B
6126 ></SPAN
6127 > to indicate that the tape is
6128           ready for labeling.</P
6129 ></LI
6130 ></OL
6131 ></DIV
6132 ><DIV
6133 CLASS="sect2"
6134 ><H2
6135 CLASS="sect2"
6136 ><A
6137 NAME="HDRWQ274"
6138 >To read the label on a tape</A
6139 ></H2
6140 ><OL
6141 TYPE="1"
6142 ><LI
6143 ><P
6144 >Verify that you are authenticated as a user listed in the <SPAN
6145 CLASS="bold"
6146 ><B
6147 CLASS="emphasis"
6148 >/usr/afs/etc/UserList</B
6149 ></SPAN
6150 >
6151           file. If necessary, issue the <SPAN
6152 CLASS="bold"
6153 ><B
6154 CLASS="emphasis"
6155 >bos listusers</B
6156 ></SPAN
6157 > command, which is fully described in <A
6158 HREF="c32432.html#HDRWQ593"
6159 >To display the users in the UserList file</A
6160 >. <PRE
6161 CLASS="programlisting"
6162 >&#13;   % <SPAN
6163 CLASS="bold"
6164 ><B
6165 CLASS="emphasis"
6166 >bos listusers</B
6167 ></SPAN
6168 > &#60;<VAR
6169 CLASS="replaceable"
6170 >machine name</VAR
6171 >&#62;
6172 </PRE
6173 ></P
6174 ></LI
6175 ><LI
6176 ><P
6177 >If the Tape Coordinator for the tape device that is to perform the operation is not already running, open a
6178           connection to the appropriate Tape Coordinator machine and issue the <SPAN
6179 CLASS="bold"
6180 ><B
6181 CLASS="emphasis"
6182 >butc</B
6183 ></SPAN
6184 > command, for
6185           which complete instructions appear in <A
6186 HREF="c15383.html#HDRWQ292"
6187 >To start a Tape Coordinator process</A
6188 >.
6189           <PRE
6190 CLASS="programlisting"
6191 >&#13;   % <SPAN
6192 CLASS="bold"
6193 ><B
6194 CLASS="emphasis"
6195 >butc</B
6196 ></SPAN
6197 > [&#60;<VAR
6198 CLASS="replaceable"
6199 >port offset</VAR
6200 >&#62;] [<SPAN
6201 CLASS="bold"
6202 ><B
6203 CLASS="emphasis"
6204 >-noautoquery</B
6205 ></SPAN
6206 >]
6207 </PRE
6208 ></P
6209 ></LI
6210 ><LI
6211 ><P
6212 >Place the tape in the device.</P
6213 ></LI
6214 ><LI
6215 ><P
6216 ><SPAN
6217 CLASS="bold"
6218 ><B
6219 CLASS="emphasis"
6220 >Optional</B
6221 ></SPAN
6222 >. Issue the <SPAN
6223 CLASS="bold"
6224 ><B
6225 CLASS="emphasis"
6226 >backup</B
6227 ></SPAN
6228 > command to enter
6229           interactive mode, if you want to label multiple tapes or issue additional commands after labeling the tape. The
6230           interactive prompt appears in the following step. <PRE
6231 CLASS="programlisting"
6232 >&#13;   % <SPAN
6233 CLASS="bold"
6234 ><B
6235 CLASS="emphasis"
6236 >backup</B
6237 ></SPAN
6238 >
6239 </PRE
6240 ></P
6241 ></LI
6242 ><LI
6243 ><P
6244 >Issue the <SPAN
6245 CLASS="bold"
6246 ><B
6247 CLASS="emphasis"
6248 >(backup) readlabel</B
6249 ></SPAN
6250 > command to read the label on the tape.
6251           <PRE
6252 CLASS="programlisting"
6253 >&#13;   backup&#62; <SPAN
6254 CLASS="bold"
6255 ><B
6256 CLASS="emphasis"
6257 >readlabel</B
6258 ></SPAN
6259 > [&#60;<VAR
6260 CLASS="replaceable"
6261 >TC port offset</VAR
6262 >&#62;]
6263 </PRE
6264 ></P
6265 ><P
6266 >where <DIV
6267 CLASS="variablelist"
6268 ><DL
6269 ><DT
6270 ><SPAN
6271 CLASS="bold"
6272 ><B
6273 CLASS="emphasis"
6274 >rea</B
6275 ></SPAN
6276 ></DT
6277 ><DD
6278 ><P
6279 >Is the shortest acceptable abbreviation of <SPAN
6280 CLASS="bold"
6281 ><B
6282 CLASS="emphasis"
6283 >readlabel</B
6284 ></SPAN
6285 >.</P
6286 ></DD
6287 ><DT
6288 ><SPAN
6289 CLASS="bold"
6290 ><B
6291 CLASS="emphasis"
6292 >TC port offset</B
6293 ></SPAN
6294 ></DT
6295 ><DD
6296 ><P
6297 >Specifies the port offset number of Tape Coordinator handling the tape or backup data file for this
6298                   operation. You must provide this argument unless the default value of <SPAN
6299 CLASS="bold"
6300 ><B
6301 CLASS="emphasis"
6302 >0</B
6303 ></SPAN
6304 > (zero) is
6305                   appropriate.</P
6306 ></DD
6307 ></DL
6308 ></DIV
6309 ></P
6310 ></LI
6311 ><LI
6312 ><P
6313 >If you did not include the <SPAN
6314 CLASS="bold"
6315 ><B
6316 CLASS="emphasis"
6317 >-noautoquery</B
6318 ></SPAN
6319 > flag when you issued the <SPAN
6320 CLASS="bold"
6321 ><B
6322 CLASS="emphasis"
6323 >butc</B
6324 ></SPAN
6325 > command, or the device's device configuration file includes the instruction <SPAN
6326 CLASS="bold"
6327 ><B
6328 CLASS="emphasis"
6329 >AUTOQUERY YES</B
6330 ></SPAN
6331 > instruction, then the Tape Coordinator prompts you to place the tape in the device's
6332           drive. You have already done so, but you must now press <SPAN
6333 CLASS="bold"
6334 ><B
6335 CLASS="emphasis"
6336 >&#60;Return&#62;</B
6337 ></SPAN
6338 > to indicate that
6339           the tape is ready for reading.</P
6340 ></LI
6341 ></OL
6342 ><P
6343 >Information from the tape label appears both in the <SPAN
6344 CLASS="bold"
6345 ><B
6346 CLASS="emphasis"
6347 >backup</B
6348 ></SPAN
6349 > command window and in the
6350       Tape Coordinator window. The output in the command window has the following format:</P
6351 ><PRE
6352 CLASS="programlisting"
6353 >&#13;   Tape read was labelled: tape_name (initial_dump_ID)
6354         size: size KBytes
6355 </PRE
6356 ><P
6357 >where tape_name is the tape's permanent name (if it has one) or AFS tape name, initial_dump_ID is the dump ID of the
6358       initial dump on the tape, and size is the capacity recorded on the label, in kilobytes.</P
6359 ><P
6360 >The information in the Tape Coordinator window is more extensive. The tape's permanent name appears in the
6361       <SAMP
6362 CLASS="computeroutput"
6363 >tape name</SAMP
6364 > field and its AFS tape name in the <SAMP
6365 CLASS="computeroutput"
6366 >AFS tape name</SAMP
6367 >
6368       field. If either name is undefined, a value of <SAMP
6369 CLASS="computeroutput"
6370 >&#60;NULL&#62;</SAMP
6371 > appears in the field instead. The
6372       capacity recorded on the label appears in the <SAMP
6373 CLASS="computeroutput"
6374 >size</SAMP
6375 > field. Other fields in the output report
6376       the creation time, dump level name, and dump ID of the initial dump on the tape
6377       (<SAMP
6378 CLASS="computeroutput"
6379 >creationTime</SAMP
6380 >, <SAMP
6381 CLASS="computeroutput"
6382 >dump path</SAMP
6383 >, and <SAMP
6384 CLASS="computeroutput"
6385 >dump
6386       id</SAMP
6387 > respectively). The <SAMP
6388 CLASS="computeroutput"
6389 >cell</SAMP
6390 > field reports the cell in which the dump
6391       operation was performed, and the <SAMP
6392 CLASS="computeroutput"
6393 >useCount</SAMP
6394 > field reports the number of times the tape has been
6395       relabeled, either with the <SPAN
6396 CLASS="bold"
6397 ><B
6398 CLASS="emphasis"
6399 >backup labeltape</B
6400 ></SPAN
6401 > command or during a dump operation. For further
6402       details, see the command's reference page in the <SPAN
6403 CLASS="emphasis"
6404 ><I
6405 CLASS="emphasis"
6406 >IBM AFS Administration Reference</I
6407 ></SPAN
6408 >.</P
6409 ><P
6410 >If the tape has no label, or if the drive is empty, the following message appears at the command shell:</P
6411 ><PRE
6412 CLASS="programlisting"
6413 >&#13;   Failed to read tape label.
6414 </PRE
6415 ><P
6416 >The following example illustrates the output in the command shell for a tape in the device with port offset 1:</P
6417 ><PRE
6418 CLASS="programlisting"
6419 >&#13;   % <SPAN
6420 CLASS="bold"
6421 ><B
6422 CLASS="emphasis"
6423 >backup readlabel 1</B
6424 ></SPAN
6425 >
6426    Tape read was labelled: monthly_guest (917860000)
6427         size: 2150000 KBytes
6428 </PRE
6429 ><P
6430 >The following output appears in the Tape Coordinator window at the same time:</P
6431 ><PRE
6432 CLASS="programlisting"
6433 >&#13;   Tape label
6434    ----------
6435    tape name = monthly_guest
6436    AFS tape name = guests.monthly.3
6437    creationTime =  Mon Feb  1 04:06:40 1999
6438    cell = abc.com
6439    size = 2150000 Kbytes
6440    dump path = /monthly
6441    dump id = 917860000
6442    useCount = 44
6443    -- End of tape label --
6444 </PRE
6445 ></DIV
6446 ></DIV
6447 ><DIV
6448 CLASS="sect1"
6449 ><H1
6450 CLASS="sect1"
6451 ><A
6452 NAME="HDRWQ275"
6453 >Automating and Increasing the Efficiency of the Backup Process</A
6454 ></H1
6455 ><P
6456 >The Backup System includes several optional features to help you automate the backup process in your cell and make it more
6457     efficient. By combining several of the features, you can dump volume data to tape with minimal human intervention in most cases.
6458     To take advantage of many of the features, you create a device configuration file in the <SPAN
6459 CLASS="bold"
6460 ><B
6461 CLASS="emphasis"
6462 >/usr/afs/backup</B
6463 ></SPAN
6464 > directory for each tape device that participates in automated operations. For general
6465     instructions on creating the device configuration file, see <A
6466 HREF="c12776.html#HDRWQ276"
6467 >Creating a Device Configuration
6468     File</A
6469 >. The following list refers you to sections that describe each feature in greater detail. <UL
6470 ><LI
6471 ><P
6472 >You can use tape stackers and jukeboxes to perform backup operations. These are tape drives with an attached unit
6473           that stores several tapes and can physically insert and remove them from the tape reader (tape drive) without human
6474           intervention, meaning that no operator has to be present even for backup operations that require several tapes. To use a
6475           stacker or jukebox with the Backup System, include the <SPAN
6476 CLASS="bold"
6477 ><B
6478 CLASS="emphasis"
6479 >MOUNT</B
6480 ></SPAN
6481 > and <SPAN
6482 CLASS="bold"
6483 ><B
6484 CLASS="emphasis"
6485 >UNMOUNT</B
6486 ></SPAN
6487 > instructions in its device configuration file. See <A
6488 HREF="c12776.html#HDRWQ277"
6489 >Invoking a
6490           Device's Tape Mounting and Unmounting Routines</A
6491 >.</P
6492 ></LI
6493 ><LI
6494 ><P
6495 >You can suppress the Tape Coordinator's default prompt for the initial tape that it needs for a backup operation,
6496           again eliminating the need for a human operator to be present when a backup operation begins. (You must still insert the
6497           correct tape in the drive at some point before the operation begins.) To suppress the initial prompt, include the
6498           <SPAN
6499 CLASS="bold"
6500 ><B
6501 CLASS="emphasis"
6502 >-noautoquery</B
6503 ></SPAN
6504 > flag on the <SPAN
6505 CLASS="bold"
6506 ><B
6507 CLASS="emphasis"
6508 >butc</B
6509 ></SPAN
6510 > command, or assign the
6511           value <SPAN
6512 CLASS="bold"
6513 ><B
6514 CLASS="emphasis"
6515 >NO</B
6516 ></SPAN
6517 > to the <SPAN
6518 CLASS="bold"
6519 ><B
6520 CLASS="emphasis"
6521 >AUTOQUERY</B
6522 ></SPAN
6523 > instruction in the device
6524           configuration file. See <A
6525 HREF="c12776.html#HDRWQ278"
6526 >Eliminating the Search or Prompt for the Initial Tape</A
6527 >.</P
6528 ></LI
6529 ><LI
6530 ><P
6531 >You can suppress the prompts that the Tape Coordinator otherwise generates when it encounters several types of
6532           errors. When you use this feature, the Tape Coordinator instead responds to the errors in a default manner, which
6533           generally allows the operation to continue without human intervention. To suppress prompts about error conditions, assign
6534           the value <SPAN
6535 CLASS="bold"
6536 ><B
6537 CLASS="emphasis"
6538 >NO</B
6539 ></SPAN
6540 > to the <SPAN
6541 CLASS="bold"
6542 ><B
6543 CLASS="emphasis"
6544 >ASK</B
6545 ></SPAN
6546 > instruction in the device
6547           configuration file. See <A
6548 HREF="c12776.html#HDRWQ279"
6549 >Enabling Default Responses to Error Conditions</A
6550 >.</P
6551 ></LI
6552 ><LI
6553 ><P
6554 >You can suppress the Backup System's default verification that the AFS tape name on a tape that has no permanent
6555           name matches the name derived from the volume set and dump level names of the initial dump the Backup System is writing to
6556           the tape. This enables you to recycle a tape without first relabeling it, as long as all dumps on it are expired. To
6557           suppress name checking, assign the value <SPAN
6558 CLASS="bold"
6559 ><B
6560 CLASS="emphasis"
6561 >NO</B
6562 ></SPAN
6563 > to the <SPAN
6564 CLASS="bold"
6565 ><B
6566 CLASS="emphasis"
6567 >NAME_CHECK</B
6568 ></SPAN
6569 > instruction in the device configuration file. See <A
6570 HREF="c12776.html#HDRWQ280"
6571 >Eliminating
6572           the AFS Tape Name Check</A
6573 >.</P
6574 ></LI
6575 ><LI
6576 ><P
6577 >You can promote tape streaming (the most efficient way for a tape device to operate) by setting the size of the
6578           memory buffer the Tape Coordinator uses when transferring volume data between the file system and the device. To set the
6579           buffer size, include the <SPAN
6580 CLASS="bold"
6581 ><B
6582 CLASS="emphasis"
6583 >BUFFERSIZE</B
6584 ></SPAN
6585 > instruction in the device configuration file. See
6586           <A
6587 HREF="c12776.html#HDRWQ281"
6588 >Setting the Memory Buffer Size to Promote Tape Streaming</A
6589 >.</P
6590 ></LI
6591 ><LI
6592 ><P
6593 >You can write dumps to a <SPAN
6594 CLASS="emphasis"
6595 ><I
6596 CLASS="emphasis"
6597 >backup data file</I
6598 ></SPAN
6599 > on the local disk of the Tape Coordinator machine,
6600           rather than to tape. You can then transfer the backup data file to a data-archiving system, such as a hierarchical storage
6601           management (HSM) system, that you use in conjunction with AFS and the Backup System. Writing a dump to a file is usually
6602           more efficient that issuing the equivalent <SPAN
6603 CLASS="bold"
6604 ><B
6605 CLASS="emphasis"
6606 >vos dump</B
6607 ></SPAN
6608 > commands individually. To write dumps
6609           to a file, include the <SPAN
6610 CLASS="bold"
6611 ><B
6612 CLASS="emphasis"
6613 >FILE</B
6614 ></SPAN
6615 > instruction in the device configuration file. See <A
6616 HREF="c12776.html#HDRWQ282"
6617 >Dumping Data to a Backup Data File</A
6618 >.</P
6619 ></LI
6620 ></UL
6621 ></P
6622 ><P
6623 >There are two additional ways to increase backup automation and efficiency that do not involve the device configuration
6624     file: <UL
6625 ><LI
6626 ><P
6627 >You can schedule one or more <SPAN
6628 CLASS="bold"
6629 ><B
6630 CLASS="emphasis"
6631 >backup dump</B
6632 ></SPAN
6633 > commands to run at specified times. This
6634           enables you to create backups at times of low system usage, without requiring a human operator to be present. You can
6635           schedule a single dump operation for a future time, or multiple operations to run at various future times. See <A
6636 HREF="c15383.html#HDRWQ300"
6637 >Scheduling Dumps</A
6638 >.</P
6639 ></LI
6640 ><LI
6641 ><P
6642 >You can append dumps to a tape that already has other dumps on it. This enables you to use as much of a tape's
6643           capacity as possible. The appended dumps do not have be related in any way to one another or to the initial dump on the
6644           tape, but grouping dumps appropriately can reduce the number of necessary tape changes during a restore operation. To
6645           append a dump, include the <SPAN
6646 CLASS="bold"
6647 ><B
6648 CLASS="emphasis"
6649 >-append</B
6650 ></SPAN
6651 > argument to the <SPAN
6652 CLASS="bold"
6653 ><B
6654 CLASS="emphasis"
6655 >backup
6656           dump</B
6657 ></SPAN
6658 > command. See <A
6659 HREF="c15383.html#HDRWQ299"
6660 >Appending Dumps to an Existing Dump Set</A
6661 >.</P
6662 ></LI
6663 ></UL
6664 ></P
6665 ><DIV
6666 CLASS="sect2"
6667 ><H2
6668 CLASS="sect2"
6669 ><A
6670 NAME="HDRWQ276"
6671 >Creating a Device Configuration File</A
6672 ></H2
6673 ><P
6674 >To use many of the features that automate backup operations, create a configuration file for each tape device in the
6675       <SPAN
6676 CLASS="bold"
6677 ><B
6678 CLASS="emphasis"
6679 >/usr/afs/backup</B
6680 ></SPAN
6681 > directory on the local disk of the Tape Coordinator machine that drives the
6682       device. The filename has the following form:</P
6683 ><P
6684 ><SPAN
6685 CLASS="bold"
6686 ><B
6687 CLASS="emphasis"
6688 >CFG_</B
6689 ></SPAN
6690 >device_name</P
6691 ><P
6692 >where device_name represents the name of the tape device or backup data file (see <A
6693 HREF="c12776.html#HDRWQ282"
6694 >Dumping Data
6695       to a Backup Data File</A
6696 > to learn about writing dumps to a file rather than to tape).</P
6697 ><P
6698 >For a tape device, construct the device_name portion of the name by stripping off the initial <SPAN
6699 CLASS="bold"
6700 ><B
6701 CLASS="emphasis"
6702 >/dev/</B
6703 ></SPAN
6704 > string with which all UNIX device names conventionally begin, and replacing any other slashes in
6705       the name with underscores. For example, <SPAN
6706 CLASS="bold"
6707 ><B
6708 CLASS="emphasis"
6709 >CFG_rmt_4m</B
6710 ></SPAN
6711 > is the appropriate filename for a device
6712       called <SPAN
6713 CLASS="bold"
6714 ><B
6715 CLASS="emphasis"
6716 >/dev/rmt/4m</B
6717 ></SPAN
6718 >.</P
6719 ><P
6720 >For a backup data file, construct the device_name portion by stripping off the initial slash (<SPAN
6721 CLASS="bold"
6722 ><B
6723 CLASS="emphasis"
6724 >/</B
6725 ></SPAN
6726 >) and replacing any other slashes (<SPAN
6727 CLASS="bold"
6728 ><B
6729 CLASS="emphasis"
6730 >/</B
6731 ></SPAN
6732 >) in the name with underscores.
6733       For example, <SPAN
6734 CLASS="bold"
6735 ><B
6736 CLASS="emphasis"
6737 >CFG_var_tmp_FILE</B
6738 ></SPAN
6739 > is the appropriate filename for a backup data file called
6740       <SPAN
6741 CLASS="bold"
6742 ><B
6743 CLASS="emphasis"
6744 >/var/tmp/FILE</B
6745 ></SPAN
6746 >.</P
6747 ><P
6748 >Creating a device configuration file is optional. If you do not want to take advantage of any of the features that the
6749       file provides, you do not have to create it.</P
6750 ><P
6751 >You can include one of each of the following instructions in any order in a device configuration file. All are optional.
6752       Place each instruction on its own line, but do not include any newline (<SPAN
6753 CLASS="bold"
6754 ><B
6755 CLASS="emphasis"
6756 >&#60;Return&#62;</B
6757 ></SPAN
6758 >)
6759       characters within an instruction. <DIV
6760 CLASS="variablelist"
6761 ><DL
6762 ><DT
6763 ><SPAN
6764 CLASS="bold"
6765 ><B
6766 CLASS="emphasis"
6767 >MOUNT and UNMOUNT</B
6768 ></SPAN
6769 ></DT
6770 ><DD
6771 ><P
6772 >Identify a script of routines for mounting and unmounting tapes in a tape stacker or jukebox's drive as needed.
6773               See <A
6774 HREF="c12776.html#HDRWQ277"
6775 >Invoking a Device's Tape Mounting and Unmounting Routines</A
6776 >.</P
6777 ></DD
6778 ><DT
6779 ><SPAN
6780 CLASS="bold"
6781 ><B
6782 CLASS="emphasis"
6783 >AUTOQUERY</B
6784 ></SPAN
6785 ></DT
6786 ><DD
6787 ><P
6788 >Controls whether the Tape Coordinator prompts for the first tape it needs for a backup operation. See <A
6789 HREF="c12776.html#HDRWQ278"
6790 >Eliminating the Search or Prompt for the Initial Tape</A
6791 >.</P
6792 ></DD
6793 ><DT
6794 ><SPAN
6795 CLASS="bold"
6796 ><B
6797 CLASS="emphasis"
6798 >ASK</B
6799 ></SPAN
6800 ></DT
6801 ><DD
6802 ><P
6803 >Controls whether the Tape Coordinator asks you how to respond to certain error conditions. See <A
6804 HREF="c12776.html#HDRWQ279"
6805 >Enabling Default Responses to Error Conditions</A
6806 >.</P
6807 ></DD
6808 ><DT
6809 ><SPAN
6810 CLASS="bold"
6811 ><B
6812 CLASS="emphasis"
6813 >NAME_CHECK</B
6814 ></SPAN
6815 ></DT
6816 ><DD
6817 ><P
6818 >Controls whether the Tape Coordinator verifies that an AFS tape name matches the initial dump you are writing to
6819               the tape. See <A
6820 HREF="c12776.html#HDRWQ280"
6821 >Eliminating the AFS Tape Name Check</A
6822 >.</P
6823 ></DD
6824 ><DT
6825 ><SPAN
6826 CLASS="bold"
6827 ><B
6828 CLASS="emphasis"
6829 >BUFFERSIZE</B
6830 ></SPAN
6831 ></DT
6832 ><DD
6833 ><P
6834 >Sets the size of the memory buffer the Tape Coordinator uses when transferring data between a tape device and a
6835               volume. See <A
6836 HREF="c12776.html#HDRWQ281"
6837 >Setting the Memory Buffer Size to Promote Tape Streaming</A
6838 >.</P
6839 ></DD
6840 ><DT
6841 ><SPAN
6842 CLASS="bold"
6843 ><B
6844 CLASS="emphasis"
6845 >FILE</B
6846 ></SPAN
6847 ></DT
6848 ><DD
6849 ><P
6850 >Controls whether the Tape Coordinator writes dumps to, and restores data from, a tape device or a backup data
6851               file. See <A
6852 HREF="c12776.html#HDRWQ282"
6853 >Dumping Data to a Backup Data File</A
6854 >.</P
6855 ></DD
6856 ></DL
6857 ></DIV
6858 ></P
6859 ></DIV
6860 ><DIV
6861 CLASS="sect2"
6862 ><H2
6863 CLASS="sect2"
6864 ><A
6865 NAME="HDRWQ277"
6866 >Invoking a Device's Tape Mounting and Unmounting Routines</A
6867 ></H2
6868 ><P
6869 >A tape stacker or jukebox helps you automate backup operations because it can switch between multiple tapes during an
6870       operation without human intervention. To take advantage of this feature, include the <SPAN
6871 CLASS="bold"
6872 ><B
6873 CLASS="emphasis"
6874 >MOUNT</B
6875 ></SPAN
6876 >
6877       and optionally <SPAN
6878 CLASS="bold"
6879 ><B
6880 CLASS="emphasis"
6881 >UNMOUNT</B
6882 ></SPAN
6883 > instructions in the device configuration file that you write for the
6884       stacker or jukebox. The instructions share the same syntax:</P
6885 ><PRE
6886 CLASS="programlisting"
6887 ><SPAN
6888 CLASS="bold"
6889 ><B
6890 CLASS="emphasis"
6891 >MOUNT</B
6892 ></SPAN
6893 > filename
6894    <SPAN
6895 CLASS="bold"
6896 ><B
6897 CLASS="emphasis"
6898 >UNMOUNT</B
6899 ></SPAN
6900 > filename
6901 </PRE
6902 ><P
6903 >where filename is the pathname on the local disk of a script or program you have written that invokes the routines
6904       defined by the device's manufacturer for mounting or unmounting a tape in the device's tape drive. (For convenience, the
6905       following discussion uses the term <SPAN
6906 CLASS="emphasis"
6907 ><I
6908 CLASS="emphasis"
6909 >script</I
6910 ></SPAN
6911 > to refers to both scripts and programs.) The script usually
6912       also contains additional logic that handles error conditions or modifies the script's behavior depending on which backup
6913       operation is being performed.</P
6914 ><P
6915 >You can refer to different scripts with the <SPAN
6916 CLASS="bold"
6917 ><B
6918 CLASS="emphasis"
6919 >MOUNT</B
6920 ></SPAN
6921 > or <SPAN
6922 CLASS="bold"
6923 ><B
6924 CLASS="emphasis"
6925 >UNMOUNT</B
6926 ></SPAN
6927 > instructions, or to a single script that invokes both mounting and unmounting routines. The
6928       scripts inherit the local identity and AFS tokens associated with to the issuer of the <SPAN
6929 CLASS="bold"
6930 ><B
6931 CLASS="emphasis"
6932 >butc</B
6933 ></SPAN
6934 >
6935       command.</P
6936 ><P
6937 >You need to include a <SPAN
6938 CLASS="bold"
6939 ><B
6940 CLASS="emphasis"
6941 >MOUNT</B
6942 ></SPAN
6943 > instruction in the device configuration file for all tape
6944       devices, but the need for an <SPAN
6945 CLASS="bold"
6946 ><B
6947 CLASS="emphasis"
6948 >UNMOUNT</B
6949 ></SPAN
6950 > instruction depends on the tape-handling routines that
6951       the device's manufacturer provides. Some devices, usually stackers, have only a single routine for mounting tapes, which also
6952       automatically unmounts a tape whose presence prevents insertion of the required new tape. In this case, an <SPAN
6953 CLASS="bold"
6954 ><B
6955 CLASS="emphasis"
6956 >UNMOUNT</B
6957 ></SPAN
6958 > instruction is not necessary. For devices that have separate mounting and unmounting routines,
6959       you must include an <SPAN
6960 CLASS="bold"
6961 ><B
6962 CLASS="emphasis"
6963 >UNMOUNT</B
6964 ></SPAN
6965 > instruction to remove a tape when the Tape Coordinator is
6966       finished with it; otherwise, subsequent attempts to run the <SPAN
6967 CLASS="bold"
6968 ><B
6969 CLASS="emphasis"
6970 >MOUNT</B
6971 ></SPAN
6972 > instruction fail with an
6973       error.</P
6974 ><P
6975 >When the device configuration file includes a <SPAN
6976 CLASS="bold"
6977 ><B
6978 CLASS="emphasis"
6979 >MOUNT</B
6980 ></SPAN
6981 > instruction, you must stock the
6982       stacker or jukebox with the necessary tapes before running a backup operation. Many jukeboxes are able to search for the
6983       required tape by reading external labels (such as barcodes) on the tapes, but many stackers can only switch between tapes in
6984       sequence and sometimes only in one direction. In the latter case, you must also stock the tapes in the correct order.</P
6985 ><P
6986 >To obtain a list of the tapes required for a restore operation so that you can prestock them in the tape device, include
6987       the <SPAN
6988 CLASS="bold"
6989 ><B
6990 CLASS="emphasis"
6991 >-n</B
6992 ></SPAN
6993 > flag on the appropriate <SPAN
6994 CLASS="bold"
6995 ><B
6996 CLASS="emphasis"
6997 >backup</B
6998 ></SPAN
6999 > command (<SPAN
7000 CLASS="bold"
7001 ><B
7002 CLASS="emphasis"
7003 >backup diskrestore</B
7004 ></SPAN
7005 >, <SPAN
7006 CLASS="bold"
7007 ><B
7008 CLASS="emphasis"
7009 >backup volrestore</B
7010 ></SPAN
7011 >, or <SPAN
7012 CLASS="bold"
7013 ><B
7014 CLASS="emphasis"
7015 >backup
7016       volsetrestore</B
7017 ></SPAN
7018 >). For a dump operation, it is generally sufficient to stock the device with more tapes than the
7019       operation is likely to require. You can prelabel the tapes with permanent names or AFS tape names, or not prelabel them at
7020       all. If you prelabel the tapes for a dump operation with AFS tape names, then it is simplest to load them into the stacker in
7021       sequential order by tape index. But it is probably simpler still to prelabel tapes with permanent tape names or use unlabeled
7022       tapes, in which case the Backup System generates and applies the appropriately indexed AFS tape name itself during the dump
7023       operation.</P
7024 ><DIV
7025 CLASS="sect3"
7026 ><H3
7027 CLASS="sect3"
7028 ><A
7029 NAME="Header_312"
7030 >How the Tape Coordinator Uses the MOUNT and UNMOUNT Instructions</A
7031 ></H3
7032 ><P
7033 >When you issue the <SPAN
7034 CLASS="bold"
7035 ><B
7036 CLASS="emphasis"
7037 >butc</B
7038 ></SPAN
7039 > command to initialize the Tape Coordinator for a given tape
7040         device, the Tape Coordinator looks for the device configuration file called <SPAN
7041 CLASS="bold"
7042 ><B
7043 CLASS="emphasis"
7044 >/usr/afs/backup/CFG_</B
7045 ></SPAN
7046 >device_name on its local disk, where device_name has the format described in
7047         <A
7048 HREF="c12776.html#HDRWQ276"
7049 >Creating a Device Configuration File</A
7050 >. If the file exists and contains a <SPAN
7051 CLASS="bold"
7052 ><B
7053 CLASS="emphasis"
7054 >MOUNT</B
7055 ></SPAN
7056 > instruction, then whenever the Tape Coordinator needs a tape, it executes the script named by
7057         the instruction's filename argument.</P
7058 ><P
7059 >If the device configuration file does not exist, or does not include a <SPAN
7060 CLASS="bold"
7061 ><B
7062 CLASS="emphasis"
7063 >MOUNT</B
7064 ></SPAN
7065 >
7066         instruction, then whenever the Tape Coordinator needs a tape, it generates a prompt in its window instructing the operator
7067         to insert the necessary tape. The operator must insert the tape and press <SPAN
7068 CLASS="bold"
7069 ><B
7070 CLASS="emphasis"
7071 >&#60;Return&#62;</B
7072 ></SPAN
7073 >
7074         before the Tape Coordinator continues the backup operation.</P
7075 ><P
7076 >Note, however, that you can modify the Tape Coordinator's behavior with respect to the first tape needed for an
7077         operation, by setting the <SPAN
7078 CLASS="bold"
7079 ><B
7080 CLASS="emphasis"
7081 >AUTOQUERY</B
7082 ></SPAN
7083 > instruction in the device configuration file to
7084         <SPAN
7085 CLASS="bold"
7086 ><B
7087 CLASS="emphasis"
7088 >NO</B
7089 ></SPAN
7090 >, or including the <SPAN
7091 CLASS="bold"
7092 ><B
7093 CLASS="emphasis"
7094 >-noautoquery</B
7095 ></SPAN
7096 > flag to the <SPAN
7097 CLASS="bold"
7098 ><B
7099 CLASS="emphasis"
7100 >butc</B
7101 ></SPAN
7102 > command. In this case, the Tape Coordinator does not execute the <SPAN
7103 CLASS="bold"
7104 ><B
7105 CLASS="emphasis"
7106 >MOUNT</B
7107 ></SPAN
7108 > instruction or prompt for a tape at the start of an operation, because it expects to find the
7109         required first tape in the drive. See <A
7110 HREF="c12776.html#HDRWQ278"
7111 >Eliminating the Search or Prompt for the Initial
7112         Tape</A
7113 >.</P
7114 ><P
7115 >If there is an <SPAN
7116 CLASS="bold"
7117 ><B
7118 CLASS="emphasis"
7119 >UNMOUNT</B
7120 ></SPAN
7121 > instruction in the device configuration file, then whenever
7122         the Tape Coordinator closes the tape device, it executes the script named by the instruction's filename argument. It
7123         executes the script only once, and regardless of whether the <SPAN
7124 CLASS="bold"
7125 ><B
7126 CLASS="emphasis"
7127 >close</B
7128 ></SPAN
7129 > operation on the device
7130         succeeded or not. If the device configuration file does not include an <SPAN
7131 CLASS="bold"
7132 ><B
7133 CLASS="emphasis"
7134 >UNMOUNT</B
7135 ></SPAN
7136 > instruction,
7137         then the Tape Coordinator takes no action.</P
7138 ></DIV
7139 ><DIV
7140 CLASS="sect3"
7141 ><H3
7142 CLASS="sect3"
7143 ><A
7144 NAME="Header_313"
7145 >The Available Parameters and Required Exit Codes</A
7146 ></H3
7147 ><P
7148 >When the Tape Coordinator executes the <SPAN
7149 CLASS="bold"
7150 ><B
7151 CLASS="emphasis"
7152 >MOUNT</B
7153 ></SPAN
7154 > script, it passes in five parameters,
7155         ordered as follows. You can use the parameters in your script to refine its response to varying circumstances that can arise
7156         during a backup operation. <OL
7157 TYPE="1"
7158 ><LI
7159 ><P
7160 >The tape device or backup data file's pathname, as recorded in the <SPAN
7161 CLASS="bold"
7162 ><B
7163 CLASS="emphasis"
7164 >/usr/afs/backup/tapeconfig</B
7165 ></SPAN
7166 > file.</P
7167 ></LI
7168 ><LI
7169 ><P
7170 >The tape operation, which (except for the exceptions noted in the following list) matches the <SPAN
7171 CLASS="bold"
7172 ><B
7173 CLASS="emphasis"
7174 >backup</B
7175 ></SPAN
7176 > command operation code used to initiate the operation: <UL
7177 ><LI
7178 ><P
7179 ><SPAN
7180 CLASS="bold"
7181 ><B
7182 CLASS="emphasis"
7183 >appenddump</B
7184 ></SPAN
7185 > (when a <SPAN
7186 CLASS="bold"
7187 ><B
7188 CLASS="emphasis"
7189 >backup dump</B
7190 ></SPAN
7191 > command
7192                     includes the <SPAN
7193 CLASS="bold"
7194 ><B
7195 CLASS="emphasis"
7196 >-append</B
7197 ></SPAN
7198 > flag)</P
7199 ></LI
7200 ><LI
7201 ><P
7202 ><SPAN
7203 CLASS="bold"
7204 ><B
7205 CLASS="emphasis"
7206 >dump</B
7207 ></SPAN
7208 > (when a <SPAN
7209 CLASS="bold"
7210 ><B
7211 CLASS="emphasis"
7212 >backup dump</B
7213 ></SPAN
7214 > command does
7215                     not include the <SPAN
7216 CLASS="bold"
7217 ><B
7218 CLASS="emphasis"
7219 >-append</B
7220 ></SPAN
7221 > flag)</P
7222 ></LI
7223 ><LI
7224 ><P
7225 ><SPAN
7226 CLASS="bold"
7227 ><B
7228 CLASS="emphasis"
7229 >labeltape</B
7230 ></SPAN
7231 ></P
7232 ></LI
7233 ><LI
7234 ><P
7235 ><SPAN
7236 CLASS="bold"
7237 ><B
7238 CLASS="emphasis"
7239 >readlabel</B
7240 ></SPAN
7241 ></P
7242 ></LI
7243 ><LI
7244 ><P
7245 ><SPAN
7246 CLASS="bold"
7247 ><B
7248 CLASS="emphasis"
7249 >restore</B
7250 ></SPAN
7251 > (for a <SPAN
7252 CLASS="bold"
7253 ><B
7254 CLASS="emphasis"
7255 >backup diskrestore</B
7256 ></SPAN
7257 >,
7258                     <SPAN
7259 CLASS="bold"
7260 ><B
7261 CLASS="emphasis"
7262 >backup volrestore</B
7263 ></SPAN
7264 >, or <SPAN
7265 CLASS="bold"
7266 ><B
7267 CLASS="emphasis"
7268 >backup volsetrestore</B
7269 ></SPAN
7270 >
7271                     command)</P
7272 ></LI
7273 ><LI
7274 ><P
7275 ><SPAN
7276 CLASS="bold"
7277 ><B
7278 CLASS="emphasis"
7279 >restoredb</B
7280 ></SPAN
7281 ></P
7282 ></LI
7283 ><LI
7284 ><P
7285 ><SPAN
7286 CLASS="bold"
7287 ><B
7288 CLASS="emphasis"
7289 >savedb</B
7290 ></SPAN
7291 ></P
7292 ></LI
7293 ><LI
7294 ><P
7295 ><SPAN
7296 CLASS="bold"
7297 ><B
7298 CLASS="emphasis"
7299 >scantape</B
7300 ></SPAN
7301 ></P
7302 ></LI
7303 ></UL
7304 ></P
7305 ></LI
7306 ><LI
7307 ><P
7308 >The number of times the Tape Coordinator has attempted to open the tape device or backup data file. If the open
7309               attempt returns an error, the Tape Coordinator increments this value by one and again invokes the <SPAN
7310 CLASS="bold"
7311 ><B
7312 CLASS="emphasis"
7313 >MOUNT</B
7314 ></SPAN
7315 > instruction.</P
7316 ></LI
7317 ><LI
7318 ><P
7319 >The tape name. For some operations, the Tape Coordinator passes the string
7320               <SAMP
7321 CLASS="computeroutput"
7322 >none</SAMP
7323 >, because it does not know the tape name (when running the <SPAN
7324 CLASS="bold"
7325 ><B
7326 CLASS="emphasis"
7327 >backup scantape</B
7328 ></SPAN
7329 > or <SPAN
7330 CLASS="bold"
7331 ><B
7332 CLASS="emphasis"
7333 >backup readlabel</B
7334 ></SPAN
7335 >, for example), or because
7336               the tape does not necessarily have a name (when running the <SPAN
7337 CLASS="bold"
7338 ><B
7339 CLASS="emphasis"
7340 >backup labeltape</B
7341 ></SPAN
7342 > command,
7343               for example).</P
7344 ></LI
7345 ><LI
7346 ><P
7347 >The tape ID recorded in the Backup Database. As with the tape name, the Backup System passes the string
7348               <SAMP
7349 CLASS="computeroutput"
7350 >none</SAMP
7351 > for operations where it does not know the tape ID or the tape does not
7352               necessarily have an ID.</P
7353 ></LI
7354 ></OL
7355 ></P
7356 ><P
7357 >Your <SPAN
7358 CLASS="bold"
7359 ><B
7360 CLASS="emphasis"
7361 >MOUNT</B
7362 ></SPAN
7363 > script must return one of the following exit codes to tell the Tape
7364         Coordinator whether or not it mounted the tape successfully: <UL
7365 ><LI
7366 ><P
7367 >Code <SPAN
7368 CLASS="bold"
7369 ><B
7370 CLASS="emphasis"
7371 >0</B
7372 ></SPAN
7373 > (zero) indicates a successful mount, and the Tape Coordinator continues
7374               the backup operation. If the script or program called by the <SPAN
7375 CLASS="bold"
7376 ><B
7377 CLASS="emphasis"
7378 >MOUNT</B
7379 ></SPAN
7380 > instruction does
7381               not return this exit code, the Tape Coordinator never calls the <SPAN
7382 CLASS="bold"
7383 ><B
7384 CLASS="emphasis"
7385 >UNMOUNT</B
7386 ></SPAN
7387 >
7388               instruction.</P
7389 ></LI
7390 ><LI
7391 ><P
7392 >Code <SPAN
7393 CLASS="bold"
7394 ><B
7395 CLASS="emphasis"
7396 >1</B
7397 ></SPAN
7398 > indicates that mount attempt failed. The Tape Coordinator terminates the
7399               backup operation.</P
7400 ></LI
7401 ><LI
7402 ><P
7403 >Any other code indicates that the script was unable to access the correct tape. The Tape Coordinator prompts the
7404               operator to insert it.</P
7405 ></LI
7406 ></UL
7407 ></P
7408 ><P
7409 >When the Tape Coordinator executes the <SPAN
7410 CLASS="bold"
7411 ><B
7412 CLASS="emphasis"
7413 >UNMOUNT</B
7414 ></SPAN
7415 > script, it passes in two parameters in
7416         the following order. <OL
7417 TYPE="1"
7418 ><LI
7419 ><P
7420 >The tape device's pathname (as specified in the <SPAN
7421 CLASS="bold"
7422 ><B
7423 CLASS="emphasis"
7424 >/usr/afs/backup/tapeconfig</B
7425 ></SPAN
7426 >
7427               file)</P
7428 ></LI
7429 ><LI
7430 ><P
7431 >The tape operation, which is always <SPAN
7432 CLASS="bold"
7433 ><B
7434 CLASS="emphasis"
7435 >unmount</B
7436 ></SPAN
7437 >.</P
7438 ></LI
7439 ></OL
7440 ></P
7441 ><P
7442 >The following example script uses two of the parameters passed to it by the Backup System:
7443         <SAMP
7444 CLASS="computeroutput"
7445 >tries</SAMP
7446 > and <SAMP
7447 CLASS="computeroutput"
7448 >operation</SAMP
7449 >. It follows the recommended practice
7450         of exiting if the value of the <SAMP
7451 CLASS="computeroutput"
7452 >tries</SAMP
7453 > parameter exceeds one, because that implies that the
7454         stacker is out of tapes.</P
7455 ><P
7456 >For a <SPAN
7457 CLASS="bold"
7458 ><B
7459 CLASS="emphasis"
7460 >backup dump</B
7461 ></SPAN
7462 > or <SPAN
7463 CLASS="bold"
7464 ><B
7465 CLASS="emphasis"
7466 >backup savedb</B
7467 ></SPAN
7468 > operation, the
7469         routine calls the example <SPAN
7470 CLASS="bold"
7471 ><B
7472 CLASS="emphasis"
7473 >stackerCmd_NextTape</B
7474 ></SPAN
7475 > function provided by the stacker's
7476         manufacturer. Note that the final lines in the file return the exit code that prompts the operator to insert a tape; these
7477         lines are invoked when either the stacker cannot load a tape or a the operation being performed is not one of those
7478         explicitly mentioned in the file (is a restore operation, for example).</P
7479 ><PRE
7480 CLASS="programlisting"
7481 >&#13;   #! /bin/csh -f
7482    set devicefile = $1
7483    set operation = $2
7484    set tries = $3
7485    set tapename = $4
7486    set tapeid = $5
7487    set exit_continue = 0
7488    set exit_abort = 1
7489    set exit_interactive = 2
7490    #--------------------------------------------
7491    if (${tries} &#62; 1) then
7492       echo "Too many tries"
7493       exit ${exit_interactive}
7494    endif
7495    if (${operation} == "unmount") then
7496       echo "UnMount: Will leave tape in drive"
7497       exit ${exit_continue}
7498    endif
7499    if ((${operation} == "dump")     |\
7500        (${operation} == "appenddump")     |\
7501        (${operation} == "savedb"))  then
7502        stackerCmd_NextTape ${devicefile}
7503        if (${status} != 0)exit${exit_interactive}
7504        echo "Will continue"
7505        exit ${exit_continue}
7506    endif
7507    if ((${operation} == "labeltape")    |\
7508        (${operation} == "readlabel")) then
7509       echo "Will continue"
7510       exit ${exit_continue}
7511    endif
7512    echo "Prompt for tape"
7513    exit ${exit_interactive}
7514 </PRE
7515 ></DIV
7516 ></DIV
7517 ><DIV
7518 CLASS="sect2"
7519 ><H2
7520 CLASS="sect2"
7521 ><A
7522 NAME="HDRWQ278"
7523 >Eliminating the Search or Prompt for the Initial Tape</A
7524 ></H2
7525 ><P
7526 >By default, the Tape Coordinator obtains the first tape it needs for a backup operation by reading the device
7527       configuration file for the appropriate tape device. If there is a <SPAN
7528 CLASS="bold"
7529 ><B
7530 CLASS="emphasis"
7531 >MOUNT</B
7532 ></SPAN
7533 > instruction in the
7534       file, the Tape Coordinator executes the referenced script. If the device configuration file does not exist or does not have a
7535       <SPAN
7536 CLASS="bold"
7537 ><B
7538 CLASS="emphasis"
7539 >MOUNT</B
7540 ></SPAN
7541 > instruction in it, the Tape Coordinator prompts you to insert the correct tape and
7542       press <SPAN
7543 CLASS="bold"
7544 ><B
7545 CLASS="emphasis"
7546 >&#60;Return&#62;</B
7547 ></SPAN
7548 >.</P
7549 ><P
7550 >If you know in advance that an operation requires a tape, you can increase efficiency by placing the required tape in
7551       the drive before issuing the <SPAN
7552 CLASS="bold"
7553 ><B
7554 CLASS="emphasis"
7555 >backup</B
7556 ></SPAN
7557 > command and telling the Tape Coordinator's to skip its
7558       initial tape-acquisition steps. This both enables the operation to begin more quickly and eliminates that need for you to be
7559       present to insert a tape.</P
7560 ><P
7561 >There are two ways to bypass the Tape Coordinator's initial tape-acquisition steps: <OL
7562 TYPE="1"
7563 ><LI
7564 ><P
7565 >Include the instruction <SPAN
7566 CLASS="bold"
7567 ><B
7568 CLASS="emphasis"
7569 >AUTOQUERY NO</B
7570 ></SPAN
7571 > in the device configuration file</P
7572 ></LI
7573 ><LI
7574 ><P
7575 >Include the <SPAN
7576 CLASS="bold"
7577 ><B
7578 CLASS="emphasis"
7579 >-noautoquery</B
7580 ></SPAN
7581 > flag to the <SPAN
7582 CLASS="bold"
7583 ><B
7584 CLASS="emphasis"
7585 >butc</B
7586 ></SPAN
7587 >
7588             command</P
7589 ></LI
7590 ></OL
7591 ></P
7592 ><P
7593 >To avoid any error conditions that require operator attention, be sure that the tape you are placing in the drive does
7594       not contain any unexpired dumps and is not write protected. If there is no permanent name on the tape's label and you are
7595       creating an initial dump, make sure that the AFS tape name either matches the volume set and dump set names or is
7596       <SAMP
7597 CLASS="computeroutput"
7598 >&#60;NULL&#62;</SAMP
7599 >. Alternatively, suppress the Tape Coordinator's name verification step by
7600       assigning the value <SPAN
7601 CLASS="bold"
7602 ><B
7603 CLASS="emphasis"
7604 >NO</B
7605 ></SPAN
7606 > to the <SPAN
7607 CLASS="bold"
7608 ><B
7609 CLASS="emphasis"
7610 >NAME_CHECK</B
7611 ></SPAN
7612 > instruction in the
7613       device configuration file, as described in <A
7614 HREF="c12776.html#HDRWQ280"
7615 >Eliminating the AFS Tape Name Check</A
7616 >.</P
7617 ></DIV
7618 ><DIV
7619 CLASS="sect2"
7620 ><H2
7621 CLASS="sect2"
7622 ><A
7623 NAME="HDRWQ279"
7624 >Enabling Default Responses to Error Conditions</A
7625 ></H2
7626 ><P
7627 >By default, the Tape Coordinator asks you how to respond when it encounters certain error conditions. To suppress the
7628       prompts and cause the Tape Coordinator to handle the errors in a predetermined manner, include the instruction <SPAN
7629 CLASS="bold"
7630 ><B
7631 CLASS="emphasis"
7632 >ASK NO</B
7633 ></SPAN
7634 > in the device configuration file. If you assign the value <SPAN
7635 CLASS="bold"
7636 ><B
7637 CLASS="emphasis"
7638 >YES</B
7639 ></SPAN
7640 >,
7641       or omit the <SPAN
7642 CLASS="bold"
7643 ><B
7644 CLASS="emphasis"
7645 >ASK</B
7646 ></SPAN
7647 > instruction completely, the Tape Coordinator prompts you for direction when
7648       it encounters one of the errors.</P
7649 ><P
7650 >The following list describes the error conditions and the Tape Coordinator's response to them. <UL
7651 ><LI
7652 ><P
7653 >The Backup System is unable to dump a volume while running the <SPAN
7654 CLASS="bold"
7655 ><B
7656 CLASS="emphasis"
7657 >backup dump</B
7658 ></SPAN
7659 >
7660             command. When you assign the value <SPAN
7661 CLASS="bold"
7662 ><B
7663 CLASS="emphasis"
7664 >NO</B
7665 ></SPAN
7666 >, the Tape Coordinator omits the volume from the
7667             dump and continues the operation. When you assign the value <SPAN
7668 CLASS="bold"
7669 ><B
7670 CLASS="emphasis"
7671 >YES</B
7672 ></SPAN
7673 >, it prompts to ask if
7674             you want to try to dump the volume again immediately, to omit the volume from the dump but continue the operation, or to
7675             terminate the operation.</P
7676 ></LI
7677 ><LI
7678 ><P
7679 >The Backup System is unable to restore a volume while running the <SPAN
7680 CLASS="bold"
7681 ><B
7682 CLASS="emphasis"
7683 >backup
7684             diskrestore</B
7685 ></SPAN
7686 >, <SPAN
7687 CLASS="bold"
7688 ><B
7689 CLASS="emphasis"
7690 >backup volrestore</B
7691 ></SPAN
7692 >, or <SPAN
7693 CLASS="bold"
7694 ><B
7695 CLASS="emphasis"
7696 >backup
7697             volsetrestore</B
7698 ></SPAN
7699 > command. When you assign the value <SPAN
7700 CLASS="bold"
7701 ><B
7702 CLASS="emphasis"
7703 >NO</B
7704 ></SPAN
7705 >, the Tape Coordinator
7706             continues the operation, omitting the problematic volume but restoring the remaining ones. When you assign the value
7707             <SPAN
7708 CLASS="bold"
7709 ><B
7710 CLASS="emphasis"
7711 >YES</B
7712 ></SPAN
7713 >, it prompts to ask if you want to omit the volume and continue the operation, or to
7714             terminate the operation.</P
7715 ></LI
7716 ><LI
7717 ><P
7718 >The Backup System cannot determine if the dump set includes any more tapes while running the <SPAN
7719 CLASS="bold"
7720 ><B
7721 CLASS="emphasis"
7722 >backup scantape</B
7723 ></SPAN
7724 > command (the command's reference page in the <SPAN
7725 CLASS="emphasis"
7726 ><I
7727 CLASS="emphasis"
7728 >IBM AFS Administration
7729             Reference</I
7730 ></SPAN
7731 > discusses possible reasons for this problem). When you assign the value <SPAN
7732 CLASS="bold"
7733 ><B
7734 CLASS="emphasis"
7735 >NO</B
7736 ></SPAN
7737 >, the Tape Coordinator proceeds as though there are more tapes and invokes the <SPAN
7738 CLASS="bold"
7739 ><B
7740 CLASS="emphasis"
7741 >MOUNT</B
7742 ></SPAN
7743 > script named in the device configuration file, or prompts the operator to insert the next
7744             tape. When you assign the value <SPAN
7745 CLASS="bold"
7746 ><B
7747 CLASS="emphasis"
7748 >YES</B
7749 ></SPAN
7750 >, it prompts to ask if there are more tapes to
7751             scan.</P
7752 ></LI
7753 ><LI
7754 ><P
7755 >The Backup System determines that the tape contains an unexpired dump while running the <SPAN
7756 CLASS="bold"
7757 ><B
7758 CLASS="emphasis"
7759 >backup labeltape</B
7760 ></SPAN
7761 > command. When you assign the value <SPAN
7762 CLASS="bold"
7763 ><B
7764 CLASS="emphasis"
7765 >NO</B
7766 ></SPAN
7767 >, it
7768             terminates the operation without relabeling the tape. With a <SPAN
7769 CLASS="bold"
7770 ><B
7771 CLASS="emphasis"
7772 >YES</B
7773 ></SPAN
7774 > value, the Tape
7775             Coordinator prompts to ask if you want to relabel the tape anyway.</P
7776 ></LI
7777 ></UL
7778 ></P
7779 ></DIV
7780 ><DIV
7781 CLASS="sect2"
7782 ><H2
7783 CLASS="sect2"
7784 ><A
7785 NAME="HDRWQ280"
7786 >Eliminating the AFS Tape Name Check</A
7787 ></H2
7788 ><P
7789 >If a tape does not have a permanent name and you are writing an initial dump to it, then by default the Backup System
7790       verifies that the tape's AFS tape name is acceptable. It accepts three types of values: <UL
7791 ><LI
7792 ><P
7793 >A name that reflects the volume set and dump level of the initial dump and the tape's place in the sequence of
7794             tapes for the dump set, as described in <A
7795 HREF="c12776.html#HDRWQ253"
7796 >Dump Names and Tape Names</A
7797 >. If the tape does not
7798             already have a permanent name, you can assign the AFS tape name by using the <SPAN
7799 CLASS="bold"
7800 ><B
7801 CLASS="emphasis"
7802 >-name</B
7803 ></SPAN
7804 >
7805             argument to the <SPAN
7806 CLASS="bold"
7807 ><B
7808 CLASS="emphasis"
7809 >backup labeltape</B
7810 ></SPAN
7811 > command.</P
7812 ></LI
7813 ><LI
7814 ><P
7815 >A <SAMP
7816 CLASS="computeroutput"
7817 >&#60;NULL&#62;</SAMP
7818 > value, which results when you assign a permanent name, or provide
7819             no value for the <SPAN
7820 CLASS="bold"
7821 ><B
7822 CLASS="emphasis"
7823 >backup labeltape</B
7824 ></SPAN
7825 > command's <SPAN
7826 CLASS="bold"
7827 ><B
7828 CLASS="emphasis"
7829 >-name</B
7830 ></SPAN
7831 >
7832             argument.</P
7833 ></LI
7834 ><LI
7835 ><P
7836 >No AFS tape name at all, indicating that you have never labeled the tape or written a dump to it.</P
7837 ></LI
7838 ></UL
7839 ></P
7840 ><P
7841 >To bypass the name check, include the <SPAN
7842 CLASS="bold"
7843 ><B
7844 CLASS="emphasis"
7845 >NAME_CHECK NO</B
7846 ></SPAN
7847 > instruction in the device
7848       configuration file. This enables you to recycle a tape without first relabeling it, as long as all dumps on it are expired.
7849       (If a tape has unexpired dumps on it but you want to recycle it anyway, you must use the <SPAN
7850 CLASS="bold"
7851 ><B
7852 CLASS="emphasis"
7853 >backup
7854       labeltape</B
7855 ></SPAN
7856 > command to relabel it first. For this to work, the <SPAN
7857 CLASS="bold"
7858 ><B
7859 CLASS="emphasis"
7860 >ASK NO</B
7861 ></SPAN
7862 > instruction
7863       cannot appear in the device configuration file.)</P
7864 ></DIV
7865 ><DIV
7866 CLASS="sect2"
7867 ><H2
7868 CLASS="sect2"
7869 ><A
7870 NAME="HDRWQ281"
7871 >Setting the Memory Buffer Size to Promote Tape Streaming</A
7872 ></H2
7873 ><P
7874 >By default, the Tape Coordinator uses a 16-KB memory buffer during dump operations. As it receives volume data from the
7875       Volume Server, the Tape Coordinator gathers 16 KB of data in the buffer before transferring the entire 16 KB to the tape
7876       device. Similarly, during a restore operation the Tape Coordinator by default buffers 32 KB of data from the tape device
7877       before transferring the entire 32 KB to the Volume Server for restoration into the file system. Buffering makes the volume of
7878       data flowing to and from a tape device more even and so promotes tape streaming, which is the most efficient way for a tape
7879       device to operate.</P
7880 ><P
7881 >In a normal network configuration, the default buffer sizes are usually large enough to promote tape streaming. If the
7882       network between the Tape Coordinator machine and file server machines is slow, it can help to increase the buffer size.</P
7883 ><P
7884 >To determine if altering the buffer size is helpful for your configuration, observe the tape device in operation to see
7885       if it is streaming, or consult the manufacturer. To set the buffer size, include the <SPAN
7886 CLASS="bold"
7887 ><B
7888 CLASS="emphasis"
7889 >BUFFERSIZE</B
7890 ></SPAN
7891 > instruction in the device configuration file. It takes an integer value, and optionally
7892       units, in the following format:</P
7893 ><PRE
7894 CLASS="programlisting"
7895 ><SPAN
7896 CLASS="bold"
7897 ><B
7898 CLASS="emphasis"
7899 >BUFFERSIZE</B
7900 ></SPAN
7901 > size[{<SPAN
7902 CLASS="bold"
7903 ><B
7904 CLASS="emphasis"
7905 >k</B
7906 ></SPAN
7907 > | <SPAN
7908 CLASS="bold"
7909 ><B
7910 CLASS="emphasis"
7911 >K</B
7912 ></SPAN
7913 > | <SPAN
7914 CLASS="bold"
7915 ><B
7916 CLASS="emphasis"
7917 >m</B
7918 ></SPAN
7919 > | <SPAN
7920 CLASS="bold"
7921 ><B
7922 CLASS="emphasis"
7923 >M</B
7924 ></SPAN
7925 > | <SPAN
7926 CLASS="bold"
7927 ><B
7928 CLASS="emphasis"
7929 >g</B
7930 ></SPAN
7931 > | <SPAN
7932 CLASS="bold"
7933 ><B
7934 CLASS="emphasis"
7935 >G</B
7936 ></SPAN
7937 >}]
7938 </PRE
7939 ><P
7940 >where size specifies the amount of memory the Tape Coordinator allocates to use as a buffer during both dump and restore
7941       operations. The default unit is bytes, but use <SPAN
7942 CLASS="bold"
7943 ><B
7944 CLASS="emphasis"
7945 >k</B
7946 ></SPAN
7947 > or <SPAN
7948 CLASS="bold"
7949 ><B
7950 CLASS="emphasis"
7951 >K</B
7952 ></SPAN
7953 > to
7954       specify kilobytes, <SPAN
7955 CLASS="bold"
7956 ><B
7957 CLASS="emphasis"
7958 >m</B
7959 ></SPAN
7960 > or <SPAN
7961 CLASS="bold"
7962 ><B
7963 CLASS="emphasis"
7964 >M</B
7965 ></SPAN
7966 > for megabytes, and <SPAN
7967 CLASS="bold"
7968 ><B
7969 CLASS="emphasis"
7970 >g</B
7971 ></SPAN
7972 > or <SPAN
7973 CLASS="bold"
7974 ><B
7975 CLASS="emphasis"
7976 >G</B
7977 ></SPAN
7978 > for gigabytes. There is no space between the size value and the
7979       units letter.</P
7980 ></DIV
7981 ><DIV
7982 CLASS="sect2"
7983 ><H2
7984 CLASS="sect2"
7985 ><A
7986 NAME="HDRWQ282"
7987 >Dumping Data to a Backup Data File</A
7988 ></H2
7989 ><P
7990 >You can write dumps to a <SPAN
7991 CLASS="emphasis"
7992 ><I
7993 CLASS="emphasis"
7994 >backup data file</I
7995 ></SPAN
7996 > rather than to tape. This is useful if, for example, you
7997       want to transfer the data to a data-archiving system, such as a hierarchical storage management (HSM) system, that you use in
7998       conjunction with AFS and the Backup System. You can restore data from a backup data file into the file system as well. Using a
7999       backup data file is usually more efficient than issuing the equivalent <SPAN
8000 CLASS="bold"
8001 ><B
8002 CLASS="emphasis"
8003 >vos dump</B
8004 ></SPAN
8005 > and <SPAN
8006 CLASS="bold"
8007 ><B
8008 CLASS="emphasis"
8009 >vos restore</B
8010 ></SPAN
8011 > commands individually for multiple volumes.</P
8012 ><P
8013 >Writing to a backup data file is simplest if it is on the local disk of the Tape Coordinator machine, but you can also
8014       write the file to an NFS-mounted partition that resides on a remote machine. It is even acceptable to write to a file in AFS,
8015       provided that the access control list (ACL) on its parent directory grants the necessary permissions, but it is somewhat
8016       circular to back up AFS data into AFS itself.</P
8017 ><P
8018 >If the backup data file does not already exist when the Tape Coordinator attempts to write a dump to it, the Tape
8019       Coordinator creates it. For a restore operation to succeed, the file must exist and contain volume data previously written to
8020       it during a <SPAN
8021 CLASS="bold"
8022 ><B
8023 CLASS="emphasis"
8024 >backup dump</B
8025 ></SPAN
8026 > operation.</P
8027 ><P
8028 >When writing to a backup data file, the Tape Coordinator writes data at 16 KB offsets. If a given block of data (such as
8029       the marker that signals the beginning or end of a volume) does not fill the entire 16 KB, the Tape Coordinator still skips to
8030       the next offset before writing the next block. In the output of a <SPAN
8031 CLASS="bold"
8032 ><B
8033 CLASS="emphasis"
8034 >backup dumpinfo</B
8035 ></SPAN
8036 > command
8037       issued with the <SPAN
8038 CLASS="bold"
8039 ><B
8040 CLASS="emphasis"
8041 >-id</B
8042 ></SPAN
8043 > option, the value in the <SAMP
8044 CLASS="computeroutput"
8045 >Pos</SAMP
8046 > column is
8047       the ordinal of the 16-KB offset at which the volume data begins, and so is not generally only one higher than the position
8048       number on the previous line, as it is for dumps to tape.</P
8049 ><P
8050 >Before writing to a backup data file, you need to configure the file as though it were a tape device.</P
8051 ><DIV
8052 CLASS="note"
8053 ><BLOCKQUOTE
8054 CLASS="note"
8055 ><P
8056 ><B
8057 >Note: </B
8058 >A file pathname, rather than a tape device name, must appear in the third field of the <SPAN
8059 CLASS="bold"
8060 ><B
8061 CLASS="emphasis"
8062 >/usr/afs/backup/tapeconfig</B
8063 ></SPAN
8064 > file when the <SPAN
8065 CLASS="bold"
8066 ><B
8067 CLASS="emphasis"
8068 >FILE YES</B
8069 ></SPAN
8070 > instruction
8071         appears in the device configuration file, and vice versa. If the <SPAN
8072 CLASS="bold"
8073 ><B
8074 CLASS="emphasis"
8075 >tapeconfig</B
8076 ></SPAN
8077 > file instead
8078         refers to a tape device, dump operations appear to succeed but are inoperative. You cannot restore data that you accidently
8079         dumped to a tape device while the <SPAN
8080 CLASS="bold"
8081 ><B
8082 CLASS="emphasis"
8083 >FILE</B
8084 ></SPAN
8085 > instruction was set to <SPAN
8086 CLASS="bold"
8087 ><B
8088 CLASS="emphasis"
8089 >YES</B
8090 ></SPAN
8091 >. In the same way, if the <SPAN
8092 CLASS="bold"
8093 ><B
8094 CLASS="emphasis"
8095 >FILE</B
8096 ></SPAN
8097 > instruction is set to <SPAN
8098 CLASS="bold"
8099 ><B
8100 CLASS="emphasis"
8101 >NO</B
8102 ></SPAN
8103 >, the <SPAN
8104 CLASS="bold"
8105 ><B
8106 CLASS="emphasis"
8107 >tapeconfig</B
8108 ></SPAN
8109 > entry must refer to an actual tape device.</P
8110 ></BLOCKQUOTE
8111 ></DIV
8112 ></DIV
8113 ><DIV
8114 CLASS="sect2"
8115 ><H2
8116 CLASS="sect2"
8117 ><A
8118 NAME="Header_319"
8119 >To configure a backup data file</A
8120 ></H2
8121 ><OL
8122 TYPE="1"
8123 ><LI
8124 ><P
8125 >Verify that you are authenticated as a user listed in the <SPAN
8126 CLASS="bold"
8127 ><B
8128 CLASS="emphasis"
8129 >/usr/afs/etc/UserList</B
8130 ></SPAN
8131 >
8132           file. If necessary, issue the <SPAN
8133 CLASS="bold"
8134 ><B
8135 CLASS="emphasis"
8136 >bos listusers</B
8137 ></SPAN
8138 > command, which is fully described in <A
8139 HREF="c32432.html#HDRWQ593"
8140 >To display the users in the UserList file</A
8141 >. <PRE
8142 CLASS="programlisting"
8143 >&#13;   % <SPAN
8144 CLASS="bold"
8145 ><B
8146 CLASS="emphasis"
8147 >bos listusers</B
8148 ></SPAN
8149 > &#60;<VAR
8150 CLASS="replaceable"
8151 >machine name</VAR
8152 >&#62;
8153 </PRE
8154 ></P
8155 ></LI
8156 ><LI
8157 ><P
8158 >Become the local superuser <SPAN
8159 CLASS="bold"
8160 ><B
8161 CLASS="emphasis"
8162 >root</B
8163 ></SPAN
8164 > on the machine, if you are not already, by issuing
8165           the <SPAN
8166 CLASS="bold"
8167 ><B
8168 CLASS="emphasis"
8169 >su</B
8170 ></SPAN
8171 > command. <PRE
8172 CLASS="programlisting"
8173 >&#13;   % <SPAN
8174 CLASS="bold"
8175 ><B
8176 CLASS="emphasis"
8177 >su root</B
8178 ></SPAN
8179 >
8180    Password: &#60;<VAR
8181 CLASS="replaceable"
8182 >root_password</VAR
8183 >&#62;
8184 </PRE
8185 ></P
8186 ></LI
8187 ><LI
8188 ><P
8189 ><SPAN
8190 CLASS="bold"
8191 ><B
8192 CLASS="emphasis"
8193 >Optional</B
8194 ></SPAN
8195 >. Issue the <SPAN
8196 CLASS="bold"
8197 ><B
8198 CLASS="emphasis"
8199 >backup</B
8200 ></SPAN
8201 > command to enter
8202           interactive mode. <PRE
8203 CLASS="programlisting"
8204 >&#13;   # <SPAN
8205 CLASS="bold"
8206 ><B
8207 CLASS="emphasis"
8208 >backup</B
8209 ></SPAN
8210 >
8211 </PRE
8212 ></P
8213 ></LI
8214 ><LI
8215 ><P
8216 >Choose the port offset number to assign to the file. If necessary, display previously assigned port offsets by
8217           issuing the <SPAN
8218 CLASS="bold"
8219 ><B
8220 CLASS="emphasis"
8221 >(backup) listhosts</B
8222 ></SPAN
8223 > command, which is fully described in <A
8224 HREF="c12776.html#HDRWQ264"
8225 >To display the list of configured Tape Coordinators</A
8226 >. <PRE
8227 CLASS="programlisting"
8228 >&#13;   backup&#62; <SPAN
8229 CLASS="bold"
8230 ><B
8231 CLASS="emphasis"
8232 >listhosts</B
8233 ></SPAN
8234 >
8235 </PRE
8236 ></P
8237 ><P
8238 >As for a tape device, acceptable values are the integers <SPAN
8239 CLASS="bold"
8240 ><B
8241 CLASS="emphasis"
8242 >0</B
8243 ></SPAN
8244 > (zero) through <SPAN
8245 CLASS="bold"
8246 ><B
8247 CLASS="emphasis"
8248 >58510</B
8249 ></SPAN
8250 > (the Backup System can track a maximum of 58,511 port offset numbers). Each port offset must
8251           be unique in the cell, but you can associate any number them with a single Tape Coordinator machine. You do not have to
8252           assign port offset numbers sequentially.</P
8253 ></LI
8254 ><LI
8255 ><P
8256 >Issue the <SPAN
8257 CLASS="bold"
8258 ><B
8259 CLASS="emphasis"
8260 >(backup) addhost</B
8261 ></SPAN
8262 > command to register the backup data file's port offset
8263           in the Backup Database. <PRE
8264 CLASS="programlisting"
8265 >&#13;   backup&#62; <SPAN
8266 CLASS="bold"
8267 ><B
8268 CLASS="emphasis"
8269 >addhost</B
8270 ></SPAN
8271 > &#60;<VAR
8272 CLASS="replaceable"
8273 >tape machine name</VAR
8274 >&#62; [&#60;<VAR
8275 CLASS="replaceable"
8276 >TC port offset</VAR
8277 >&#62;]
8278 </PRE
8279 ></P
8280 ><P
8281 >where <DIV
8282 CLASS="variablelist"
8283 ><DL
8284 ><DT
8285 ><SPAN
8286 CLASS="bold"
8287 ><B
8288 CLASS="emphasis"
8289 >addh</B
8290 ></SPAN
8291 ></DT
8292 ><DD
8293 ><P
8294 >Is the shortest acceptable abbreviation of <SPAN
8295 CLASS="bold"
8296 ><B
8297 CLASS="emphasis"
8298 >addhost</B
8299 ></SPAN
8300 >.</P
8301 ></DD
8302 ><DT
8303 ><SPAN
8304 CLASS="bold"
8305 ><B
8306 CLASS="emphasis"
8307 >tape machine name</B
8308 ></SPAN
8309 ></DT
8310 ><DD
8311 ><P
8312 >Specifies the fully qualified hostname of the Tape Coordinator machine you invoke to write to the backup
8313                   data file.</P
8314 ></DD
8315 ><DT
8316 ><SPAN
8317 CLASS="bold"
8318 ><B
8319 CLASS="emphasis"
8320 >TC port offset</B
8321 ></SPAN
8322 ></DT
8323 ><DD
8324 ><P
8325 >Specifies the file's port offset number. You must provide this argument unless the default value of
8326                   <SPAN
8327 CLASS="bold"
8328 ><B
8329 CLASS="emphasis"
8330 >0</B
8331 ></SPAN
8332 > (zero) is appropriate.</P
8333 ></DD
8334 ></DL
8335 ></DIV
8336 ></P
8337 ></LI
8338 ><LI
8339 ><P
8340 ><A
8341 NAME="LITAPECONFIG-FILE"
8342 ></A
8343 >Using a text editor, create an entry for the backup data file in the local
8344           <SPAN
8345 CLASS="bold"
8346 ><B
8347 CLASS="emphasis"
8348 >/usr/afs/backup/tapeconfig</B
8349 ></SPAN
8350 > file, using the standard syntax: <PRE
8351 CLASS="programlisting"
8352 >&#13;   [capacity  filemark_size]  device_name   port_offset
8353 </PRE
8354 ></P
8355 ><P
8356 >where <DIV
8357 CLASS="variablelist"
8358 ><DL
8359 ><DT
8360 ><SPAN
8361 CLASS="bold"
8362 ><B
8363 CLASS="emphasis"
8364 >capacity</B
8365 ></SPAN
8366 ></DT
8367 ><DD
8368 ><P
8369 >Specifies the amount of space on the partition that houses the backup data file that you want to make
8370                   available for the file. To avoid the complications that arise from filling up the partition, it is best to provide
8371                   a value somewhat smaller than the actual amount of space you expect to be available when the dump operation runs,
8372                   and never larger than the maximum file size allowed by the operating system.</P
8373 ><P
8374 >Specify a numerical value followed by a letter that indicates units, with no intervening space. The letter
8375                   <SPAN
8376 CLASS="bold"
8377 ><B
8378 CLASS="emphasis"
8379 >k</B
8380 ></SPAN
8381 > or <SPAN
8382 CLASS="bold"
8383 ><B
8384 CLASS="emphasis"
8385 >K</B
8386 ></SPAN
8387 > indicates kilobytes, <SPAN
8388 CLASS="bold"
8389 ><B
8390 CLASS="emphasis"
8391 >m</B
8392 ></SPAN
8393 > or <SPAN
8394 CLASS="bold"
8395 ><B
8396 CLASS="emphasis"
8397 >M</B
8398 ></SPAN
8399 > indicates megabytes, and <SPAN
8400 CLASS="bold"
8401 ><B
8402 CLASS="emphasis"
8403 >g</B
8404 ></SPAN
8405 > or <SPAN
8406 CLASS="bold"
8407 ><B
8408 CLASS="emphasis"
8409 >G</B
8410 ></SPAN
8411 > indicates gigabytes. If you omit the units letter,
8412                   the default is kilobytes. If you leave this field empty, the Tape Coordinator uses the maximum acceptable value
8413                   (2048 GB or 2 TB). Also leave the filemark_size field empty in that case.</P
8414 ></DD
8415 ><DT
8416 ><SPAN
8417 CLASS="bold"
8418 ><B
8419 CLASS="emphasis"
8420 >filemark_size</B
8421 ></SPAN
8422 ></DT
8423 ><DD
8424 ><P
8425 >Specify the value <SPAN
8426 CLASS="bold"
8427 ><B
8428 CLASS="emphasis"
8429 >0</B
8430 ></SPAN
8431 > (zero) or leave both this field and the capacity field
8432                   empty. In the latter case, the Tape Coordinator also uses the value zero.</P
8433 ></DD
8434 ><DT
8435 ><SPAN
8436 CLASS="bold"
8437 ><B
8438 CLASS="emphasis"
8439 >device_name</B
8440 ></SPAN
8441 ></DT
8442 ><DD
8443 ><P
8444 >Specifies the complete pathname of the backup data file. Rather than specifying an actual file pathname,
8445                   however, the recommended configuration is to create a symbolic link in the <SPAN
8446 CLASS="bold"
8447 ><B
8448 CLASS="emphasis"
8449 >/dev</B
8450 ></SPAN
8451 >
8452                   directory that points to the actual file pathname, and record the symbolic link in this field. This configuration
8453                   provides these advantages: <UL
8454 ><LI
8455 ><P
8456 >It makes the device_name portion of the <SPAN
8457 CLASS="bold"
8458 ><B
8459 CLASS="emphasis"
8460 >CFG_</B
8461 ></SPAN
8462 >device_name, of the
8463                         <SPAN
8464 CLASS="bold"
8465 ><B
8466 CLASS="emphasis"
8467 >TE_</B
8468 ></SPAN
8469 >device_name, and of the <SPAN
8470 CLASS="bold"
8471 ><B
8472 CLASS="emphasis"
8473 >TL_</B
8474 ></SPAN
8475 >device_name
8476                         filenames as short as possible. Because the symbolic link is in the <SPAN
8477 CLASS="bold"
8478 ><B
8479 CLASS="emphasis"
8480 >/dev</B
8481 ></SPAN
8482 >
8483                         directory as though it is a tape device, you strip off the entire <SPAN
8484 CLASS="bold"
8485 ><B
8486 CLASS="emphasis"
8487 >/dev/</B
8488 ></SPAN
8489 >
8490                         prefix when forming the filename, instead of just the initial slash (<SPAN
8491 CLASS="bold"
8492 ><B
8493 CLASS="emphasis"
8494 >/</B
8495 ></SPAN
8496 >).
8497                         If, for example, the symbolic link is called <SPAN
8498 CLASS="bold"
8499 ><B
8500 CLASS="emphasis"
8501 >/dev/FILE</B
8502 ></SPAN
8503 >, the device
8504                         configuration file's name is <SPAN
8505 CLASS="bold"
8506 ><B
8507 CLASS="emphasis"
8508 >CFG_FILE</B
8509 ></SPAN
8510 >, whereas if the actual pathname
8511                         /<SPAN
8512 CLASS="bold"
8513 ><B
8514 CLASS="emphasis"
8515 >var/tmp/FILE</B
8516 ></SPAN
8517 > appears in the <SPAN
8518 CLASS="bold"
8519 ><B
8520 CLASS="emphasis"
8521 >tapeconfig</B
8522 ></SPAN
8523 >
8524                         file, the configuration file's name must be <SPAN
8525 CLASS="bold"
8526 ><B
8527 CLASS="emphasis"
8528 >CFG_var_tmp_FILE</B
8529 ></SPAN
8530 >.</P
8531 ></LI
8532 ><LI
8533 ><P
8534 >It provides for a more graceful, and potentially automated, recovery if the Tape Coordinator cannot
8535                         write a complete dump into the backup data file (for example, because the partition housing the backup data
8536                         file becomes full). The Tape Coordinator's reaction to this problem is to invoke the <SPAN
8537 CLASS="bold"
8538 ><B
8539 CLASS="emphasis"
8540 >MOUNT</B
8541 ></SPAN
8542 > script, or to prompt you if the <SPAN
8543 CLASS="bold"
8544 ><B
8545 CLASS="emphasis"
8546 >MOUNT</B
8547 ></SPAN
8548 >
8549                         instruction does not appear in the configuration file. <UL
8550 ><LI
8551 ><P
8552 >If there is a <SPAN
8553 CLASS="bold"
8554 ><B
8555 CLASS="emphasis"
8556 >MOUNT</B
8557 ></SPAN
8558 > script, you can prepare for this situation
8559                               by adding a subroutine to the script that changes the symbolic link to point to another backup data
8560                               file on a partition where there is space available.</P
8561 ></LI
8562 ><LI
8563 ><P
8564 >If there is no <SPAN
8565 CLASS="bold"
8566 ><B
8567 CLASS="emphasis"
8568 >MOUNT</B
8569 ></SPAN
8570 > instruction, the prompt enables you
8571                               manually to change the symbolic link to point to another backup data file and then press &#60;<SPAN
8572 CLASS="bold"
8573 ><B
8574 CLASS="emphasis"
8575 >Return</B
8576 ></SPAN
8577 >&#62; to signal that the Tape Coordinator can continue the
8578                               operation.</P
8579 ></LI
8580 ></UL
8581 ></P
8582 ><P
8583 >If this field names the actual file, there is no way to recover from exhausting the space on the
8584                         partition. You cannot change the <SPAN
8585 CLASS="bold"
8586 ><B
8587 CLASS="emphasis"
8588 >tapeconfig</B
8589 ></SPAN
8590 > file in the middle of an
8591                         operation.</P
8592 ></LI
8593 ></UL
8594 ></P
8595 ></DD
8596 ><DT
8597 ><SPAN
8598 CLASS="bold"
8599 ><B
8600 CLASS="emphasis"
8601 >port_offset</B
8602 ></SPAN
8603 ></DT
8604 ><DD
8605 ><P
8606 >Specifies the port offset number that you chose for the backup data file.</P
8607 ></DD
8608 ></DL
8609 ></DIV
8610 ></P
8611 ></LI
8612 ><LI
8613 ><P
8614 >Create the device configuration file <SPAN
8615 CLASS="bold"
8616 ><B
8617 CLASS="emphasis"
8618 >CFG_</B
8619 ></SPAN
8620 >device_name in the Tape Coordinator
8621           machine's <SPAN
8622 CLASS="bold"
8623 ><B
8624 CLASS="emphasis"
8625 >/usr/afs/backup</B
8626 ></SPAN
8627 > directory. Include the <SPAN
8628 CLASS="bold"
8629 ><B
8630 CLASS="emphasis"
8631 >FILE
8632           YES</B
8633 ></SPAN
8634 > instruction in the file.</P
8635 ><P
8636 >Construct the device_name portion of the name based on the device name you recorded in the <SPAN
8637 CLASS="bold"
8638 ><B
8639 CLASS="emphasis"
8640 >tapeconfig</B
8641 ></SPAN
8642 > file in Step <A
8643 HREF="c12776.html#LITAPECONFIG-FILE"
8644 >6</A
8645 >. If, as recommended, you
8646           recorded a symbolic link name, strip off the <SPAN
8647 CLASS="bold"
8648 ><B
8649 CLASS="emphasis"
8650 >/dev/</B
8651 ></SPAN
8652 > string and replace any other slashes
8653           (<SPAN
8654 CLASS="bold"
8655 ><B
8656 CLASS="emphasis"
8657 >/</B
8658 ></SPAN
8659 >) in the name with underscores (<SPAN
8660 CLASS="bold"
8661 ><B
8662 CLASS="emphasis"
8663 >_</B
8664 ></SPAN
8665 >). For example,
8666           <SPAN
8667 CLASS="bold"
8668 ><B
8669 CLASS="emphasis"
8670 >CFG_FILE</B
8671 ></SPAN
8672 > is the appropriate name if the symbolic link is <SPAN
8673 CLASS="bold"
8674 ><B
8675 CLASS="emphasis"
8676 >/dev/FILE</B
8677 ></SPAN
8678 >. If you recorded the name of an actual file, then strip off the initial slash only and
8679           replace any other slashes in the name with underscores. For a backup data file called <SPAN
8680 CLASS="bold"
8681 ><B
8682 CLASS="emphasis"
8683 >/var/tmp/FILE</B
8684 ></SPAN
8685 >, the appropriate device configuration filename is <SPAN
8686 CLASS="bold"
8687 ><B
8688 CLASS="emphasis"
8689 >CFG_var_tmp_FILE</B
8690 ></SPAN
8691 >.</P
8692 ></LI
8693 ><LI
8694 ><P
8695 >If you chose in Step <A
8696 HREF="c12776.html#LITAPECONFIG-FILE"
8697 >6</A
8698 > to record a symbolic link name in the device_name
8699           field of the <SPAN
8700 CLASS="bold"
8701 ><B
8702 CLASS="emphasis"
8703 >tapeconfig</B
8704 ></SPAN
8705 > entry, then you must do one of the following: <UL
8706 ><LI
8707 ><P
8708 >Use the <SPAN
8709 CLASS="bold"
8710 ><B
8711 CLASS="emphasis"
8712 >ln -s</B
8713 ></SPAN
8714 > command to create the appropriate symbolic link in the
8715                 <SPAN
8716 CLASS="bold"
8717 ><B
8718 CLASS="emphasis"
8719 >/dev</B
8720 ></SPAN
8721 > directory</P
8722 ></LI
8723 ><LI
8724 ><P
8725 >Write a script that initializes the backup data file in this way, and include a <SPAN
8726 CLASS="bold"
8727 ><B
8728 CLASS="emphasis"
8729 >MOUNT</B
8730 ></SPAN
8731 > instruction in the device configuration file to invoke the script. An example script
8732                 appears following these instructions.</P
8733 ></LI
8734 ></UL
8735 ></P
8736 ></LI
8737 ></OL
8738 ><P
8739 >You do not need to create the backup data file itself, because the Tape Coordinator does so if the file does not exist
8740       when the dump operation begins.</P
8741 ><P
8742 >The following example script illustrates how you can automatically create a symbolic link to the backup data file during
8743       the preparation phase for writing to the file. When the Tape Coordinator is executing a <SPAN
8744 CLASS="bold"
8745 ><B
8746 CLASS="emphasis"
8747 >backup
8748       dump</B
8749 ></SPAN
8750 >, <SPAN
8751 CLASS="bold"
8752 ><B
8753 CLASS="emphasis"
8754 >backup restore</B
8755 ></SPAN
8756 >, <SPAN
8757 CLASS="bold"
8758 ><B
8759 CLASS="emphasis"
8760 >backup savedb</B
8761 ></SPAN
8762 >, or <SPAN
8763 CLASS="bold"
8764 ><B
8765 CLASS="emphasis"
8766 >backup restoredb</B
8767 ></SPAN
8768 > operation, the routine invokes the UNIX <SPAN
8769 CLASS="bold"
8770 ><B
8771 CLASS="emphasis"
8772 >ln -s</B
8773 ></SPAN
8774 > command
8775       to create a symbolic link from the backup data file named in the <SPAN
8776 CLASS="bold"
8777 ><B
8778 CLASS="emphasis"
8779 >tapeconfig</B
8780 ></SPAN
8781 > file to the
8782       actual file to use (this is the recommended method). It uses the values of the <SAMP
8783 CLASS="computeroutput"
8784 >tapename</SAMP
8785 > and
8786       <SAMP
8787 CLASS="computeroutput"
8788 >tapeid</SAMP
8789 > parameters passed to it by the Backup System when constructing the filename.</P
8790 ><P
8791 >The routine makes use of two other parameters as well: <SAMP
8792 CLASS="computeroutput"
8793 >tries</SAMP
8794 > and
8795       <SAMP
8796 CLASS="computeroutput"
8797 >operation</SAMP
8798 >. The <SAMP
8799 CLASS="computeroutput"
8800 >tries</SAMP
8801 > parameter tracks how many times the
8802       Tape Coordinator has attempted to access the file. A value greater than one indicates that the Tape Coordinator cannot access
8803       it, and the routine returns exit code 2 (<SAMP
8804 CLASS="computeroutput"
8805 >exit_interactive</SAMP
8806 >), which results in a prompt for the
8807       operator to load a tape. The operator can use this opportunity to change the name of the backup data file specified in the
8808       <SPAN
8809 CLASS="bold"
8810 ><B
8811 CLASS="emphasis"
8812 >tapeconfig</B
8813 ></SPAN
8814 > file.</P
8815 ><PRE
8816 CLASS="programlisting"
8817 >&#13;   #! /bin/csh -f
8818    set devicefile = $1
8819    set operation = $2
8820    set tries = $3
8821    set tapename = $4
8822    set tapeid = $5
8823    set exit_continue = 0
8824    set exit_abort = 1
8825    set exit_interactive = 2
8826    #--------------------------------------------
8827    if (${tries} &#62; 1) then
8828       echo "Too many tries"
8829       exit ${exit_interactive}
8830    endif
8831    if (${operation} == "labeltape") then
8832       echo "Won't label a tape/file"
8833       exit ${exit_abort}
8834    endif
8835    if ((${operation} == "dump")   |\
8836        (${operation} == "appenddump")   |\
8837        (${operation} == "restore")   |\
8838        (${operation} == "savedb")    |\
8839        (${operation} == "restoredb")) then
8840       /bin/rm -f ${devicefile}
8841       /bin/ln -s /hsm/${tapename}_${tapeid} ${devicefile}
8842       if (${status} != 0) exit ${exit_abort}
8843    endif
8844    exit ${exit_continue}
8845 </PRE
8846 ></DIV
8847 ></DIV
8848 ></DIV
8849 ><DIV
8850 CLASS="NAVFOOTER"
8851 ><HR
8852 ALIGN="LEFT"
8853 WIDTH="100%"><TABLE
8854 SUMMARY="Footer navigation table"
8855 WIDTH="100%"
8856 BORDER="0"
8857 CELLPADDING="0"
8858 CELLSPACING="0"
8859 ><TR
8860 ><TD
8861 WIDTH="33%"
8862 ALIGN="left"
8863 VALIGN="top"
8864 ><A
8865 HREF="c8420.html"
8866 ACCESSKEY="P"
8867 >Prev</A
8868 ></TD
8869 ><TD
8870 WIDTH="34%"
8871 ALIGN="center"
8872 VALIGN="top"
8873 ><A
8874 HREF="book1.html"
8875 ACCESSKEY="H"
8876 >Home</A
8877 ></TD
8878 ><TD
8879 WIDTH="33%"
8880 ALIGN="right"
8881 VALIGN="top"
8882 ><A
8883 HREF="c15383.html"
8884 ACCESSKEY="N"
8885 >Next</A
8886 ></TD
8887 ></TR
8888 ><TR
8889 ><TD
8890 WIDTH="33%"
8891 ALIGN="left"
8892 VALIGN="top"
8893 >Managing Volumes</TD
8894 ><TD
8895 WIDTH="34%"
8896 ALIGN="center"
8897 VALIGN="top"
8898 ><A
8899 HREF="p3023.html"
8900 ACCESSKEY="U"
8901 >Up</A
8902 ></TD
8903 ><TD
8904 WIDTH="33%"
8905 ALIGN="right"
8906 VALIGN="top"
8907 >Backing Up and Restoring AFS Data</TD
8908 ></TR
8909 ></TABLE
8910 ></DIV
8911 ></BODY
8912 ></HTML
8913 >