[309] in Info-AFS_Redistribution

home help back first fref pref prev next nref lref last post

a potentially useful script.

daemon@ATHENA.MIT.EDU (Bill Sommerfeld)
Thu Sep 12 19:25:55 1991

Date: Thu, 12 Sep 91 18:26:36 EDT
From: wesommer@MIT.EDU (Bill Sommerfeld)
To: info-afs@transarc.com

Some time ago, I wrote a trivial Bourne shell script I call "vspace",
found in /afs/athena.mit.edu/user/w/wesommer/lib/scripts/vspace.  It
lets you examine at the disk space available in an AFS cell.

It assumes that there is an /afs/{cell}/partitions or
/afs/{cell}/service/partitions directory containing one volume on each
disk, and it does an "fs df *" in that directory, and sorts the
output.

Usage: vspace {-option} cellname
	-p (default) sorts by percent used
	-b sorts by blocks free
	-s sorts by partition size.

Sample output:

% vspace sipb.mit.edu
Volume Name           kbytes  used     avail     %used
disk.rosebud.b        831488  140652  690836       17%
disk.rosebud.a        831488  176132  655356       21%
disk.ronald-ann.b     254662  158866   95796       62%
disk.ronald-ann.c     254662  177596   77066       70%
disk.ronald-ann.d     328875  282030   46845       86%
disk.ronald-ann.a     226220  199101   27119       88%
disk.ronald-ann.e     328875  292426   36449       89%
------------------------------------------------------
Total                3056270 1426803 1629467       46%

I prefer this to "vos partinfo" (althoguh it existed well before
partinfo existed) because I find the output more readible, and because
(in combination with the "partitions" directory in the cell), it makes
it possible to look at *all* the fileservers in the cell at one time.

					- Bill

home help back first fref pref prev next nref lref last post