How to do a localinstall of rpm and start Grafana from a specific path?

  • What Grafana version and what operating system are you using?
    grafana-9.1.5-1.x86_64 & RHEL 7.9
  • What are you trying to achieve?
    Trying to install Grafana on a data disk instead of OS disk. But not able to start Grafana Seems i need to add some links to service file.

Need some guidanc eon this.

  • How are you trying to achieve it?
    yum localinstall .rpm --rootinstall=path

  • What happened?
    it installs all libs/var etc to the given path. But when i try systemd start the system cant find the service file.

  • What did you expect to happen?

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

  • Did you follow any online instructions? If so, what is the URL?

Hi @dpclix,

Did you try something like

systemctl start grafana-server

then verify the status via:

systemctl status grafana-server

Also, if not then please check this documentation link for RHEL distributions:

I hope this helps.