卷“ ...”的MountVolume.setup失败:装载失败:退出状态32

时间:2019-09-16 12:22:32

标签: openshift mount nfs

使用openshift,并且一个Pod处于挂起状态,因为无法安装nfs服务器(nfs服务器可以使用命令行手动安装,但不能从Pod挂载)

我已经安装了nfs-common,所以这不是根本原因。我试图安装nfs-utils,但失败了,错误消息是:

E:无法找到软件包:nfs-utils。

我还尝试了libnfs12和libnfs-utils,它们与nfs-utils相同。我还使用apt-get install upgade和update解决了软件包定位问题,但是它们没有用。

我将显示用于连接nfs服务器的yaml文件

apiVersion: v1
kind: PersistentVolume
metadata:
  name: pv-test01
  lables:
    disktype: baas
spec:
  capacity:
    storage: 1Gi
  accessModes:
    - ReadWriteMany
  nfs:
    path: /baas
    server: 9.111.140.47
    readOnly: false
  persistentVolumeReclaimPolicy: Recycle

对待处理的Pod使用“ oc describe pod / mypod”后,以下是反馈:

Warning  FailedMount  14s  kubelet, localhost  MountVolume.SetUp failed for volume "pv-test01" : mount failed: exit status 32
Mounting command: systemd-run
Mounting arguments: --description=Kubernetes transient mount for /var/lib/origin/cluster-up/root/openshift.local.clusterup/openshift.local.volumes/pods/267db6f2-d875-11e9-80ba-005056bc3ce0/volumes/kubernetes.io~nfs/pv-test01 --scope -- mount -t nfs 9.111.140.47:/baas /var/lib/origin/cluster-up/root/openshift.local.clusterup/openshift.local.volumes/pods/267db6f2-d875-11e9-80ba-005056bc3ce0/volumes/kubernetes.io~nfs/pv-test01
Output: Running scope as unit run-28094.scope.
mount: wrong fs type, bad option, bad superblock on 9.111.140.47:/baas,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

那我怎么从Pod挂载到nfs服务器呢?我应该继续安装nfs-utils吗?如果是,该如何安装?

0 个答案:

没有答案