Code Monkey home page Code Monkey logo

Comments (6)

bdrewery avatar bdrewery commented on May 27, 2024

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.

caleb avatar caleb commented on May 27, 2024

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.

bdrewery avatar bdrewery commented on May 27, 2024

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.

 avatar commented on May 27, 2024

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.

bdrewery avatar bdrewery commented on May 27, 2024

This was supposed to be addressed in 3628f79 but must not have worked since these reports came in long after the change.

from zfstools.

bdrewery avatar bdrewery commented on May 27, 2024

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)

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.