-
Notifications
You must be signed in to change notification settings - Fork 139
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
Samba exports incompletely restored from configuration backup (missing share-level custom config) #2905
Comments
@Hooverdan96 I've now added this to our current milestone, but we may have to prioritise the SMB custom options. We can then address the NFS restore under another issue. Not looked into this just yet but of course, as you suggest, it may be that one fix works for both and we can do the custom options fail to restore whole-sale. |
A brief note here on the Samba custom options part: |
@FroggyFlox does this also apply to the |
The part related to the NFS restore might be a bug; I haven't looked at it yet and I would need to refresh myself on it. Maybe we should split the NFS issue into a separate one as it is unrelated to the Samba restore process. |
Will do. |
I have created issue #2912 to break out the nfs piece. I will adjust the title of this issue and remove the NFS reference. |
Re @FroggyFlox 's #2905 (comment)
I'll remove this, at least for now, from the current 5.1.X-X Stable release Milestone, and replace it with the apparently far simpler NFS issue @Hooverdan96 has just spun-out from this one. |
If this is not addressed for the next stable release, it might be worthwhile to mention that piece missing, maybe during the announcement of the stable release (when it happens)? Since the intent with the next stable release is to also entice people to move from both from existing 3.x on CentOS or 4.6 to the new and shiny 5.x stable, some might opt to reinstall the latest version vs. running an upgrade, for which the config backup is then a key component? Or am I overthinking that? |
Yeah, I think a note should be definitely there. |
Regarding the NFS rw-flag: |
@Hooverdan96 & @simon-77 Our concern here is that it can be deceptively complex to restore from our DB dump type save. So as @FroggyFlox has highlighted, we need to keep code changes to a minimum: and likely the majority of folks config is now restored successfully. Amd we are not stopping development here. We are only transitioning to a Stable release. And I think we are nearly ready for that. But given SMB's prominance over NFS, I am uncertain of having prioritised that. But SMB does restore (bar the custom settings): and with only a cursory look I'm surmising that the NFS incomplete restore is more a bug rather than a missing reverse engineering of our DB dump to fit-in with current system state. @simon-77 A complexity we have in restore is that we have to account for DB having id as canonical: with intra-relations based on this. I.e. the first export is id1. But on a restore that is inconsistent if folks have already created an export. So we have to reverse match stuff sometimes. Anyway all in the code and it may be simple enough. And we have made gradual improvements as we have developed in facilitating more & more restore resolution. But we must tread carefully on such a critical system. Essentially the docs and their clarity are our allies here. We can only add so-much Web-UI before it becomes the docs. Contextual links to docs for explanations/limitations is an ongoing effort: most notably in the services section: which in turn required a doc revamp to ensure we at least had doc entries to accommodate those links. Thanks to @FroggyFlox for that more recent effort. |
As mentioned in #2847, samba shares seem to not be consistently restored. This issue is a continuance of that observation. Thanks to user
simon-77
on the community forum who observed that their samba exports were restored, however without share-level custom configuration (moving from 4.6.1-0 and restoring onto a 5.0.14-0 environment:)https://forum.rockstor.com/t/missing-repository-rockstor-stable-on-15-6/9643/16 and more specifically
https://forum.rockstor.com/t/missing-repository-rockstor-stable-on-15-6/9643/21
Additionally, NFS exports were restored as read-only, despite the read-write setting.
Here are the examples extracted from the configuration backup json file (from Rockstor version 4.6.1)
for Samba:
and the corresponding WebUI view:
for NFS:
so, in both cases, it seems the information is exported, but not considered during the import.
The text was updated successfully, but these errors were encountered: