aki0000 / k8s-myplayground

0 stars 0 forks source link

Not nfs running after reboot node #24

Open aki0000 opened 3 years ago

aki0000 commented 3 years ago
Events:
  Type     Reason       Age                   From               Message
  ----     ------       ----                  ----               -------
  Normal   Scheduled    4m37s                 default-scheduler  Successfully assigned monitoring/grafana-0 to ras03
  Warning  FailedMount  2m34s                 kubelet            Unable to attach or mount volumes: unmounted volumes=[grafana-storage], unattached volumes=[default-token-c99qq grafana-prometheus-configmap grafana-storage]: timed out waiting for the condition
  Warning  FailedMount  23s (x10 over 4m36s)  kubelet            MountVolume.SetUp failed for volume "grafana-pv" : mount failed: exit status 32
Mounting command: mount
Mounting arguments: -t nfs 192.168.100.109:/mnt/nfs/grafana /var/lib/kubelet/pods/03133217-9db5-4e36-a5db-459cda595342/volumes/kubernetes.io~nfs/grafana-pv
Output: mount.nfs: mounting 192.168.100.109:/mnt/nfs/grafana failed, reason given by server: No such file or directory
  Warning  FailedMount  20s  kubelet  Unable to attach or mount volumes: unmounted volumes=[grafana-storage], unattached volumes=[grafana-prometheus-configmap grafana-storage default-token-c99qq]: timed out waiting for the condition
aki0000 commented 3 years ago

It only can be mounted nfs...


