canonical / multipass

Multipass orchestrates virtual Ubuntu instances
https://multipass.run
GNU General Public License v3.0
7.79k stars 643 forks source link

`primary` replaced ater stopping in the middle of `apt upgrade` #2666

Closed ikitayama closed 2 years ago

ikitayama commented 2 years ago

Describe the bug I've accumulated lots of data on primary, which amounts to 100 GB or so, that is no longer accessible and new primary is an instance with the default 5 GB of storage

To Reproduce How, and what happened?

Not reproducible. The primary instance got shutdown during apt upgrade.

Expected behavior What did you expect to happen?

Find primary image.

Logs Please provide logs from the daemon, see accessing logs on where to find them on your platform.

Additional info

Additional context Add any other context about the problem here.

luis4a0 commented 2 years ago

Hi @ikitayama, could you please provide the logs, as described here? Thanks!

I assume the instance ran out of space and hang up, but I can't see why it disappeared.

ikitayama commented 2 years ago

I only find multipassd.log there. A quick glance, I am not sure if this has the relevant crash log.

ikitayama commented 2 years ago

I am happy to send the log off list if someone can take a look.

luis4a0 commented 2 years ago

@ikitayama yes, please send the multipassd.log file. Thanks!

ikitayama commented 2 years ago

To you?

On Wed, Jul 20, 2022 at 20:37 Luis Peñaranda @.***> wrote:

@ikitayama https://github.com/ikitayama yes, please send the multipassd.log file. Thanks!

— Reply to this email directly, view it on GitHub https://github.com/canonical/multipass/issues/2666#issuecomment-1190165008, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHLBZYX4TU5A3WWEA4T4RDVU7QHDANCNFSM53XONG5A . You are receiving this because you were mentioned.Message ID: @.***>

luis4a0 commented 2 years ago

Here is better :)

ikitayama commented 2 years ago

multipassd.log

ricab commented 2 years ago

Hi @ikitayama. I couldn't find any evidence of a VM crash in that log file.

To try to better understand the issue you experienced, what exactly did you observe when your 100G primary instance stopped being "accessible"? You're on an M1 mac, correct? So you ran apt upgrade inside the instance, then what happened? And how was that instance replaced with a new primary with 5G?

ikitayama commented 2 years ago

All I recall is: I did upgrade to the latest release, and the vm crashed in the middle of apt upgrade. Then my M1 Max started reporting 1TB of storage was almost full; so I tried to remove unnecessary files and binaries.

ricab commented 2 years ago

Hi @ikitayama. So could the lack of disk space have prevented apt from going on with the upgrade? And did you manually remove the instance when deleting those unnecessary files? How do you think Multipass should have done differently?

ikitayama commented 2 years ago

Hi @ikitayama. So could the lack of disk space have prevented apt from going on with the upgrade? And did you manually remove the instance when deleting those unnecessary files? How do you think Multipass should have done differently?

Possibly, and I am not certain if I removed the instance. Sorry.

ricab commented 2 years ago

OK, it doesn't look like Multipass did anything wrong then? I am going to close this now. Please reopen if there is anything specific you think Multipass should do differently.