Create a directory called /amandamove to hold amanda files during the upgrade:
[root@vmclientcomm /]# mkdir /amandamove
Run this command on the backup server to determine where the gnutar-lists are placed on the client:
-sh-3.00$ amadmin x version | grep listed_incr_dir listed_incr_dir="/usr/local/var/amanda/gnutar-lists"
Tar up the gnutar-lists usually located in /usr/local/var/amanda in to the /amandamove directory:
[root@vmclientcomm gnutar-lists]# pwd /usr/local/var/amanda/gnutar-lists [root@vmclientcomm gnutar-lists]# ls vmclientcomm.zmanda.com_boot_1.new [root@vmclientcomm gnutar-lists]# tar -cvf /amandamove/gnutar_list.tar * vmclientcomm.zmanda.com_boot_1.new
Copy the /var/lib/amanda/.amandahost to /amandamove:
[root@vmclientcomm amanda]# cp /var/lib/amanda/.amandahosts /amandamove
Remove the old user amanda from the passwd and shadow files:
[root@vmservercomm ~]# cat /etc/passwd | grep amanda amanda:x:501:6::/var/lib/amanda:/bin/bash [root@vmservercomm ~]# cat /etc/shadow | grep amanda amanda:!!:13276:0:99999:7:::
Remove the old user amanda from the groups:
disk:x:6:root,amanda
Remove the old amanda xinetd files:
[root@vmservercomm ~]# cd /etc/xinetd.d [root@vmservercomm xinetd.d]# ls | grep amanda amanda [root@vmservercomm xinetd.d]# rm amanda rm: remove regular file `amanda'? y
Remove these amanda directories:
[root@vmclientcomm /]# rm -rf /usr/local/var/amanda [root@vmclientcomm /]# rm -rf /var/lib/amanda [root@vmclientcomm /]# rm -rf /tmp/amanda [root@vmclientcomm sbin]# rm /usr/local/sbin/amrecover
Install the enterprise client rpm:
[root@vmclientcomm client]# rpm -ivh amanda_enterprise-backup_client-2.5.0int9-1.fc4.i386.rpm warning: amanda_enterprise-backup_client-2.5.0int9-1.fc4.i386.rpm: Header V3 DSA signature: NOKEY, key ID 3c5d1c92 Preparing... ########################################### [100%] chown: `amandabackup:disk': invalid user 1:amanda_enterprise-backu########################################### [100%] Stopping xinetd: [ OK ] Starting xinetd: [ OK ]
Untar the gnutar_list from the /amandamove in to /var/lib/amanda/gnutar-lists:
[root@vmclientcomm gnutar-lists]# pwd /var/lib/amanda/gnutar-lists [root@vmclientcomm gnutar-lists]# tar -vxf /amandamove/gnutar_list.tar vmclientcomm.zmanda.com_boot_1.new
Copy the .amandahost file from /amandamove to the /var/lib/amanda directory:
[root@vmclientcomm amandamove]# cp /amandamove/.amandahosts /var/lib/amanda/ cp: overwrite `/var/lib/amanda/.amandahosts'? y
Edit the /var/lib/amanda/.amandahosts file to change all amanda user entries to amandabackup:
vmservercomm.zmanda.com amandabackup
Change the ownership to amandabackup:
[root@vmclientcomm amandamove]# chown -R amandabackup:disk /var/lib/amanda
Run a test restore using amrecover:
[root@vmclientcomm restore]# amrecover test -t vmservercomm -s vmservercomm AMRECOVER Version 2.5.0int14. Contacting server on vmservercomm ... 220 vmservercomm AMANDA index server (2.5.0int14) ready. 200 Access OK Setting restore date to today (2006-05-08) 200 Working date set to 2006-05-08. Scanning /space/amandahold/test... 200 Config set to test. 200 Dump host set to vmclientcomm.zmanda.com. Trying disk / ... Trying disk rootfs ... Use the setdisk command to choose dump disk to recover amrecover> listdisk 200- List of disk for host vmclientcomm.zmanda.com 201- /boot 200 List of disk for host vmclientcomm.zmanda.com amrecover> setdisk /boot 200 Disk set to /boot. amrecover> ls 2006-05-08 vmlinuz-2.6.11-1.1369_FC4smp 2006-05-08 vmlinuz-2.6.11-1.1369_FC4 2006-05-08 lost+found/ 2006-05-08 initrd-2.6.11-1.1369_FC4smp.img 2006-05-08 initrd-2.6.11-1.1369_FC4.img 2006-05-08 grub/ 2006-05-08 config-2.6.11-1.1369_FC4smp 2006-05-08 config-2.6.11-1.1369_FC4 2006-05-08 System.map-2.6.11-1.1369_FC4smp 2006-05-08 System.map-2.6.11-1.1369_FC4 2006-05-08 . amrecover> add config-2.6.11-1.1369_FC4 Added /config-2.6.11-1.1369_FC4 amrecover> extract Extracting files using tape drive chg-disk on host vmservercomm. 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 vmservercomm. Load tape TEST-2 now Continue [?/Y/n/s/t]? y ./config-2.6.11-1.1369_FC4 amrecover>