This MindTouch Deki has expired; please contact your system administrator. Visit MindTouch.com for activation information.
Page last modified 18:34, 28 Apr 2006 by Ppragin?
Zmanda Documentation > Upgrading Amanda Community Edition server to Amanda Enterprise Edition server

Upgrading Amanda Community Edition server to Amanda Enterprise Edition server

Table of contents
No headers

Upgrading Amanda Community Edition server to Amanda Enterprise Edition server

Removing Amanda Community Edition server
1. This command queries rpm for the name of the amanda package installed

rpm -q amanda-backup_server
amanda-backup_server-2.5.0b2-4.fc4

2. This command removes the Community Edition server rpm

[root@vmserverupgrade slots]# rpm -e amanda-backup_server-2.5.0b2-4.fc4

3. Please remove the old amanda service definition residing in /etc/xinetd.d

[root@vmserverupgrade /]# cd /etc/xinetd.d
[root@vmserverupgrade xinetd.d]# ls -al | grep amanda
-rw-r--r--   1 root root   444 Apr 28 04:57 amandaclient
-rw-r--r--   1 root root   713 Apr 28 04:56 amandaserver
[root@vmserverupgrade xinetd.d]# rm amandaclient amandaserver
rm: remove regular file `amandaclient'? y
rm: remove regular file `amandaserver'? y
[root@vmserverupgrade xinetd.d]#


Install the Enterprise Edition server
1. Locate and install the enterprise version of the server

[root@vmserverupgrade server]# ls
amanda_enterprise-backup_server-2.5.0-1.fc4.i386.rpm
[root@vmserverupgrade server]# rpm -ivh amanda_enterprise-backup_server-2.5.0-1.fc4.i386.rpm warning: amanda_enterprise-backup_server-2.5.0-1.fc4.i386.rpm: Header V3 DSA signature: NOKEY, key ID 3c5d1c92
Preparing...                ########################################### [100%]
Apr 28 2006 11:02:44: Checking for 'amandabackup' user...
Apr 28 2006 11:02:44:
Apr 28 2006 11:02:44:  The Amanda backup software is configured to operate as the
Apr 28 2006 11:02:45:  user 'amandabackup'.  This user exists on your system and has not
Apr 28 2006 11:02:45:  been modified.  To ensure that Amanda functions properly,
Apr 28 2006 11:02:45:  please see that the following parameters are set for that
Apr 28 2006 11:02:45:  user.:
Apr 28 2006 11:02:45:
Apr 28 2006 11:02:45:  SHELL:          /bin/sh
Apr 28 2006 11:02:45:  HOME:           /var/lib/amanda
Apr 28 2006 11:02:45:  Default group:  disk
Apr 28 2006 11:02:45:
Apr 28 2006 11:02:45:  Checking ownership of '/var/lib/amanda'... correct.
Apr 28 2006 11:02:45:
Apr 28 2006 11:03:13: === Amanda Enterprise backup server installation started. ===
  1:amanda_enterprise-backu########################################### [100%]
Apr 28 2006 11:03:17: Updating system library cache...done.
Stopping xinetd: [  OK  ]
Starting xinetd: [  OK  ]
Apr 28 2006 11:03:18: Restarting xinetd...success.
Apr 28 2006 11:03:19: Installing '/etc/amandates'.
Apr 28 2006 11:03:19: Ensuring correct permissions for '/etc/amandates'.
Apr 28 2006 11:03:20: '/etc/amandates' Installation successful.
Apr 28 2006 11:03:20: Installing '/var/lib/amanda/.gnupg'.
Apr 28 2006 11:03:20: '/var/lib/amanda/.gnupg' will be created.
Apr 28 2006 11:03:21: The directory '/var/lib/amanda/.gnupg' created successfully.
Apr 28 2006 11:03:21: Ensuring correct permissions for '/etc/.gnupg'.
Apr 28 2006 11:03:21: '/var/lib/amanda/.gnupg' Installation successful.
Apr 28 2006 11:03:21: Creating directory '/var/lib/amanda/.ssh'.
Apr 28 2006 11:03:21: Creating ssh RSA key in '/var/lib/amanda/.ssh/id_rsa'
Apr 28 2006 11:03:22: Setting ownership and permissions for '/var/lib/amanda/.ssh' and '/var/lib/amanda/.ssh/id_rsa*'
Apr 28 2006 11:03:22: Checking for '/var/lib/amanda/.profile' and ensuring correct environment.
Apr 28 2006 11:03:23: Setting ownership and permissions for '/var/lib/amanda/.profile'
Apr 28 2006 11:03:23: === Amanda Enterprise 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'.
[root@vmserverupgrade server]#


2. Run a test restore from one of the clients using amrecover

[root@vmclientupgrade restore]# amrecover test -t vmserverupgrade.zmanda.com -s vmserverupgrade.zmanda.com
AMRECOVER Version 2.5.0. Contacting server on vmserverupgrade.zmanda.com ...
220 vmserverupgrade AMANDA index server (2.5.0) ready.
200 Access OK
Setting restore date to today (2006-04-28)
200 Working date set to 2006-04-28.
Scanning /space/amandahold/test...
200 Config set to test.
200 Dump host set to vmclientupgrade.zmanda.com.
Trying disk / ...
Trying disk rootfs ...
Use the setdisk command to choose dump disk to recover
amrecover> sethost vmclientupgrade.zmanda.com
200 Dump host set to vmclientupgrade.zmanda.com.
amrecover> listdisk
200- List of disk for host vmclientupgrade.zmanda.com
201- /boot
200 List of disk for host vmclientupgrade.zmanda.com
amrecover> setdisk /boot
200 Disk set to /boot.
amrecover> ls
2006-04-28 vmlinuz-2.6.11-1.1369_FC4smp
2006-04-28 vmlinuz-2.6.11-1.1369_FC4
2006-04-28 lost+found/
2006-04-28 initrd-2.6.11-1.1369_FC4smp.img
2006-04-28 initrd-2.6.11-1.1369_FC4.img
2006-04-28 grub/
2006-04-28 config-2.6.11-1.1369_FC4smp
2006-04-28 config-2.6.11-1.1369_FC4
2006-04-28 System.map-2.6.11-1.1369_FC4smp
2006-04-28 System.map-2.6.11-1.1369_FC4
2006-04-28 .
amrecover> add .
Added file /vmlinuz-2.6.11-1.1369_FC4smp
Added file /vmlinuz-2.6.11-1.1369_FC4
Added dir /lost+found/ at date 2006-04-28
Added file /initrd-2.6.11-1.1369_FC4smp.img
Added file /initrd-2.6.11-1.1369_FC4.img
Added dir /grub/device.map at date 2006-04-28
Added dir /grub/e2fs_stage1_5 at date 2006-04-28
Added dir /grub/fat_stage1_5 at date 2006-04-28
Added dir /grub/ffs_stage1_5 at date 2006-04-28
Added dir /grub/grub.conf at date 2006-04-28
Added dir /grub/iso9660_stage1_5 at date 2006-04-28
Added dir /grub/jfs_stage1_5 at date 2006-04-28
Added dir /grub/menu.lst at date 2006-04-28
Added dir /grub/minix_stage1_5 at date 2006-04-28
Added dir /grub/reiserfs_stage1_5 at date 2006-04-28
Added dir /grub/splash.xpm.gz at date 2006-04-28
Added dir /grub/stage1 at date 2006-04-28
Added dir /grub/stage2 at date 2006-04-28
Added dir /grub/ufs2_stage1_5 at date 2006-04-28
Added dir /grub/vstafs_stage1_5 at date 2006-04-28
Added dir /grub/xfs_stage1_5 at date 2006-04-28
Added file /config-2.6.11-1.1369_FC4smp
Added file /config-2.6.11-1.1369_FC4
Added file /System.map-2.6.11-1.1369_FC4smp
Added file /System.map-2.6.11-1.1369_FC4
amrecover> extract
Extracting files using tape drive chg-disk on host vmserverupgrade.zmanda.com.
The following tapes are needed: TEST-2
Restoring files into directory /restore
Continue [?/Y/n]? y
Extracting files using tape drive chg-disk on host vmserverupgrade.zmanda.com.
Load tape TEST-2 now
Continue [?/Y/n/s/t]? y
./lost+found/
./System.map-2.6.11-1.1369_FC4
./System.map-2.6.11-1.1369_FC4smp
./config-2.6.11-1.1369_FC4
./config-2.6.11-1.1369_FC4smp
./initrd-2.6.11-1.1369_FC4.img
./initrd-2.6.11-1.1369_FC4smp.img
./vmlinuz-2.6.11-1.1369_FC4
./vmlinuz-2.6.11-1.1369_FC4smp
./grub/device.map
./grub/e2fs_stage1_5
./grub/fat_stage1_5
./grub/ffs_stage1_5
./grub/grub.conf
./grub/iso9660_stage1_5
./grub/jfs_stage1_5
./grub/menu.lst
./grub/minix_stage1_5
./grub/reiserfs_stage1_5
./grub/splash.xpm.gz
./grub/stage1
./grub/stage2
./grub/ufs2_stage1_5
./grub/vstafs_stage1_5
./grub/xfs_stage1_5
amrecover> quit
200 Good bye.
[root@vmclientupgrade restore]# ls
config-2.6.11-1.1369_FC4         lost+found
config-2.6.11-1.1369_FC4smp      System.map-2.6.11-1.1369_FC4
grub                             System.map-2.6.11-1.1369_FC4smp
initrd-2.6.11-1.1369_FC4.img     vmlinuz-2.6.11-1.1369_FC4
initrd-2.6.11-1.1369_FC4smp.img  vmlinuz-2.6.11-1.1369_FC4smp
[root@vmclientupgrade restore]#

3. Run a test backup using amdump

-sh-3.00$ amdump test
-sh-3.00$ pwd
/var/lib/amanda/test
-sh-3.00$ cat log.20060428.0
DISK planner vmclientupgrade.zmanda.com /boot
START planner date 20060428
START driver date 20060428
FINISH planner date 20060428 time 1.215
STATS driver startup time 1.915
START taper datestamp 20060428 label TEST-5 tape 0
SUCCESS dumper vmclientupgrade.zmanda.com /boot 20060428 1 [sec 1.309 kb 7251 kps 5538.4 orig-kb 8500]
SUCCESS taper vmclientupgrade.zmanda.com /boot 20060428 1 [sec 0.769 kb 7296 kps 9486.5 {wr: writers 228 rdwait 0.481 wrwait 0.244 filemark 0.014}]
SUCCESS chunker vmclientupgrade.zmanda.com /boot 20060428 1 [sec 1.272 kb 7251 kps 5723.1]
INFO taper tape TEST-5 kb 7296 fm 1 [OK]
FINISH driver date 20060428 time 8.350
-sh-3.00$
Powered by MindTouch Deki v.8.08.2