logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

vos_copy - Make a copy of a volume

Cautions

       Currently, the maximum quota for a volume is 2 terabytes (2^41 bytes). Note that this only affects the
       volume's quota; a volume may grow much larger if the volume quota is disabled. However, volumes over 2
       terabytes in size may be impractical to move, and may have their size incorrectly reported by some tools,
       such as fs_listquota(1).

Description

       The voscopy command makes a copy of a volume with a new name.  It is equivalent to vosdump followed by
       vosrestore, but doesn't require the volume be stored locally by the client.

Examples

       The following example makes a verbose copy of the "test" volume named "test2" in  the  cell  "localcell".
       The volume and copy both reside on "/vicepa" of "server1".

          % vos copy test server1  a test2 server1 a -cell localcell -verbose
          Starting transaction on source volume 536870921 ... done
          Allocating new volume id for clone of volume 536870921 ... done
          Allocating new volume id for copy of volume 536870921 ... done
          Cloning source volume 536870921 ... done
          Ending the transaction on the source volume 536870921 ... done
          Starting transaction on the cloned volume 536870926 ... done
          Setting flags on cloned volume 536870926 ... done
          Getting status of cloned volume 536870926 ... done
          Creating the destination volume 536870927 ... done
          Setting volume flags on destination volume 536870927 ... done
          Dumping from clone 536870926 on source to volume 536870927 on destination ... done
          Ending transaction on cloned volume 536870926 ... done
          Starting transaction on source volume 536870921 ... done
          Doing the incremental dump from source to destination for volume 536870921 ...  done
          Setting volume flags on destination volume 536870927 ... done
          Ending transaction on destination volume 536870927 ... done
          Ending transaction on source volume 536870921 ... done
          Starting transaction on the cloned volume 536870926 ... done
          Deleting the cloned volume 536870926 ... done
          Ending transaction on cloned volume 536870926 ... done
          Created the VLDB entry for the volume test2 536870927
          Volume 536870921 copied from server1 /vicepa to test2 on server1 /vicepa

Name

       vos_copy - Make a copy of a volume

Options

-id <volumenameorID>
           Specifies either the complete name or volume ID number of a read/write volume.

       -fromserver <machinenameforsource>
           Identifies  the file server machine where the source volume resides. Provide the machine's IP address
           or its host name (either fully qualified or using an  unambiguous  abbreviation).  For  details,  see
           vos(1).

       -frompartition <partitionnameforsource>
           Names  the  partition where the source volume resides. Provide the full partition name (for, example,
           /vicepa) or one of the abbreviated forms described in vos(1).

       -toname <volumenamefornewcopy>
           The complete name of the new volume to create.

       -toserver <machinenamefordestination>
           Identifies the file server machine to which to copy the volume.  Provide the machine's IP address  or
           its host name (either fully qualified or using an unambiguous abbreviation). For details, see vos(1).

       -topartition <partitionnamefordestination>
           Names  the  partition  to  which  to  copy the volume. Provide the full partition name (for, example,
           /vicepa) or one of the abbreviated forms described in vos(1).

       -offline
           Leaves the new volume flagged as off-line in the volume database.

       -readonly
           Flags the new volume as read-only in the volume database.

       -live
           Copies the live volume without cloning.  This is normally not necessary and causes the volume  to  be
           kept locked for longer than the normal copy mechanism.

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

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

       -localauth
           Constructs  a  server  ticket  using  a  key from the local /etc/openafs/server/KeyFile file. The vos
           command interpreter presents it to the  Volume  Server  and  Volume  Location  Server  during  mutual
           authentication.  Do  not combine this flag with the -cell argument or -noauth flag. For more details,
           see vos(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.

       -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 versions 1.4.11 or later and 1.5.60 or later.

       -noresolve
           Shows all servers as IP addresses instead of the DNS name.  This  is  very  useful  when  the  server
           address is registered as 127.0.0.1 or when dealing with multi-homed servers. This option is available
           in OpenAFS versions 1.4.8 or later and 1.5.35 or later.

       -config <configurationdirectory>
           Set  the location of the configuration directory to be used. This defaults to /etc/openafs, except if
           -localauth is 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.

Output

       This command has no output unless "-verbose" is specified or there is an error.

Privilege Required

       The  issuer  must  be  listed  in the /etc/openafs/server/UserList file on the machine specified with the
       -server argument and on each database server machine. If the -localauth flag is included, the issuer must
       instead be logged on to a server machine as the local superuser "root".

See Also

vos(1), vos_clone(1), vos_move(1)

Synopsis

voscopy [-id] <volumenameorIDofsource>
          [-fromserver] <machinenameforsource>
          [-frompartition] <partitionnameforsource>
          [-toname] <volumenamefornewcopy>
          [-toserver] <machinenamefordestination>
          [-topartition] <partitionnamefordestination>
          [-offline] [-readonly] [-live] [-cell <cellname>]
          [-noauth] [-localauth] [-verbose] [-encrypt] [-noresolve]
          [-config <configdirectory>]
          [-help]

       voscop [-i] <volumenameorIDofsource>
          [-froms] <machinenameforsource>
          [-fromp] <partitionnameforsource>
          [-ton] <volumenamefornewcopy>
          [-tos] <machinenamefordestination>
          [-top] <partitionnamefordestination>
          [-o] [-r] [-li] [-c <cellname>]
          [-noa] [-lo] [-v] [-e] [-nor]
          [-co <configdirectory>]
          [-h]

See Also