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
Next revisionBoth sides next revision
backup:amanda:server_installation [2012/06/05 14:08] – created aorthbackup:amanda:server_installation [2012/06/11 12:03] – [Configure] 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
Line 127: Line 134:
 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 taurus taurus-0$tapenum slot $tapenum -f; mtx unload $tapenum; done</code>
- 
backup/amanda/server_installation.txt · Last modified: 2012/06/11 12:05 by aorth