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

detect mounted volumes in filesystems #81

Open
tiero opened this issue May 12, 2024 · 3 comments
Open

detect mounted volumes in filesystems #81

tiero opened this issue May 12, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@tiero
Copy link

tiero commented May 12, 2024

I have a Hetzner VM to which I have attached and mounted a 512GB volume to /dev/sda

ie.

/dev/sda        503G   28K  478G   1% /mnt/HC_Volume_100724042

It would be super helpful to have DockPloy to recognize this extra space to be used for extra services storage.

Only 160GB base disk is seen

image
@Siumauricio
Copy link
Contributor

I will need to try this, we extract the size based on / path https://github.com/Dokploy/dokploy/blob/canary/server/monitoring/utilts.ts#L48

@tiero
Copy link
Author

tiero commented May 13, 2024

I see. It may be worth look for all mounted volumes and sum their free space? Not sure how easy is to list mounted disks via the OS.

My other question would be if the Docker engine itself is able to read and use other mounted disks as a unique space for docker's named volumes? (ie. Volume mount)

@Siumauricio
Copy link
Contributor

Siumauricio commented May 14, 2024

I can take a look to see if we can get all the volumes mounted and then add them all up, for now let's keep it open

My other question would be if the Docker engine itself is able to read and use other mounted disks as a unique space for docker's named volumes? (ie. Volume mount)

I have not tested this, surely in this case it may require some additional configuration, this at docker level.

@Siumauricio Siumauricio added the enhancement New feature or request label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants