DPM machine name change

In case the FQDN of the SRM server or Disk Server changes, some entries need to be modified in the DPNS and DPM databases.

This is taken care of automatically by the changeDpmName script inluded in the DPM-name-server RPM version >= 1.5.6.

The script is located under the /opt/lcg/share/DPM/change-dpm-name directory.

Note : If the DPM server name changes, nothing needs to be changed, unless it is also the SRM server and/or a Disk Server.


Requirements

To run the changeDpmName script, the following packages need to be installed :

  • perl
  • perl-DBI
  • perl-DBD (for Mysql or Oracle)

Note : if using Mysql >= 4.1, perl-DBD-mysql >= 2.9003 should be used.


Example for Mysql

./changeDpmName --db-vendor MySQL --db localhost --user dpm --pwd-file `pwd`/pwd --old-srm srm01.cern.ch --new-srm sophie-srm.cern.ch  --old-disk dpmdisk01.cern.ch --new-disk sophie-disk.cern.ch --dpns-db cns_db --dpm-db dpm_db --verbose

Tue Apr 11 10:30:47 2006 : Starting to replace the DPM name.
Please wait...
Tue Apr 11 10:31:35 2006 : The update of the DPNS/DPM databases is over

4037 entries have been migrated in the 'Cns_file_replica' table.
3 disk server names have been modified in the 'dpm_fs' table.
0 entries have been migrated in the 'dpm_copy_filereq' table.
9685 entries have been migrated in the 'dpm_get_filereq' table.
7212 entries have been migrated in the 'dpm_put_filereq' table.

db vendor = MySQL
db = localhost
database user = dpm
database password = XXXXX
DPNS database name = cns_db
DPM database name = dpm_db
old SRM name = srm01.cern.ch
new SRM name = sophie-srm.cern.ch
old Disk Server name = dpmdisk01.cern.ch
new Disk Server name = sophie-disk.cern.ch


Example for Oracle

For Oracle, the dpns-db and dpm-db arguments don't need to be specified.

In this example, the SRM server and the Disk Server are located on the same machine.

./changeDpmName --db-vendor Oracle --db DPM_SID --user lcg_dpm --pwd-file `pwd`/pwd --old-srm lxb0715.cern.ch --new-srm dpm01.cern.ch --old-disk lxb0715.cern.ch --new-disk dpm01.cern.ch --verbose
Tue Apr 11 11:16:38 2006 : Starting to replace the DPM name.
Please wait...
Tue Apr 11 11:17:51 2006 : The update of the DPNS/DPM databases is over

123 entries have been migrated in the 'Cns_file_replica' table.
1 disk server names have been modified in the 'dpm_fs' table.
0 entries have been migrated in the 'dpm_copy_filereq' table.
4304 entries have been migrated in the 'dpm_get_filereq' table.
2357 entries have been migrated in the 'dpm_put_filereq' table.

db vendor = Oracle
db = DPM_SID
database user = lcg_dpm
database password = XXXXX
old SRM name = lxb0715.cern.ch
new SRM name = dpm01.cern.ch
old Disk Server name = lxb0715.cern.ch
new Disk Server name = dpm01.cern.ch


Troubleshooting

In case the script complains about NLS_XXXX parameters, just unset all the NLS_XXXX environment variables before running the script :

unset NLS_LANG
unset ORA_NLS33
unset NLS_DATE_FORMAT


Help !

In case of problems, contact helpdesk@ggusNOSPAMPLEASE.org (remove the NOSPAM !) : your ROC will help you and contact the appropriate experts if needed.


-- SophieLemaitre - 25 Apr 2006

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r4 - 2006-04-25 - unknown
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LCG All webs login

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