Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k7U35e2v005335 for ; Tue, 29 Aug 2006 23:05:40 -0400 Received: from web30312.mail.mud.yahoo.com (web30312.mail.mud.yahoo.com [209.191.69.74]) by mx3.redhat.com (8.13.1/8.13.1) with SMTP id k7U35U27016288 for ; Tue, 29 Aug 2006 23:05:30 -0400 Message-ID: <20060830030524.555.qmail@web30312.mail.mud.yahoo.com> Date: Tue, 29 Aug 2006 20:05:24 -0700 (PDT) From: Tom+Dale Subject: Re: [linux-lvm] Lost logical volume? In-Reply-To: <44F4F32B.2070806@utsouthwestern.edu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-92434573-1156907124=:99077" Content-Transfer-Encoding: 8bit Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: LVM general discussion and development --0-92434573-1156907124=:99077 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Peter Smith wrote: Tom+Dale wrote: > Greetings. > I am hoping that some LVM experts can help me out. I have a partial=20 > volume group that spans two drives and I would like to recover the=20 > logical volume that was on it so that the data is accessible. The=20 > group (VolGroup00) was originally set up spanning part of one drive=20 > and all of the other drive (both IDE). The group was entirely applied=20 > to a single logical volume (LogVol00) to be mounted as /video. This=20 > was working until I tried to make some changes and I fear that I may=20 > have lost the data. I cannot seem to resolve this problem anywhere=20 > else. I have spent almost two weeks searching for clues and asking for=20 > help in other forums, but I do not yet have a solution. I hope to=20 > provide all of the useful information below. > *History* > I am relatively new to linux, having built my own PVR using Fedora and=20 > MythTV during the last year. I have relied heavily upon HowTos and=20 > guides written by other users. One of the guides that I followed=20 > instructed me to set up XFS using LVM which would allow me to span=20 > multiple hard disks. Recently, I added a new SATA drive to my MythTV=20 > system. The new drive was designated as /dev/sda. It appeared to add=20 > into the existing volume group without any problem, though I did not=20 > get it to the point where the space was accessible. I planned to=20 > further research that problem; however, the new hard drive failed=20 > before I got that far. Here=EF=BF=BDs what things looked like after remov= ing=20 > the drive: > [root[at]mythserver ~]# pvdisplay > Couldn't find device with uuid 'fxlccO-4li0-nmyD-9avZ-Vc60-GGWX-jUhqOv'. > Couldn't find device with uuid 'fxlccO-4li0-nmyD-9avZ-Vc60-GGWX-jUhqOv'. > --- Physical volume --- > PV Name /dev/hda5 > VG Name VolGroup00 > PV Size 66.12 GB / not usable 0 > Allocatable yes (but full) > PE Size (KByte) 4096 > Total PE 16926 > Free PE 0 > Allocated PE 16926 > PV UUID 317l2C-oay1-TWFG-5NTX-XJS3-vLal-Xh5bBL > > --- Physical volume --- > PV Name /dev/hdb > VG Name VolGroup00 > PV Size 298.09 GB / not usable 0 > Allocatable yes (but full) > PE Size (KByte) 4096 > Total PE 76311 > Free PE 0 > Allocated PE 76311 > PV UUID nfLxS1-0u3t-5Zr9-57iu-1oZe-Bkkd-75SERQ > > --- Physical volume --- > PV Name unknown device > VG Name VolGroup00 > PV Size 232.88 GB / not usable 0 > Allocatable yes > PE Size (KByte) 4096 > Total PE 59617 > Free PE 225 > Allocated PE 59392 > PV UUID fxlccO-4li0-nmyD-9avZ-Vc60-GGWX-jUhqOv > > Tom. I'm sorry that not too many people have looked into this with you. First, what were the results of the "vgreduce --removemissing=20 VolGroup00" command? I'm generating a theory here. That VolGroup00 had a=20 single LV, LogVol00, and the disks /dev/hda5 and /dev/hdb. Then--I'm=20 guessing here--you did a "pvcreate /dev/sda" .. And followed that with a=20 "vgextend VolGroup00 /dev/sda" .. Then perhaps did you do a "lvextend -l=20 /dev/VolGroup00 /dev/sda"? After that, at some point,=20 /dev/sda went dead. Am I close? Could you recount to us what steps you=20 took to "expand" the VG? I realize you may have been asleep, but this=20 data is crucial. When I do any LVM work I typically record all my input=20 and output in a text editor and save it or print it out for safety.. So, the questions are: 1) Was that LV the ONLY LV in the VG? 2) You did try to expand the LV to include /dev/sda? 3) Did you use any GUI to do this? Or did you rely on the command line? Peter =20 Peter, =20 Thank you for your reply...I wish I'd seen it _before_ complaining about = no responses. My apologies to you and the other list members! =20 =20 In retrospect, I agree that documenting our LVM intrepid adventure would = have been smart. I confess that I cannot tell you precisely what commands = we gave to add the new (later failed) hard drive. However, your effort at = retracing our steps sounds remarkably familiar. I would say that it is ess= entially correct if not exactly. =20 I'm not sure what the results of the "vgreduce --removemissing VolGroup00= " command were other than that it appeared to me as though it was successfu= l. Would that be logged somewhere? =20 1. Yes, initially VolGroup00 spanned /dev/hda5 and /dev/hdb. LogVol00 wa= s the only logical volume in VolGroup00, and it was using the entire space = of VolGroup00. =20 2. Yes, we tried to expand the LV to include /dev/sda but I think we were= doing something wrong because we couldn't seem to get the MythTV app to se= e more space available (see below). =20 3. No, no GUI tools. We were strictly using the command line in an xterm= session. This is FC4 with xfce desktop (in case that matters). =20 I think you are right: we added the drive using "pvcreate /dev/sda" and = then we did "vgextend VolGroup00 /dev/sda" (those look right from what I re= member...coming up on three weeks ago, now). So expanding the VG would hav= e been accomplished at this point, right? I believe we got to that point s= uccessfully. Now I'm not sure how we tried to expand the LV, but I'm prett= y sure that it did not work because we couldn't see the new space available= from the MythTV app (it still reported the original volume size for total = disk space as if we'd made no addition). =20 So we may have tried "lvextend -l" with parameters or perhaps we never fi= gured that part out. You know, we were drinking lots of Diet Coke while se= arching the net and reading man pages, re-reading the LVM HowTo, and trying= different things...timidly. I'm certain that we could see from pvdisplay = & vgdisplay that we were close but not done yet. We quit for the night and= I discovered the physical disk problem the next afternoon. =20 Two final comments: =20 A) I can't get to the box right now, as I am travelling this week. But I= sincerely appreciate your assistance and I'll be able to access it after S= aturday 02Sep06. =20 B) I remember seeing some archives and backups in an LVM directory not on= the logical volume. Are these key to recovering the LV? It looks like pe= ople have posted the contents of these files in the past (they look like pr= ogramming code to me). I wasn't sure what to post or if they would be help= ful. =20 Sorry about being lengthy, but I want to provide a complete picture. =20 -Tom- =09 --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail. --0-92434573-1156907124=:99077 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Peter Smith <peter.smith@utsouthwestern.edu> wrote: Tom+Dale wrote:

