man-page-name-underscore-20071111
[openafs.git] / doc / man-pages / pod1 / fs_setvol.pod
1 =head1 NAME
2
3 fs_setvol - Set quota and messages for a volume containing a file or directory
4
5 =head1 SYNOPSIS
6
7 =for html
8 <div class="synopsis">
9
10 B<fs setvol> S<<< [B<-path> <I<dir/file path>>+] >>>
11     S<<< [B<-max> <I<disk space quota in 1K units>>] >>>
12     S<<< [B<-offlinemsg> <I<offline message>>] >>> [B<-help>]
13
14 B<fs setv> S<<< [B<-p> <I<dir/file path>>+] >>>
15     S<<< [B<-ma> <I<disk space quota in 1K units>>] >>>
16     S<<< [B<-o> <I<offline message>>] >>> [B<-h>]
17
18 B<fs sv> S<<< [B<-p> <I<dir/file path>>+] >>>
19     S<<< [B<-ma> <I<disk space quota in 1K units>>] >>>
20     S<<< [B<-o> <I<offline message>>] >>> [B<-h>]
21
22 =for html
23 </div>
24
25 =head1 DESCRIPTION
26
27 The B<fs setvol> command sets the quota (maximum possible size) of the
28 read/write volume that contains each directory or file named by the
29 B<-path> argument. To associate a message with the volume which then
30 appears in the output of the B<fs examine> command, include the
31 B<-offlinemsg> argument.
32
33 To display all of the settings made with this command, use the B<fs
34 examine> command. The B<fs listquota> command reports a fileset's quota,
35 and the B<fs quota> command the percent of quota used.
36
37 To set quota on one volume at a time, use the B<fs setquota> command.
38
39 =head1 OPTIONS
40
41 =over 4
42
43 =item B<-path> <I<dir/file path>>+
44
45 Names each file or directory for which to set the host volume's quota and
46 offline message. Partial pathnames are interpreted relative to the current
47 working directory, which is also the default value if this argument is
48 omitted.
49
50 Specify the read/write path to the file or directory, to avoid the failure
51 that results from attempting to change a read-only volume. By convention,
52 the read/write path is indicated by placing a period before the cell name
53 at the pathname's second level (for example, F</afs/.abc.com>). For
54 further discussion of the concept of read/write and read-only paths
55 through the filespace, see the B<fs mkmount> reference page.
56
57 =item B<-max> <I<disk space quota in 1K units>>
58
59 Sets the maximum amount of file server disk space the volume can
60 occupy. Provide a positive integer to indicate the number of one-kilobyte
61 blocks (C<1024> is one megabyte). A value of C<0> sets an unlimited quota,
62 but the size of the disk partition that houses the volume places an
63 absolute limit on the volume's size.
64
65 If the B<-path> argument is omitted (so that the command sets the quota of
66 the volume housing the current working directory), the B<-max> switch must
67 be provided.
68
69 =item B<-offlinemsg>
70
71 Associates a message with the volume which then appears in the output of
72 the B<fs examine> command. Its intended use is to explain why the volume
73 is currently offline.
74
75 =item B<-help>
76
77 Prints the online help for this command. All other valid options are
78 ignored.
79
80 =back
81
82 =head1 EXAMPLES
83
84 The following command imposes a 6500 kilobyte quota on the volumes mounted
85 at the home directories F</afs/abc.com/usr/smith> and
86 F</afs/abc.com/usr/pat>:
87
88    % cd /afs/abc.com/usr
89    % fs setvol -path smith pat -max 6500B<>
90
91 =head1 PRIVILEGE REQUIRED
92
93 The issuer must belong to the system:administrators group.
94
95 =head1 SEE ALSO
96
97 L<fs_examine(1)>,
98 L<fs_listquota(1)>,
99 L<fs_mkmount(1)>,
100 L<fs_quota(1)>,
101 L<fs_setquota(1)>
102
103 =head1 COPYRIGHT
104
105 IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
106
107 This documentation is covered by the IBM Public License Version 1.0.  It was
108 converted from HTML to POD by software written by Chas Williams and Russ
109 Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.