[root@online-aliyun-cn-shenzhen-c-vm-10041 cert]# ll /nfs/k8s/data/
total 32
drwxrwxrwx 5 root root 4096 May 15 13:51 ./
drwxr-xr-x 3 root root 4096 May 13 18:32 ../
drwxrwxrwx 3 root root 4096 May 15 13:51 kubesphere-monitoring-system-prometheus-k8s-db-prometheus-k8s-0-pvc-c277b5aa-6098-4d67-b22f-e9d0a2e8b355/
drwxrwxrwx 3 root root 4096 May 15 13:51 kubesphere-monitoring-system-prometheus-k8s-system-db-prometheus-k8s-system-0-pvc-11c1bbba-cdc1-4a9b-91c3-373df8c9646e/
drwx------ 2 root root 16384 May 13 18:14 lost+found/
这些就创建不了,导致安装失败
`TASK [common : include_tasks] **************************************************
skipping: [localhost] => (item={u’ks’: u’mysql-pvc’, u’op’: u’openpitrix-db’})
skipping: [localhost] => (item={u’ks’: u’etcd-pvc’, u’op’: u’openpitrix-etcd’})
TASK [common : Getting PersistentVolumeName (mysql)] ***************************
skipping: [localhost]
TASK [common : Getting PersistentVolumeSize (mysql)] ***************************
skipping: [localhost]
TASK [common : Setting PersistentVolumeName (mysql)] ***************************
skipping: [localhost]
TASK [common : Setting PersistentVolumeSize (mysql)] ***************************
skipping: [localhost]
TASK [common : Getting PersistentVolumeName (etcd)] ****************************
skipping: [localhost]
TASK [common : Getting PersistentVolumeSize (etcd)] ****************************
skipping: [localhost]
TASK [common : Setting PersistentVolumeName (etcd)] ****************************
skipping: [localhost]
TASK [common : Setting PersistentVolumeSize (etcd)] ****************************
skipping: [localhost]
TASK [common : Kubesphere | Check mysql PersistentVolumeClaim] *****************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “/usr/local/bin/kubectl get pvc -n kubesphere-system mysql-pvc -o jsonpath=‘{.status.capacity.storage}’\n”, “delta”: “0:00:00.409147″, “end”: “2020-05-15 05:50:27.114121″, “msg”: “non-zero return code”, “rc”: 1, “start”: “2020-05-15 05:50:26.704974”, “stderr”: "Error from server (NotFound): persistentvolumeclaims \“mysql-pvc\” not found", “stderr_lines”: ["Error from server (NotFound): persistentvolumeclaims \“mysql-pvc\” not found"], “stdout”: "", “stdout_lines”: []}
…ignoring
TASK [common : Kubesphere | Setting mysql db pv size] **************************
skipping: [localhost]
TASK [common : Kubesphere | Check redis PersistentVolumeClaim] *****************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “/usr/local/bin/kubectl get pvc -n kubesphere-system redis-pvc -o jsonpath=‘{.status.capacity.storage}’\n”, “delta”: “0:00:00.420811″, “end”: “2020-05-15 05:50:27.734230”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2020-05-15 05:50:27.313419”, “stderr”: "Error from server (NotFound): persistentvolumeclaims \“redis-pvc\” not found", “stderr_lines”: ["Error from server (NotFound): persistentvolumeclaims \“redis-pvc\” not found"], “stdout”: "", “stdout_lines”: []}
…ignoring
TASK [common : Kubesphere | Setting redis db pv size] **************************
skipping: [localhost]
TASK [common : Kubesphere | Check minio PersistentVolumeClaim] *****************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “/usr/local/bin/kubectl get pvc -n kubesphere-system minio -o jsonpath=‘{.status.capacity.storage}’\n”, “delta”: “0:00:00.456821″, “end”: “2020-05-15 05:50:28.398121″, “msg”: “non-zero return code”, “rc”: 1, “start”: “2020-05-15 05:50:27.941300″, “stderr”: "Error from server (NotFound): persistentvolumeclaims \“minio\” not found", “stderr_lines”: ["Error from server (NotFound): persistentvolumeclaims \“minio\” not found"], “stdout”: "", “stdout_lines”: []}
…ignoring
TASK [common : Kubesphere | Setting minio pv size] *****************************
skipping: [localhost]`
这是我的默认存储
[root@online-aliyun-cn-shenzhen-c-vm-10041 ]# kubectl get sc
NAME PROVISIONER AGE
nfs-storage-master01 (default) nfs-storage-master01 37h