-
Notifications
You must be signed in to change notification settings - Fork 0
+309
−0
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this is a workaround for a stupid perl bug... *HUST*
e.g. acedia C4014 defaults,inode64 @confidential(sync,rw,no_root_squash,no_subtree_check,insecure_locks)
when /amd/hostname/0 is already a destination from another partition skipp adding !data0. this happened when booting from mxonastick.
Changes should help reading the code.
mxmount: Add software raid mounts
to allow detectable /dev/mdx's to be mounted.
mxmount: add mdadm --assemble
This assembles but does not start degraded arrays.
mxmount: add --no-degraded to mdadm --assemble
Clean up mxmount
Run mxmount after mxraid assembly phase.
assembly is now done via mxtools/mxraid, before mxmount is called.
Rationale: SW-RAIDs are assembled by serials, Serials are kept in a database, thus they need a uniqe label. Since this applies also for level-0 scratch raids, and a clash with decent SW-RAIDs (M-prefix) is unwanted, they get the D-prefix.
Introduce D label prefix for scratch raids
We want to do some changes to mxmounts: * support multiple hostlists (@amd,@confidential) * get independent of netgroups * experiment with kerberos based authentication So we need to do several changes and tests on mxmounts. With mxtools the update cycle ist (mxtools:make change, PR, merge, distmaster: install) while with a seperate mxmounts repository it is (mxmounts:make change, PR, merge, make release, bee-files: update bee script, PR, merge, distmaster: update). This is just much more work. We don't need "mxmount" release packages, because nobody but us is ever going to use it. If this is merged, mxmount-0.11-0.bee should be removed from the bee-files repository. Merge remote-tracking branch 'mxmount/master' into subtree mxmount.
Import mxmount into mxtools install.sh script and remove the imported and now ununsed mxmount/Makefile.
DEFAULT_MOUNT_FS,FULLHOST,NONE,NULL are never used. Remove unused variables. Note, that SHORTHOST is currently used by /etc/mxmounts.
When /etc/mxmounts uses the netgroup syntax to export to a list of clients (usually @amd), expand the list using hostconfig to a list of hosts from inside this mxmount, so that we no longer export to NIS netgroups. This is one step to get rid of NIS. Only hosts with the tag newexport should do it for now, so that we can see if there are problems before switching all hosts. We could expand /filesystem @group(opts) to /filesystem host1(opts) hosts2(opts) host3(opts) host4(opts)... but because our opts are about 50 characters and we have about 540 hosts on @amd, we save about 27000 characters per line by converting to /filesystem -opts host1 host2 host3... Notes: * `hostconfig --list` does not only accept single tag (=group) names, but complex boolean expressions as well. We could export to @1 (=allways true, any known host) or @testing&!desktop. It is suggested, not to use this as a feature.
The perl qx operator (`cmd`) calls a shell when cmd contains shell metacharacters. If our netgroup (accidentally) contains a shell meta character, unexpected things might happen. Replace by safer code.
We might transfer /usr/bin/perl to a /pkg package in the future as we did with python. mxmount needs to be able to run before the automounter is available. Update perl path to /usr/local/system/perl/bin/perl, which is always available.
Calling mxmount with --reexport-only will not try to mount filesystems, but just rewrite /etc/exports and call exportfs -ra. This is supposed to be done by clusterd, when the export groups in /etc/hostconfig were changed.
`clusterd --reexport` triggers all clusterd daemons to run `mxmount --reexport-only`. This should be done, when the export groups in hostconfig were updated.
Opinions? |
LGTM. systemd-service has to be enabled manually after install ? |
Yes, if mxmount.service was installed for the first time, |
Sign in
to join this conversation on GitHub.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Import mxmount
Add feature to use hostconfig groups instead of NIS netgroups