本文永久链接: https://www.xtplayer.cn/kubernetes/mountvolume-waitforattach-failed-for-volume-with-structure-needs-cleaning/

问题

MountVolume.WaitForAttach failed for volume with “structure needs cleaning”

2:02:45 PM Warning Failed Mount
MountVolume.WaitForAttach failed for volume "pvc-62c6563e-8cac-11e9-bba9-005056b0bf31" : Heuristic determination of mount point failed:stat /var/lib/origin/openshift.local.volumes/plugins/kubernetes.io/iscsi/iface-default/XX.XX.XX.XX:3260-iqn.2016-12.org.gluster-block:3eeb31cf-3289-4052-a690-5831f6aac34a-lun-0: Structure needs cleaning

分析

Find the block volume:

From targetcli ls:

|   o- blockvol_3bf564d2e026d332818b95a8e6c534b2  [vol_233afdbb99425b720167aa3e39bacad2@XX.XX.XX.XX/block-store/3eeb31cf-3289-4052-a690-5831f6aac34a (98.0GiB) activated]

Mount the block host volume:

# mount -t glusterfs localhost:vol_233afdbb99425b720167aa3e39bacad2 /mnt

Then

# cd /mnt # cd block-store # ls 3eeb31cf-3289-4052-a690-5831f6aac34a

Run xfs_repair on 3eeb31cf-3289-4052-a690-5831f6aac34a, using the “-L’ option if necessary

# xfs_repair -L 3eeb31cf-3289-4052-a690-5831f6aac34a