> Greetings.
> = I am hoping that some LVM experts can help me out. I have a partial
>= ; volume group that spans two drives and I would like to recover the
&g= t; logical volume that was on it so that the data is accessible. The
&g= t; group (VolGroup00) was originally set up spanning part of one drive
= > and all of the other drive (both IDE). The group was entirely applied =
> to a single logical volume (LogVol00) to be mounted as /video. Thi= s
> was working until I tried to make some changes and I fear that I= may
> have lost the data. I cannot seem to resolve this problem any= where
> else. I have spent almost two weeks searching for clues and = asking for
> help in other forums, but I do not yet have a solution.= I hope to
> provide all of the useful information below.
> *History*> I am relatively new to linux, having built my own PVR using Fedora an= d
> MythTV during the last year. I have relied heavily upon HowTos a= nd
> guides written by other users. One of the guides that I followe= d
> instructed me to set up XFS using LVM which would allow me to sp= an
> multiple hard disks. Recently, I added a new SATA drive to my M= ythTV
> system. The new drive was designated as /dev/sda. It appeare= d to add
> into the existing volume group without any problem, thoug= h I did not
> get it to the point where the space was accessible. I = planned to
> further research that problem; however, the new hard dr= ive failed
> before I got that far. Here=EF=BF=BDs what things looke= d like after removing
> the drive:
> [root[at]mythserver ~]# p= vdisplay
> Couldn't find device with uuid 'fxlccO-4li0-nmyD-9avZ-Vc60-GGWX-jUhqOv'.
> Couldn't find device wit= h uuid 'fxlccO-4li0-nmyD-9avZ-Vc60-GGWX-jUhqOv'.
> --- Physical volum= e ---
> PV Name /dev/hda5
> VG Name VolGroup00
> PV Size = 66.12 GB / not usable 0
> Allocatable yes (but full)
> PE Size = (KByte) 4096
> Total PE 16926
> Free PE 0
> Allocated PE = 16926
> PV UUID 317l2C-oay1-TWFG-5NTX-XJS3-vLal-Xh5bBL
>
>= ; --- Physical volume ---
> PV Name /dev/hdb
> VG Name VolGroup= 00
> PV Size 298.09 GB / not usable 0
> Allocatable yes (but fu= ll)
> PE Size (KByte) 4096
> Total PE 76311
> Free PE 0> Allocated PE 76311
> PV UUID nfLxS1-0u3t-5Zr9-57iu-1oZe-Bkkd-7= 5SERQ
>
> --- Physical volume ---
> PV Name unknown devic= e
> VG Name VolGroup00
> PV Size 232.88 GB / not usable 0
&g= t; Allocatable yes
> PE Size (KByte) 4096
> Total PE 59617
&= gt; Free PE 225
> Allocated PE 59392
> PV UUID fxlccO-4li0-nmyD-9avZ-Vc60-= GGWX-jUhqOv
>
>
Tom. I'm sorry that not too many people have= looked into this with you.

