Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • what order backup and restore rhev-m config and database?

    Posted on

    1. backup config files

     

    /etc/jbossas/jbossas.conf

    /etc/rhevm/

    /etc/yum/pluginconf.d/versionlock.list

    /etc/pki/rhevm/

    /etc/jbossas/rhevm-slimmed/

    /usr/share/rhevm/kerberos/krb5.conf

    /usr/share/rhevm/rhevm.ear/rhevmanager.war/ExternalConfig.txt

    /usr/share/rhevm/rhevm.ear/rhevmanager.war/ServerParameters.js

    /root/.pgpass

    /root/.rnd

     

    2. backup rhev-m db

    pg_dump -C -E UTF8 --column-inserts --disable-dollar-quoting --disable-triggers -U postgres --format=p -f dump_RHEVDB_BACKUP.sql rhevm

    3. on new host install rhev-m

     

    yum install rhevm

    service jbossas stop

     

    4. restore backup db

     

    psql -U postgres -d rhevm -W -f dump_RHEVDB_BACKUP.sql
    5. restore config files
    6. service jbossas start
    

    But rhev-m not work.

    Log file /var/log/rhevm/rhevm.log:

     

    [org.ovirt.engine.core.bll.Backend] (main) Error in getting DB connection. The database is inaccessible. Original exception is: DataAccessResourceFailureException: Error retreiving database metadata; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Could not get Connection for extracting meta data; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.jboss.util.NestedSQLException: Unable to get managed connection for RHEVMDataSource; - nested throwable: (javax.resource.ResourceException: Unable to get managed connection for RHEVMDataSource)
     

    What am I doing wrong?

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2025 Red Hat, Inc.