root@RAS01:~# df -h
Filesystem                Size  Used Avail Use% Mounted on
/dev/root                  29G   17G   12G  59% /
devtmpfs                  1.8G     0  1.8G   0% /dev
tmpfs                     1.9G     0  1.9G   0% /dev/shm
tmpfs                     1.9G  9.9M  1.9G   1% /run
tmpfs                     5.0M  4.0K  5.0M   1% /run/lock
tmpfs                     1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/mmcblk0p1            253M   49M  204M  20% /boot
overlay                    29G   17G   12G  59% /var/lib/docker/overlay2/faa13985ffe6da69edc3c7605feffab8efbf383ee781ad7203ce428fae54059f/merged
overlay                    29G   17G   12G  59% /var/lib/docker/overlay2/c930bcea226f6e0907362028d808a43fb39db1aa6343a49638e4c1ecf35aa27f/merged
shm                        64M     0   64M   0% /var/lib/docker/containers/c0dc604088786e0e5a7d4c5249f91c05f81249d656b2c4de9fbd77f631635993/mounts/shm
shm                        64M     0   64M   0% /var/lib/docker/containers/3813f47b9e10f1f3e7181f3ec74b48eaa7bdfde1b19c87963401c028accd536b/mounts/shm
overlay                    29G   17G   12G  59% /var/lib/docker/overlay2/52834be5dde196c43ec3196b206f602f2fcddbc629c93ed544efd2a7b57fee1e/merged
shm                        64M     0   64M   0% /var/lib/docker/containers/b80325980157415724acfa2ddd140af6a2fc2402407dbfc3191d367593c57a6c/mounts/shm
overlay                    29G   17G   12G  59% /var/lib/docker/overlay2/48c935c33f73e31329f9415a1cc4e2eeffdc902535c1cefc672c23294a8f33cc/merged
tmpfs                     380M     0  380M   0% /run/user/1000
tmpfs                     1.9G   12K  1.9G   1% /var/lib/kubelet/pods/350062f2-cbb4-4e9a-a939-37de1755b32a/volumes/kubernetes.io~secret/speaker-token-6dxj5
tmpfs                     1.9G   12K  1.9G   1% /var/lib/kubelet/pods/6a7abdda-83bd-4e99-b638-4b09a73249af/volumes/kubernetes.io~secret/coredns-token-7gp9t
tmpfs                     1.9G   12K  1.9G   1% /var/lib/kubelet/pods/d1463771-8547-4988-81b0-c0d8226bb509/volumes/kubernetes.io~secret/coredns-token-7gp9t
tmpfs                     1.9G   12K  1.9G   1% /var/lib/kubelet/pods/b94fb3bf-f024-4039-ac74-22696e9532d6/volumes/kubernetes.io~secret/metrics-server-token-59cnn
tmpfs                     1.9G   12K  1.9G   1% /var/lib/kubelet/pods/00b13ac7-8f13-4374-b330-2b6d08ee8a68/volumes/kubernetes.io~secret/flannel-token-nhtlg
overlay                    29G   17G   12G  59% /var/lib/docker/overlay2/1a69a73281fcd9fd006885f021c0024f0122fb2512d606f7ab946ce153a2db66/merged
overlay                    29G   17G   12G  59% /var/lib/docker/overlay2/2cd84bfb32741ba3f4ecd49e6ccead77e7e8f7249b4a3727a13fc7fff7e5148e/merged
shm                        64M     0   64M   0% /var/lib/docker/containers/9ebd1d5041f229a6894ec90e90e6755cfcb9f68408d52649fbba475d7e4963a1/mounts/shm
shm                        64M     0   64M   0% /var/lib/docker/containers/eb9e7f9a0c8aef3ce5ff40d8073a61d6af3f3096beef32c64cb29ae1dfff6996/mounts/shm
overlay                    29G   17G   12G  59% /var/lib/docker/overlay2/6fe859b95cfd58e78ab6daaf2ebdce6e7b7f72a921e00e6565270ed7fac3b7c4/merged
overlay                    29G   17G   12G  59% /var/lib/docker/overlay2/e6b61ba7d07d792e189a66d6d1fff2d80cf77081e566d6b87edc286f55f38881/merged
overlay                    29G   17G   12G  59% /var/lib/docker/overlay2/4ab8cfcf46e6179be690c19b21ec800f521e634646f625db61af0821035cb9fa/merged
overlay                    29G   17G   12G  59% /var/lib/docker/overlay2/ef4db0f1c1ed05a8419cf9fef9b675c9d2253a3efc901516df5fecc4f4293dfb/merged
shm                        64M     0   64M   0% /var/lib/docker/containers/391830981e96996e6252a3ce94d98489c41ee197a45cc03737491b426e768a01/mounts/shm
shm                        64M     0   64M   0% /var/lib/docker/containers/ba2fcde6921b35537d070968205f377755f9fda4bb6d725a635b4380420427f8/mounts/shm
overlay                    29G   17G   12G  59% /var/lib/docker/overlay2/03d72ae7ed1dd10839e9bf910612410ace99df77cfca1964af4858d693d2e42f/merged
overlay                    29G   17G   12G  59% /var/lib/docker/overlay2/3137f87d37bddfdd15899ac2278621ca6dfd4c1b523ea057c62138a21bcc2d0c/merged
overlay                    29G   17G   12G  59% /var/lib/docker/overlay2/7318d1619d8e25efddd7558b4c26e41e868cf2ae22236c747df28fdce2e90f99/merged
shm                        64M     0   64M   0% /var/lib/docker/containers/a84d5feef001480711293b31cd46ac9a00a1d8b638cd8c5faadab0444bbc119b/mounts/shm
overlay                    29G   17G   12G  59% /var/lib/docker/overlay2/26311e77d80c5199a82519cf418df8ba2ddc300e9c5198f43d48c1b067704bed/merged
overlay                    29G   17G   12G  59% /var/lib/docker/overlay2/e456c84c2878b2360dca24e842f7b84ca245173fe36389fed1db6328674b9771/merged
overlay                    29G   17G   12G  59% /var/lib/docker/overlay2/5e237f086b9047ff41445e10edb7c469c17ba442100a48ef346a0c13489cf546/merged
shm                        64M     0   64M   0% /var/lib/docker/containers/e87c23570ea6a1c6edbd9a8d3273a00c1bed859e89c5cac2ee820664b30a290a/mounts/shm
overlay                    29G   17G   12G  59% /var/lib/docker/overlay2/888f90fa0b2af06fb7861627bdf03eb63e69304fa9c990fb8a4494153362cca8/merged
overlay                    29G   17G   12G  59% /var/lib/docker/overlay2/ffdc2ada8da4d74004574a8c53ef8af8ded2f15cf0b6e9dbfcdf20ded727855f/merged
tmpfs                     1.9G   12K  1.9G   1% /var/lib/kubelet/pods/61e22bbc-ab2c-4626-a80a-56e5b61b6d07/volumes/kubernetes.io~secret/kube-proxy-token-9hnzj
overlay                    29G   17G   12G  59% /var/lib/docker/overlay2/ebc49bbda3043ba67e4496ebd66b0a061ce47c2341dc9b7d59b1aeda64335555/merged
shm                        64M     0   64M   0% /var/lib/docker/containers/9ee025544e5e248693f7c78ee40da7471da1ad89a7edd471781823b06123262f/mounts/shm
overlay                    29G   17G   12G  59% /var/lib/docker/overlay2/0d797bc116d3f6bb782425caf5b983c06cdfdca5970e1a10251b4b1fc273efca/merged
192.168.100.109:/mnt/nfs  6.9G  6.0G  607M  91% /mnt/data