TECHZEN Zenoss User Community ARCHIVE  

Persistant storage

Subject: Persistant storage
Author: [Not Specified]
Posted: 2017-02-08 16:04

I have created an application that I am deploying with control center. I am trying to get my data to persist between restarts. I have a section in the template:

"Volumes": [
{
"Owner": "grafana:grafana",
"Permission": "0755",
"ResourcePath": "grafana-data",
"ContainerPath": "/var/lib/grafana",
"Type": "",
"ExcludeFromBackups": false
},
{
"Owner": "grafana:grafana",
"Permission": "0755",
"ResourcePath": "grafana-config",
"ContainerPath": "/etc/grafana",
"Type": "",
"ExcludeFromBackups": false
}
],

and in the controlcenter mount,

[root@vt0pzenms02 aspiww5byhorma8a8npb5bm6j]# pwd
/opt/serviced/var/volumes/aspiww5byhorma8a8npb5bm6j
[root@vt0pzenms02 aspiww5byhorma8a8npb5bm6j]# ls | grep grafana
grafana-config
grafana-data

but when I start my application, it does not populate the grafana-config or the grafana-data directories. Is there something else I have to do to ensure the host directories get mounted inside the containers



< Previous
New Community Platform This April
  Next
Fix for 'An invalid name was supplied' error when modeling win 2012r2
>