How to migrate data/files from one storage target to another? #56
-
|
Hello! I am looking for some guidance on how one can migrate data from one storage target to another. A couple of scenarios for this are: we want to remove and upgrade an old SSD to a new one, or move data from a slow SSD to a faster one. The one relevant BeeGFS CLI option I can see is Is there a simpler method to migrate data from one storage target to another without using enterprise features such as storage pools? I appreciate any help you can provide. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
Beta Was this translation helpful? Give feedback.
-
|
So, yes, Well, turns out $ beegfs entry migrate --help
Flags:
--pool entityId Migrate files to the targets and buddy groups in this storage pool. (default <unspecified>)That's disappointing. In absence of that, I'd:
There ought to be a mechanism (and associated Beegfs CLI command) for there above, really. Even better, since it almost already exists ( A server can be removed and added back (with the new target), but its storage targets must be emptied first, so that doesn't seem helpful. |
Beta Was this translation helpful? Give feedback.
-
There are striping patterns which aren't meant for that. As the docs mention, BeeGFS behaves well in the sense that it seeks to pick less capacity-utilized targets. You could abuse this behavior by setting free space to 0 to all targets but the one you want to use (maybe combine with custom striping), but I wouldn't try that in a production environment. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the pointers! Setting free space is a decent option, but it's hacky and not a nice thing to do in a production system, like you also pointed out. What would be nice is:
|
Beta Was this translation helpful? Give feedback.
-
|
Hi @iamjoemccormick |
Beta Was this translation helpful? Give feedback.
An update on this. Upon closer examination, while technically files have a pool assignment in their inode, this has no significance after file creation. Pools only matter for directories because they control what targets new files in that directory are assigned to. In BeeGFS 7 we didn't even print pool assignments for files in
entry info, this inadvertently slipped into the BeeGFS 8 table output.So we decided to make two changes to CTL:
(1) Stop printing pools for files in
entry info. This is confusing because the targets assigned to a pool might change after a file is created, meaning the targets assigned to a file may eventually no longer be in the same pool assigned to the file. This …