cozystack icon indicating copy to clipboard operation
cozystack copied to clipboard

PVC online resize is not working

Open kvaps opened this issue 1 year ago • 1 comments

Online resize doesn't work:

# resize2fs /dev/zd560
resize2fs 1.47.0 (5-Feb-2023)
Filesystem at /dev/zd560 is mounted on /var/lib/kubelet/pods/bf2cc05f-dc83-4fe2-8afc-8e970d1f7b48/volumes/kubernetes.io~csi/pvc-b27195a5-3514-4456-b66b-cb39ba5e2388/mount; on-line resizing required
old_desc_blocks = 2, new_desc_blocks = 10
resize2fs: Input/output error While checking for on-line resizing support

In dmesg, I see the following:

[ 6430.566732] EXT4-fs (zd560): resizing filesystem from 2621440 to 20971520 blocks
[ 6430.566772] EXT4-fs warning (device zd560): ext4_resize_fs:2194: error (-5) occurred during file system resize
[ 6430.566789] EXT4-fs (zd560): resized filesystem to 2621440

In strace, it fails on this system call:

ioctl(4, EXT4_IOC_RESIZE_FS, 0x7ffcdda82f50) = -1 EIO (I/O error)

The container is launched with privileged: true.

kvaps avatar Aug 21 '24 08:08 kvaps

Triaged: we should validate this, and if it persists, raise an issue in Talos upstream.

NickVolynkin avatar Apr 07 '25 09:04 NickVolynkin

fixed by https://github.com/siderolabs/talos/issues/10103, and confirmed as working in Talos v1.10.3

kvaps avatar Jul 14 '25 12:07 kvaps