-
Notifications
You must be signed in to change notification settings - Fork 147
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
[BUG] Cannot properly create and destroy jails on separate UFS volumes/mountpoints #569
Comments
Maybe bastille could run the following: |
@michael-o Is this still relevant? I don't use UFS but wondering... |
It is |
Currently when destroying a jail, and mount points are detected, Bastille will show an error and not continue. Would this help or is it irrelevant? I guess because I don't use UFS I'm not exactly sure what you're trying to do. |
I think the approach could be simple: If you haven't created the mountpoint, don't try to destroy it? I need to create the root FS mountpoints upfront with UFS to have a reserved amount of space out of the gvinum volume. |
Given your first post, it seems you have created the jail directory already. Is that correct? Bastille checks for that and will error if it is already created. |
Yes, correct because Batille will never k own how to create the UFS mount. That magic only works with ZFS. |
Oh I see what you're doing. So basically, Bastille sees the existing directory (UFS mount) and fails to create the jail, so it destroys it, and that tries to destroy the mount? Or does the jail actually get created? |
It doesn't even destroy. It fails, but I need to test again what the actual behavior is. Need to test again. Will take a bit of time since I cannot touch the prod system and my test system is newer and runs on ZFS on purpose. |
[MANDATORY] Describe the bug [MANDATORY]
When operating on UFS only with separate volumes bastille does not properly detect that and tries either do delete the mountpoint or says it already exits and the jail cannot be created.
[MANDATORY] Bastille and FreeBSD version (paste
bastille -v && freebsd-version -kru
output)0.9.20220714
12.4-STABLE
12.4-STABLE
12.4-STABLE
[MANDATORY] How did you install bastille? (port/pkg/git)
port
[optional] Steps to reproduce?
Disclamer: Setup has been reproduced in a bhyve VM, but the actual setup is on a server with UFS/gvinum which I cannot and will not change for the years the server will live.
mounts:
after fiddling creating the jail I want to destroy it:
So basically I cannot create separate volumes to have control of the jails, but need to maintain a single FS for them, unfortunately.
gvinum setup:
The text was updated successfully, but these errors were encountered: