使用strace df -h跟踪看在哪卡住,发现是pvc挂载的目录已经被删除
[root@worker01 ceph]# mount | grep pvc 10.99.43.179:/export/pvc-b57b8918-b35f-4ab9-ad1f-56443f1dcabb on /var/lib/kubelet/pods/487f0d9a-5474-434a-9c64-7ce9663212d9/volumes/kubernetes.io~nfs/pvc-b57b8918-b35f-4ab9-ad1f-56443f1dcabb type nfs4 (rw,relatime,vers=4.1,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.99.43.179,local_lock=none,addr=10.99.43.179)
把挂其卸载
[root@worker01 ceph]# umount -l 10.99.43.179:/export/pvc-b57b8918-b35f-4ab9-ad1f-56443f1dcabb [root@worker01 ceph]# mount | grep pvc [root@worker01 ceph]# df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda2 36G 9.6G 24G 29% / devtmpfs 16G 0 16G 0% /dev tmpfs 16G 0 16G 0% /dev/shm tmpfs 16G 1.7G 14G 11% /run