nfs load errorwrong fs type, bad option, bad superblock

Today, when building WordPress on kubernetes cluster, PV NFS storage mode is used for persistence, but pod can’t run all the time, kubectl describe pod {WordPress pod name} the error is as follows:

mount: wrong fs type, bad option, bad superblock on,
       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

My WordPress service is deployed to kubernetes cluster, the host is Tencent cloud, and NFS is deployed to alicloud. I searched the Internet and said that is not installed mount.nfs leads to the need to install on my Tencent virtual machine mount.nfs there will be no wrong FS type, bad option, bad superblock error prompts.

According to the error prompt, check the /SBIN/mount. & lt; type &> file, and it is found that there is no /SBIN/ mount.nfs file, install NFS utils .


Execute the following command on Ubuntu:

apt-get install nfs-common

On CentOS:

yum install nfs-utils -y

After installation, there are two more mount files under /SBIN/, which are mount files mount.nfs and mount.nfs4

Copy the code as follows

[root@master ~]# ll /sbin/mount*
-rwsr-xr-x 1 root root 117432 Aug  9 09:17 /sbin/mount.nfs
lrwxrwxrwx 1 root root      9 Jan  6 17:43 /sbin/mount.nfs4 -> mount.nfs
-rwxr-xr-x 1 root root  41563 Aug  9 09:16 /sbin/mountstat



Similar Posts: