dokploy icon indicating copy to clipboard operation
dokploy copied to clipboard

detect mounted volumes in filesystems

Open tiero opened this issue 1 year ago • 3 comments

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

tiero avatar May 12 '24 23:05 tiero

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

Siumauricio avatar May 13 '24 00:05 Siumauricio

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)

tiero avatar May 13 '24 15:05 tiero

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 avatar May 14 '24 19:05 Siumauricio