Page last modified 18:30, 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 00:20, 20 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:

[root@vmredhatclient client]# rpm -ih 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
########################################### [100%]
/var/tmp/rpm-tmp.80482: line 14: [: missing `]'
May 10 2006 00:27:17: Checking for 'amandabackup' user...
May 10 2006 00:27:17:
May 10 2006 00:27:17:  The 'amandabackup' user account for this system has been locked
May 10 2006 00:27:17:  for security purposes.  Once a password for the  'amandabackup'
May 10 2006 00:27:17:  account has been set, the user can be unlocked by issuingMay 10 2006 00:27:17:  the following command as root.:
May 10 2006 00:27:17:
May 10 2006 00:27:17:  # passwd -u amandabackup
May 10 2006 00:27:17:
May 10 2006 00:27:17:  If this is not a new installation of Amanda and you have
May 10 2006 00:27:17:  pre-existing Amanda configurations in /etc/amanda
May 10 2006 00:27:17:  you should ensure that 'dumpuser' is set to 'amandabackup'
May 10 2006 00:27:17:  in those configurations.  Additionally, you should ensureMay 10 2006 00:27:17:  that /var/lib/amanda/.amandahosts on your   client systems
May 10 2006 00:27:17:  is properly configured to allow connections for the user
May 10 2006 00:27:17:  'amandabackup'.
May 10 2006 00:27:17:
May 10 2006 00:27:17:
May 10 2006 00:27:31: === Amanda Enterprise backup client installation started. ===
########################################### [100%]
May 10 2006 00:27:32: Updating system library cache...done.
May 10 2006 00:27:32: Restarting xinetd...Stopping xinetd: [  OK  ]
Starting xinetd: [  OK  ]
success.
May 10 2006 00:27:33: Installing '/etc/amandates'.
May 10 2006 00:27:33: The file '/etc/amandates' has been created.
May 10 2006 00:27:33: Ensuring correct permissions for '/etc/amandates'.
May 10 2006 00:27:33: '/etc/amandates' Installation successful.
May 10 2006 00:27:33: Installing '/var/lib/amanda/.gnupg'.
May 10 2006 00:27:33: '/var/lib/amanda/.gnupg' will be created.
May 10 2006 00:27:33: The directory '/var/lib/amanda/.gnupg' created successfully.
May 10 2006 00:27:33: Ensuring correct permissions for '/etc/.gnupg'.
May 10 2006 00:27:33: '/var/lib/amanda/.gnupg' Installation successful.
May 10 2006 00:27:33: Creating directory '/var/lib/amanda/.ssh'.
May 10 2006 00:27:33: Creating ssh RSA key in '/var/lib/amanda/.ssh/id_rsa'
May 10 2006 00:27:34: Setting ownership and permissions for '/var/lib/amanda/.ssh' and '/var/lib/amanda/.ssh/id_rsa*'
May 10 2006 00:27:34: Checking for '/var/lib/amanda/.profile' and ensuring correct environment.
May 10 2006 00:27:34: Setting ownership and permissions for '/var/lib/amanda/.profile'
May 10 2006 00:27:34: === 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'.