Comments (6)
I'm inclined to not snapshot unmounted datasets. I don't want to cause surprise data loss though. What is your use case for having a dataset not mounted?
from zfstools.
I can't even remember what was going on when it happened :) I think it had something to do with when I moved my system over to a boot environment based layout with beadm
and I had old filesystems that I didn't use anymore that I kept as backups and forgot about.
At any rate, I think you're right, not creating snapshots for unmounted volumes seems like the way to go.
from zfstools.
Yeah just yesterday I realized I had this case with BE as well but I don't see snapshots being created on them. I do think it makes sense to just skip unmounted though.
from zfstools.
Regarding skipping unmounted file systems, I've been intending to use "zfs send" piped into "zfs recv" as one of my backup methods, but I've noticed recently that trying to do a "zfs send" from a snapshot on a pool that contains unmounted file systems to another pool can cause issues with mount points.
My system is still on 9.3, but I set up the zroot in a similar way to how 10.1 does it. Basically it looks like FreeBSD 10.1 sets up it's zroot such that zroot/usr and zroot/var are set "canmount=off"; they seem to exist solely to give the child filesystems a mount point to inherit, among other properties. Therefore, a snapshot of zroot created with zfs-auto-snapshot won't contain a snapshot for zroot/usr and zroot/var, with the result that "zfs recv -d" ends up creating new "usr" and "var" datasets on the destination pool that inherit their mount point from the destination pool. All subsequent child file systems under /usr and /var end up with the wrong mount point.
This problem would likely also exist for other data pools that are used for other ports that don't mount some of their ZFS file systems (poudriere, for example.)
from zfstools.
This was supposed to be addressed in 3628f79 but must not have worked since these reports came in long after the change.
from zfstools.
I think what may have happened here is that a recursive snapshot affected an unmounted dataset. The change in 3628f79 needs to consider unmounted children and not used recursive snapshotting in that case.
from zfstools.
Related Issues (20)
- zfs-auto-snapshot does not destroy old snapshots if -P is used HOT 3
- Customize number of snapshots per filesystem HOT 1
- tarsnap integration
- Readme links are dated
- Support multiple snapshots at once
- Support written property for avoiding needless snapshots HOT 1
- Support multiple snapshot destroy HOT 1
- zvols no longer snapshotted? HOT 2
- Destroying zero-sized snapshots is unexpected and undocumented HOT 6
- Feature Request - Filter zero sized snapshots by written property. HOT 5
- Feature Request: Snapshot names compatible with Samba Windows Shadow Copies
- Daylight savings duplicate snapshots HOT 7
- Feature request: alternative snapshot prefix HOT 10
- Auto Bookmark Creation option
- zfs-auto-snapshot not run.Shared object "libdl.so.1" not found HOT 1
- Changes for PostgreSQL in jail.
- Misclassification of parent dataset as 'recursive'
- Feature: Postgres 15 backup support HOT 1
- Skipping unmounted datasets is confusing and not documented.
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 zfstools.