User Tools

Site Tools


backup:amanda:server_installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
backup:amanda:server_installation [2012/06/05 14:08] – created aorthbackup:amanda:server_installation [2012/06/11 12:04] – [Test] aorth
Line 1: Line 1:
 ====== Installation and configuration (server) ====== ====== Installation and configuration (server) ======
 +Installation and configuration of Amanda on CentOS 5.x.
  
-=== Download and install === +===== Download and install ===== 
-Download and install the latest RPM for CentOS:+Find appropriate versions of Amanda for your OS at the [[http://www.zmanda.com/download-amanda.php|Download Amanda page]].
  
-<code>wget http://www.zmanda.com/downloads/community/Amanda/3.3.0/Redhat_Enterprise_5.0/amanda-backup_server-3.3.0-1.rhel5.x86_64.rpm +=== Download === 
-sudo rpm -i amanda-backup_server-3.3.0-1.rhel5.x86_64.rpm</code>+<code>wget http://www.zmanda.com/downloads/community/Amanda/3.3.0/Redhat_Enterprise_5.0/amanda-backup_server-3.3.0-1.rhel5.x86_64.rpm</code>
  
-This will install amanda and create a system user for the Amanda program to run as.  The installation should output something like this:+=== Install === 
 +<code>sudo rpm -i amanda-backup_server-3.3.0-1.rhel5.x86_64.rpm</code> 
 + 
 +This will install Amanda and create a system user for the Amanda program to run as.  The installation should output something like this:
 <file>Oct 18 2011 12:07:22: Preparing to install: Amanda Community Edition - version 3.3.0 <file>Oct 18 2011 12:07:22: Preparing to install: Amanda Community Edition - version 3.3.0
 Oct 18 2011 12:07:22: Checking for 'amandabackup' user... Oct 18 2011 12:07:22: Checking for 'amandabackup' user...
Line 29: Line 33:
 Oct 18 2011 12:07:22: Oct 18 2011 12:07:22:
 Oct 18 2011 12:07:22: === Amanda backup server installation started. ===</file> Oct 18 2011 12:07:22: === Amanda backup server installation started. ===</file>
 +
 +===== Configure =====
  
 === Detect the tape type === === Detect the tape type ===
-We need to have Amanda detect our tape drive/library, but first make sure a tape is loaded in the drive (or else ''amtaptype'' will fail).+We need to have Amanda detect our tape drive/library, but first make sure a tape is loaded in the driveor else ''amtaptype'' will fail.
  
 <code>sudo mtx status <code>sudo mtx status
Line 52: Line 58:
 #   device-property "LEOM" "TRUE" #   device-property "LEOM" "TRUE"
 # for this device.</file> # for this device.</file>
 +
 +Save it somewhere, we'll need to paste it into our config later.
  
 === Create a config === === Create a config ===
-Create a config from the example ''tape-changer'' config template:+Create a config named "daily" from the example ''tape-changer'' config template:
  
 <code>sudo su - amandabackup <code>sudo su - amandabackup
-amserverconfig taurus --template tape-changer --tapedev /dev/nst0 --mailto a.orth@cgiar.org</code>+amserverconfig daily --template tape-changer --tapedev /dev/nst0 --mailto a.orth@cgiar.org</code>
  
-Edit the resulting ///etc/amanda/taurus/amanda.conf//:+Edit the resulting ///etc/amanda/daily/amanda.conf//:
   * add the "tapetype" block from above   * add the "tapetype" block from above
   * change "changerdev" to ''/dev/sg6'' instead of sg1 (use ''dmesg'' and ///proc/scsi/scsi// to figure out where the changer device is)   * change "changerdev" to ''/dev/sg6'' instead of sg1 (use ''dmesg'' and ///proc/scsi/scsi// to figure out where the changer device is)
  
-Taurus is the proposed new name of the HPC... +===== Test ===== 
- +Once your configuration is completed, run through a complete backup scenario to test if your settings are correct.
-=== Test the new config ===+
  
 <code>sudo su - amandabackup <code>sudo su - amandabackup
-amcheck taurus</code>+amcheck daily</code>
  
 Other than errors about tape labels, the command should work fine. Other than errors about tape labels, the command should work fine.
Line 74: Line 81:
 === Setup a disklist === === Setup a disklist ===
  
-Set up a "disklist" for the new config in ///etc/amanda/taurus/disklist//.  For now, just do something like so we can test quickly:+Set up a "disklist" for the new config in ///etc/amanda/daily/disklist//.  For now, just do something like so we can test quickly:
 <file>localhost /etc root-tar</file> <file>localhost /etc root-tar</file>
  
Line 84: Line 91:
  
 <code>mtx load 1 <code>mtx load 1
-amlabel taurus taurus-01 slot 1 -f</code>+amlabel daily daily-01 slot 1 -f</code>
  
 === Run a test backup === === Run a test backup ===
Line 91: Line 98:
  
 <code>sudo su - amandabackup <code>sudo su - amandabackup
-amdump taurus</code>+amdump daily</code>
  
 === Test recovery === === Test recovery ===
Line 118: Line 125:
  
 <code>sudo su - amandabackup <code>sudo su - amandabackup
-amrmtape taurus taurus-01</code>+amrmtape daily daily-01</code>
  
 === Label more tapes === === Label more tapes ===
Line 126: Line 133:
 <code>sudo su - <code>sudo su -
 mtx unload mtx unload
-for tapenum in {1..4}; do mtx load $tapenum; amlabel taurus taurus-0$tapenum slot $tapenum -f; mtx unload $tapenum; done</code> +for tapenum in {1..4}; do mtx load $tapenum; amlabel daily daily-0$tapenum slot $tapenum -f; mtx unload $tapenum; done</code>
backup/amanda/server_installation.txt · Last modified: 2012/06/11 12:05 by aorth