1 .TH "vserver-copy" "8" "0.3" "Mark Lawrence <nomad@null.net>" "System Administration"
4 vserver-copy \- copy/move a virtual server.
7 vserver-copy [\fIoptions\fP] \fIvserver\fP \fInewname\fP
9 vserver-copy [\fIoptions\fP] \fIvserver\fP \fIhost\fP:[\fInewname\fP]
12 vserver-copy makes a copy of a virtual server using rsync. It will
13 rewrite the vserver.conf configuration file with the new hostname and
14 IP information when given. If the destination name contains a host
15 specification then ssh/rsh will be used for the data transfer.
17 vserver-copy can used on a running vserver, although naturally the
18 consistency of open database files and the like cannot be guaranteed.
19 A running vserver can however be safely moved from one root host to another
22 If downtime is an issue when moving a virtual server across hosts you
23 should first run vserver without the \-s flag. This will pre\-populate the
24 destination filesystem requiring only updates to be made on the next
29 \fB\-h\fR,\fB-\-help\fR
30 output usage information and exit
32 \fB\-V\fR,\fB-\-version\fR
33 output version information and exit
35 \fB\-v\fR,\fB-\-verbose\fR
36 show all output (normally only informational messages and warnings)
38 \fB\-q\fR,\fB-\-quiet\fR
41 \fB\-d\fR,\fB-\-domain\fR domain
42 the new DNS domain when changing name. Overwrites /etc/hosts. Must be
45 \fB\-i\fR,\fB-\-ip\fR address
46 the new IP address when changing name. Overwrites /etc/hosts. Must be
49 \fB\-r\fR,\fB-\-vsroot\fR
50 directory containing virtual servers. Defaults to "/vserver"
52 \fB\-R\fR,\fB-\-rsh\fR
53 use rsh instead of the default ssh for network transfer
55 \fB\-s\fR,\fB-\-stopstart\fR
56 stop the virtual server before copying and start the new vserver afterwards.
57 This really only makes sense if you are copying across root hosts and not
58 changing names or IP addresses.
61 \fI/etc/vservers/vserver.conf\fP
64 # Copy a template vserver (same IP addresses etc)
66 /usr/sbin/vserver-copy template web01
68 # Copy webserver with change in configuration
70 /usr/sbin/vserver-copy -i 192.168.5.62 -d example.com template web62
72 # Move a running vserver to another roothost
74 /usr/sbin/vserver-copy -s web62 roothost02:
78 If a virtual server is moved from one root host to another a gratuitious
79 ping should be sent to inform other devices on the local area network
80 of the change in MAC address.
82 Without this ping the devices will continue to attempt to reach the old
83 MAC address for the length of their arp-cache timeout (10 minute default
86 This functionality should probably be implmemented during the
87 "vserver <name> start" process.
90 Mark Lawrence <nomad@null.net>