Skip to content
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

bug: file transfers need twice the disk space #1388

Open
mkunz7 opened this issue Nov 27, 2019 · 0 comments
Open

bug: file transfers need twice the disk space #1388

mkunz7 opened this issue Nov 27, 2019 · 0 comments

Comments

@mkunz7
Copy link
Contributor

mkunz7 commented Nov 27, 2019

Describe your environment

  1. minimega version
    latest
  2. Linux distro/version
    ubuntu 18.04.3
  3. Go compiler version
    1.12.13
  4. VM types
    all

Describe the bug
The file API doesn't throw an error when you run out of disk space.

If you send a 50gB file, you need to have at least 100gB's of free space.

To Reproduce
Start Minimega on 2 nodes
Create a large file (10gB) and put it in the file path on node1

On node2 only have 15 gB remaining. Mounting the file path in a ram drive helps.

From node2

file get mylargefile.qcow2

The file downloads, then truncates to 5gB without error to CLI. If you have multiple nodes downloading the file with mesh send all file get mylargefile.qcow2 once one node finishes all the qcows get corrupted before they finish downloading.

Expected behavior
Error on running out of disk space. Why is this a copy and not move operation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant