Show Children Hide Children

Main FTS Pages
Previous FTSes
All FTS Pages
Last Page Update

FTA change channel type procedure for Release 2.0.

What is it?

This is the procedure to change the type of an existing channel from URLCOPY to SRMCOPY or viceversa.

When to use it?

When you have an existing channel, with an agent running for it, configured as URLCOPY or SRMCOPY and want to change the transfer type.


Changing the channel type of a channel is not like changing any other parameter and requires particular care.

When the channel agent daemon runs, it periodically checks for the status of the running transfers. This status is serialized in the .mem files that can be found under the /var/tmp/glite-url-copy-edguser folder, and these files have a different structure if the transfer is an urlcopy or srmcopy mode transfer. Therefore, it is possible that something like the following happens:

  • the urlcopy channel agent is stopped while there are running transfers
  • the channel type is set to srmcopy
  • the channel agent is restarted
  • the agent picks up an urlcopy mem file and tries to read it as an srmcopy mem file
  • the transfer status verification fails.

Possible consequences are:

  • transfers that were actually successful are considered failed and retried
  • database corruption: on some occasions two active transfers for the same file are created in the database, and eventually the channel agent will disable many of its actions, not being able to cache the active transfers data.


In the example we will use a channel named "CERN-CERN" and change its type from urlcopy to srmcopy.

Drain and stop the channel

Set the channel state to Inactive so that no new transfers will be started:
glite-transfer-channel-set -S Inactive CERN-CERN
Wait until there are no running transfers, i.e. grep the process table for processes of the form CHANNEL-NAME__*:
ps aux | grep CERN-CERN__ 
Stop the channel:
service transfer-agents --instance glite-transfer-channel-agent-urlcopy-CERN-CERN stop

Change the channel type

Edit the site-info.def file. Modify
Rerun the YAIM configuration script to rebuild the config files:
/opt/glite/yaim/scripts/configure_node site-info.def FTA2

Restart the channel

service transfer-agents --instance glite-transfer-channel-agent-srmcopy-CERN-CERN start
Note that the channel agent instance name has changed from glite-transfer-channel-agent-urlcopy-CERN-CERN to glite-transfer-channel-agent-srmcopy-CERN-CERN.
Last edit: GavinMcCance on 2008-01-15 - 11:45
Number of topics: 1

Maintainer: PaoloTedesco

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2007-12-06 - PaoloTedesco
    • 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-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback