Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zsysctl rollback functionality? #228

Closed
fubar-1 opened this issue May 6, 2022 · 4 comments
Closed

zsysctl rollback functionality? #228

fubar-1 opened this issue May 6, 2022 · 4 comments

Comments

@fubar-1
Copy link

fubar-1 commented May 6, 2022

This is more a question and perhaps a request for added functionality.

In the use-case of a failed system update (etc), zsys looks great for booting the system to a previous zfs snapshot to get running again. However, when the computer is subsequently rebooted, it again tries to boot to the failed update.

How is the user to make permanent rolling back the system to a previous state? Am I missing something? I don't see any provision for a zsysctl rollback [state] function. Ideally zsysctl rollback could detect the current booted system state and provide a simplified path to recovering the system to this state.

In the absence of a rollback function, could someone please provide official documentation for how to properly accomplish this? It seems to be the missing piece of the puzzle that would complete zsys and make it an outstanding tool for managing ubuntu zfs based systems.

(Or has @canonical really dropping zfs support? Zfs certainly seems to be be neglected recently which is sad to see after so much great work was put into supporting it.)

@didrocks
Copy link
Member

didrocks commented May 9, 2022

zsys is supposed to commit on any successful rollback. A successful rollback is defined by reaching default.target (see the unit on https://github.com/ubuntu/zsys/blob/master/systemd/zsys-commit.service). It could be something that fails on your systemd, preventing this unit to run?

@fubar-1
Copy link
Author

fubar-1 commented May 10, 2022

Thank you for responding. I will check into it. And I think I need to read the material (I just now discovered) that you provided here https://discourse.ubuntu.com/t/zfs-focus-on-ubuntu-20-04-lts-blog-posts/16355 more thoroughly before commenting further. I'll close this bug soon if I have no further issues or questions.

And thank you for providing such an excellent piece of software, @didrocks, regardless of this specific issue frankly I'm impressed with it's design and a little disappointed it (and zfs) hasn't received greater recognition.

The reason I mentioned loss of zfs support is I noticed zsys wasn't included in the 22.04 distro. I had to install it manually. Hopefully this was a simple omission and not intentional.

@fubar-1
Copy link
Author

fubar-1 commented May 10, 2022

I'm closing this bug and will ask questions on the blog thread so others might better learn and/or help.

@fubar-1 fubar-1 closed this as completed May 10, 2022
@didrocks
Copy link
Member

Thanks for the feedback! I just want to make you aware of bug #218 which did hit some users. Unfortunately, we don’t have official time for project maintainance (bug #213)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants