How do I restore OD from backup, when current OD is corrupt?

Hi everyone!
Let me first say I am a newbie.
I was given the task of maintaining a 10.5.8 server and its replica. The problem I faced right away was not being able to add/remove users in Workgroup Manager (buttons are grayed out).
The 'LDAP Server' (Open Directory -> Overview) on the master is stopped, but runs on the replica, if this is relevant.
After reading some articles on this forum and elsewhere I realised the OD is corrupt and needs restoring from a backup. There IS a healthy backup at hand, which I managed to restore onto a test machine, freshly loaded with 10.5.8 (Server Admin -> ServerName -> Open Directory -> Archive -> Restore from:)
However, when I try and do the same on the OD master, it doesn't work. I enter the backup file's password correctly, it displays the 'Restoring' progress bar for a few seconds and then nothing changes - no change in the list of users in Workgroup Manager, buttons still grayed out and the LDAP Server still not running.
Here is the Configuration Log (Server Admin -> ServerName -> Open Directory -> Configuration Log), I've changed the domain name to 'MYDOMAIN' :
2011-11-22 19:36:03 +0000 - slapconfig -mergedb
2011-11-22 19:36:03 +0000 - command: /usr/bin/hdiutil attach /od_backup_may11/odbackup_may11.sparseimage -readonly
2011-11-22 19:36:03 +0000 - hdiutil command output:
hdiutil: attach failed - Authentication error
2011-11-22 19:36:03 +0000 - hdiutil command failed with status 1
2011-11-22 19:36:03 +0000 - command: /usr/bin/hdiutil attach -stdinpass /od_backup_may11/odbackup_may11.sparseimage -readonly
2011-11-22 19:36:05 +0000 - Disk name disk3
2011-11-22 19:36:05 +0000 - 1 Merging Kerberos database
2011-11-22 19:36:05 +0000 -   popen: cd /tmp/slapconfig_restore_stage1433i5xQ1i;/usr/bin/tar xzpf /Volumes/ldap_bk/krb5backup.tar.gz, "r"
2011-11-22 19:36:05 +0000 - Copied file from /Volumes/ldap_bk/kdb5dump.ODM.MYDOMAIN.COM.bak to /tmp/slapconfig_restore_stage1433i5xQ1i/kdb5dump.ODM.MYDOMAIN.COM.bak.
2011-11-22 19:36:05 +0000 - command: /usr/sbin/kdb5_util -r ODM.MYDOMAIN.COM dump -new_mkey_file /tmp/slapconfig_restore_stage1433i5xQ1i/var/db/krb5kdc/.k5.ODM.MYDOMAIN.COM /tmp/slapconfig_restore_stage1433i5xQ1i/kdb5backup.bak
2011-11-22 19:36:06 +0000 - Copied directory from /var/db/krb5kdc to /var/db/krb5kdc.pre-merge.
2011-11-22 19:36:06 +0000 - command: /bin/cp /tmp/slapconfig_restore_stage1433i5xQ1i/var/db/krb5kdc/.k5.ODM.MYDOMAIN.COM /var/db/krb5kdc/
2011-11-22 19:36:06 +0000 - command: /usr/sbin/kdb5_util -r ODM.MYDOMAIN.COM load -update /tmp/slapconfig_restore_stage1433i5xQ1i/kdb5dump.ODM.MYDOMAIN.COM.bak
2011-11-22 19:36:06 +0000 - command: /usr/sbin/kdb5_util -r ODM.MYDOMAIN.COM load -update /tmp/slapconfig_restore_stage1433i5xQ1i/kdb5backup.bak
2011-11-22 19:36:06 +0000 - 2 Merging Password Server data
2011-11-22 19:36:06 +0000 - command: /usr/sbin/mkpassdb -mergeparent /Volumes/ldap_bk/passwordserver_backup/ /Volumes/ldap_bk/id_omitfile
2011-11-22 19:36:07 +0000 - 3 Merging LDAP database
2011-11-22 19:36:07 +0000 -   popen: /usr/sbin/slapadd -c -l /tmp/slapconfig_stage1433W9Mgj7/backup1433.ldif, "w"
2011-11-22 19:36:07 +0000 - Error: command failed with exit code 256: /usr/sbin/slapadd -c -l /tmp/slapconfig_stage1433W9Mgj7/backup1433.ldif
2011-11-22 19:36:07 +0000 -   popen: cd /;/usr/bin/tar xzpf /Volumes/ldap_bk/sambabackup.tar.gz, "w"
2011-11-22 19:36:07 +0000 - Copied file from /Volumes/ldap_bk/LaunchDaemons/smbd.plist to /System/Library/LaunchDaemons/smbd.plist.
2011-11-22 19:36:07 +0000 - command: /bin/launchctl load /System/Library/LaunchDaemons/smbd.plist
2011-11-22 19:36:07 +0000 - launchctl command output:
nothing found to load
2011-11-22 19:36:07 +0000 - launchctl command failed with status 1
2011-11-22 19:36:07 +0000 - Removed directory at path /tmp/slapconfig_stage1433W9Mgj7.
2011-11-22 19:36:07 +0000 - command: /usr/bin/hdiutil detach disk3
It looks as though due to the corruption I cannot be authenticated properly. This happens both when I log in as admin and diradmin.
I don't know what to do and will appreciate any help I can get. Please note I am a relative newbie and if it comes to demoting/promoting servers I will need step-by-step instructions.
Thank you in advance for your replies!

