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

(FACT-3160) Fix size calculations for AIX blockdevice and partitions #2633

Conversation

joshcooper
Copy link
Contributor

  • disks.rb: TOTAL PPs = USED PPs + FREE PPs. Therefor adding FREE PPs to TOTAL PPs produces incorrect disk sizes.

  • partitions.rb: Using physical_partitions (PPs) to calculate LV sizes are not suitable if there is more than one mirror (can be two or three). LPs * nr_of_mirrors = PPs.

  • info_extractor.rb: Adjusted regexp because using property LPs also matched MAX LPs.

* disks.rb: TOTAL PPs = USED PPs + FREE PPs. Therefor adding FREE PPs to TOTAL PPs produces incorrect disk sizes.

* partitions.rb: Using physical_partitions (PPs) to calculate LV sizes are not suitable if there is more than one mirror (can be two or three). LPs * nr_of_mirrors = PPs.

* info_extractor.rb: Adjusted regexp because using property LPs also matched MAX LPs.
@joshcooper joshcooper requested a review from a team as a code owner November 4, 2023 00:22
@joshcooper joshcooper force-pushed the facter-aix-sizes-blockdevice-partitions-fix branch from ebfe9ac to 3ccc92a Compare November 4, 2023 00:25
@joshcooper joshcooper merged commit f065e53 into puppetlabs:main Nov 4, 2023
18 checks passed
@joshcooper joshcooper deleted the facter-aix-sizes-blockdevice-partitions-fix branch November 4, 2023 00:40
@joshcooper joshcooper added the bug Something isn't working label Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants