Hi Stéphane.
The 'accessModes' does not match! Due to this fact this pvc will not use this pv. I would delete the pvc adopt the accessModes and size to the pv and create it again. oc delete -f <PVC-FILE> edit <PVC-FILE> oc create -f <PVC-FILE> Another option is to edit the pvc and adopt the accessModes and size, just to be on the save side, online oc edit pvc foobar HTH Aleks ________________________________ From: [email protected] <[email protected]> on behalf of Stéphane Klein <[email protected]> Sent: Wednesday, February 24, 2016 10:24 To: users Subject: Hi, I've created a PersistentVolumeClaim before my PersistentVolume resource. Now, I've this : ``` # oc get pv NAME LABELS CAPACITY ACCESSMODES STATUS CLAIM REASON AGE my-persistent-volume <none> 1Gi RWO Available 18h # oc get pvc NAME LABELS STATUS VOLUME CAPACITY ACCESSMODES AGE foobar <none> Pending 4d ``` My PersistentVolumeClaim config : ``` apiVersion: v1 kind: PersistentVolume metadata: name: my-persistent-volume spec: capacity: storage: 1Gi accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Recycle hostPath: path: /my-persistent-volume/ ``` My PersistentVolume config : ``` - apiVersion: v1 kind: PersistentVolumeClaim metadata: name: foobar spec: accessModes: - ReadWriteMany resources: requests: storage: 512Mi ``` How can I say to my persistent volume to retry ? Best regards, Stéphane -- Stéphane Klein <[email protected]<mailto:[email protected]>> blog: http://stephane-klein.info cv : http://cv.stephane-klein.info Twitter: http://twitter.com/klein_stephane
_______________________________________________ users mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/users
