Replies: 7 comments 7 replies
-
I'm sorry to hear this, let me get a bit more information and try to reproduce this issue:
Do you mean that the problem seems to be isolated to a particular EC2 instance ID? Or do you mean that the problem is happening randomly at some frequency rate when spinning up new instances? |
Beta Was this translation helpful? Give feedback.
-
I initially misunderstood the question. I am now trying to extend the data partition of a Bottlerocket instance and will let you know what I come up with. |
Beta Was this translation helpful? Give feedback.
-
Ok, I was able to grow the data partition using the following procedure. I believe you may have had trouble because you had not used Increase the disk size in the AWS console
Increase the Partition size.We can find the commands that Bottlerocket uses to grow the data partition here https://github.com/bottlerocket-os/bottlerocket/blob/d8698d9abef537a3dde4a39eff8a894a52e2a73d/packages/release/repart-local.service#L16..L20 Note that this service runs on boot, so you could simply reboot the instance. Also note that it is critical that you run exactly these commands, otherwise on reboot the partition could shrink and then the filesystem would be out of bounds and not mountable. If you want to grow the partition without rebooting:
Alternatively, from the control container, you can run these commands through apiclient exec and sheltie non-interactively:
|
Beta Was this translation helpful? Give feedback.
-
@OscarSGit let us know if you need any additional help with this. For the record, we're leaving this issue open because we want to add something to the documentation about this. |
Beta Was this translation helpful? Give feedback.
-
@webern thank you for the suggestion, let me try it out and will update once I have feedback. |
Beta Was this translation helpful? Give feedback.
-
Hi. I'm following this doc to create an EBS volume to pre-cache some large docker containers am I understanding correctly that this approach would simply fail if the containers that I'm pulling exceed 20GB? I don't want to believe that this is the case because it defies the purpose of that article :) If yes, does one need to do the steps explained in this issue to really increase the size of that data volume? I'm using the cloudformation script provided by the above article. I'm seeing that the data volume is really 20gb in EC2 console P.S: Okay apparently it is possible to increase the EBS size in this case using a LaunchTemplate. Thanks |
Beta Was this translation helpful? Give feedback.
-
This discussion is about extending the data volume after the node has been running for some time. If you can launch the node with a large enough volume in the first place, then that makes things much easier as the initial resize will happen automatically. For example, that doc shows an eksctl snippet with an |
Beta Was this translation helpful? Give feedback.
-
Platform I'm building on:
We are running EKS with Kubernetes version 1.21.6 and platform version eks.4.
Problem statement
The issue is disk pressure warnings occur intermittently on a particular node in the cluster. We extended the volumes attached to that node and wish to extend the partition sizes. Running df -f returns the attached output df-output.xlsx.
What I expected to happen:
When I run lsblk -f I should get the filesystem type and the breakdown of the partitions. Thus we are not able to see the filesystem type. However, running xfs_growfs -d returns
/dev/nvme0n1 is not a mounted XFS filesystem
and resize2fs returnsopen: No such file or directory while opening directory /dev/nvme0n1
. I have tried using the following:All to no avail.
What actually happened:
lsblk -f returns blank filesystem column as shown below:
lsblk returns:
How to reproduce the problem:
Log in to an EC2 instance which is a cluster node running Bottlerocket and switch to admin bash. Increase the partition size of any mounted volume.
Beta Was this translation helpful? Give feedback.
All reactions