Skip to content

Pool migration ignores rdonly status of target #7114

Description

@onnozweers

Dear dCache devs,

I have a strong impression that the "migration move" function of a pool ignores the rdonly (read only) status of a target pool.

This is a bit impractical when you have two pools that you want to drain simultaneously with the poolgroup as a target. They keep on writing files to each other, so it's difficult to get them to a stage where they are empty and can be decommissioned.

So, what I do is set the source pools to rdonly, in the PoolManager:

psu set pool shark11_atlasdisk rdonly
psu set pool shark12_atlasdisk rdonly

Then I drain them both like this:

migration move -concurrency=6 -target=pgroup atlas_writediskpools

And then they are writing files to many pools, including each other. I wouldn't expect that, since they are rdonly. It's actually worse: because they are getting emptier, they are becoming increasingly attractive target pools for each other's migrations.

I work around this by setting the max diskspace to 10 (bytes) repeatedly, so that they don't have any available space to write into. But that's a bit clumsy.

Cheers,
Onno

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementA request that enhances existing behaviourpoolTargeting the pool

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions