ApsaraDB / PolarDB-Stack-Operator

PolarDB Stack is a DBaaS implementation for PolarDB-for-Postgres, as an operator creates and manages PolarDB/PostgreSQL clusters running in Kubernetes. It provides re-construct, failover swtich-over, scale up/out, high-available capabilities for each clusters.
Apache License 2.0
24 stars 19 forks source link

How can I get volume_id when creating pvc. #4

Open huasiy opened 2 years ago

huasiy commented 2 years ago

I create pvc by executing curl -X POST "http://10.0.0.77:2002/pvcs" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"name\": \"pvc-32ze341nncwlczm47bsre\", \"namespace\": \"default\", \"need_format\": true, \"volume_id\": \"32ze341nncwlczm47bsre\", \"volume_type\": \"lun\"}" but get error: {"error":"can not find lv for wwid 32ze341nncwlczm47bsre"}. The ouput of multipah -ll is empty. How can I get correct volume_id?

lynnleelhl commented 2 years ago

You should get your own shared storage which support SCSI or NVMe