-
Notifications
You must be signed in to change notification settings - Fork 74
feat(storage): initial support for MD RAIDs #2286
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
Merged
joseivanlopez
merged 34 commits into
agama-project:master
from
joseivanlopez:raid-config
May 7, 2025
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
daf145f
schema: add MD RAIDs to storage schema
joseivanlopez d7b4eaf
refactor(storage): reorganize tests
joseivanlopez 81a714d
storage: generate md raid config from json
joseivanlopez bad634b
refactor(storage): reorganize tests
joseivanlopez b3955dd
storage: solve generate sections from md raids
joseivanlopez da0ed1d
storage: solve md raids
joseivanlopez ea70ef0
Add alias to Configs::MdRaid
ancorgs 9478922
storage: extend from json conversion tests
joseivanlopez a0e67ba
storage: solve boot device from md raid
joseivanlopez 92685e5
refactor(storage): improve config checkers
joseivanlopez b25b643
refactor(storage): reorganize config checker tests
joseivanlopez f58a3ce
storage: add md config checker
joseivanlopez 9f142e2
storage: add validation for overused device
joseivanlopez 93a3676
storage: add validations for used devices
joseivanlopez 693ab27
Add search capabilities for RAIDs
ancorgs ac25a8f
Do not require a level for reused RAIDs
ancorgs ef0e93b
Add MDs to AgamaProposal
ancorgs a2848e5
Remove unused parameter
ancorgs fe2c34e
Merge pull request #8 from ancorgs/raid-proposal
joseivanlopez 53bcdb2
schema: add search to md raids
joseivanlopez 64a1695
storage: add search checker to md raid
joseivanlopez 1451485
storage: add validation for incompatible physical volume targets
joseivanlopez 43e2909
schema: remove _6 values of md raid parity
joseivanlopez f3d2e60
storage: fix typos
joseivanlopez 2b6d682
storage: document method
joseivanlopez 2901196
refactor(storage): reorganize tests
joseivanlopez 01055ca
storage: convert md raids to json
joseivanlopez efdc50f
storage: make md level optional
joseivanlopez 82c1d13
storage: rename methods
joseivanlopez 46a04fb
storage: improve schema
joseivanlopez 43b5c0a
Merge branch 'master' into raid-config
joseivanlopez b1a557e
Merge branch 'master' into raid-config
joseivanlopez d727a9c
rust: changelog
joseivanlopez 81b82a6
service: changelog
joseivanlopez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| { | ||
| "storage": { | ||
| "drives": [ | ||
| { | ||
| "search": "/dev/vda", | ||
| "partitions": [ | ||
| { | ||
| "search": "*", | ||
| "delete": true | ||
| }, | ||
| { | ||
| "alias": "system-device1", | ||
| "size": "10 GiB" | ||
| }, | ||
| { | ||
| "alias": "home-device1", | ||
| "size": "10 GiB" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "search": "/dev/vdb", | ||
| "partitions": [ | ||
| { | ||
| "search": "*", | ||
| "delete": true | ||
| }, | ||
| { | ||
| "alias": "system-device2", | ||
| "size": "10 GiB" | ||
| }, | ||
| { | ||
| "alias": "home-device2", | ||
| "size": "10 GiB" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "mdRaids": [ | ||
| { | ||
| "alias": "system", | ||
| "name": "system", | ||
| "level": "raid1", | ||
| "parity": "left_symmetric", | ||
| "chunkSize": "4 KiB", | ||
| "devices": ["system-device1", "system-device2"], | ||
| "ptableType": "gpt", | ||
| "partitions": [ | ||
| { | ||
| "encryption": { | ||
| "luks1": { | ||
| "password": "notsecret" | ||
| } | ||
| }, | ||
| "filesystem": { | ||
| "type": { | ||
| "btrfs": { | ||
| "snapshots": true | ||
| } | ||
| }, | ||
| "path": "/" | ||
| } | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "alias": "home", | ||
| "name": "home", | ||
| "level": "raid0", | ||
| "devices": ["home-device1", "home-device2"], | ||
| "encryption": { | ||
| "luks1": { | ||
| "password": "notsecret" | ||
| } | ||
| }, | ||
| "filesystem": { | ||
| "type": "xfs", | ||
| "path": "/home" | ||
| } | ||
| }, | ||
| { | ||
| "search": "/dev/md1", | ||
| "name": "data", | ||
| "level": "raid1", | ||
| "filesystem": {"path": "/data" } | ||
| } | ||
| ] | ||
| } | ||
| } |
This file contains hidden or 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 file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.