Warning FailedMount 3m33s (x38 over 78m) kubelet MountVolume.MountDevice failed while expanding volume for volume "pvc-a45507f6-f70c-42b1-87d4-###########" :
Expander.NodeExpand failed to expand the volume : rpc error: code = Internal desc = error when resizing filesystem on volume "d106b588-b94e-4548-ad89-###########-a45507f6-f70c-42b1-87d4-############" on node: error when resizing filesystem on devicePath /dev/sdf and volumePath /var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-a45507f6-f70c-42b1-87d4-############/globalmount, err: resize of device /dev/sdf failed: exit status 1. resize2fs output: resize2fs 1.45.6 (20-Mar-2020)resize2fs: Permission denied to resize filesystemFilesystem at /dev/sdf is mounted on /var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-a45507f6-f70c-42b1-87d4-############/globalmount; on-line resizing requiredold_desc_blocks = 3, new_desc_blocks = 7dumpe2fs /dev/sdf | grep -i errordumpe2fs 1.45.5 (07-Jan-2020)Filesystem state: clean with errorsErrors behavior: ContinueFS Error count: 3Fix filesystem errors for the filesystem resize to complete and for the volume mount to succeed.
From the TKC K8s Cluster, look up VolumeAttachment objects and see which TKC node the PV is attached to
# kubectl get volumeattachment | grep pvc-a45507f6-f70c-42b1-87d4-############
SSH into TKC node VM and identify the mount point on the TKC node for the PV
# mount | grep pvc-a45507f6-f70c-42b1-87d4-############/dev/sdf on /var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-a45507f6-f70c-42b1-87d4-############/globalmount type ext4 (rw,relatime)
From the same TKC node SSH terminal, execute following command to Identify device for PVC
# lsblk | grep pvc-a45507f6-f70c-42b1-87d4-7c36bdbb0c3esdf 8:128 0 50G 0 disk /var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-a45507f6-f70c-42b1-87d4-###########/globalmount
Unmount the volume
# umount /var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-a45507f6-f70c-42b1-87d4-############/globalmount
Check if file system has errors using the device identified in step-3
# dumpe2fs /dev/sdf | grep -i error
Run filesystem check on the device identified in step-3
# e2fsck -y /dev/sdf
Delete the pending Pod and wait for it be recreated in the running state.