(OT) cool data recovery story from a bad drive (LVM)

From: Benedict Verheyen (linux4bene_at_pandora.be)
Date: 01/21/04

  • Next message: Pigeon: "Re: Tuning X"
    To: <debian-user@lists.debian.org>
    Date: Wed, 21 Jan 2004 22:45:24 +0100
    
    

    Recently one of my 2 drives has gone bad.
    Not that big a deal but i didn't look forward to reinstalling
    the whole shabang.
    I use LVM and both drives are used in the same volume group so i
    wasn't sure that it was possible to save the data and keep the
    machine running without having to reinstall it.

    Well, i managed to keep the server running while saving the data
    that resides on the bad disk.
    Mind that only the /usr partition used PE's from the 2nd disk
    (the one that started failing).
    First i made a partition to copy all the data over from the
    old /usr. A lot of data was unrecoverable because of errors on
    that disk. I then adjusted fstab to point to the new partition
    to see if that would work. It did. Next i removed the bad disk
    from the volume group via lvreduce.
    I still have some PE's left to make a new /usr partition in the
    LVM partition. After that i copied the data over from the
    /usr partition to this newly created /dev/main/lv_usr (main being
    the volumegroup), again adjusted the fstab to reflect the change
    and rebooted.

    All services (fetchmail,exim4,spamassassin,clamav,procmail,apache
    ,courier,squirrelmail) kept on working just fine. To rebuild my
    /usr partition i started to do "apt-get --reinstall install <package>"
    for most packages that where installed. Most of the usr partition
    have now been rebuild and everything is working except my ddt-client.
    So i'm happy i didn't have to reinstall and it was a learning
    experience. I'll be closely monitoring the system to see if everything
    is stable but so far so good.

    Regards,
    Benedict

    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Pigeon: "Re: Tuning X"

    Relevant Pages

    • Re: What are the advantages of LVM?
      ... If you want to learn more about LVM these two web sites can get you ... PartitionMagic or whatever) to split the disk up into partitions. ... or from another partition and run cfdisk or fdisk to set the ... Unfortunately, once I did partition the hard disk, I forgot to mark / as ...
      (Ubuntu)
    • Re: Hosed Grub with the push of a button
      ... occupies part of the LVM. ... I don't think the developers of the program counted on some crazy button changing the partition table with one touch. ... Did it write over that portion of the disk or did it actually format the portion and place information from some storage chip on the mother board. ... My guess would be that the motherboard has a chip inside that has a compressed image of what was originally installed on the computer, like what a install CD would have. ...
      (Fedora)
    • Re: to lvm or not to lvm?
      ... have the optimal size and this is very doable with LVM, ... cabinet, storage cabinet(s with drawers full of disk), Multi-path SAN ... A typo in a script can do more harm in 20 ... As long as it's not possible for a growing partition to take space away ...
      (Debian-User)
    • Re: Booting - Enterprise Volume Management System
      ... blocksize of your filesystem and calculate the new size based on those units. ... physical disk partition. ... You manipulate a virtual partition and don't ... Software raid will always be slower than LVM ...
      (Ubuntu)
    • Re: Resizing an LVM
      ... lvm vgchange -a y /dev/VolGroup00 ... Checks file system for errors ... Create a partition on the temp disk. ...
      (Fedora)