Skip to content

Ramdisk getting unmounted before it's unloaded #3

Open
@dghodgson

Description

@dghodgson

tom from forums.bukkit.org:

root@ip:/etc/init.d# ./minecraft stop
craftbukkit.jar is running... stopping.
craftbukkit.jar could not be shut down... still running.
Can't unload ramdisk, craftbukkit.jar is still running!
Ramdisk mounted at /home/dfomain1/minecraft/servers/dfo1/minecraft_ramdisk.... unmounting
Ramdisk unmounted

And then it rolls back ???

Reko from forums.bukkit.org:

get this when stopping server

Can't unload ramdisk, cb.jar is still running!
Ramdisk mounted at /root/minecraft/mcram.... unmounting
umount: /root/minecraft/mcram: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount: /root/minecraft/mcram: device is busy.

It appears to be an issue with the some servers taking too long to shut down, and the script doesn't wait long enough so the mcrd_unload function gets called before the service has stopped and subsequently fails as a result.

The main problem is that while mcrd_unload fails safely and opts to not unload the world files as the service is still running, mcrd_unmount decides to chug right along anyway despite the fact that the ramdisk has not yet been unloaded.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions