Git Product home page Git Product logo

Comments (9)

wankdanker avatar wankdanker commented on August 22, 2024 1

If --keep was required for this feature then I would withdraw my concerns.

from zfs-auto-snapshot.

leecallen avatar leecallen commented on August 22, 2024

This is a great idea. I would like to have this feature. How would free space be defined? Ie, space in the parent filesystem, headroom in the quota, ... ?

from zfs-auto-snapshot.

MurzNN avatar MurzNN commented on August 22, 2024

I think that easier way will be check free space for current filesystem, that becomes to be snapshoted. If this free space is shared with other filesystems, this will not the problem.

from zfs-auto-snapshot.

pskerrett avatar pskerrett commented on August 22, 2024

I would also like to see this feature added. It would be a great enhancement.

from zfs-auto-snapshot.

FransUrbo avatar FransUrbo commented on August 22, 2024

Explain more on how this would work. If --free=5GB it won't run if the pool doesn't have at least 5GB available?

from zfs-auto-snapshot.

wankdanker avatar wankdanker commented on August 22, 2024

I read the feature request as:

Given $ zfs-auto-snapshot ... --free=5GB

  • Is free space less than 5GB?
    • If yes:
      • there is not enough space
      • remove oldest snapshot
      • go to beginning to check again
    • If no:
      • there is enough space
      • do snapshot

from zfs-auto-snapshot.

FransUrbo avatar FransUrbo commented on August 22, 2024

I think that might be a little … 'dangerous'. If we're so close to running out of space, starting to automatically delete (possibly big/huge) snapshots without the admin specifically deleting stuff he/she know is of no use might end up with all snapshots for ONE dataset/zvolume being destroyed, leaving all the other…

That doesn't sound like a solution I would want being done automatically...

from zfs-auto-snapshot.

wankdanker avatar wankdanker commented on August 22, 2024

The issue that I see with this feature is that you should also have a minimum number of snapshots to keep. Because, if you have 10 snapshots of a filesystem and you require --free=100GB but each snapshot is only taking up 5MB, then you will remove all of the snapshots and still not be able to take a new snapshot. That seems like a dangerous situation to me.

from zfs-auto-snapshot.

FransUrbo avatar FransUrbo commented on August 22, 2024

That's exactly why I don't think this should be done automatically...

from zfs-auto-snapshot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.