Comments (5)
well, if snapshots are created by znapzend they should not be 'hold'.
in your specific setup where snaphots not created by znapzend exist, you might want to have a look at the so called 'oracleMode' feature which will exactly do what you are asking for: https://github.com/oetiker/znapzend/blob/master/doc/znapzend.pod
from znapzend.
What if one wants to temporarily avoid destruction of a particular snapshot ?
(And what if one wants to temporarily mount or clone a particular snapshot ?)
from znapzend.
@rottegift how about determining holds while scanning the snapshots and then excluding them from destruction ? would this be a worthy task for your first contribution ?
from znapzend.
Hello, I have the same issue with a zfs clone/promote on a volume : snapshot used is locked on purpose, and znapzend cannot delete it (happily !), but then snaps are accumulating on it.
For this exact matter, we can find locked snapshot by using "zfs get origin -r $zpoolname", or snaps with "zfs get clones" != ''
For snaps locked by "zfs hold", property 'userrefs' is incremented, so we need to check all snaps where property userrefs > 0.
I checked the value for a snapshot that is the origin of a clone, and userrefs = 0.
So we need to exclude snaps based on both properties : "zfs get clones,userrefs -r $zpoolName" to grab everything we need.
I will be happy to contribute on this, even if I'm not particularly fluent in Perl. Can you help me a bit and tell me where would it be nicer to add this check ?
from znapzend.
I would assume that the place where we get the list of existing snapshots would be the right place to get these attributes as well so that we are able to skip the 'special' snapshots ... lib/ZnapZend/ZFS.pm#L142
from znapzend.
Related Issues (20)
- Only snapshot HOT 3
- Is this possible A -> B -> C (encr) HOT 1
- Missing docs on `oracleMode` for `znapzendzetup` HOT 2
- Ignore parent dataset with --recursive. HOT 6
- mbuffer: "operation not supported" message and not sure how to troubleshoot HOT 3
- Make README's recursive dataset snapshot pruning warning clearer HOT 1
- Feature: Add ability of DST to store snapshots as files HOT 4
- ZFS destroy snapshot causes hung_task panic HOT 5
- CI: Problem building Docker image for "Release/Docker push" scenario: repo lacks mbuffer? HOT 1
- The `mbuffer` settings relate to the remote system only, is this right? HOT 1
- consider a znappull? HOT 1
- [MacOS Homebrew install of znapzend] the Launchctl service is not loaded properly: a fix HOT 1
- Can znapzend avoid sending individual properties (e.g. casesensitivity) to target? HOT 1
- Mysql mariadb znapzend pre/post-snap-command docs fix. HOT 1
- [not an issue] my znapzend recipes for a MacOS environment
- 0.22.0 missing `znapzend-0.22.0.tar.gz` HOT 1
- make install does not respect LIBDIR, always installs to LIBDIR/../lib/ HOT 7
- DST configuration local to snapshots HOT 1
- autoCreation broken in 0.22.0. HOT 12
- `make DESTDIR=... install` of `znapzend` also sends CPANM modules to that location when building from scratch
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from znapzend.