DELL 存储服务器的,CentOS 7版本挂载NFS出现的几个异常。
1、由于DELL 存储服务器,创建的目录是大写文件夹,在系统版本CentOS 7.5挂载正常,无论是挂载大写还是小写都是正常挂载,而在系统版本CentOS 7.9挂载出现以下错误
- 本地操作错误
1 | [root@k8s-node7]# mount -t nfs dfs01.xxx.xxx:/bms /test |
k8s 容器错误
1
2
3
4
5
6
7
8
9
10
11
12Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 7m36s (x7 over 9m58s) default-scheduler persistentvolumeclaim "nfs-pvc" not found
Normal Scheduled 7m25s default-scheduler Successfully assigned bms-sit/mysql-f645dc69-dmzjb to k8s-node1
Warning FailedMount 7m24s kubelet MountVolume.SetUp failed for volume "nfs-pv" : mount failed: exit status 32
Mounting command: systemd-run
Mounting arguments: --description=Kubernetes transient mount for /var/lib/kubelet/pods/daf12d8e-acb8-4fab-ba33-4e474fcfc250/volumes/kubernetes.io~nfs/nfs-pv --scope -- mount -t nfs 10.0.15.1:/bms /var/lib/kubelet/pods/daf12d8e-acb8-4fab-ba33-4e474fcfc250/volumes/kubernetes.io~nfs/nfs-pv
Output: Running scope as unit run-45504.scope.
mount.nfs: mounting 10.0.15.1:/bms failed, reason given by server: No such file or directory
Warning FailedMount 7m24s kubelet MountVolume.SetUp failed for volume "nfs-pv" : mount failed: exit status 32
Mounting command: systemd-run解决方案
1
统一采用小写字母
2、未安装nfs-utils导致以下错误
1 | Events: |
- 解决方案
1
2
3yum install nfs-utils -y
systemctl enable rpcbind
systemctl restart rpcbind
3、权限问题,由于DELL 存储服务器设置文件权限设置不当导致
- 解决
1 | 1、DELL 存储服务器设置允许根目录权限 |