First, what were the results of the "vgr= educe --removemissing
VolGroup00" command? I'm generating a theory here= . That VolGroup00 had a
single LV, LogVol00, and the disks /dev/hda5 an= d /dev/hdb. Then--I'm
guessing here--you did a "pvcreate /dev/sda" .. A= nd followed that with a
"vgextend VolGroup00 /dev/sda" .. Then perhaps = did you do a "lvextend -l
/dev/VolGroup00 /dev/sda"? After= that, at some point,
/dev/sda went dead. Am I close? Could you recount= to us what steps you
took to "expand" the VG? I realize you may have b= een asleep, but this
data is crucial. When I do any LVM work I typicall= y record all my input
and output in a text editor and save it or print = it out for safety..

So, the questions are:
1) Was that LV the ONL= Y LV in the VG?
2) You did try to expand the LV to include /dev/sda?
3) Did you = use any GUI to do this? Or did you rely on the command line?

Peter

Peter,
 
Thank you for y= our reply...I wish I'd seen it _before_ complaining about no responses.&nbs= p; My apologies to you and the other list members! 
 = ;
In retrospect, I agree that documenting our LVM intrepid adve= nture would have been smart.  I confess that I cannot tell you precise= ly what commands we gave to add the new (later failed) hard drive.  Ho= wever, your effort at retracing our steps sounds remarkably familiar. = I would say that it is essentially correct if not exactly.
&nb= sp;
I'm not sure what the results of the "vgreduce --removemiss= ing VolGroup00" command were other than that it appeared to me as though it= was successful.  Would that be logged somewhere?
 
1. Yes, initially VolGroup00 spanned /dev/hda5 and /dev/hdb.  LogVol00 w= as the only logical volume in VolGroup00, and it was using the entire space= of VolGroup00.
 
2. Yes, we tried to expand t= he LV to include /dev/sda but I think we were doing something wrong because= we couldn't seem to get the MythTV app to see more space available (see be= low).
 
3. No, no GUI tools.  We wer= e strictly using the command line in an xterm session.  This is FC4 wi= th xfce desktop (in case that matters).
 
I think you are right:  we added the drive using "pvcreate /dev/sda" = and then we did "vgextend VolGroup00 /dev/sda" (those look right from&= nbsp;what I remember...coming up on three weeks ago, now).  So expandi= ng the VG would have been accomplished at this point, right?  I believ= e we got to that point successfully.  Now I'm not sure how we tried to= expand the LV, but I'm pretty sure that it did not work because we couldn't see the n= ew space available from the MythTV app (it still reported the original volu= me size for total disk space as if we'd made no addition).
&nbs= p;
So we may have tried "lvextend -l" with parameters or perhap= s we never figured that part out.  You know, we were drinking lots of = Diet Coke while searching the net and reading man pages, re-reading the LVM= HowTo, and trying different things...timidly.  I'm certain that we co= uld see from pvdisplay & vgdisplay that we were close but not done yet.=   We quit for the night and I discovered the physical disk problem the= next afternoon.
 
Two final comments:
=
 
A) I can't get to the box right now, as I am travel= ling this week.  But I sincerely appreciate your assistance and I= 'll be able to access it after Saturday 02Sep06.
&nbs= p;
=20
B) I remember seeing some archives and backups in an LVM di= rectory not on the logical volume.  Are these key to recovering the LV= ?  It looks like people have posted the contents of these files in the= past (they look like programming code to me).  I wasn't sure what to = post or if they would be helpful.
 
Sorry abou= t being lengthy, but I want to provide a complete picture.
&nbs= p;
-Tom-


Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail. --0-92434573-1156907124=:99077--