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

Fix diskspace of / issue of rhel 9.* images. #623

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

KeerthanaAP
Copy link
Contributor

Fix for #620

Disk space before the fix in rhel 9.4:

Create an account or view all your systems at https://red.ht/insights-dashboard
[root@newvm ~]# df -h
Filesystem           Size  Used Avail Use% Mounted on
devtmpfs             4.0M     0  4.0M   0% /dev
tmpfs                751M     0  751M   0% /dev/shm
tmpfs                301M   32M  270M  11% /run
/dev/mapper/mpatha3   10G  2.0G  8.0G  20% /
/dev/mapper/mpatha2  960M  296M  665M  31% /boot
tmpfs                151M     0  151M   0% /run/user/0

Disk space after the fix:

[root@testvm ~]# df -h
Filesystem           Size  Used Avail Use% Mounted on
devtmpfs             4.0M     0  4.0M   0% /dev
tmpfs                751M     0  751M   0% /dev/shm
tmpfs                301M   15M  286M   5% /run
/dev/mapper/mpatha3  119G  2.8G  117G   3% /
/dev/mapper/mpatha2  960M  296M  665M  31% /boot
tmpfs                151M     0  151M   0% /run/user/0

@ppc64le-cloud-bot ppc64le-cloud-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label May 30, 2024
@@ -157,11 +157,13 @@ write_files:
set -e
for i in /dev/sd[a-z]; do
partprobe $i || true
growpart $i 2 || true
part=$(partprobe -s $i | awk '{print $NF}')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again here also we are selecting the last partition to grow which is true in most of the cases but I'm wondering if we can write some logic so that it lists the linux partitions and only grow the last one, wdys @sudeeshjohn ?

Copy link
Member

@mkumatag mkumatag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is good enough to fix the issue immediate, @KeerthanaAP lets open a different issue to explore the long term solution.

/approve
/lgtm

@ppc64le-cloud-bot ppc64le-cloud-bot added the lgtm Indicates that a PR is ready to be merged. label Jun 7, 2024
@ppc64le-cloud-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: KeerthanaAP, mkumatag

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ppc64le-cloud-bot ppc64le-cloud-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 7, 2024
@ppc64le-cloud-bot ppc64le-cloud-bot merged commit 68fc5fe into ppc64le-cloud:main Jun 7, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants