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

Forum Discussion

SauvageSausage's avatar
Mar 05, 2022
Solved

[RNDU6000] How do I recover the space taken up by the 'ghost' snapshots?

Me noticed my NAS is going out of the free space, so I get into the admin panel. Removing all the snapshots of both folders and home folders didn't change anything, actually.

 

How do I free the space, consumed by the non-existing snapshots?

 

My NAS overview page:

 

Volume summary info:

 

List of shared resources (please notice there are no snapshots):

 

Configured maintenance:

DATA PARTITION SIZE:

root@databox:~# du -sh /data

4.1T    /data


FREE SPACE:

root@databox:~# df -H

Filesystem      Size  Used Avail Use% Mounted on
...
/dev/md127       10T  7.6T  2.5T  76% /data
...

 

 

 

 

 

 

 

 

 

 

 

 

 

  • StephenB's avatar
    StephenB
    Mar 08, 2022

    I'd try deleting some of them manually (one at a time), and confirm that there are no errors.

     

    There is a -c option, which waits for the deletion to be committed before the btrfs subvolume delete returns.  Might be worth trying that on one or two.

     

    With some work, you could create a script to extract each snapshot path from the list, and then build the btrfs command to delete it.  But as I mentioned earlier, you'd need to be careful not to accidentally end up deleting a share by mistake.

15 Replies

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

    SauvageSausage wrote:

     

    How do I free the space, consumed by the non-existing snapshots?

     


    Start by running a balance from the volume settings wheel.  That should reclaim the missing space.

     


    SauvageSausage wrote:

     

    root@databox:~# du -sh /data
    
    4.1T    /data

     

    root@databox:~# df -H
    

     


    btrfs fi du -s /data will give more accurate results than du (though it will be very slow).

     

    btrfs fi df /data completes quickly and gives more info than df


    • StephenB wrote:

      SauvageSausage wrote:

       

      How do I free the space, consumed by the non-existing snapshots?

       


      Start by running a balance from the volume settings wheel.  That should reclaim the missing space.

       

      Already done! 

       

       


      btrfs fi du -s /data will give more accurate results than du (though it will be very slow).

       

      btrfs fi df /data completes quickly and gives more info than df


      Thanks for your tip! "btrfs fi du" is in progress; 'df' is:

       

      root@databox:/# btrfs fi df /data
      Data, single: total=7.20TiB, used=6.95TiB
      System, DUP: total=32.00MiB, used=992.00KiB
      Metadata, DUP: total=6.50GiB, used=3.06GiB
      GlobalReserve, single: total=512.00MiB, used=0.00B

       

       

       

    • StephenB's avatar
      StephenB
      Guru - Experienced User

      Can you also run this:

      btrfs subvolume list -s /data

      If there are any snapshots left for some reason, this command should list them.

       

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