There must be more to it than that. Simply dragging images from the iPhoto application window does not move (or remove) files. The only way I can reproduce what you've described is to command-drag files or folders directly from the iPhoto Library folder using the Finder. Anyway, if your photo database wasn't corrupted at first, then dragging files directly back into the iPhoto Library folder would have done it for sure.
To rebuild your photo database, start iPhoto while holding the shift+option keys. Don't release them until you're prompted to confirm the intent to rebuild. Click "Yes", then click "Save".
Check iPhoto Help to see how to safely import/export pictures, and how to backup your iPhoto Library.

Similar Messages

  • I'm doing a timemachine backup of my current MBPro. The MBPro has aproximately 250 GB of content that is being "timemachine'd". My new SSD is only 128 GB, how do I restore the timemachine backup, when my old drive was larger than the new drive?

    I'm doing a timemachine backup of my current MBPro. The MBPro has aproximately 250 GB of content that is being "timemachine'd". My new SSD is only 128 GB, how do I restore the timemachine backup, when my old drive was larger than the new drive? Is there a way to pick what you want to restore or am I completely f***ed? I tried googling the answer but all i got was how to move the timemachine backup to another HDD. Sorry for the ******** question, thought I'd try here.
    Thanks for the help.

    I'm doing a timemachine backup of my current MBPro. The MBPro has aproximately 250 GB of content that is being "timemachine'd". My new SSD is only 128 GB, how do I restore the timemachine backup, when my old drive was larger than the new drive? Is there a way to pick what you want to restore or am I completely f***ed? I tried googling the answer but all i got was how to move the timemachine backup to another HDD. Sorry for the ******** question, thought I'd try here.
    Thanks for the help.

  • HT4859 how can i restore files from backup after i reset my ipod touch?

    I rebooted my ipod touch how can i restore my back up files

    Welcome to the Apple community.
    Rebooting your device is not the same as restoring it, to restore a device go to settings > general > reset > erase all contents and settings. Once you do this you will then be given the option to restore it from a backup or as a new iPod.

  • How do I restore photos from backup into iPhoto 2?

    I tried to create a backup of only one roll of photos in my Photo Library, but when I dragged it to an external hard drive, instead of copying it, it moved it, so that afterwards I could no longer use iPhoto in my computer to open any of the pictures in that roll (the number of the roll still shows in my Photo Library, but when I click on it, it appears empty). I then tried to restore the roll by copying it from the external hard drive into the Library/Pictures folder in my computer, but the pictures still do not show up in iPhoto (I'm using version 2). What am I doing wrong?

    There must be more to it than that. Simply dragging images from the iPhoto application window does not move (or remove) files. The only way I can reproduce what you've described is to command-drag files or folders directly from the iPhoto Library folder using the Finder. Anyway, if your photo database wasn't corrupted at first, then dragging files directly back into the iPhoto Library folder would have done it for sure.
    To rebuild your photo database, start iPhoto while holding the shift+option keys. Don't release them until you're prompted to confirm the intent to rebuild. Click "Yes", then click "Save".
    Check iPhoto Help to see how to safely import/export pictures, and how to backup your iPhoto Library.

  • How can I restore contacts from Backup Assistant

    My contact list has been corrupted. I have been using Backup Assistant for some time and want to restore my contacts from a previous backup.
    Verizon seems to have changed BA since the last time I used it and the only function seems to be to take my corrupted contact list from my phone and store it.  Any suggestions on recovering my non-corrupted contact list?

    Here is a reply from a VW CS regarding the same question a few months back:
    Click this link Backup Assistant (sign in) to check if contacts are available. You may sync directly from the site, by simply clicking sync on the right hand side (above contacts).
    You may also try to sync by adding your G-mail account to the your device then go to Settings > Accounts & Sync > Ensure Sync is on for G-mail account. You may also select Auto-sync.
    For additional information on how to restore contacts, click the link below:
    Backup Assistant

  • My Blocked Sender list got erased. How can I restore it from backup?

    Where is the Blocked Sender List file located and what is it's name?

    It's not in Firefox. Firefox doesn't do email, it's strictly a web browser.
    If you are using Firefox to access your mail, you are using "web-mail". You need to seek support from your service provider or a forum for that service.
    If your problem is with Mozilla Thunderbird, see this forum for support.
    [http://www.mozillamessaging.com/en-US/support/] <br />
    or this one <br />
    [http://forums.mozillazine.org/viewforum.php?f=39]

  • Had 3G, moved to 3GS.  Backed up 3G and restored 3GS from backup with no problem.  When I want to add songs, I get itunes message that the new iphone is synced to another computer and now wants to erase everything.  How can I add music?

    Had 3G, moved to 3GS.  Backed up 3G and restored 3GS from backup with no problem on a Dell computer.  But now when I want to add songs, I get itunes message of death that the new iphone is synced to another computer and now wants to erase everything.  How can I add music without erasing everything on my new iphone?

    Yes, I was aware of this but the phrase "Any items imported from audio CDs or acquired from other sources will not copy from your device to the iTunes library." is what worries me.  Will this eliminate my Notes, Calendar Events, etc or will it apply mostly just to the music?

  • I'm trying a full restore in Lion, but it won't. States that there isn't enough space on the Mac HD. How do I restore everything from a recent Time Machine Backup?

    I'm trying a full restore in Lion, but it won't. States that there isn't enough space on the Mac HD. How do I restore everything from a recent Time Machine Backup?

    Thanks but I think it has something to do with the 'restore'. in the newest iTunes 11, when I click on the tab "iphone", it redirects me to the "welcome to your new iphone" page and asks about doing a 'restore'. I already did a 'restore', but it went to the original factory settings and I want to 'restore' to my lastest back up as of April 12. When I choose that option, it says my iphone doesn't have enough space. I don't know how much I need to delete in order to make it work. I've deleted lots, but it only has 4.1 GB available. I'm not sure why this isn't enough to do a 'restore'. I don't want to delete all my photos and videos, but maybe I will have to?...7.7GB is used up for that. I can't sync or do ANYTHING...

  • When restore iPhone from backup, why it copying every single app

    when restore iPhone from backup, why it is copying every single app from library? any way to restore whatever was backed up from iPhone?

    How to restore from backup without sync all my apps? I recently upraded firmware to IOS 7, and then tried to restore from my privouse backup. But it everytime, when it's saying you are successfully restored. but I when I unlock my phone all app icon are dark gray color, means nothing restored and then itunes automactically copying all my app to iPhone like 100+ apps, I dont need all of them.
    Again, How to restore from backup without sync all my apps? 

  • How to restore iphone from backup?

    I recently updated to 4.1 but lost all my contacts... how can I restore them from my itunes backup? thanks

    Maybe, unless there is a problem with your iPhone's backup and it sounds like there is a problem with it or you wouldn't have lost any contacts.
    Although contacts are included with your iPhone's backup, contacts are designed to be synced with a supported address book application on your computer and should be available on your computer with or without an iPhone or any cell phone. Not a good idea to depend on your cell phone alone for this data, which can be lost or stolen.
    To restore your iPhone with iTunes from your iPhone's backup, select Restore under the Summary tab for your iPhone sync preferences with iTunes. When prompted to update your iPhone's backup, as the first step after selecting Restore, decline this prompt.
    Go to iTunes > Preferences. Under the Devices tab, how many backups are shown? If more than one, what is the date and time shown for each backup? If there is more than one backup, you may not want to select the current backup - select a previous backup when restoring your iPhone with iTunes. After the firmware is re-installed, you will be prompted to restore from the backup, which is the default selection. If there is more than one backup available, the most recent backup will be selected by default. If more than one backup is available, you can select from another or previous backup.

  • HT4946 iTunes shows I have an encrypted backup under preferences.   It's got the pad lock. When I click restore the encrypted backup is not an option. I've been test MDM products and may have caused this. How do I restore the encrypted backup.

    iTunes shows I have an encrypted backup under preferences.   It's got the pad lock. When I click restore the encrypted backup is not an option. I've been test MDM products and may have caused this. How do I restore the encrypted backup.

    I just came here today to ask the same question.
    I have an iPod Gen2 with version 4.2.1 iOS, and iTunes 11.0.2.26
    My iPod Touch was running sluggish so I backed up and selected the "Encrypt local backup" to "back up account passwords used on my iPod".
    I selected a password for this backup and restored my iPod Touch.
    When I went to restore from backup, that encrypted backup is not available on the drop down list.
    However, if I go to the top of ITunes and click "Edit", "Preferences" "Device", it shows the back up with the pad lock on it.
    I thought I was being smart backing up with encryption to back up account passwords, but now I have lost everything.
    So many people have the issue where it asks for a password when they never told iTunes to do an encrypted backup and here we are with an encrypted backup, and we know the password, but we don't get the option to restore from it.

  • How can I restore files from my old iMac to this new purchased MacBook Air? I am using time machine backup in my old imac.

    How can I restore files from my old iMac to this new purchased MacBook Air? I am using time machine backup in my old imac.

    Hi,
    Try Target Disk Mode
    OS X Yosemite: Transfer files between two computers using target disk mode
    There is also Migration Assistant.
    OS X Yosemite: Transfer your info from a computer or storage device

  • Using InDesign CS4 on iMac. Had to restore computer from backup. Licensing has stopped working. Error code 150:30. How can I reestablish my license?

    Using InDesign CS4 on iMac. Had to restore computer from backup. Licensing has stopped working. Error code 150:30. How can I reestablish my license?

    You'll need to have a chat with Adobe Support. Here's a link:
    https://helpx.adobe.com/contact.html?step=ZNA_downloading-installing-setting-up_licensing- activation
    We can't help you with that here.

  • How do I restore files from time machine backups made before reformatting macbook air?

    How do I restore files from time machine backups made before reformatting macbook air?

    The section titled "Restoring data from Time Machine backups" in the following may help: http://support.apple.com/kb/HT1427

  • How do i restore pictures from an icloud backup?

    Hi, does any one know how do i restore an icloud backup? i have not photo streamed any of my photos on my iphone 5 and whilst trying to sort this out i have ended up deleting about a 100 photos. Is there a way of retrieveing these through using the icloud back up?

    The iCloud backup only includes camera roll photos, not photo stream photos.  If they were in the camera roll when you last backed up, restoring the backup should recover them.

Maybe you are looking for