Changes

Jump to navigation Jump to search
added Dropbear update section
Line 1: Line 1:  +
{{Level|Advanced}}
 +
 
=== Introduction ===
 
=== Introduction ===
 
As of version 2, Affa supports hot backing up virtual machines running on the VMWare ESXi server. It uses the VMware Infrastructure Perl Toolkit to communicate with the EXSi and rsync over ssh to transfer the data. Before the backup starts, the state of the running VM is freezed by creating a snapshot of all its disks. After the freezed virtual disk files were backed up, the snapshot is deleted and the config points to the just backed up disks again. Then, as a last step the config files are backed up.
 
As of version 2, Affa supports hot backing up virtual machines running on the VMWare ESXi server. It uses the VMware Infrastructure Perl Toolkit to communicate with the EXSi and rsync over ssh to transfer the data. Before the backup starts, the state of the running VM is freezed by creating a snapshot of all its disks. After the freezed virtual disk files were backed up, the snapshot is deleted and the config points to the just backed up disks again. Then, as a last step the config files are backed up.
Line 65: Line 67:     
  kill -HUP 1302
 
  kill -HUP 1302
 +
Now you can ssh logon.
 +
 +
 +
==== Update Dropbear SSH server and client ====
 +
On ESX3i Dropbear Version 0.49 is installed. This version has a bug that causes an incorrect return status of the executed command. Therefore it must be updated to Version 0.51. This version fixes the problem with wrong exit codes. Only with Dropbear Version 0.51 Affa can detect failures of rsync commands.
 +
 +
Remote copy the dropbearmulti binary to the ESXi host into directory /sbin. This overwrites the existing dropbearmulti version 0.49
 +
scp dropbearmulti root@<ESXiIP>:/sbin/
 +
Then send the HUP signal to the inetd process as described above.
 +
===== How to get dropbearmulti 0.51 binary =====
 +
You can either download a compiled binary from http://mirror.contribs.org/smeserver/contribs/michaelw/sme7/Affa2
 +
 +
'''or''' you can make it by yourself on a Centos4/SME7.3 box with devel RPMs installed:
 +
1. download <tt>dropbear-0.51.tar.gz</tt> from http://matt.ucc.asn.au/dropbear/
 +
 +
2. unpack the tarball
 +
tar xzf dropbear-0.51.tar.gz
 +
cd dropbear-0.51
    +
3. edit the file <tt>options.h</tt> and comment out line 40
 +
/*#define NON_INETD_MODE*/
   −
Now you can ssh logon. Please note, that a Dropbear bug causes an incorrect return status of the executed command. In most cases Dropbear returns -1 value, although the command was executed without errors.
+
4. configure and compile
 +
./configure --disable-zlib --disable-openpty
 +
make PROGRAMS="dropbear dbclient scp dropbearkey dropbearconvert" MULTI=1 STATIC=0 SCPPROGRESS=1
 +
strip dropbearmulti
    
==== Install the rsync program on the ESXi host ====
 
==== Install the rsync program on the ESXi host ====
Line 78: Line 103:  
You can either download a compiled binary from http://mirror.contribs.org/smeserver/contribs/michaelw/sme7/Affa2
 
You can either download a compiled binary from http://mirror.contribs.org/smeserver/contribs/michaelw/sme7/Affa2
   −
'''or''' you can make it by yourself on a linux computer:
+
'''or''' you can make it by yourself on a Centos4/SME7.3 box with devel RPMs installed:
    
1. download the source from http://rsync.samba.org/
 
1. download the source from http://rsync.samba.org/
501

edits

Navigation menu