LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 06-20-2005, 02:21 AM   #1
Golovko
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9
Posts: 23

Rep: Reputation: 15
LVM2 on Sarge - HD failure in the volume group containing /


I have three hard drives:

/dev/hda connected to the onboard primary IDE.
/dev/hde connected to PCI IDE card primary channel
/dev/hdg connected to PCI IDE card secondary channel

/boot is located on /dev/hda1

/dev/hda2 and the other 2 drives are in an LVM2 volume group.

The problem:

/dev/hdg is pretty much dead (nice chorus of clicks and whirs coming from it).

The problem is that / was on the volume group (initrd supports this). So when trying to boot, it is unable to find /, obviously because the volume group is not there since /dev/hdg is dead (I'm 100% sure of this, the boot log complains about not finding a device with UUID xxxxxxxxxxxxxxxxxxx which corresponds to /dev/hdg).

At this point I need to get into the system, salvage what I can (my home dir is already backed up whew), and rework the partitions (let's just say I'll never put / on lvm again...). I think booting the system as is will be impossible. What options do I have to boot with some sort of bootdisc/live linux cd, and try to rework things as far as lvm goes, such that I can boot the machine again? Is there bootdisk that would allow me to fix the volume group using lvm commands?

Any help with this would really be appreciated.
Gol

Last edited by Golovko; 06-20-2005 at 02:47 AM.
 
Old 06-20-2005, 09:25 AM   #2
Golovko
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9
Posts: 23

Original Poster
Rep: Reputation: 15
I've gotten somewhere with some help:

Someone suggested using the sarge install cd to troubleshoot. I booted up and loaded the lvm-cfg package. This gave me access to all the LVM2 tools. The command I am trying to run is:

vgreduce --removemissing vg-root

The problems occurs because dev-mapper is not available to the kernel, so LVM2 can't interact with it. Anyone know of a workaround to get dev-mapper working on the sarge netinst kernel? I can enable the network through the install menu and possibly ssh files?
 
Old 06-20-2005, 06:58 PM   #3
Golovko
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9
Posts: 23

Original Poster
Rep: Reputation: 15
Problem fixed

Using the sarge netinst cd, proceeding to the LVM portion of the install (which I guess loads the appropriate device-mapper related files for the kernel), and then running:

vgreduce --removemissing vg-root

Machine then booted, everything fine.

However, after trying to do this:

lvextend -L +5G /dev/vg-root/lv-home

To extend the logical volume my home dirs resides on by 5 GB, it returned the error of not being able to find device with UUID xxxxxxxxxxxxxxxxxxxxxxxxx, which corresponds to the other 60 GB drive. Could this be mere coincidence (I did hear that hard drive clicks twice yesterday), or could an lvextend command screw things up like this?

Any input appreciated, I feel like my system is dying one drive at a time. On the plus side, everything important is now backed up.

Gol
 
Old 06-20-2005, 09:54 PM   #4
Golovko
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9
Posts: 23

Original Poster
Rep: Reputation: 15
Well the other 60 GB seems to be malfuntioning now too, I did:

vgreduce --removemissing vg-root

and went ahead and removed it from the volume group.

I rebooted, seems stable. With some trepidation I did:

lvextend -L +5GB /dev/vg-root/lv-home

resulting in:

Extending logical volume lv-home to 10.00 GB
Logical volume lv-home successfully resized

I'm at a loss how both drives would fail within 2 days of each other.

Gol
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't extend volume group flv7a Linux - General 13 09-14-2010 03:04 PM
LVM2 volume group not seen after FC4 install digithead1011 Fedora - Installation 6 10-09-2005 09:25 PM
suse 9.3 and root on lvm2 sam_vde Suse/Novell 0 07-14-2005 06:24 AM
LVM2 (non-root) lv's won't mount at boot time jbanafato Linux - General 3 03-06-2005 11:29 PM
Group Admin, Group Root, or God over Group crickett Linux - General 5 07-12-2004 04:01 PM


All times are GMT -5. The time now is 05:52 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration