4 ms·
Oh thank god there's a way to disable autosnapshot! It's been filling my drive with useless snapshots ever since I installed Ubuntu with zfs support, drowning o
by kstenerud 6y ago
Oh thank god there's a way to disable autosnapshot! It's been filling my drive with useless snapshots ever since I installed Ubuntu with zfs support, drowning out my real snapshots. Who needs a snapshot after calling "apt install htop" anyway? The ZFS snapshot and grub update processes increase the install time 3-fold, and run the risk of seriously hooping the system if the power goes out unexpectedly.
Has anyone had any real problems with apt install or apt remove busting their systems? Seems more like a solution in search of a problem.
- viraptor 6y ago> run the risk of seriously hooping the system if the power goes out unexpectedly. You have a snapshot to go back to in that case. It saves you exactly from power-loss kind of situation.
- kstenerud 6y agoExcept that a power outage during the grub update leaves your machine unbootable. It's why I try to do as few grub updates as possible.
- boomboomsubban 6y agoIt should throw you into a recovery terminal, where you can manually point to the things necessary to boot. Grub updates don't really do much.
- jlgaddis 6y agoAnd, if that happens, this will still make it easier (and quicker) to get the machine vack up and running.
- curt15 6y agoFedora patches grub to read kernel information from drop-in config files (https://fedoraproject.org/wiki/Changes/BootLoaderSpecByDefault https://fedoraproject.org/wiki/Changes/BootLoaderSpecByDefau...). This lets them update the list of kernels without modifying grub.cfg.
- deleted 6y ago[deleted]
- necheffa 6y agoNot a big deal if you have a live USB/disk laying around.
- amaccuish 6y agoI mean, that would happen without the snapshots?
- jka 6y agoProblems due to apt operations should be pretty rare, but even uncommon events can be worth de-risking. The value in providing this kind of feature is: * For expert users who have hosed a system -- particularly if it happens to be a production host -- there's an immediate sense of relief and ability to rollback safely, confidently and quickly. * For less-experienced users who run into problems, there is a convenient and straightforward way for their technical support to explain to them how they can restore their system to a previous state. Since hosts and their installed packages have varying hardware and configuration states and update/maintenance schedules, incompatibilities and breaking changes are likely to occur occasionally and that's where snapshots can help.
- AnIdiotOnTheNet 6y ago> Has anyone had any real problems with apt install or apt remove busting their systems? Yes, but even so it is far rarer than being frustrated waiting for f'ing grub update.
- derefr 6y ago> Who needs a snapshot after calling “apt install htop” anyway? I’d think the more useful feature would be taking a snapshot at the beginning of the apt run; and then tossing it away if apt manages to complete successfully. That way, apt returning a nonzero exit status could be caught by a wrapper script, that would then transactionally revert the changes. I believe NTFS still does this for Windows updates, even if “transactional filesystem” features are no longer “available” (i.e. exposed to userland.) Of course, unlike NTFS’s filesystem transactions, ZFS snapshots aren’t MVCC — you can’t have multiple parallel ones going on at once that get merged on success. So that apt-wrapper-script reverting, might throw away something else you’ve done to your rootfs (and hopefully only your rootfs; such a technique would effectively require moving all user-mutable data to other mounted volumes.)
- chromatin 6y agoIllumos/Solaris does this and calls the snapshot a “boot environment”. # man beadm Incredibly frustrating if you don’t know about it, and incredibly helpful if you do.
- danudey 6y agoApt completing successfully is not the same thing as the installation completing successfully. For example, Apt could successfully update a bunch of libraries, versions, etc. which now breaks your application, but because apt's actual tasks succeeded the snapshot gets removed and now you can't roll back. > and hopefully only your rootfs; such a technique would effectively require moving all user-mutable data to other mounted volumes I believe that zfs installation creates a separate dataset for /home, meaning that it won't be rolled back along with everything else. The same should be true for things like /var/lib/, but I haven't done such an install in a while, since the first 20.04 build with zfs enabled.
- craftkiller 6y ago> The ZFS snapshot and grub update processes increase the install time 3-fold Creating ZFS snapshots is almost instantaneous due to the CoW nature of the filesystem. Is it deleting old snapshots during that process? If so, I'd suggest checking to make sure you have the async_destroy feature enabled for your pool.