Difference: DpmMigratingFromSL3TOSL4 (4 vs. 5)

Revision 52007-12-13 - LanaAbadie

Line: 1 to 1
 
META TOPICPARENT name="DataManagementDocumentation"

How to migrate a DPM on SL3 to SL4

Added:
>
>
 It is mandatory to read the whole page before performing any operations. You will have TO SCHEDULE A DOWNTIME. ALL THE SERVICES RELATED TO DPM WILL NEED TO BE STOPPED IN THE CORRECT ORDER. You may also require to stop your MySQL server if the host needs to be reinstalled to SL4.

1. Introduction

Line: 75 to 77
 

4.3.2 DB backup

N.B : if your MySQL server is used for other services than DPM, you will need to make a back up of the necessary databases. Please ask the support of the involved services. In this subsection, we focus only on the DPM service.
  • IT IS VERY IMPORTANT TO MAKE A BACKUP OF THE DPM AND DPNS DB BEFORE ANY REINSTALLATION.
Changed:
<
<
  • For that the DPM server (headnode) must be stopped as for a DPM migration see LINK for more details on how to stop properly your DPM.
>
>
  • For that the DPM server (headnode) must be stopped as for a DPM migration see 4.1.2 for more details on how to stop properly your DPM.
 
  • mysqldump --databases <dpm_db_name> <dpns_db_name> -u <username> -p > DPM_MySQL_BCKUP.sql will allow to make a backup of the dpm and dpns DBs
  • Compress the backup if it is too big.
  • Put this file DPM_MySQL_BCKUP.sql in a secure place or partition which will not be affected by the reinstallation
Line: 87 to 89
 After the installation,
  • Don't forget to tell to the sysadmin not to affect the storage partitions and the ones which contain some back ups of config files.
  • After the installation, copy back the right host certificates on the corresponding machines.
Added:
>
>
  • use (and don't copy it directly) the proper /etc/passwd and /etc/group for the services and people accounts. Warning : some service names may have changed from SL3 to SL4 and also don't forget to type grpconv and pwconv to recreate the shadow files for users and groups.
 
  • Copy back + untar all the log files you backed up via tar on their corresponding machines. Make sure your are performing the tar on the top of the tree as tar preserves the hierarchy. So for the log files, the tar xvf has to be executed on /.
  • Copy back + untar all the files stored/managed by the DPM into the right disk server. Make sure that the hierarchy is preserved and they belong to dpmmgr (user + group). You may want to change using the following command line chown -R dpmmgr.dpmmgr <directory_to_update>. Same remark as previous make sure that you untar at the proper level.
  • Copy back the MySQL backup to the machine which hosts the MySQL server.
  • Install java sdk before starting using yaim. See Yaim for more information.
Deleted:
<
<
  • use (and don't copy it directly) the proper /etc/passwd and /etc/group for the services and people accounts. Warning : some service names may have changed from SL3 to SL4 and also don't forget to type grpconv and pwconv to recreate the shadow files for users and groups.
 
  • if needed, copy back the YAIM config files you have backed up on the right machines. Put them on the right place so that YAIM can find them.

6. Installing/Configuring your DPM via YAIM

Line: 130 to 132
 A1: you can type the following command (from the DPM head node/disk server/ MySQL server) provided that you have an ssh client and a host where you can store the files:

Changed:
<
<
tar czpf - <directory_to_tar> | ssh <login>@<host_where_to_put_the_tar> cat ">" <name_of_the_tar>
>
>
tar czpf - <directory_to_tar> | ssh <login>@<host_where_to_put_the_archive> cat ">" <name_of_the_archive.tgz>
  It may prompt you for the password of the account. You can alos specify the location of your ssh key via ssh -i and the version of ssh to be used ssh -1 (default one) or ssh -2.

To get it back and untar it, you can type the following command (from the DPM head node/disk server/ MySQL server):


Changed:
<
<
ssh <login>@<host_where_to_put_the_tar> cat "<" <name_of_the_tar> |tar xfz -
>
>
ssh <login>@<host_where_to_put_the_tar> cat "<" <name_of_the_archive.tgz> |tar xfz -
  Don't hesitate to report problems, to ask questions or make any comments to improve the quality of this page to DPM support
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback