FC4 - How to remove LVM after hard drive crash?

Discussion in 'Technical' started by pudn, Apr 9, 2006.

  1. pudn

    pudn New Member

    I have a system running FC4 which has 20Gb (hda) and 80Gb (hdb) drives configured with LVM which was installed about 3 months ago, though neither disk was new at the time. The problem last week was that the system was crashing due to lack of space on the 1st disk as the larger disk was failing.

    The system will not now boot. I get the following:

    Uncompressing Linux ... OK. Booting the Kernel.
    Red Hat Nash version 4.2.15 starting
    Reading all physical volumes. This may take a while ...
    Couldn't find device with UUID xxxxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxxxx
    Reading all physical volumes. This may take a while ...
    Couldn't find device with UUID xxxxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxxxx
    Volume group "VolGroup00" not found
    Error /bin/lvm exited abnormally with value 5! (pid 430)
    Reading all physical volumes. This may take a while ...
    Couldn't find device with UUID xxxxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxxxx
    Reading all physical volumes. This may take a while ...
    Couldn't find device with UUID xxxxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxxxx
    Volume group "VolGroup00" not found
    Error /bin/lvm exited abnormally with value 5! (pid 431)
    Mount: Error 6 mounting ext3
    Error opening /dev/console!!!! :2
    error dup2'ing fd of 0 to 0
    error dup2'ing fd of 0 to 1
    error dup2'ing fd of 0 to 2
    switchroot : mount failed : 22
    kernel panic - not syncing: attempted to kill init!

    I have used EBC to access the system and fdisk on each drive reveals the following:

    /dev/hda1 * 1 13 104391 83 linux
    /dev/hda2 14 2491 19904535 8e linux lvm

    /dev/hdb1 1 158816 80043232+ 83 linux

    I am not a complete PC novice, although my Linux knowledge is somewhat rudimentary. If someone could advise me how to remove the 2nd disk completely from the system and make FC4 boot up from just the one disk without LVM I would be very grateful.

    As a supplementary question not entirely unrelated to the above, how easy is it to move a 'working' fc4 system from one hard drive to another? I want to put the system onto a NEW bigger hard drive.

    tia
     
  2. sbovisjb1

    sbovisjb1 ISPConfig Developer ISPConfig Developer

    I would suggest to use damnsmall linux or some rescue drive derivative to boot into FC4 and to delete/edit the kernel so that you can actually boot it. Or if you wish, you can port the whole system (i believe you use catalyst) onto an external drive.
     
  3. sbovisjb1

    sbovisjb1 ISPConfig Developer ISPConfig Developer

  4. sbovisjb1

    sbovisjb1 ISPConfig Developer ISPConfig Developer

  5. falko

    falko Super Moderator ISPConfig Developer

Share This Page