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

Forum Discussion

RedFarmer's avatar
RedFarmer
Aspirant
Feb 07, 2016
Solved

Deleting snapshots over SSH

I have a RN102 with 2x3TB WD Red drives in XRAID2. I have deleted all my snapshots but one (snapshotted share is 191GB). Still, snapshots take up lots of space:

 

space.PNG

 

It hasn't recovered "over time" so i thought about manually deleting them over SSH. Of my 5 shares 4 look like this where every folder contains lots of data (snapshotted copies of my shares):

 

ReadyNAS Snapshot location.PNG

 

Would i mess anything up by deleting them?

 

Also, is this a result of a bug? Why isn't space recovered when i delete snaps through the GUI?

 

Thanks!

  • These are snapshots that weren't upgraded when you updated from pre-6.2.x firmware to 6.2.x (or later).

    You could do

    # touch /.force_snapshots_upgrade
    # systemctl restart readynasd

    These snapshots should then be upgraded and you can then delete them from the web admin UI.

     

    Space is only recovered when you delete snapshots if the snapshots you delete contain the only copy of some data. If the current data or snapshots that you do not delete also contain the data then space will not be freed up. Also when you delete snapshots the system will need to recursively update the other snapshots. This can take a little time if you have a lot of snapshots.

    Once you have deleted all the snapshots that you want to and have got volume usage back below 80% I would suggest that you then run a balance.

13 Replies

Replies have been turned off for this discussion
  • mdgm-ntgr's avatar
    mdgm-ntgr
    NETGEAR Employee Retired

    These are snapshots that weren't upgraded when you updated from pre-6.2.x firmware to 6.2.x (or later).

    You could do

    # touch /.force_snapshots_upgrade
    # systemctl restart readynasd

    These snapshots should then be upgraded and you can then delete them from the web admin UI.

     

    Space is only recovered when you delete snapshots if the snapshots you delete contain the only copy of some data. If the current data or snapshots that you do not delete also contain the data then space will not be freed up. Also when you delete snapshots the system will need to recursively update the other snapshots. This can take a little time if you have a lot of snapshots.

    Once you have deleted all the snapshots that you want to and have got volume usage back below 80% I would suggest that you then run a balance.

    • RedFarmer's avatar
      RedFarmer
      Aspirant

      That did it! I wonder why the snapshots didn't update before?

       

      Thanks a lot! All solved! :)

       

      • mdgm-ntgr's avatar
        mdgm-ntgr
        NETGEAR Employee Retired

        In some cases the one-off snapshot upgrade may fail.

    • mgshn123's avatar
      mgshn123
      Aspirant

      I am also having this problem.  How do I ssh to my ReadyNAS so I can run touch the file and restart the daemon?

       

      (It keeps refusing my connection)

       

      • mgshn123's avatar
        mgshn123
        Aspirant

        OK, so I figured out that I need to enable ssh on the ReadyNas.

         

        Now I can connect as a regular user but then can't create the /.force... file because I'm a regular user.  When I try to log in as admin I get booted out.

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