PostgreSQLスキルアップノート(自己啓発のための個人サイト)

番外編・Amanda・インストール


【一覧に戻る】


ごく簡単に確認した程度です。

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
■■■■                                                                        
■■■■ Amanda 3.1 検証 
■■■■
■◆■■  番外編・Amandaインストール
■■■■                                                                        
■■■■ 2012/03                                                       
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

アマンダにはコミュニティ版の他、有償のエンタープライズ版がある。



■■公式サイト

アマンダプロジェクト
http://www.amanda.org/


【その他】zmanda

主に商用のEnterprize版を出している。
画面はGUIとなり、Oracleなどのバックアップにも対応

http://www.zmanda.com
http://www.zmanda.jp/



■■ダウンロード


(1)コミュニティ版(ソース)   

   http://www.amanda.org/

(2)コミュニティ版(rpmパッケージ) 

    http://www.zmanda.com/download-amanda.php
    
    zmandaに「コミュニティ版」としてrpmパッケージがおいてある
    このページはamanda.orgのダウンロードページからリンクあり。


★今回は(2)のものを使用



■■参考資料関連参考

ドキュメント

http://wiki.zmanda.com/index.php/Main_Page


日本語参考(ただし個人ページ、バージョンが異なっている)

http://virtualtech.jp/download/090130AmandaBackup.pdf

http://www.turbolinux.com/products/server/10s/manual/user_guide/user_guide/x12055.html

http://www.oss-d.net/amanda/2.5#mc3c497d



■■対応OS、機器等

(1)対応OS(RPMの場合)

  Redhat Enterprise 4.0 5.0 6.0 32/64
  Windows
  その他多数あり

(2)テープドライブ

以下に定義ファイルがある。

http://wiki.zmanda.com/index.php/Tapetype_definitions

DAT72より後の機種(DAT160,320)が見当たらないが、
定義ファイルをカスタマイズすればできるような記述がある。

インストールすると以下に定義ファイルがある
./template.d/tapetypes



■■amandaのrpm版をインストール


以下は単独サーバでのバックアップを前提

落とし込んだディレクトリ /download/amandadownload


[root@dbsv amandadownload]# ls -l
合計 5404
-rw-r--r-- 1 oracle oinstall 2606969  3月 20 01:45 amanda-backup_client-3.3.1-1.rhel5.i386.rpm
-rw-r--r-- 1 oracle oinstall 2912369  3月 20 01:45 amanda-backup_server-3.3.1-1.rhel5.i386.rpm


1.serverをインストール

【□】 rpm -ivh amanda-backup_server-3.3.1-1.rhel5.i386.rpm


[root@dbsv amandadownload]# rpm -ivh amanda-backup_server-3.3.1-1.rhel5.i386.rpm
準備中...                ########################################### [100%]
 3月 20 2012 01:47:51: Preparing to install: Amanda Community Edition - version 3.3.1
 3月 20 2012 01:47:51: Checking for 'amandabackup' user...
 3月 20 2012 01:47:52:
 3月 20 2012 01:47:52:  The 'amandabackup; user account has been successfully created.
 3月 20 2012 01:47:52:  Furthermore, the account has been automatically locked for you
 3月 20 2012 01:47:52:  for security purposes.  Once a password for the  'amandabackup'
 3月 20 2012 01:47:52:  account has been set, the user can be unlocked by issuing
 3月 20 2012 01:47:52:  the following command as root.:
 3月 20 2012 01:47:52:
 3月 20 2012 01:47:52:  # passwd -u amandabackup
 3月 20 2012 01:47:52:
 3月 20 2012 01:47:52:  If this is not a new installation of Amanda and you have
 3月 20 2012 01:47:52:  pre-existing Amanda configurations in /etc/amanda
 3月 20 2012 01:47:52:  you should ensure that 'dumpuser' is set to 'amandabackup'
 3月 20 2012 01:47:52:  in those configurations.  Additionally, you should ensure
 3月 20 2012 01:47:52:  that /var/lib/amanda/.amandahosts on your client systems
 3月 20 2012 01:47:52:  is properly configured to allow connections for the user
 3月 20 2012 01:47:52:  'amandabackup'.
 3月 20 2012 01:47:52:
 3月 20 2012 01:47:52:
 3月 20 2012 01:47:52: === Amanda backup server installation started. ===
   1:amanda-backup_server   ########################################### [100%]
 3月 20 2012 01:48:02: Updating system library cache...done.
 3月 20 2012 01:48:12: Reloading xinetd configuration...xinetd を停止中: [  OK  ]
