HAWKER, Dan
2007-May-24 10:17 UTC
[Fedora-directory-users] Restore Master LDAP Server from Secondary???
Hi All, I''ve been happily running FDS (v1.02) for about a year, all fairly good. I have it configured with a Single Master and one backup/slave server. Unfortunately after a series of nasty power failures last weekend, the master is no longer working as expected and after using verify-bd.pl it seems the database(s) are corrupted. I have a backup (on tape), however I was wondering if I could use the still working (why my users can still auth OK) secondary as a means of re-populating the master again. For instance, can I *upgrade* the slave to a master, and then replicate to the *old* master (once I have reinstalled/rebuilt it). Or maybe simply dump the slaves data to LDIF and then re-import into the *old* master. Does that make any sense??? Just wondered if there was a quick way of using the secondary to accomplish this, before I start sifting through tapes... TIA Dan -- Dan Hawker Linux System Administrator Astrium http://www.astrium.eads.net -- This email (including any attachments) may contain confidential and/or privileged information or information otherwise protected from disclosure. If you are not the intended recipient, please notify the sender immediately, do not copy this message or any attachments and do not use it for any purpose or disclose its content to any person, but delete this message and any attachments from your system. Astrium disclaims any and all liability if this email transmission was virus corrupted, altered or falsified. --------------------------------------------------------------------- Astrium Limited, Registered in England and Wales No. 2449259 Registered Office: Gunnels Wood Road, Stevenage, Hertfordshire, SG1 2AS, England
J. Hartman
2007-May-24 10:55 UTC
Re: [Fedora-directory-users] Restore Master LDAP Server from Secondary???
On 5/24/07, HAWKER, Dan <Dan.HAWKER@uk4.astrium.eads.net> wrote:> > > Hi All, > > I''ve been happily running FDS (v1.02) for about a year, all fairly good. > > I have it configured with a Single Master and one backup/slave server. > Unfortunately after a series of nasty power failures last weekend, the > master is no longer working as expected and after using verify-bd.pl it > seems the database(s) are corrupted. > > I have a backup (on tape), however I was wondering if I could use the > still working (why my users can still auth OK) secondary as a means of > re-populating the master again. > > For instance, can I *upgrade* the slave to a master, and then replicate > to the *old* master (once I have reinstalled/rebuilt it). Or maybe > simply dump the slaves data to LDIF and then re-import into the *old* > master.I''d do it using LDIF dumps taken with db2ldif on the slave. Restore is done with ldif2db on the master host. Then check errors logs to see if you need to reinitialize replication or recreate your changelog. Cmd-line scripts doc is at: http://www.redhat.com/docs/manuals/dir-server/cli/scripts.htm#pgfId-18294> Does that make any sense??? Just wondered if there was a quick way of > using the secondary to accomplish this, before I start sifting through > tapes... > > TIA > > Dan > > -- > > Dan Hawker > Linux System Administrator > Astrium > http://www.astrium.eads.net > > -- > > This email (including any attachments) may contain confidential and/or privileged information or information otherwise protected from disclosure. If you are not the intended recipient, please notify the sender immediately, do not copy this message or any attachments and do not use it for any purpose or disclose its content to any person, but delete this message and any attachments from your system. Astrium disclaims any and all liability if this email transmission was virus corrupted, altered or falsified. > --------------------------------------------------------------------- > Astrium Limited, Registered in England and Wales No. 2449259 > Registered Office: Gunnels Wood Road, Stevenage, Hertfordshire, SG1 2AS, England > > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users >
Morris, Patrick
2007-May-24 14:29 UTC
RE: [Fedora-directory-users] Restore Master LDAP Server fromSecondary???
> For instance, can I *upgrade* the slave to a master, and then > replicate to the *old* master (once I have > reinstalled/rebuilt it). Or maybe simply dump the slaves data > to LDIF and then re-import into the *old* master. > > Does that make any sense??? Just wondered if there was a > quick way of using the secondary to accomplish this, before I > start sifting through tapes...I''ve done this before -- you can go into the server''s replication settings and set it to be a master, and then initialize the consumer to re-replicate. Works fine.