NAME

vos_listloc - Displays a volume's location information

SYNOPSIS

vos listloc [-name <volume name or ID>] [-server <machine name>] [-partition <partition name>] [-locked] [-quiet] [-nosort] [-cell <cell name>] [-noauth] [-auth] [-localauth] [-encrypt [<yes|no>]] [-verbose] [-noresolve] [-config <configuration file>] [-help]

DESCRIPTION

The vos listloc command formats and displays information from the Location Service for each volume specified. The output depends on the combination of options supplied on the command line. Combine options as indicated to display the desired set of volumes:

OPTIONS

-name <volume name or ID>

Specifies either the complete name or volume ID number of a volume of any of the three types.

-server <server name>

Specifies a File Server to use as a filter when selecting volumes to display. Provide a fully qualified host name, an IP address or UUID as reported by vos listfs.

This argument can be combined with the -partition argument, the -locked flag, or both.

-partition <partition name>

Specifies a partition name to use as a filter when selecting volumes to display. Provide the partition's complete name with preceding slash (for example, /vicepa) or use one of the three acceptable abbreviated forms. For details, see vos(1).

This argument can be combined with the -server argument, the -locked flag, or both.

-locked

When specified, only locked volumes are displayed.

This flag can be combined with the -server argument, the -partition argument, or both.

-quiet

Suppresses the header and footer that summarize the number of volumes listed and their status, which otherwise appear at the beginning and end of the output when the output includes more than one volume.

-nosort

Suppresses the default sorting of volume entries alphabetically by volume name.

-cell <cell name>

Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see vos.

-noauth

Assigns the unprivileged identity anonymous to the issuer. Do not combine this flag with the -localauth flag. For more details, see vos.

-localauth

Obtains an authentication token using the server encryption key with the highest key version number in the local /etc/yfs/server/KeyFileEx file. The resulting token never expires and has Super User privileges. Do not combine this flag with the -cell argument or -noauth flag. For more details, see vos.

-auth

Use the calling user's tokens from the kernel or as obtained using the active Kerberos ticket granting ticket to communicate with the Volume Server and Location Service. This is the default if neither -localauth nor -noauth is given.

Since this option is the default, it is usually not useful for running single command line operations. However, it can be useful when running commands via vos interactive or vos source, since otherwise it would be impossible to switch from, for example, -localauth back to using regular tokens during a bulk operation.

-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.

-encrypt [<yes|no>]

Enables or disables encrytion for the command so that the operation's results are not transmitted across the network in clear text.

-noresolve

Shows all servers as IP addresses instead of the reverse DNS lookup hostname. -noresolve useful when troubleshooting no such volume and volume moved errors.

-config <configuration file>

Set the location of the configuration file to be used. The default file is /etc/yfs/yfs-client.conf.

-help

Prints the online help for this command. All other valid options are ignored.

OUTPUT

If the output includes more than one volume, the header reports which filters are in use as specified by the -server, -partition, and -locked arguments; and the footer reports the total number of entries displayed. Including the -quiet flag suppresses these lines.

By default, volumes are sorted alphabetically by volume name. Including the -nosort flag skips the sorting step, which can speed up the production of output if there are a large number of entries.

The location information displayed for each volume includes the following:

For further discussion of the New release and Old release flags, see vos_release(1).

EXAMPLES

The following command displays location information for the volume named usr, which has two read-only replication sites:

   % vos listloc -name usr
   usr
    RWrite: 5360870981   ROnly: 536870982   Backup: 536870983
    number of sites -> 3
       server fs1.your-cell-name.com partition /vicepa RO Site
       server fs3.your-cell-name.com partition /vicepa RO Site
       server fs2.your-cell-name.com partition /vicepb RW Site

The following example shows entries for two of the volumes that reside on the File Server fs4.your-cell-name.com. The volume is currently locked for a vos dump operation. There are 508 entries that mention the File Server as a volume site.

   % vos listloc -server fs4.your-cell-name.com
   Location information for server fs4.your-cell-name.com
       .       .           .        .
       .       .           .        .
   user.smith
    RWrite: 278541326   ROnly: 278541327   Backup: 278542328
    number of sites -> 1
      server fs4.your-cell-name.com partition /vicepg RW Site
    Volume is currently LOCKED for a dump/restore operation
   user.terry
    RWrite 354287190   ROnly 354287191   Backup 354287192
    number of sites -> 1
      server fs4.your-cell-name.com partition /vicepc RW Site
      .       .           .        .
      .       .           .        .
   Total entries: 508

PRIVILEGE REQUIRED

None

SEE ALSO

vos(1), vos_dump(1), vos_examine(1), vos_listvol(1), vos_lock(1), vos_release(1), vos_restore(1), vos_unlock(1), vos_unlockall(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.

ACKNOWLEDGEMENTS

"AFS" is a registered mark of International Business Machines Corporation, used under license. (USPTO Registration 1598389)

"OpenAFS" is a registered mark of International Business Machines Corporation. (USPTO Registration 4577045)

The "AuriStor" name, log 'S' brand mark, and icon are registered marks of AuriStor, Inc. (USPTO Registrations 4849419, 4849421, and 4928460) (EUIPO Registration 015539653).

"Your File System" is a registered mark of AuriStor, Inc. (USPTO Registrations 4801402 and 4849418).

"YFS" and "AuriStor File System" are trademarks of AuriStor, Inc.