Page last modified 18:23, 10 May 2006 by Ppragin?

Upgrading 2.4.5 community edition Client Redhat RPM install to 2.5 Enterprise Client

Table of contents
No headers

Version as of 23:20, 19 May 2024

to this version.

Return to Version archive.

View current version

Create a directory called /amandamove to hold amanda files during the upgrade:

[root@vmredhatclient ~]# 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="/var/lib/amanda/gnutar-lists"

Tar up the gnutar-lists usually located in /var/lib/amanda/ in to the /amandamove directory:

[root@vmredhatclient gnutar-lists]# tar -cvf /amandamove/gnutar_list.tar *
vmredhatclient.zmanda.com_boot_0.new
[root@vmredhatclient gnutar-lists]#

Copy the /var/lib/amanda/.amandahost to /amandamove:

[root@vmredhatclient gnutar-lists]# 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

Locate the existing amanda rpm packages:

[root@vmredhatclient ppragin]# rpm -q amanda
amanda-2.4.5-2
[root@vmredhatclient ppragin]# rpm -q amanda-client
amanda-client-2.4.5-2
[root@vmredhatclient ppragin]# rpm -q amanda-server
package amanda-server is not installed
[root@vmredhatclient ppragin]#

Uninstall the existing amanda rpm packages:

[root@vmredhatclient ppragin]# rpm -e amanda-2.4.5-2
error: Failed dependencies:
       libamanda-2.4.5.so is needed by (installed) amanda-client-2.4.5-2.i386
       amanda = 2.4.5 is needed by (installed) amanda-client-2.4.5-2.i386
[root@vmredhatclient ppragin]# rpm -e amanda-client-2.4.5-2
warning: /etc/xinetd.d/amanda saved as /etc/xinetd.d/amanda.rpmsave
[root@vmredhatclient ppragin]# rpm -e amanda-2.4.5-2
warning: /var/lib/amanda/.amandahosts saved as /var/lib/amanda/.amandahosts.rpmsave
[root@vmredhatclient ppragin]#

Remove the old amanda xinetd files:

[root@vmredhatclient ppragin]# cd /etc/xinetd.d
[root@vmredhatclient xinetd.d]# ls -al | grep am
-rw-r--r--   1 root root   320 May  9 23:11 amanda.rpmsave
[root@vmredhatclient xinetd.d]# rm amanda.rpmsave
rm: remove regular file `amanda.rpmsave'? y
[root@vmredhatclient xinetd.d]#

Remove these amanda directories:

[root@vmredhatclient xinetd.d]# rm -rf /var/lib/amanda
[root@vmredhatclient xinetd.d]# rm -rf /var/log/amanda

Install the enterprise client rpm: