AFS
view release on metacpan or search on metacpan
pod/v2/afsperlvos.pod view on Meta::CPAN
#------------------------------------------------------------------------------
# RCS-Id: "@(#)$RCS-Id: pod/v2/afsperlvos.pod 2e2ca60 Tue Apr 15 13:04:20 2014 +0200 Norbert E Gruener$"
#
# © 2005-2014 Norbert E. Gruener <nog@MPA-Garching.MPG.de>
# © 2003-2004 Alf Wachsmann <alfw@slac.stanford.edu>
# Venkata Phani Kiran Achanta <neo_phani@hotmail.com>, and
# Norbert E. Gruener <nog@MPA-Garching.MPG.de>
#
# This is free software; you can redistribute it and/or modify it under
# the same terms as the Perl 5 programming language system itself.
#------------------------------------------------------------------------------
=head1 NAME
B<AFS::VOS> - Class to communicate with the B<AFS Volume Server>
=head1 SYNOPSIS
use AFS::VOS;
my $vos = AFS::VOS->new(1, 120, 1);
my $ok = $vos->backup('volume');
$vos->DESTROY;
$vos = AFS::VOS->new;
$ok = $vos->dump('volume', 0, 'dump.vol', '', '', 1, 1);
$ok = $vos->dump('volume', 0, 'dump.vol');
$ok = $vos->restore('serv1', '/vicepa', 'volume', 'dump.vol', 0, 1);
my $volid = $vos->create('serv1', '/vicepa', 'volume');
$volid = $vos->move('volume', 'serv1', 'vicepa', 'serv2', 'vicepb');
$volid = $vos->remove('serv1', '/vicepa', 'volume');
$ok = $vos->offline('serv1', '/vicepa', 'volume');
$ok = $vos->online('serv1', '/vicepa', 'volume');
$ok = $vos->release('volume');
my $stat = $vos->status('serv1', '/vicepa');
print "Status is: $stat\n";
$ok = $vos->rename('oldvol', 'newvol');
$ok = $vos->setquota('volume', 6500, 1);
$volid = $vos->zap('serv1', '/vicepa', 'volume');
my ($tBack, $tFail) = $vos->backupsys('home', 'serv', '/vicepc');
($tBack, $tFail) = $vos->backupsys(['home', 'data'], 'serv', '/vicepc');
my @parts = $vos->listpart('serv1');
my $vols = $vos->listvol('serv1', '/vicepa');
my $partinfo = $vos->partinfo('volume');
=head1 DESCRIPTION
This class is used to communicate with the B<AFS Volume Server>, which
runs on every AFS server machine. The Volume Server allows
administrative tasks and probes to be performed on the set of AFS
volumes residing on the machine on which it is running. This class
provides methods to create, move, delete, replicate, back up and
examine AFS volumes. It has also methods to provide information about
AFS partitions.
Before you can submit any tasks to a Volume Server you must establish
a connection to it. This is done by the constructor method I<new>
which returns a VOS object. A VOS object is essentially a handle to
talk to the Volume Server in a given cell. Such a VOS object is
required before any of the other VOS instance methods can be called.
=head1 COMPATIBILITY
There was no version 1 implementation and hence there are no version
conflicts :-)
=head1 METHODS
=over 4
=item B<CONSTRUCTOR>
=item S< >
=item B<$vos = AFS::VOS-E<gt>new([VERBOSE [, TIMEOUT [, NOAUTH [, LOCALAUTH [, CELL [, ENCRYPT]]]]]);>
Creates a new object of the class AFS::VOS. An AFS::VOS object is
essentially a handle to talk to the Volume Server. Internally an
AFS::VOS object is a pointer to a ubik_client structure, although this
may change and the value returned from AFS::VOS::new should always be
treaded as an opaque handle.
Set VERBOSE (default 0) to 1 to produce on the standard output stream
a detailed trace of the method's execution. TIMEOUT is the time of
inactivity in seconds before the connection to the VOS server is
declared dead (default 90 seconds). Set LOCALAUTH (default 0) to 1
only when issuing a command on a server machine. If NOAUTH is 1
(default 0) it establishes an unauthenticated connection to the
server, in which the servers treat the issuer as an unprivileged user.
CELL (default NULL) specifies the cell in which to run the
command. Set ENCRYPT to 1 (default 0) to encrypt the connection to the
VOS server.
=item B<DESTRUCTOR>
=item S< >
=item B<$vos-E<gt>DESTROY;>
( run in 0.834 second using v1.01-cache-2.11-cpan-39bf76dae61 )