wiki:manuals/Partitioning
Last modified 9 years ago Last modified on 06/15/11 17:24:29

dCache Partitioning

There is some useful information on the dCache Partitioning in addition to Chapter 10 of the dCache Book.

Table 10.1 describes which parameters may be used in conjunction with dCache partitioning.

Below we discribe the range of valid values for the following parameters:

  1. Pool-related parameters: p2p-allowed, p2p-oncost, p2p-fortransfer;
  2. Tape-related parameters: stage-allowed, stage-oncost.

1. Pool-related parameters.

pm set <sectionName> -p2p-allowed=<yes|no|off>
pm set <sectionName> -p2p-oncost=<yes|no|off>
pm set <sectionName> -p2p-fortransfer=<yes|no|off>
Dependencies:
Setting -p2p-fortransfer=yes implies -p2p-allowed=yes.
Setting -p2p-oncost=yes implies -p2p-allowed=yes.
Setting -p2p-allowed=no implies -p2p-oncost=no and -p2p-fortransfer=no.
Setting -p2p-allowed=off implies -p2p-oncost=off and -p2p-fortransfer=off, that is,
parameters p2p-oncost and p2p-fortransfer will be set to default values.

2. Tape-related parameters.

pm set <sectionName> -stage-allowed=<yes|no|off>
pm set <sectionName> -stage-oncost=<yes|no|off>
Dependencies:
Setting -stage-allowed=no implies -stage-oncost=no.
Setting -stage-oncost=yes implies -stage-allowed=yes.
Setting -stage-allowed=off implies -stage-oncost=off , that is,
parameter stage-oncost will be set to default value.

Remark.
If <sectionName> is omitted the default section is used, so that 'off' doesn't make sense.
pm set -p2p-allowed=<yes|no>
pm set -p2p-oncost=<yes|no>
pm set -p2p-fortransfer=<yes|no>
pm set -stage-allowed=<yes|no>
pm set -stage-oncost=<yes|no>

Examples.

Commands related to dCahe Partitioning can be found here.
Connect to the dCache Admin Interface and execute command cd PoolManager:

[user] $ ssh -c blowfish -p 22223 -l admin <adminNode>
password:

    dCache Admin (VII) (user=admin)

(local) admin > cd PoolManager
(PoolManager) admin > 

Check parameters of the default section:

(PoolManager) admin > pm ls -l
default
   -cpucostfactor=1.0
   -spacecostfactor=1.0
   -idle=0.0
   -p2p=2.0
   -alert=0.0
   -halt=0.0
   -fallback=0.0
   -p2p-allowed=true
   -p2p-oncost=true
   -p2p-fortransfer=false
   -stage-allowed=false
   -stage-oncost=false
   -max-copies=500
(PoolManager) admin >

Create a new section called testSection1, and set parameter p2p-oncost to false:

(PoolManager) admin > pm set testSection1 -p2p-oncost=no

and check that parameter was set correctly:

PoolManager) admin > pm ls -l testSection1
testSection1
   -p2p-oncost=false
[reagan.desy.de] (PoolManager) admin >

Now set parameter p2p-oncost to true:

(PoolManager) admin > pm set testSection1 -p2p-oncost=yes

and list the section:

(PoolManager) admin > pm ls -l testSection1
testSection1
   -p2p-allowed=true                             
   -p2p-oncost=true
(PoolManager) admin >

Note, that parameter p2p-allowed was set to true automaticaly in this case.

Some examples on tape-related parameters.
Parameters of the default section are the same as above. Create section2 with parameters stage-allowed and stage-oncost set to true, and list parameters:

(PoolManager) admin > pm set section2 -stage-allowed=yes -stage-oncost=yes
(PoolManager) admin > pm ls -l section2
section2
   -stage-allowed=true
   -stage-oncost=true
(PoolManager) admin >

Setting parameter stage-allowed to false implies that parameter stage-oncost is also set to false:

(PoolManager) admin > pm set section2 -stage-allowed=no
(PoolManager) admin > pm ls -l section2
section2
   -stage-allowed=false
   -stage-oncost=false
(PoolManager) admin >

Finally reset both parameters to default value and list the section:

(PoolManager) admin > pm set section2 -stage-allowed=off -stage-oncost=off
(PoolManager) admin > pm ls -l section2
section2
(PoolManager) admin >

No parameters are listed in this case, as all parameters were set to default values (using off).

Back to PoolManager
Back to dCache Components
Back to index