VOS_LISTVOL(1)
π VOS_LISTVOL π β or, as your girlies call it, vos listvol
AFS Command Reference β¨ part of the vos squad, and honestly? she's the one who tells you everything about your volumes' lil heads. π§ π
πΈ NAME πΈ
vos_listvol β bestie, she literally just displays information from a volume header. that's her whole job and she does it flawlessly. π
β¨ SYNOPSIS β¨
okay so there are TWO ways to spell her name and both are valid, no cap:
vos listvol -server <machine name>
[-partition <partition name>]
[-fast] [-long] [-quiet]
[-extended] [-format]
[-cell <cell name>] [-noauth] [-localauth]
[-verbose] [-encrypt] [-noresolve]
[-config <config directory>]
[-help]
and the short girlie version (same energy, fewer letters):
vos listvo -s <machine name>
[-p <partition name>]
[-fa] [-lon] [-q] [-ex] [-fo]
[-c <cell name>]
[-noa] [-loc] [-v] [-en] [-nor]
[-co <config directory>]
[-h]
π¦ DESCRIPTION π¦
so like, vos listvol formats and displays the following info from the volume header of every volume you point at: volume name, volume ID, volume type, size, and status at the server. β¨ that's the β¨ lineup β¨.
BUT β and this is the tea β β the actual info you get depends on which combo of arguments you bring to the function. she's adaptable like that, main character energy. π to display volume header info for various numbers of volumes, you combine the arguments like this:
- π for every volume on a file server machine: hand her the machine's name with the
-serverargument. - π for every volume at one particular site: pair the
-serverargument with the-partitionargument. teamwork makes the dream work, fr fr.
π‘ pro tip from me to you: to display the Volume Location Database (VLDB) entry for one or more volumes, use thevos listvldbcommand. and if you want both the VLDB entry and the volume header for a single volume? that'svos examine's moment. different girlies, different jobs. π«Ά
π OPTIONS π
strap in bestie, there are a LOT of them and they're all iconic in their own way:
-server<server name>β identifies the file server machine that houses the volumes you want headers for. give her the machine's IP address or its host name (either fully qualified or using an unambiguous abbreviation). for deets, seevos(1). this argument can be combined with the-partitionargument, and with the-fast,-long, or-extendedflag. she's flexible like that. π-partition<partition name>β identifies the partition (on the file server machine that-servernamed) that houses the volumes you want headers for. give her the partition's complete name with the preceding slash (for example,/vicepa) or use one of the three acceptable abbreviated forms. for deets, seevos(1).-fastβ displays only the volume ID numbers of volumes stored at the site specified by the-serverargument, and optionally the-partitionargument. β‘
β οΈ do NOT combine this flag with the -extended flag. pick a lane, bestie.
-longβ displays more detailed info about each volume stored at the site specified by the-serverargument, and optionally-partition. the info includes the volume IDs of all three volume types associated with the volume, plus the read/write volume's quota, creation date and update date. the full β¨ lore β¨.-quietβ suppresses the lines that summarize the number of volumes listed and their status. those lines otherwise show up at the beginning and end of the output when the output includes more than one volume. shhh. π€«-extendedβ displays extensive statistics about access patterns for each volume stored at the site specified by the-serverargument, and optionally-partition. the stats include the number of reads and writes to files in the volume, and how recently files and directories have been updated by their owners or other users. π
β οΈ do NOT combine this flag with the -fast flag. i'm serious. π
-formatβ show information in a format suitable for machine parsing. robots deserve gorgeous data too. π€π-cell<cell name>β names the cell in which to run the command. do not combine this argument with the-localauthflag. for more details, seevos(1). lowkey important!!-noauthβ assigns the unprivileged identity"anonymous"to the issuer. do not combine this flag with the-localauthflag. for more details, seevos(1).-localauthβ constructs a server ticket using a key from the local/etc/openafs/server/KeyFilefile. thevoscommand interpreter presents it to the Volume Server and Volume Location Server during mutual authentication. do not combine this flag with the-cellargument or the-noauthflag. for more details, seevos(1).-verboseβ produces on the standard output stream a detailed trace of the command's execution. if this argument is omitted, only warnings and error messages appear. she goes full detective mode. π-encryptβ encrypts the command so that the operation's results are not transmitted across the network in clear text. π this option is available in OpenAFS versions1.4.11or later and1.5.60or later.-noresolveβ shows all servers as IP addresses instead of the DNS name. this is very useful when the server address is registered as127.0.0.1or when dealing with multi-homed servers. π this option is available in OpenAFS versions1.4.8or later and1.5.35or later.-config<configuration directory>β set the location of the configuration directory to be used. this defaults to/etc/openafs, except if-localauthis specified, in which case the default is/etc/openafs/server. this option allows the use of alternative configuration locations for testing purposes. π§ͺ-helpβ prints the online help for this command. all other valid options are ignored. she said "i'm helping, nothing else matters." πββοΈ
π OUTPUT π
the output is ordered alphabetically by volume name, and by default it gives you the following info on a single line for each volume:
- π Name
- π Volume ID number
- π Type (the flag is
"RW"for read/write,"RO"for read-only,"BK"for backup) - π Size in kilobytes (
1024equals a megabyte) - π Number of files in the volume, if the
-extendedflag is provided - π Status on the file server machine, which is one of the following:
- On-line β the volume is completely accessible to Cache Managers. π’ living her best life.
- Off-line β the volume is not accessible to Cache Managers, but does not seem to be corrupted. this status appears while a volume is being dumped, for example. π‘
- Off-line**needs salvage** β the volume is not accessible to Cache Managers, because it seems to be corrupted. use the
bos salvageorsalvagercommand to repair the corruption. π¨ call the doctor!!
if the following message appears instead of the info listed above, it means a volume is not accessible to Cache Managers or the vos command interpreter, for example because a clone is being created:
**** Volume <volume_ID> is busy ****
if this message appears instead of the info listed above, it means the File Server is unable to attach the volume, perhaps because it is seriously corrupted: π
**** Could not attach volume <volume_ID> ****
the FileLog and VolserLog log files in the /var/log/openafs directory on the file server machine possibly provide additional information; use the bos getlog command to display them. π
the info about individual volumes is bracketed by summary lines. the first line of output specifies the number of volumes in the listing. the last line of output summarizes the number of volumes that are online, offline, and busy. these lines do not appear if the -quiet flag is used. π
β‘ if you add -fast β‘
the output displays only the volume ID number of each volume, arranged in increasing numerical order. π’ the final line (the one that summarizes the number of online, offline, and busy volumes) is omitted. bye bestie. π
π if you include -long π
the output for each volume includes all the info in the default listing plus the following. each item in this list corresponds to a separate line of output:
- π the file server machine and partition that house the volume, as determined by the command interpreter as the command runs, rather than derived from the VLDB or the volume header. (she's live-reporting, not reading off a card. π )
- π the volume ID numbers associated with the various versions of the volume: read/write (
"RWrite"), read-only ("ROnly"), backup ("Backup"), and ReleaseClone ("RClone"). one of them matches the volume ID number that appears on the first line of the volume's output. if the value in the"RWrite","ROnly", or"Backup"field is0(zero), there is no volume of that type. if there is currently no ReleaseClone, the"RClone"field does not appear at all. π - π the maximum space quota allotted to the read/write copy of the volume, expressed in kilobyte blocks in the
"MaxQuota"field. - π the date and time the volume was created, in the
"Creation"field. if the volume has been restored with thebackup diskrestore,backup volrestore, orvos restorecommand, this is the restore time. β° - π the date and time when the contents of the volume last changed, in the
"Last Update"field. for read-only and backup volumes, it matches the timestamp in the"Creation"field. - π the number of times the volume has been accessed for a fetch or store operation since the later of the two following times:
- the time
12:00 a.m.on the day the command is issued - the last time the volume changed location
- the time
π if you include -extended π
the output for each volume includes all the info reported with the -long flag, plus two tables of statistics:
- π the table labeled
"Raw Read/Write Stats"summarizes the number of times the volume has been accessed for reading or writing. - π the table labeled
"Writes Affecting Authorship"contains information on writes made to files and directories in the specified volume.
β¨ EXAMPLES β¨
okay bestie, storytime π β here's what it actually looks like when you run this thing.
So say we're peeking at the /vicepb partition on the file server machine "fs2.example.com", and we pass no flags at all. Here's the whole vibe:
% vos listvol -server fs2.example.com -partition b
Total number of volumes on server fs2.example.com partition /vicepb : 66
sys 1969534847 RW 1582 K On-line
sys.backup 1969535105 BK 1582 K On-line
. . . . . .
. . . . . .
user.pat 1969534536 RW 17518 K On-line
user.pat.backup 1969534538 BK 17537 K On-line
Total volumes onLine 66 ; Total volumes offLine 0 ; Total busy 0
(those dotted lines in the middle? that's just the manpage going "and a bunch more, you get it" β no cap, the command prints every single one π )
Now watch what happens when you toss -fast into the mix. every volume ID, nothing else, pure efficiency:
% vos listvol -server fs2.example.com -partition b -fast
Total number of volumes on server fs2.example.com partition /vicepb : 66
1969516782
1969516784
.
.
1969535796
And finally, the -long glow-up β¨ β here are two volumes from the output that shows up when -long is added:
% vos listvol -server fs2.example.com -partition b -long
Total number of volumes on server fs2.example.com partition /vicepb: 66
. . . . . .
. . . . . .
user.pat 1969534536 RW 17518 K On-line
fs2.example.com /vicepb
RWrite 1969534536 ROnly 0 Backup 1969534538
MaxQuota 20000 K
Creation Mon Jun 12 09:02:25 1989
Last Update Thu May 20 17:39:34 1999
1573 accesses in the past day (i.e., vnode references)
user.pat.backup 1969534538 BK 17537 K On-line
fs2.example.com /vicepb
RWrite 1969534536 ROnly 0 Backup 1969534538
MaxQuota 20000 K
Creation Tue Jun 13 04:37:59 1989
Last Update Wed May 19 06:37:59 1999
0 accesses in the past day (i.e., vnode references)
. . . . . .
. . . . . .
Total volumes onLine 66 ; Total volumes offLine 0 ; Total busy 0
see how much extra lore you get with -long? RWrite, ROnly, Backup, MaxQuota, Creation, Last Update, and the vnode reference access count from the past day β it's giving full dossier π΅οΈββοΈπ
π PRIVILEGE REQUIRED π
None. literally none. you need zero special permissions, it's free, it's open, go off π
π SEE ALSO π
go read these too, bestie, they're the whole friend group:
backup_diskrestore(8)backup_volrestore(8)bos_getlog(8)bos_salvage(8)salvager(8)vos(1)vos_examine(1)vos_listvldb(1)vos_restore(1)
Β©οΈ COPYRIGHT Β©οΈ
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
okay that's the whole page, we made it π«Ά this one came from OpenAFS, dated 2026-07-27, and it's the VOS_LISTVOL(1) page β now go forth and list some volumes, you absolute main character π
β¨π
π¦ where this page comes from
- ubuntu stonking: openafs-client 1.8.16.1-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms