[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re:




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: users-bounces lists openshift redhat com <users-bounces lists openshift redhat com> on behalf of Stéphane Klein <contact stephane-klein info>
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,

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]