-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Container Manager Move Failed #34
Comments
You need to map your path inside the containers to volume 2, this can't be done by the script. |
Yes, I get that internal to the container/compose the mapping needs to be updated. |
So this is the error I'm seeing when I try to delete/remove a container now:
|
In the pre-release v3 of the script it no longer skips moving folders if the target folder is not empty because it caused issues like this. Instead v3 will copy the folder's contents if the target folder is not empty. Did you answer yes to backup |
Yes, I did. But it was unclear to me how to restore from it. Currently running the v2.0.7 version. Right now, I'm just trying to recover back to some semblance of normalcy, even if that is back onto volume1. I was attempting another move to volume2, in the hopes that it would fix things, but it is unclear to me if it is stuck on moving @appsotre/ContainerManager to /volume2 or just being very slow. |
Which volume was docker originally installed on before you tried moving it? |
I downloaded your pre-release 3.0.38. Evidently I did not backup.... |
It should only takes seconds to move What does this command return?
|
@docker |
Did you backup What do these commands return?
|
And which volume is container manager currently installed on? |
Okay....
Before my first move with v2.
and I tried to sudo both of those commands and it just hangs after the password.
|
Try:
|
I'm getting nothing from the above. Just hangs. I think I'm at the point of nuking CM, reformatting the vol2 ssd's and starting fresh. Not great. Not terrible. |
But your experience will help others. I'm in the process of changing the script to advise people export their docker container configs just in case. I may also change the script to copy docker's |
Glad I could contribute. For me, it was a pretty easy restore, as I copied my shared docker folder to a "docker_old" folder, so once I did the clean install of CM on the SSD volume2 I could just copy them into the new shared docker folder. Then it was just a matter of updating the compose volume mappings in various CM Projects and Portainer Stacks. But I had to do things like remake the docker networks I had set up, etc. So I still see value in this. I'm assuming that v3.x can be used to backup Container Manager in general? It would be nifty to be able to trigger that via options on the script so that it could be set up as a scheduled task. |
Yes. You can backup (and restore) just the selected app or all apps.
I've added this to my to-do list. I'm thinking the script could be scheduled with something like an --auto option:
and even support a | separated list of packages to backup:
|
Yes, something like both of these. I guess the question is does this provide some sort of better functionality than internal backup or some other docker based backup (such as nautical-backup)? I don't believe that any of those would backup the @docker data itself. |
Could you include an option in the CM move queue to copy the "docker shared folder" to "docker-move" (or some other shared folder name)? This would give someone the opportunity to do it during the move process. In theory all the configs should be in that folder. |
For the docker shared folder the v3 version of the script shows the steps to move the docker share, which is best done via the DSM ui. It also warns that if you move the docker shared folder (or other shared folders that your containers access) you need to edit those container's docker compose, .env files, or the container's settings, to point to the new volume number. |
I don't know if other backup methods also backup |
One possible solution will be remove all this btrfs subvolumes snapshots before doing anything: for subvolume in /volume2/\@docker/btrfs/subvolumes/*; do
btrfs subvolume delete "$subvolume"
done and add this to [...]
"storage-driver": "overlay2"
[...] and no more btrfs subvolumes |
In DSM 6.2.4 and 7.2.1 there is no
I'm looking into this now but the link you provided says overlay does not support btrfs.
So it seems that overlay2 is not an option when using btrfs. I'd have to use btrfs, fuse-overlayfs or vfs overlay2 seems to also require kernel 5.19+ according to this page. But Synology NAS have either kernel 5.10, 4.4 or 3.10 So I decided to try overlay2 and see what happens. When I start Container Manager it replace my |
Hello, I set up M.2 volume per the other helper scripts. I then began the app mover script to move Container Manger to volume2.
It appeared to work OK, but I initially left all my docker data folders on volume1. Somewhere in the process of moving them to volume2 something got mucked up. Could have been me, could have been Syno starting a scrub at the same time, I do not know.
I started to get errors on all my containers that looked like this:
If I tried to delete a container it changed to this:
and
Steps to correct:
No sure where to go from here.
The text was updated successfully, but these errors were encountered: