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

User dataset in a parent dataset #222

Open
jarrodsfarrell opened this issue Feb 20, 2022 · 0 comments
Open

User dataset in a parent dataset #222

jarrodsfarrell opened this issue Feb 20, 2022 · 0 comments

Comments

@jarrodsfarrell
Copy link

jarrodsfarrell commented Feb 20, 2022

I'm planing to have a few users with a shared quota so I created a dataset to hold them. Name's aren't actual, mind.
storage/USERDATA/group-of-friends
Create my user with adduser and get a dataset
storage/USERDATA/friend_xxx
Move them

# zfs rename storage/USERDATA/friend_xxx storage/USERDATA/group-of-friends/friend_xxx

But I can't create a user snapshot for that user

# zsysctl state save -u friend test-state
ERROR couldn't save state for user "friend": user "friend" doesn't exist 

zsysd seems to recognize the group and user dataset as unmanaged (Under UnmanagedDatasets in zsysctl service dump) so correct it by setting the correct bootfs-datasets for the group-of-friends dataset
zfs set com.ubuntu.zsys:bootfs-datasets=os/ROOT/this-machine storage/USERDATA/group-of-friends
But group-of-friends is now considered a "User" in zsysctl service dump, however it does list the friend_xxx dataset below it. Okay I suppose, lets try creating a snapshot.

# zsysctl state save -u friend test-snapshot
ERROR couldn't save state for user "friend": user "friend" doesn't exist

The parent dataset?

# zsysctl state save -u group-of-friends test-snapshot
ERROR Permission denied: Couldn't retrieve user for "group-of-friends": user: unknown user group-of-friends 

Oh.
Is there any way to make a parent dataset work in zsys or is it just not supported?

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

1 participant