-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
Issues while moving instances with snapshot from one storage to another #1264
Comments
I followed all the steps OP specified, and got the same result; however, when I stopped then started the VM, waited 20 seconds, then ran the exec command, it worked. My environment: |
Hi, I tried again with version 6.6 and it seems to work now 🤷 I moved a windows 11 vm and it fails to start with a UEFI error but this is another story I think, so I close the issue. |
Another test performed this morning:
|
Okay so what I'm reading is that the reproducer should be:
Then a re-import onto btrfs works fine but a re-import on zfs doesn't? I'm currently testing this scenario so let's see if I run into issues. |
Reproduced the issue here, going to have to figure out exactly what's going on here but need to sort out a much smaller test VM so things don't take quite so long to reproduce. |
As we use a sparse writer which will skip any zero blocks, we need to discard (block) or truncate (file) prior to processing the data or we risk having leftover data from a previous snapshot interfere with the new state. Closes lxc#1264 Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
As we use a sparse writer which will skip any zero blocks, we need to discard (block) or truncate (file) prior to processing the data or we risk having leftover data from a previous snapshot interfere with the new state. Closes lxc#1264 Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
As we use a sparse writer which will skip any zero blocks, we need to discard (block) or truncate (file) prior to processing the data or we risk having leftover data from a previous snapshot interfere with the new state. Closes #1264 Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Required information
Issue description
While installing
lxd
some years ago I used a btrfs backend for storage. I wanted to try zfs so I created one and wanted to move my instances to the latest one, but my instances did not want to start properly.storages details
Steps to reproduce
without snapshots
Everything seems to be 👍
with snapshots
Something went bad
Information to attach
The cropped snapshots of th console :
The text was updated successfully, but these errors were encountered: