无法挂载卷/dev/rbd1 [xfs] [英] failed to mount volume /dev/rbd1 [xfs]

查看:506
本文介绍了无法挂载卷/dev/rbd1 [xfs]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了1个master和3个worker的kubernetes,并在其上部署了rook,rook-tools中的ceph status显示 ok . 在 https://github.com/rook/rook.git 中有wordpress模板 而当我创建它时,pod没有创建,并且

I install kubernetes with 1 master and 3 worker and deploy rook on it and the ceph status in rook-tools shows ok. there is wordpress template in https://github.com/rook/rook.git and when i create it the pod does not created and

#kubectl describe pods wordpress-mysql-b78774f44-m548z -n default
  Type     Reason       Age                  From              Message
  ----     ------       ----                 ----              -------
  Warning  FailedMount  15m (x51 over 128m)  kubelet, ubuntu2  Unable to mount volumes for pod "test-pod-rbd_rook-ceph(15abe007-53a4-11e9-abd9-7c8bca00f216)": timeout expired waiting for volumes to attach or mount for pod "rook-ceph"/"test-pod-rbd". list of unmounted volumes=[data]. list of unattached volumes=[data default-token-8p9br]
  Warning  FailedMount  18s (x72 over 130m)  kubelet, ubuntu2  MountVolume.SetUp failed for volume "pvc-fd3fdbc4-53b7-11e9-abd9-7c8bca00f216" : mount command failed, status: Failure, reason: failed to mount volume /dev/rbd1 [xfs] to /var/lib/kubelet/plugins/ceph.rook.io/rook-ceph-system/mounts/pvc-fd3fdbc4-53b7-11e9-abd9-7c8bca00f216, error executable file not found in $PATH
#kubectl get events
18h         Warning   FailedMount               pod/wordpress-mysql-b78774f44-m548z                         MountVolume.SetUp failed for volume "pvc-e1e758a8-53b6-11e9-abd9-7c8bca00f216" : mount command failed, status: Failure, reason: failed to mount volume /dev/rbd0 [xfs] to /var/lib/kubelet/plugins/ceph.rook.io/rook-ceph-system/mounts/pvc-e1e758a8-53b6-11e9-abd9-7c8bca00f216, error executable file not found in $PATH
18h         Warning   FailedMount               pod/wordpress-mysql-b78774f44-m548z                         Unable to mount volumes for pod "wordpress-mysql-b78774f44-m548z_default(e1f6de90-53b6-11e9-abd9-7c8bca00f216)": timeout expired waiting for volumes to attach or mount for pod "default"/"wordpress-mysql-b78774f44-m548z". list of unmounted volumes=[mysql-persistent-storage]. list of unattached volumes=[mysql-persistent-storage default-token-bktfl]
35m         Warning   FailedMount               pod/wordpress-mysql-b78774f44-m548z                         MountVolume.SetUp failed for volume "pvc-e1e758a8-53b6-11e9-abd9-7c8bca00f216" : mount command failed, status: Failure, reason: Rook: Error getting RPC client: error connecting to socket /usr/libexec/kubernetes/kubelet-plugins/volume/exec/ceph.rook.io~rook-ceph-system/.rook.sock: dial unix /usr/libexec/kubernetes/kubelet-plugins/volume/exec/ceph.rook.io~rook-ceph-system/.rook.sock: connect: connection refused
6m32s       Warning   FailedMount               pod/wordpress-mysql-b78774f44-m548z                         Unable to mount volumes for pod "wordpress-mysql-b78774f44-m548z_default(e1f6de90-53b6-11e9-abd9-7c8bca00f216)": timeout expired waiting for volumes to attach or mount for pod "default"/"wordpress-mysql-b78774f44-m548z". list of unmounted volumes=[mysql-persistent-storage]. list of unattached volumes=[mysql-persistent-storage default-token-bktfl]
4m17s       Warning   FailedMount               pod/wordpress-mysql-b78774f44-m548z                         MountVolume.SetUp failed for volume "pvc-e1e758a8-53b6-11e9-abd9-7c8bca00f216" : mount command failed, status: Failure, reason: Rook: Mount volume failed: failed to attach volume replicapool/pvc-e1e758a8-53b6-11e9-abd9-7c8bca00f216: failed to map image replicapool/pvc-e1e758a8-53b6-11e9-abd9-7c8bca00f216 cluster rook-ceph. failed to map image replicapool/pvc-e1e758a8-53b6-11e9-abd9-7c8bca00f216: Failed to complete 'rbd': signal: interrupt. . output:

我该如何解决? 是虫子吗?

How can i solve it? Is it a bug?

推荐答案

要解决此问题,必须在StorageClass中更改fstype:xfs-> ext4

to resolve this issue, you must change fstype: xfs -> ext4 in your StorageClass

这篇关于无法挂载卷/dev/rbd1 [xfs]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