| < AFS Mount Point Tracking | Russ Allbery > Software | pam-afs-session > |
The greater thing in this world is not so much where we stand as in what direction we are going.
Oliver Wendell Holmes, Jr.
mvto is a smart vos move that knows how to look up the current location of a volume, understands replication, understands moving multiple volumes at once, knows when releases are needed as part of a move, knows how to check replicated volumes for unreleased changes before releasing them, and makes sure there is enough space on the destination partition before moving the volume. It allows a user to say "make the volume distribution look like this" and it will make the changes necessary to do that.
Similar to volcreate, it also knows how to find the most empty partition in a provided candidate list, although it doesn't (yet) have support for volcreate's notion of volume types.
Neil Crellin wrote this program originally. The first version just knew how to use vos examine to find the volume location. I added the support for replicated volumes and moving lists of volumes.
mvto is written in Perl and requires Perl 5.004 or later. It also requires the Date::Parse module, part of the TimeDate distribution available on CPAN (used for parsing vos examine output to determine whether a volume has unreleased changes).
Since it moves AFS volumes, it also requires the AFS vos command. It looks for it in a few locations, but you may want to change the search logic at the beginning of the script.
The program:
| mvto 1.15 | 2006-12-03 | Download |
Documentation:
Copyright 1998, 1999, 2001, 2003, 2004, 2005, 2006 Board of Trustees, Leland Stanford Jr. University.
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. This means that you may choose between the two licenses that Perl is released under: the GNU GPL and the Artistic License. Please see your Perl distribution for the details and copies of the licenses.
| < AFS Mount Point Tracking | Russ Allbery > Software | pam-afs-session > |