r/GPFS•
cd_vdms

From the point of view of accessing a file, are pool migrations atomic?

When I mmapplypolicy to move a file's data blocks from one storage pool to another, in mmlsattr the storage pool name immediately changes to the destination pool and an "ill-placed" flag is set. After the blocks have been moved, the flag is removed.

My question is, if I access that file during the migration, am I exclusively accessing the "old" data blocks on the source pool, or do I switch to accessing the "new" data blocks part-way through the file?

(The former seems most likely to me, but I don't understand what happens if I'm in the middle of playback of a video file and the migration completes. Or are the blocks held on the source pool until I stop accessing them?)

Following on from this, if I have a file in "pool1" and mmapplypolicy to move its blocks to "pool2", then mid-movement that file is moved from its current location into a folder that exists in a different fileset which happens to be in "pool2", what happens: am I right in assuming that the data blocks for the file move come entirely from "pool1", the mmapplypolicy continues moving blocks, you do have duplicated blocks on "pool2" for a while, but everything is resolved as references to the different blocks disappear leaving just the data blocks resulting from the copy left on "pool2"?

Posted Jul 18, 2017, 10:16 AM UTC

46
Loading comments…