Skip to content

Failing to extend the partition size #1946

@osibanda

Description

@osibanda

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 returns open: No such file or directory while opening directory /dev/nvme0n1. I have tried using the following:

  • /dev/xvda (Volume name in AWS console)
  • /dev/nvme0n1 (result from lsblk)
  • /dev/nvme0n1p1
  • As well as the mount directory

All to no avail.

What actually happened:
lsblk -f returns blank filesystem column as shown below:

NAME            FSTYPE LABEL UUID MOUNTPOINT
loop0                                     /.bottlerocket/rootfs/x86_64-bottlerocket-linux-gnu/sys-root/usr/share/licenses
loop1                                     /.bottlerocket/rootfs/var/lib/kernel-devel/.overlay/lower
nvme0n1
|-nvme0n1p1
|-nvme0n1p2
|-nvme0n1p3                         /.bottlerocket/rootfs/boot
|-nvme0n1p4
|-nvme0n1p5
|-nvme0n1p6
|-nvme0n1p7
|-nvme0n1p8
|-nvme0n1p9
|-nvme0n1p10
|-nvme0n1p11
`-nvme0n1p12                        /.bottlerocket/rootfs/var/lib/bottlerocket
nvme1n1
`-nvme1n1p1                         /.bottlerocket/rootfs/local
nvme2n1

lsblk returns:

NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
loop0          7:0    0  280K  1 loop /.bottlerocket/rootfs/x86_64-bottlerocket-linux-gnu/sys-root/usr/share/licenses
loop1          7:1    0 11.6M  1 loop /.bottlerocket/rootfs/var/lib/kernel-devel/.overlay/lower
nvme0n1      259:0    0  160G  0 disk
|-nvme0n1p1  259:3    0    4M  0 part
|-nvme0n1p2  259:4    0    5M  0 part
|-nvme0n1p3  259:5    0   40M  0 part /.bottlerocket/rootfs/boot
|-nvme0n1p4  259:6    0  920M  0 part
|-nvme0n1p5  259:7    0   10M  0 part
|-nvme0n1p6  259:8    0   25M  0 part
|-nvme0n1p7  259:9    0    5M  0 part
|-nvme0n1p8  259:10   0   40M  0 part
|-nvme0n1p9  259:11   0  920M  0 part
|-nvme0n1p10 259:12   0   10M  0 part
|-nvme0n1p11 259:13   0   25M  0 part
`-nvme0n1p12 259:14   0   42M  0 part /.bottlerocket/rootfs/var/lib/bottlerocket
nvme1n1      259:1    0   50G  0 disk
`-nvme1n1p1  259:2    0   20G  0 part /.bottlerocket/rootfs/local
nvme2n1      259:15   0   20G  0 disk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions