Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod8 / fragments / salvager-description.pod
CommitLineData
805e021f
CE
1The Salvager restores internal consistency to corrupted read/write volumes
2on the local file server machine where possible. For read-only or backup
3volumes, it inspects only the volume header:
4
5=over 4
6
7=item *
8
9If the volume header is corrupted, the Salvager removes the volume
10completely and records the removal in its log file,
11F</usr/afs/logs/SalvageLog>. Issue the B<vos release> or B<vos backup>
12command to create the read-only or backup volume again.
13
14=item *
15
16If the volume header is intact, the Salvager skips the volume (does not
17check for corruption in the contents). However, if the File Server notices
18corruption as it initializes, it sometimes refuses to attach the volume or
19bring it online. In this case, it is simplest to remove the volume by
20issuing the B<vos remove> or B<vos zap> command. Then issue the B<vos
21release> or B<vos backup> command to create it again.
22
23=back
24
25Unlike other server process initialization commands, the Salvager
26command is designed to be issued at the command shell prompt, as well as
27being placed into a file server machine's F</usr/afs/local/BosConfig> file
28with the B<bos create> command. It is also possible to invoke the Salvager
29remotely by issuing the B<bos salvage> command.
30
31Combine the command's options as indicated to salvage different numbers of
32read/write volumes:
33
34=over 4
35
36=item *
37
38To salvage all volumes on the file server machine, provide no arguments.
39No volumes on the machine are accessible to Cache Managers during the
40salvage, because the BOS Server stops the File Server and Volume Server
41processes while the Salvager runs.
42
43=item *
44
45To salvage all of the volumes on one partition, provide the B<-partition>
46argument. As for a salvage of all volumes on the machine, no volumes on
47the machine are accessible to Cache Managers during the salvage operation.
48
49=item *
50
51To salvage only one volume, combine the B<-partition> and B<-volumeid>
52arguments. Only that volume is inaccessible to Cache Managers, because the
53BOS Server does not shutdown the File Server and Volume Server processes.
54
55=back
56
57The Salvager normally salvages only those read/write volumes that are
58marked as having been active when a crash occurred. To have it salvage all
59relevant read/write volumes, add the B<-force> flag.
60
61The Salvager normally creates new inodes as it repairs damage. If the
62partition is so full that there is no room for new inodes, use the
63B<-nowrite> argument to bringing undamaged volumes online without
64attempting to salvage damaged volumes. Then use the B<vos move> command to
65move one or more of the undamaged volumes to other partitions, freeing up
66the space that the Salvager needs to create new inodes.
67
68By default, multiple Salvager subprocesses run in parallel: one for each
69partition up to four, and four subprocesses for four or more
70partitions. To increase or decrease the number of subprocesses running in
71parallel, provide a positive integer value for the B<-parallel> argument.
72
73If there is more than one server partition on a physical disk, the
74Salvager by default salvages them serially to avoid the inefficiency of
75constantly moving the disk head from one partition to another. However,
76this strategy is often not ideal if the partitions are configured as
77logical volumes that span multiple disks. To force the Salvager to salvage
78logical volumes in parallel as if they were on separate disks, provide the
79string C<all> as the value for the B<-parallel> argument.
80
81To set both parameters at the same time, append the number of Salvager
82processes to the string C<all>. For example, C<-parallel all5> treats
83each partition as a separate disk and runs five Salvager processes, thus
84salvaging five partitions at a time.
85
86The Salvager creates temporary files as it runs, by default writing them
87to the partition it is salvaging. The number of files can be quite large,
88and if the partition is too full to accommodate them, the Salvager
89terminates without completing the salvage operation (it always removes the
90temporary files before exiting). Other Salvager subprocesses running at
91the same time continue until they finish salvaging all other partitions
92where there is enough disk space for temporary files. To complete the
93interrupted salvage, reissue the command against the appropriate
94partitions, adding the B<-tmpdir> argument to redirect the temporary files
95to a local disk directory that has enough space.
96
97The B<-orphans> argument controls how the Salvager handles orphaned files
98and directories that it finds on server partitions it is salvaging. An
99I<orphaned> element is completely inaccessible because it is not
100referenced by the vnode of any directory that can act as its parent (is
101higher in the filespace). Orphaned objects occupy space on the server
102partition, but do not count against the volume's quota.
103
104To generate a list of all mount points that reside in one or more volumes,
105rather than actually salvaging them, include the B<-showmounts> flag.
106
107This command does not use the syntax conventions of the AFS command
108suites. Provide the command name and all option names in full.
109