Difference: DpmSrmv2Support (5 vs. 6)

Revision 62007-03-20 - SophieLemaitre

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

DPM upgrade to >= 1.6.0

Line: 44 to 44
 

Example for a Mysql DPM

Changed:
<
<
cd /opt/lcg/share/DPM/dpm-support-srmv2.2/
>
>
$ cd /opt/lcg/share/DPM/dpm-support-srmv2.2/
 
Changed:
<
<
./dpm_support_srmv2.2 --db-vendor MySQL --db localhost --user dpm_user --pwd-file /tmp/pwd --dpns-db cns_db --dpm-db dpm_db --verbose
>
>
$ ./dpm_support_srmv2.2 --db-vendor MySQL --db localhost --user dpm_user --pwd-file /tmp/pwd --dpns-db cns_db --dpm-db dpm_db --verbose
 

Example for an Oracle DPM

cd /opt/lcg/share/DPM/dpm-support-srmv2.2/
Changed:
<
<
./dpm_support_srmv2.2 --db-vendor Oracle --db db_oracle_sid --user dpm_user --pwd-file /tmp/pwd --verbose
>
>
$ ./dpm_support_srmv2.2 --db-vendor Oracle --db db_oracle_sid --user dpm_user --pwd-file /tmp/pwd --verbose
 

Troubleshooting

Line: 65 to 66
 In this case, you can consider that the migration script has been successfully run.
Changed:
<
<
failed to query and/or update the DPNS/DPM databases : DBD::mysql::db do failed: Duplicate key name 'G_PFN_IDX' at UpdateDpmDatabase.pm line 264.
>
>
failed to query and/or update the DPNS/DPM databases : DBD::mysql::db do failed: Duplicate key name 'G_PFN_IDX' at UpdateDpmDatabase.pm line 264.
 Issuing rollback() for database handle being DESTROY'd without explicit disconnect(). Issuing rollback() for database handle being DESTROY'd without explicit disconnect().
Line: 75 to 77
 We believe the following error Error on rename is due to a bug in Mysql.
Changed:
<
<
failed: Error on rename of './dpm_db/#sql-4083_25' to './dpm_db/dpm_pool' (errno: 150) at UpdateDpmDatabase.pm line 118.
>
>
failed: Error on rename of './dpm_db/#sql-4083_25' to './dpm_db/dpm_pool' (errno: 150) at UpdateDpmDatabase.pm line 118.
 Issuing rollback() for database handle being DESTROY'd without explicit disconnect(). Issuing rollback() for database handle being DESTROY'd without explicit disconnect().
Line: 89 to 92
 mysql> use dpm_db; mysql> alter table dpm_fs drop foreign key fk_fs;
Changed:
<
<
$ ./dpm_support_srmv2.2 --db-vendor MySQL --db localhost --user dpm --pwd-file /tmp/pwd --dpns-db cns_db --dpm-db dpm_db --verbose
>
>
$ ./dpm_support_srmv2.2 --db-vendor MySQL --db localhost --user dpm --pwd-file /tmp/pwd --dpns-db cns_db --dpm-db dpm_db --verbose
  mysql> alter table dpm_fs add CONSTRAINT fk_fs FOREIGN KEY (poolname) REFERENCES dpm_pool (poolname);
Added:
>
>

Undefined subroutine

You get:

Undefined subroutine &UpdateDpmDatabase::modify_dpm_db_before_updating_fields_mysql 
called at ./dpm_support_srmv2.2 line 113.

To solve this, you should (re)define the $PERLLIB environment variable:

$ export PERLLIB=/opt/lcg/share/DPM/dpm-support-srmv2.2:$PERLLIB
 

SRMv2.2 daemon

A new daemon - supporting SRMv2.2 - has to run.

Line: 125 to 144
 
  • service srmv2.2 start on the SRM host don't forget this new one
  • service dpm-gsiftp start on all disk servers
Changed:
<
<
-- SophieLemaitre - 15 Mar 2007
>
>
-- SophieLemaitre - 20 Mar 2007
 
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