Upgrading Amanda Community Edition client to Amanda Enterprise Edition client while running Amanda Community Edition backup server
Removing Amanda Community Edition client
1. This command queries rpm for the name of the amanda package installed
[root@vmclientupgrade client]# rpm -q amanda-backup_client amanda-backup_client-2.5.0b2-4.fc4
2. This command removes the Community Edition rpm
[root@vmclientupgrade client]# rpm -e amanda-backup_client-2.5.0b2-4.fc4
3. Please remove the old amanda service definition residing in /etc/xinetd.d
cd /etc/xinetd.d/ -rw-r--r-- 1 root root 290 Apr 27 14:42 amandaclient [root@vmclientupgrade xinetd.d]# rm amandaclient rm: remove regular file `amandaclient'? y [root@vmclientupgrade xinetd.d]#
Install the Enterprise Edition client
1. Locate and install the enterprise version of the client
[root@vmclientupgrade client]# ls amanda_enterprise-backup_client-2.5.0-1.fc4.i386.rpm [root@vmclientupgrade client]# rpm -ivh amanda_enterprise-backup_client-2.5.0-1.fc4.i386.rpm
warning: amanda_enterprise-backup_client-2.5.0-1.fc4.i386.rpm: Header V3 DSA signature: NOKEY, key ID 3c5d1c92 Preparing... ########################################### [100%] Apr 28 2006 09:22:21: Checking for 'amandabackup' user... Apr 28 2006 09:22:22: Apr 28 2006 09:22:22: The Amanda backup software is configured to operate as the Apr 28 2006 09:22:22: user 'amandabackup'. This user exists on your system and has not Apr 28 2006 09:22:22: been modified. To ensure that Amanda functions properly, Apr 28 2006 09:22:22: please see that the following parameters are set for that Apr 28 2006 09:22:22: user.: Apr 28 2006 09:22:22: Apr 28 2006 09:22:22: SHELL: /bin/sh Apr 28 2006 09:22:22: HOME: /var/lib/amanda Apr 28 2006 09:22:22: Default group: disk Apr 28 2006 09:22:22: Apr 28 2006 09:22:22: Checking ownership of '/var/lib/amanda'... correct. Apr 28 2006 09:22:22: Apr 28 2006 09:22:35: === Amanda Enterprise backup client installation started. === 1:amanda_enterprise-backu########################################### [100%] Apr 28 2006 09:22:36: Updating system library cache...done. Apr 28 2006 09:22:36: Restarting xinetd...Stopping xinetd: [ OK ] Starting xinetd: [ OK ] success. Apr 28 2006 09:22:37: Installing '/etc/amandates'. Apr 28 2006 09:22:37: Ensuring correct permissions for '/etc/amandates'. Apr 28 2006 09:22:37: '/etc/amandates' Installation successful. Apr 28 2006 09:22:37: Installing '/var/lib/amanda/.gnupg'. Apr 28 2006 09:22:37: '/var/lib/amanda/.gnupg' will be created. Apr 28 2006 09:22:37: The directory '/var/lib/amanda/.gnupg' created successfully. Apr 28 2006 09:22:37: Ensuring correct permissions for '/etc/.gnupg'. Apr 28 2006 09:22:37: '/var/lib/amanda/.gnupg' Installation successful. Apr 28 2006 09:22:37: Creating directory '/var/lib/amanda/.ssh'. Apr 28 2006 09:22:37: Creating ssh RSA key in '/var/lib/amanda/.ssh/id_rsa' Apr 28 2006 09:22:38: Setting ownership and permissions for '/var/lib/amanda/.ssh' and '/var/lib/amanda/.ssh/ id_rsa*' Apr 28 2006 09:22:38: Checking for '/var/lib/amanda/.profile' and ensuring correct environment. Apr 28 2006 09:22:38: Setting ownership and permissions for '/var/lib/amanda/.profile' Apr 28 2006 09:22:38: === Amanda Enterprise backup client 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@vmclientupgrade client]#
Verifying the the ugrade was succesfull
1. Run an amcheck from the backup server to test communication between the client and server
-sh-3.00$ amcheck test Amanda Tape Server Host Check ----------------------------- Holding disk /space/amandahold/test: 15879208 kB disk space available, using 158 79208 kB slot 1: read label `TEST-1', date `20060428' slot 2: read label `TEST-2', date `20060428' slot 3: read label `TEST-3', date `20060428' slot 4: read label `TEST-4', date `X' NOTE: skipping tape-writable test Tape TEST-4 label ok Server check took 4.970 seconds Amanda Backup Client Hosts Check -------------------------------- Client check: 1 host checked in 0.507 seconds, 0 problems found (brought to you by Amanda 2.5.0b2) -sh-3.00$
2. Run a test restore from the client using amrecover
[root@vmclientupgrade restore]# pwd /restore [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.0b2) 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-1 Restoring files into directory /restore Continue [?/Y/n]? y Extracting files using tape drive chg-disk on host vmserverupgrade.zmanda.com. Load tape TEST-1 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 amdump to make sure that future backups will complete successfully
amdump test -sh-3.00$ pwd /var/lib/amanda/test -sh-3.00$ cat log.20060428.3 TART driver date 20060428 DISK planner vmclientupgrade.zmanda.com /boot START planner date 20060428 FINISH planner date 20060428 time 1.287 STATS driver startup time 2.470 START taper datestamp 20060428 label TEST-4 tape 0 SUCCESS dumper vmclientupgrade.zmanda.com /boot 20060428 1 [sec 1.276 kb 7251 kps 5680.8 orig-kb 8500] SUCCESS taper vmclientupgrade.zmanda.com /boot 20060428 1 [sec 0.393 kb 7296 kps 18535.6 {wr: writers 228 rdwait 0.058 wrwait 0.274 filemark 0.004}] SUCCESS chunker vmclientupgrade.zmanda.com /boot 20060428 1 [sec 1.230 kb 7251 kps 5917.7] INFO taper tape TEST-4 kb 7296 fm 1 [OK] FINISH driver date 20060428 time 7.570 -sh-3.00$ date Fri Apr 28 10:14:11 PDT 2006 -sh-3.00$