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

Add a command-line tool and module for pool inspection #3728

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

mulkieran
Copy link
Member

No description provided.

@mulkieran mulkieran self-assigned this Dec 5, 2024
Copy link

Congratulations! One of the builds has completed. 🍾

You can install the built RPMs by following these steps:

  • sudo yum install -y dnf-plugins-core on RHEL 8
  • sudo dnf install -y dnf-plugins-core on Fedora
  • dnf copr enable packit/stratis-storage-stratisd-3728
  • And now you can install the packages.

Please note that the RPMs should be used only in a testing environment.

@mulkieran mulkieran force-pushed the metadata-check branch 4 times, most recently from 8e612c4 to fc3208c Compare December 9, 2024 20:37
At present it is able to print a textual representation of the storage
stack, based on the pool-level metadata, and also to run some simple
validity checks on that metadata.

Signed-off-by: mulhern <[email protected]>
@mulkieran
Copy link
Member Author

Output for one particular pool-level metadata from the statis-printmetadata command:

Allocations from each data device:
Data device: 2105edd3-79d5-404b-9c75-db2cac89cc6f
0: Use: stratis_metadata                0 +         8192 =         8192 sectors
1: Use: allocated                    8192 +     16242688 =     16250880 sectors
2: Use: integrity_metadata       16252920 +       524296 =     16777216 sectors


Allocations from each cache device:

Allocations for crypt metadata:
0: Use: metadata                        0 +        32768 =        32768 sectors

Allocations from cap device:
0: Use: allocated                   32768 +        12288 =        45056 sectors
1: Use: allocated                   45056 +        12288 =        57344 sectors
2: Use: allocated                   57344 +     15136768 =     15194112 sectors
3: Use: allocated                15194112 +      1048576 =     16242688 sectors


Allocations from flex device:
0: Use: thin_meta_dev               32768 +        12288 =        45056 sectors
1: Use: thin_meta_dev_spare         45056 +        12288 =        57344 sectors
2: Use: thin_data_dev               57344 +     15136768 =     15194112 sectors
3: Use: meta_dev                 15194112 +      1048576 =     16242688 sectors

@mulkieran mulkieran marked this pull request as ready for review December 10, 2024 00:14
@mulkieran mulkieran changed the title Metadata check Add a command-line tool and module for pool inspection Dec 10, 2024
@mulkieran mulkieran removed the request for review from bgurney-rh December 11, 2024 14:51
@mulkieran mulkieran merged commit 59e00f5 into stratis-storage:master Dec 11, 2024
46 checks passed
@mulkieran mulkieran deleted the metadata-check branch December 11, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done(2)
Development

Successfully merging this pull request may close these issues.

3 participants