Lost databases

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Liviu BURCUSEL

    #1

    Lost databases

    Hi !

    I'm in the ultimate state of dispair. Over the night some of my
    databases just disapeared. But they did not dissaper totally. I can
    still connect to them but I cannot dump them. When doing a "select *
    from pg_database" I see only 2 databases I hardly ever use (they are
    used once in a couple of mounths). Template0 and template1 are missing.
    All the databases that I currently use dissapeared!

    Please help me to restore the integrity of the system. I'm in dense fog
    here :(

    Liviu

    ---------------------------(end of broadcast)---------------------------
    TIP 5: Have you checked our extensive FAQ?



  • Martijn van Oosterhout

    #2
    Re: Lost databases

    Let's start with the version of postgresql you're using.
    Next, were you running VACUUM FULL regularly?

    It sounds like XID wraparound to me, no idea how to solve that. Got
    backups?

    On Wed, Nov 10, 2004 at 12:56:33PM +0200, Liviu BURCUSEL wrote:[color=blue]
    > Hi !
    >
    > I'm in the ultimate state of dispair. Over the night some of my
    > databases just disapeared. But they did not dissaper totally. I can
    > still connect to them but I cannot dump them. When doing a "select *
    > from pg_database" I see only 2 databases I hardly ever use (they are
    > used once in a couple of mounths). Template0 and template1 are missing.
    > All the databases that I currently use dissapeared!
    >
    > Please help me to restore the integrity of the system. I'm in dense fog
    > here :(
    >
    > Liviu
    >
    > ---------------------------(end of broadcast)---------------------------
    > TIP 5: Have you checked our extensive FAQ?
    >
    > http://www.postgresql.org/docs/faqs/FAQ.html[/color]

    --
    Martijn van Oosterhout <kleptog@svana. org> http://svana.org/kleptog/[color=blue]
    > Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
    > tool for doing 5% of the work and then sitting around waiting for someone
    > else to do the other 95% so you can sue them.[/color]

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.0.6 (GNU/Linux)
    Comment: For info see http://www.gnupg.org

    iD8DBQFBkf3IY5T wig3Ge+YRAuzWAJ 44gB4QSEDBDdcwi hDDQ+cHyzuvQACf Syil
    eqEDU8yMWpXW4L9 FX4qTEtU=
    =s4QB
    -----END PGP SIGNATURE-----

    Comment

    • Jeff Eckermann

      #3
      Re: Lost databases

      --- Liviu BURCUSEL <liviu@voxline. ro> wrote:
      [color=blue]
      > Hi !
      >
      > I'm in the ultimate state of dispair. Over the night
      > some of my
      > databases just disapeared. But they did not dissaper
      > totally. I can
      > still connect to them but I cannot dump them. When
      > doing a "select *
      > from pg_database" I see only 2 databases I hardly
      > ever use (they are
      > used once in a couple of mounths). Template0 and
      > template1 are missing.
      > All the databases that I currently use dissapeared!
      >
      > Please help me to restore the integrity of the
      > system. I'm in dense fog
      > here :([/color]

      What Postgresql version is this? Your problem sounds
      like "oid wraparound". There was a recent discussion
      of this on the list; try the list archives to see what
      was recommended in that case.
      [color=blue]
      >
      > Liviu
      >
      > ---------------------------(end of
      > broadcast)---------------------------
      > TIP 5: Have you checked our extensive FAQ?
      >
      >
      > http://www.postgresql.org/docs/faqs/FAQ.html
      >[/color]




      _______________ _______________ ____
      Do you Yahoo!?
      Check out the new Yahoo! Front Page.
      Latest news coverage, email, free stock quotes, live scores and video are just the beginning. Discover more every day at Yahoo!




      ---------------------------(end of broadcast)---------------------------
      TIP 1: subscribe and unsubscribe commands go to majordomo@postg resql.org

      Comment

      • Liviu BURCUSEL

        #4
        Re: Lost databases

        On Wed, 10 Nov 2004 08:11:01 -0800 (PST)
        Jeff Eckermann <jeff_eckermann @yahoo.com> wrote:
        [color=blue]
        > --- Liviu BURCUSEL <liviu@voxline. ro> wrote:
        >[color=green]
        > > Hi !
        > >
        > > I'm in the ultimate state of dispair. Over the night
        > > some of my
        > > databases just disapeared. But they did not dissaper
        > > totally. I can
        > > still connect to them but I cannot dump them. When
        > > doing a "select *
        > > from pg_database" I see only 2 databases I hardly
        > > ever use (they are
        > > used once in a couple of mounths). Template0 and
        > > template1 are missing.
        > > All the databases that I currently use dissapeared!
        > >
        > > Please help me to restore the integrity of the
        > > system. I'm in dense fog
        > > here :([/color]
        >
        > What Postgresql version is this? Your problem sounds
        > like "oid wraparound". There was a recent discussion
        > of this on the list; try the list archives to see what
        > was recommended in that case.
        >[/color]
        The Postgresql version is 7.4.1

        Thanks. I'll look in the archive.

        Liviu

        ---------------------------(end of broadcast)---------------------------
        TIP 2: you can get off all lists at once with the unregister command
        (send "unregister YourEmailAddres sHere" to majordomo@postg resql.org)

        Comment

        • Kostis Mentzelos

          #5
          Re: Lost databases

          Martijn van Oosterhout wrote:[color=blue]
          > Let's start with the version of postgresql you're using.
          > Next, were you running VACUUM FULL regularly?
          >
          > It sounds like XID wraparound to me, no idea how to solve that. Got
          > backups?
          >
          > On Wed, Nov 10, 2004 at 12:56:33PM +0200, Liviu BURCUSEL wrote:
          >[color=green]
          >>Hi !
          >>
          >>I'm in the ultimate state of dispair. Over the night some of my
          >>databases just disapeared. But they did not dissaper totally. I can
          >>still connect to them but I cannot dump them. When doing a "select *
          >>from pg_database" I see only 2 databases I hardly ever use (they are
          >>used once in a couple of mounths). Template0 and template1 are missing.
          >>All the databases that I currently use dissapeared!
          >>
          >>Please help me to restore the integrity of the system. I'm in dense fog
          >>here :(
          >>
          >>Liviu
          >>
          >>---------------------------(end of broadcast)---------------------------
          >>TIP 5: Have you checked our extensive FAQ?
          >>
          >> http://www.postgresql.org/docs/faqs/FAQ.html[/color]
          >
          >[/color]
          Only VACUUM FULL solves XID wraparound problem? I mean VACUUM FULL locks
          the entire table.

          How can I test if I am close to XID wraparround?

          Kostis

          Comment

          • Martijn van Oosterhout

            #6
            Re: Lost databases

            Look at the documentation here:



            The upshot is that you should vacuum every table in the database at
            least once every billion transaction. It doesn't have to be a VACUUM
            FULL, just run VACUUM without specifying a table.

            There's some info in there about how to work out when it is necessary.

            Hope this helps,

            On Tue, Nov 16, 2004 at 12:22:46PM +0200, Kostis Mentzelos wrote:[color=blue]
            > Only VACUUM FULL solves XID wraparound problem? I mean VACUUM FULL locks
            > the entire table.
            >
            > How can I test if I am close to XID wraparround?
            >
            > Kostis
            >
            > ---------------------------(end of broadcast)---------------------------
            > TIP 5: Have you checked our extensive FAQ?
            >
            > http://www.postgresql.org/docs/faqs/FAQ.html[/color]

            --
            Martijn van Oosterhout <kleptog@svana. org> http://svana.org/kleptog/[color=blue]
            > Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
            > tool for doing 5% of the work and then sitting around waiting for someone
            > else to do the other 95% so you can sue them.[/color]

            -----BEGIN PGP SIGNATURE-----
            Version: GnuPG v1.0.6 (GNU/Linux)
            Comment: For info see http://www.gnupg.org

            iD8DBQFBmzYoY5T wig3Ge+YRArxiAJ 4sWdm5m9ndEfOGw 8A/llXaDQ2cDQCfU8z 9
            qYE/OHWhBF3Jvy1uRoR Q0YY=
            =ibwG
            -----END PGP SIGNATURE-----

            Comment

            Working...