+ Reply to Thread
Results 1 to 9 of 9

Thread: "insert-ethers --dump" equivalent?

  1. #1
    ShadowAce is offline Junior Member
    Join Date
    January 30th, 2009
    Posts
    22
    Downloads
    0
    Uploads
    0

    Default "insert-ethers --dump" equivalent?

    Part of our process when installing a new cluster has been to run "insert-ethers --dump" after validation and redirect it to a text file. This file is then kept in case we need to re-install the nodes. Just execute the file, and the database gets rebuilt.

    While researching OCS 5 and Kusu, I have not yet been able to find a replacement for this functionality. The closest I have found is "boothost -l" to list the parameters. However, it does not seem to output in a format I can use to restore the database like the --dump flag of insert-ethers.

    Is there a command in Kusu/OCS that will perform this functionality?

  2. #2
    Uncas is offline Junior Member
    Join Date
    April 18th, 2008
    Posts
    9
    Downloads
    2
    Uploads
    0

    Default genconfig debug

    Hi ShadowAce,

    I'm not really sure what 'insert-ethers --dump' does, but I know that there is an easy way to rebuild the Kusu database. Just use the following to get a database dump:

    # genconfig debug

    You can save this into a file and then use it to rebuild the database. It is similar to 'dbreport bug' option in Rocks.

    Hope this helps.

  3. #3
    ShadowAce is offline Junior Member
    Join Date
    January 30th, 2009
    Posts
    22
    Downloads
    0
    Uploads
    0

    Default

    Hi Uncas,

    Thanks for the reply.

    "insert-ethers --dump" is a Rocks command that dumps the cluster database into a file in a format that if you merely execute the file, it will rebuild the database.

    I will look into genconfig debug as well.

    Shadow

  4. #4
    ShadowAce is offline Junior Member
    Join Date
    January 30th, 2009
    Posts
    22
    Downloads
    0
    Uploads
    0

    Default

    I did a "genconfig debug" and got an error:
    pg_dump: [archiver (db)] connection to database "kusudb" failed: FATAL: no pg_hba.conf entry for host "[local]", user "postgres", database "kusudb", SSL off

    Any ideas on what I did wrong?

  5. #5
    ltsai is offline Project Moderator
    Join Date
    March 4th, 2008
    Posts
    61
    Blog Entries
    3
    Downloads
    3
    Uploads
    0

    Default

    Hi

    Which version of Kusu are you using?

    Code:
    cat /etc/kusu-release
    

  6. #6
    ShadowAce is offline Junior Member
    Join Date
    January 30th, 2009
    Posts
    22
    Downloads
    0
    Uploads
    0

    Default

    cat /etc/kusu-release:
    Kusu "Platform OCS for Dell" 5 (buld 2039)

  7. #7
    George Goh is offline Project Moderator
    Join Date
    February 29th, 2008
    Location
    Singapore
    Posts
    26
    Blog Entries
    5
    Downloads
    16
    Uploads
    11

    Default

    You could try the following:

    # wget http://svn.osgdc.org/browse/~raw,r=4...onfig/debug.py
    # genconfig debug

  8. #8
    ShadowAce is offline Junior Member
    Join Date
    January 30th, 2009
    Posts
    22
    Downloads
    0
    Uploads
    0

    Default

    Thanks George!

    That did the trick. The problem was the plugin was using the postgres user, rather than the "nobody" user.

  9. #9
    George Goh is offline Project Moderator
    Join Date
    February 29th, 2008
    Location
    Singapore
    Posts
    26
    Blog Entries
    5
    Downloads
    16
    Uploads
    11

    Default

    You're most welcome. :-)

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts