NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

pwptech's avatar
pwptech
Tutor
Feb 23, 2021

ReadyNas 628x Mysterious Storage Consumption

I have an RN628x with 8x 2TB drives in RAID6. In total I have about 10.89TB of provisioned storage. Out of the main storage I have 3 main shares. I also have 1 thick provisioned LUN. I do not utilize snapshots.

 

Right now my overall storage is saying I have 855GB free out of 10.89TB and 577GB is from snapshots. I'm calculating I should be under 8TB of total storage with over 2TB free. Where is this other data, how can I find it and clean it up?

 

I have tried a disk defragmentation, disk test, balance, and scrub on the LUN. I don't have apps on the NAS or use any other network or cloud services. This is what the storage frontend is reporting to me:

Shares:
- Backup: 2.9TB consumed

- SDS: 127MB consumed

- Software: 90GB consumed

LUN:

- iSCSI thick provision: 4.5TB

 

For over a year I've been able to keep my free space around 2TB. Suddenly last weekend something occurred on the NAS where all the free space was eaten up. SSH into the console showed me disk space was 100% used. I had to resort to deleting an old retained backup after moving it to external storage just to keep operating the NAS. Currently I'm at 92% disk usage. I've scoured the command line but have not found where the mysterious data is located or what is causing my array to become full capacity.

14 Replies

Replies have been turned off for this discussion
  • StephenB's avatar
    StephenB
    Guru - Experienced User

    Can you post the output of these commands?

    # btrfs fi sh /data
    # btrfs fi df /data

    You might also find these helpful, but there is some privacy leakage, so you might not want to post them.

    # btrfs subv list /data
    # du -hd1 /data
    # btrfs qgroup show /data

    Given the overall situation, you might want to delete all the snapshots.

    • pwptech's avatar
      pwptech
      Tutor

      Thanks for the reply StephenB 

      I have deleted all snapshots but I'm still showing 577.04GB of snapshot data on the frontend GUI [depicted by yellow slice of pie chart]

      root@NAS-01:~# btrfs fi sh /data
      Label: '0a4357ec:data'  uuid: 3e5e6709-18d6-4dc0-b238-ba3e4cbaf8de
              Total devices 1 FS bytes used 10.06TiB
              devid    1 size 10.89TiB used 10.86TiB path /dev/md127
      
      root@NAS-01:~# btrfs fi df /data
      Data, single: total=10.86TiB, used=10.06TiB
      System, DUP: total=32.00MiB, used=1.50MiB
      Metadata, DUP: total=1.00GiB, used=429.44MiB
      GlobalReserve, single: total=190.06MiB, used=0.00B

      To delete all snapshots should I just delete all directories containing .snapshot as the name? When I show all snapshots under /data I only have 1 listed and it's less than 150MB.

      root@NAS-01:~# btrfs subv list -s /data
      ID 40579 gen 49790139 cgen 49790139 top level 6346 otime 2021-02-17 00:00:16 path MSDS/.snapshots/980/snapshot
      root@NAS-01:~# du -sh /data/MSDS/.snapshots
      127M /data/MSDS/.snapshots

      When showing du -sh on root it shows 7.5TB in total.

      root@NAS-01:~# du -sh /
      du: cannot access '/proc/12244/task/12244/fd/3': No such file or directory
      du: cannot access '/proc/12244/task/12244/fdinfo/3': No such file or directory
      du: cannot access '/proc/12244/fd/4': No such file or directory
      du: cannot access '/proc/12244/fdinfo/4': No such file or directory
      7.5T    /
      root@NAS-01:~# du -sh /data
      7.4T    /data
      root@NAS-01:~# du -hd1 /
      6.4M    /bin
      0       /boot
      4.0K    /dev
      11M     /etc
      4.0K    /home
      33M     /lib
      4.0K    /lib64
      0       /media
      4.6M    /opt
      du: cannot access '/proc/12337/task/12337/fd/3': No such file or directory
      du: cannot access '/proc/12337/task/12337/fdinfo/3': No such file or directory
      du: cannot access '/proc/12337/fd/4': No such file or directory
      du: cannot access '/proc/12337/fdinfo/4': No such file or directory
      0       /proc
      20K     /root
      91G     /run
      11M     /sbin
      0       /srv
      0       /sys
      0       /tmp
      272M    /usr
      316M    /var
      0       /mnt
      7.4T    /data
      2.5M    /apps
      31M     /frontview
      7.5T    /

       

      • StephenB's avatar
        StephenB
        Guru - Experienced User

        pwptech wrote:

        To delete all snapshots should I just delete all directories containing .snapshot as the name? When I show all snapshots under /data I only have 1 listed and it's less than 150MB.

        root@NAS-01:~# btrfs subv list -s /data
        ID 40579 gen 49790139 cgen 49790139 top level 6346 otime 2021-02-17 00:00:16 path MSDS/.snapshots/980/snapshot
        root@NAS-01:~# du -sh /data/MSDS/.snapshots
        127M /data/MSDS/.snapshots

        No, you won't be able to delete the snapshots with rm.  They are btrfs subvolumes - so you can delete them with btrfs subv delete <path>

         

        Try turning off volume quota (from the volume settings wheel), and then turn it back on.

         

        I'd also try another balance.

         

        rn_enthusiast might have some other suggestions.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More