Need assitance figuring out the actual storage remaining on my NAS ?

  • Hello all,


    I have a OMV6 with 4x 4TB HDD (16TB) on RAID 10 giving me 8 TB total capacity to store files. After syncronizing all my data on to this server it shows 1.7 TB remaining storage on my OMV dashboard meaning there's 6.3TB worth of data. Recently I added SMB share for quick access from my windows laptop and just out of curiosity I check the properties (right click -> properties) of "all" folders on my NAS from my windows PC and for some reason its adding up to 855.67 GB !! I am certain I've shared every single folder on my NAS via SMB so nothing's missing in this calculation.


    I SSH into my NAS and ran df -h which shows 75% capacity used validating OMV's calculation so what am I missing here ? Is there another way to calculate total size of the shared folders ? Or could it be that there's some hidden recycle bin that I need to clean up manually ?


    PS: each user on my nas has his own "home" directory and we often delete folder directly from NAS via SMB. Unlike Windows, I don't see them going to any recycle bin. Could this be a problem ?



    Edit 1:


    Below is a snapshot of the total storage on my NAS. Can anyone confirm:

    1. Docker behaviour of reserving ~200 GB space for "overlay" 4 times normal?

    2. Is there a way to check size of each shared folder on my RAID pool ?


  • 2. Is there a way to check size of each shared folder on my RAID pool ?

    du -ch --max-depth=0 /directory


    returns the size of /directory. Changing the max-depth you can choose how deep to report the size of directories in /directory as well.


    Or could it be that there's some hidden recycle bin that I need to clean up manually ?

    If you have enabled the recycle bin for SMB, then there is a folder .recycle in every shared folder. You CANNOT delete this from windows or SMB wil recycle the recycle directory, sad I know.

    You can do this in command line.


    For your first question about docker I have not the knowledge for.

    OMV 7

    Plugins - omvExtras | LVM2 | Compose plugin | SFTP | ...

    System - x86 intel - 2*4TB WD Red plus - 500GB WD Blue SSD

    Docker - Nextcloud | wg-easy | swag | vaultwarden | syncthing | gitea

  • Thanks for sharing the command. I went through each user folder and found something interesting (basically what you alluded to) :


    Size of "User" root folder = 1.5 TB

    Total size of individual user folders = 102 GB


    ls -a showed me a hidden .recycle folder with 1.4TB worth of data!


    While i can empty it from command line, is there a setting on OMV dashboard to deal with this ?

  • is there a setting on OMV dashboard to deal with this ?

    Yes you can set an expatriation time for files in the recycle bin. I personally do not use that and have an extra option to change the atime (access time) so that i can use a script to delete files older than X days.

    But the setting will work as well probably. I just like to have a lot of control.


    ls -a

    I really like "ls -al"

    OMV 7

    Plugins - omvExtras | LVM2 | Compose plugin | SFTP | ...

    System - x86 intel - 2*4TB WD Red plus - 500GB WD Blue SSD

    Docker - Nextcloud | wg-easy | swag | vaultwarden | syncthing | gitea

  • I like ncdu for looking at usage and folder sizes. It is written using ncurses, so you can actually navigate into folders to get a good overview of what is chewing up space.


    apt-get install ncdu

    Asrock B450M, AMD 5600G, 64GB RAM, 6 x 4TB RAID 5 array, 2 x 10TB RAID 1 array, 100GB SSD for OS, 1TB SSD for docker and VMs, 1TB external SSD for fsarchiver OS and docker data daily backups

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!