-
Notifications
You must be signed in to change notification settings - Fork 144
Description
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