Affects Version/s: Minecraft 1.12.2, 20w07a
Fix Version/s: None
When Minecraft fails to write data due to "no space left on device" issues, the error is not treated as fatal. This means the server can continue to run, sometimes for hours, causing an issue which impacts a single failed write to balloon out into an issue effecting dozens of chunks / users.
The server will then start spamming the following:
And when shut down:
It's a bad situation, which obviously shouldn't happen, ideally, but the way Minecraft currently handles the issue turns a bad situation into a much worse situation.
Warning: When executed incorrectly these steps can cause damage to your OS, use them at your own risk.
- Create a Virtual Hard Drive: Tutorial
- When placing the server .jar in it, make sure to assign enough space so it fits (~ 50 MB)
- When only using it for the world file use about 5 MB
- When creating the volume you can either assign a new driver letter or use an empty folder (preferred)
- Prepare the server
- Depending on how large you created the VHD either place the .jar in the folder / drive
- Or change the server.properties level-name entry to point to the folder / drive
- Start the server
- Join the server, switch to Creative or Spectator mode and fly around to create chunks
At some point you should notice IOException in the server log