Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Scheduled 99s default-scheduler Successfully assigned devops/nexus3-84c8b98cb-rshlv to node-02 Warning FailedMount 78s kubelet MountVolume.SetUp failed for volume "pvc-9784831a-3130-4377-9d44-7e7129473b90" : rpc error: code = Internal desc = 'fsck' found errors on device /dev/longhorn/pvc-9784831a-3130-4377-9d44-7e7129473b90 but could not correct them: fsck from util-linux 2.31.1 /dev/longhorn/pvc-9784831a-3130-4377-9d44-7e7129473b90 contains a file system with errors, check forced. /dev/longhorn/pvc-9784831a-3130-4377-9d44-7e7129473b90: Inodes that were part of a corrupted orphan linked list found.
/dev/longhorn/pvc-9784831a-3130-4377-9d44-7e7129473b90: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
describe信息提示我们执行fsck,我们到pv所在的node节点上执行fsck如下
1 2 3 4
[root@node-02 e2fsprogs-1.45.6]# fsck.ext4 -cvf /dev/longhorn/pvc-9784831a-3130-4377-9d44-7e7129473b90 e2fsck 1.42.9 (28-Dec-2013) /dev/longhorn/pvc-9784831a-3130-4377-9d44-7e7129473b90 has unsupported feature(s): metadata_csum e2fsck: Get a newer version of e2fsck!
[root@node-02 e2fsck]# fsck.ext4 -cvf /dev/longhorn/pvc-9784831a-3130-4377-9d44-7e7129473b90 e2fsck 1.45.6 (20-Mar-2020) Checking for bad blocks (read-only test): done /dev/longhorn/pvc-9784831a-3130-4377-9d44-7e7129473b90: Updating bad block inode. 第一步: 检查inode,块,和大小 Inodes that were part of a corrupted orphan linked list found. 处理<y>? 是 Inode 131102 was part of the ��立的 inode list. 已处理. Inode 131103 was part of the ��立的 inode list. 已处理. Inode 131104 was part of the ��立的 inode list. 已处理. Inode 131105 was part of the ��立的 inode list. 已处理. Inode 131106 was part of the ��立的 inode list. 已处理. Inode 131107 was part of the ��立的 inode list. 已处理. Inode 131117 was part of the ��立的 inode list. 已处理. Inode 131402 was part of the ��立的 inode list. 已处理. Inode 131412 was part of the ��立的 inode list. 已处理. Inode 131630 was part of the ��立的 inode list. 已处理. Inode 131638 was part of the ��立的 inode list. 已处理. Inode 131644 was part of the ��立的 inode list. 已处理. 第二步: 检查目录结构 第3步: 检查目录连接性 Pass 4: Checking reference counts 第5步: 检查簇概要信息 块位图差异: -(688640--690326) 处理<y>? 是 Free 块s count wrong for 簇 #21 (31069, counted=32756). 处理<y>? 是 Free 块s count wrong (1227977, counted=1229664). 处理<y>? 是 Inode位图差异: -(131101--131107) -131117 -131402 -131412 -131630 -131638 -131644 处理<y>? 是 Free inodes count wrong for 簇 #16 (7567, counted=7580). 处理<y>? 是 Free inodes count wrong (325295, counted=325308). 处理<y>? 是
2372 inodes used (0.72%, out of 327680) 182 non-contiguous files (7.7%) 1 non-contiguous directory (0.0%) # of inodes with ind/dind/tind blocks: 0/0/0 Extent depth histogram: 2361/3 81056 blocks used (6.18%, out of 1310720) 0 bad blocks 1 large file
Normal Scheduled 12m default-scheduler Successfully assigned devops/nexus3-5c9c5545d9-nmfjg to node-02 Normal SuccessfulAttachVolume 12m attachdetach-controller AttachVolume.Attach succeeded for volume "pvc-9784831a-3130-4377-9d44-7e7129473b90" Warning FailedMount 3m46s (x12 over 12m) kubelet MountVolume.SetUp failed for volume "pvc-9784831a-3130-4377-9d44-7e7129473b90" : rpc error: code = Internal desc = 'fsck' found errors on device /dev/longhorn/pvc-9784831a-3130-4377-9d44-7e7129473b90 but could not correct them: fsck from util-linux 2.31.1 /dev/longhorn/pvc-9784831a-3130-4377-9d44-7e7129473b90 contains a file system with errors, check forced. /dev/longhorn/pvc-9784831a-3130-4377-9d44-7e7129473b90: Inodes that were part of a corrupted orphan linked list found.
/dev/longhorn/pvc-9784831a-3130-4377-9d44-7e7129473b90: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. (i.e., without -a or -p options) Warning FailedMount 3m33s kubelet Unable to attach or mount volumes: unmounted volumes=[nexus-data], unattached volumes=[default-token-dv7nx nexus-data]: timed out waiting for the condition Warning FailedMount 104s kubelet MountVolume.SetUp failed for volume "pvc-9784831a-3130-4377-9d44-7e7129473b90" : rpc error: code = Internal desc = mount failed: exit status 32 Mounting command: mount Mounting arguments: -t ext4 -o defaults /dev/longhorn/pvc-9784831a-3130-4377-9d44-7e7129473b90 /var/lib/kubelet/pods/8268934a-f1d9-4c14-ad4a-276d6986cee8/volumes/kubernetes.io~csi/pvc-9784831a-3130-4377-9d44-7e7129473b90/mount Output: mount: /var/lib/kubelet/pods/8268934a-f1d9-4c14-ad4a-276d6986cee8/volumes/kubernetes.io~csi/pvc-9784831a-3130-4377-9d44-7e7129473b90/mount: /dev/longhorn/pvc-9784831a-3130-4377-9d44-7e7129473b90 already mounted or mount point busy. Warning FailedMount 78s (x4 over 10m) kubelet Unable to attach or mount volumes: unmounted volumes=[nexus-data], unattached volumes=[nexus-data default-token-dv7nx]: timed out waiting for the condition