xinetd を起動中: [  OK  ]
success.
 3月 20 2012 01:48:13: Installing '/var/lib/amanda/amandates'.
 3月 20 2012 01:48:13: The file '/var/lib/amanda/amandates' has been created.
 3月 20 2012 01:48:13: Ensuring correct permissions for '/var/lib/amanda/amandates'.
 3月 20 2012 01:48:13: '/var/lib/amanda/amandates' Installation successful.
 3月 20 2012 01:48:13: Checking '/var/lib/amanda/.amandahosts' file.
 3月 20 2012 01:48:13: Checking '/etc/amanda/amanda-client.conf' file.
 3月 20 2012 01:48:13: Create '/var/lib/amanda/.am_passphrase' file.
 3月 20 2012 01:48:13: Installing '/var/lib/amanda/.gnupg'.
 3月 20 2012 01:48:13: '/var/lib/amanda/.gnupg' will be created.
 3月 20 2012 01:48:13: The directory '/var/lib/amanda/.gnupg' created successfully.
 3月 20 2012 01:48:13: Ensuring correct permissions for '/var/lib/amanda/.gnupg'.
 3月 20 2012 01:48:13: '/var/lib/amanda/.gnupg' Installation successful.
 3月 20 2012 01:48:13: Creating directory '/var/lib/amanda/.ssh'.
 3月 20 2012 01:48:13: Creating ssh RSA key in '/var/lib/amanda/.ssh/id_rsa_amdump'
 3月 20 2012 01:48:13: Setting ownership and permissions for '/var/lib/amanda/.ssh' and '/var/lib/amanda/.ssh/id_rsa_amdump*'
 3月 20 2012 01:48:13: Creating ssh RSA key in '/var/lib/amanda/.ssh/id_rsa_amrecover'
 3月 20 2012 01:48:16: Setting ownership and permissions for '/var/lib/amanda/.ssh'
 3月 20 2012 01:48:16: Checking for '/var/lib/amanda/.profile' and ensuring correct environment.
 3月 20 2012 01:48:16: Setting ownership and permissions for '/var/lib/amanda/.profile'

For latest Amanda documentation, checkout Amanda Wiki: http://wiki.zmanda.com
 3月 20 2012 01:48:17: === Amanda backup server installation complete. ===
Amanda installation log can be found in '/var/log/amanda/install.log' and errors (if any) in '/var/log/amanda/install.err'.


2.クライアントをインストール


同一サーバ内での使用ではclientは不要か?

/download/amandadownload

【□】 rpm -ivh amanda-backup_client-3.3.1-1.rhel5.i386

[root@dbsv amandadownload]# rpm -ivh amanda-backup_client-3.3.1-1.rhel5.i386.rpm
エラー: 依存性の欠如:
        amanda-backup_server は amanda-backup_client-3.3.1-1.rhel5.i386 と競合します。
        amanda-backup_client は amanda-backup_server-3.3.1-1.rhel5.i386 と競合します。


3.インストール後の確認

・インストールすると勝手にamandabackupというアカウントが作成されている。

[root@dbsv vtl01]# id amandabackup
uid=503(amandabackup) gid=6(disk) 所属グループ=6(disk)
[root@dbsv vtl01]#


・/sbin/userの下にamで始まるコマンドがインストールされている。




以上 
inserted by FC2 system