disk recovery help

From: Charles Sprickman (spork_at_fasttrackmonkey.com)
Date: 07/20/04

  • Next message: Charles Sprickman: "Re: disk recovery help"
    Date: Mon, 19 Jul 2004 19:14:39 -0400 (EDT)
    To: freebsd-hackers@freebsd.org
    
    

    Hi,

    I'm sorry for hitting this list, but I'm trying to target people with some
    good old-fashioned recovery procedures in their toolboxes, and people that
    have a better understanding of UFS than I do.

    I'll try to keep this brief. We are looking for either some "here you go"
    help, or if there's someone who's really a whiz at this, paid help...

    The story, in brief, and what we're looking for:

    We have a mail server that had it's RAID array trashed by a typo. No
    backups (perhaps this will make the budget for that appear). There are
    four disks running in RAID 1+0 on an Adaptec 2110s. While replacing a
    failed drive I screwed the pooch with a typo. I meant "raidutil -a
    rebuild" but I typed "raidutil -a build". That command ran for about 45
    seconds before I realized what had happened and cut power to the box.

    fsck was able to fix / with no problems, and most other partitions. We
    reinstalled the base OS and rebuilt all our local additions (ports +
    vpopmail/qmail/courier-imap-pop) in case there was any corrupted gunk left
    on the drive. However the partition holding all the mail (in Maildir
    format, working with vpopmail/qmail) seemed quite screwed. We let fsck
    try for about 12 hours and had to cancel out of it. While working on
    other things, I dd'd off this partition via ssh to another machine (ssh
    borked.box dd if=/dev/da1s1h bs=1024 > dd.img) hoping that we could do
    something with it later. Once that was done, we newfs'd that partition
    and let vpopmail recreate mailboxes as mail came in. So we're done on
    that front, but missing all old mail.

    I now have the disk image on a spare box. It's 26GB (about 20GB of actual
    data). My initial plan is just to see what happens if I mount it
    read-only, and then try to fsck without any time pressure and see what
    we've got left. Since I wasn't able to figure out how to dd this back to
    a pre-partitioned drive, I was going to try vnconfig to attach the dd
    image to vn0, then mount and fsck that. Should that work?

    I have little faith that all this will work though... If anyone has some
    tips/pointers/prayers, let me know. Again, we can probably dig up some
    cash if someone with experience in this would like to help.

    I'm still waiting for some info from Adaptec to see exactly what the
    "build" option does, and where it starts from and how far it might have
    got in that period of time. Oddly, the last tech that called for more
    info said he was going to ask DriveSavers (as they know that stuff???).

    Please email me directly with any other questions. I wanted to keep this
    as brief as possible since it's fairly OT.

    Thanks,

    Charles
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Charles Sprickman: "Re: disk recovery help"

    Relevant Pages

    • Re: [SLE] fsck!!!
      ... >> that is needed during the manual fsck part. ... >> You need to boot the rescue system, from the CD or DVD, not from the HD. ... > ACPI disabled, Install - Safe settings, Manual install, Rescue System, ... You need to have somethings printed before hand: the partition table, ...
      (SuSE)
    • Re: [SLE] Booting Problem
      ... Please repair manually and reboot. ... except rebooting during the installation. ... > 'fsck failed' again. ... that normally it is NOT a problem with a partition gone bad. ...
      (SuSE)
    • Re: [SLE] fsck!!!
      ... If the problem is in the root partition, ... Also, considering your fstab: ... > that is needed during the manual fsck part. ... >>local harddisk, boot safely, rescue mode and a couple of others. ...
      (SuSE)
    • Re: How do I run an ??????????????????
      ... with "fsck" replaced appropriately. ... Mac OS X at all, certainly not in single user mode. ... Boot from your Mac OS X partition, ... While I am glad to learn of this previously unknown way to use DiskWarrior, in the present case it brought about the same result as before: DiskWarrior started rebuilding directories but was slowed by malfunctions. ...
      (comp.sys.mac.apps)