<DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: black; FONT-FAMILY: Verdana">Greetings.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: black; FONT-FAMILY: Verdana"><o:p> </o:p></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: black; FONT-FAMILY: Verdana">I am hoping that some LVM experts can help me out.<SPAN style="mso-spacerun: yes">  </SPAN>I have a partial volume group that spans two drives and I would like to recover the logical volume that was on it so that the data is accessible.<SPAN style="mso-spacerun: yes">  </SPAN>The group (VolGroup00) was originally set up spanning part of one drive and all of the other drive (both IDE).<SPAN style="mso-spacerun: yes">  </SPAN>The group was entirely applied to a single logical volume (LogVol00) to be mounted as /video.<SPAN
 style="mso-spacerun: yes">  </SPAN>This was working until I tried to make some changes and I fear that I may have lost the data.<SPAN style="mso-spacerun: yes">  </SPAN>I cannot seem to resolve this problem anywhere else. <SPAN style="mso-spacerun: yes"> </SPAN>I have spent almost two weeks searching for clues and asking for help in other forums, but I do not yet have a solution.<SPAN style="mso-spacerun: yes">  </SPAN>I hope to provide all of the useful information below.<o:p></o:p></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: black; FONT-FAMILY: Verdana"><o:p> </o:p></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: black; FONT-FAMILY: Verdana"><o:p></o:p></SPAN> </DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: black; FONT-FAMILY: Verdana"><STRONG>History<o:p></o:p></STRONG></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
 style="COLOR: black; FONT-FAMILY: Verdana">I am relatively new to linux, having built my own PVR using Fedora and MythTV during the last year.<SPAN style="mso-spacerun: yes">  </SPAN>I have relied heavily upon HowTos and guides written by other users.<SPAN style="mso-spacerun: yes">  </SPAN>One of the guides that I followed instructed me to set up XFS using LVM which would allow me to span multiple hard disks.<SPAN style="mso-spacerun: yes">  </SPAN>Recently, I added a new SATA drive to my MythTV system. The new drive was designated as /dev/sda. <SPAN style="mso-spacerun: yes"> </SPAN>It appeared to add into the existing volume group without any problem, though I did not get it to the point where the space was accessible. I planned to further research that problem; however, the new hard drive failed before I got that far. <SPAN style="mso-spacerun: yes"> </SPAN>Here’s what things looked like after removing the drive:<o:p></o:p></SPAN></DIV>  <DIV
 class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: black; FONT-FAMILY: Verdana"><o:p> </o:p></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: black; FONT-FAMILY: Verdana">[root[at]mythserver ~]# pvdisplay <BR>Couldn't find device with uuid 'fxlccO-4li0-nmyD-9avZ-Vc60-GGWX-jUhqOv'. <BR>Couldn't find device with uuid 'fxlccO-4li0-nmyD-9avZ-Vc60-GGWX-jUhqOv'. <BR>--- Physical volume --- <BR>PV Name /dev/hda5 <BR>VG Name VolGroup00 <BR>PV Size 66.12 GB / not usable 0 <BR>Allocatable yes (but full) <BR>PE Size (KByte) 4096 <BR>Total PE 16926 <BR>Free PE 0 <BR>Allocated PE 16926 <BR>PV UUID 317l2C-oay1-TWFG-5NTX-XJS3-vLal-Xh5bBL <BR><BR>--- Physical volume --- <BR>PV Name /dev/hdb <BR>VG Name VolGroup00 <BR>PV Size 298.09 GB / not usable 0 <BR>Allocatable yes (but full) <BR>PE Size (KByte) 4096 <BR>Total PE 76311 <BR>Free PE 0 <BR>Allocated PE 76311 <BR>PV UUID nfLxS1-0u3t-5Zr9-57iu-1oZe-Bkkd-75SERQ <BR><BR>--- Physical volume
 --- <BR>PV Name unknown device <BR>VG Name VolGroup00 <BR>PV Size 232.88 GB / not usable 0 <BR>Allocatable yes <BR>PE Size (KByte) 4096 <BR>Total PE 59617 <BR>Free PE 225 <BR>Allocated PE 59392 <BR>PV UUID fxlccO-4li0-nmyD-9avZ-Vc60-GGWX-jUhqOv <BR><BR>[root[at]mythserver ~]# vgdisplay <BR>Couldn't find device with uuid 'fxlccO-4li0-nmyD-9avZ-Vc60-GGWX-jUhqOv'. <BR>Couldn't find all physical volumes for volume group VolGroup00. <BR>Couldn't find device with uuid 'fxlccO-4li0-nmyD-9avZ-Vc60-GGWX-jUhqOv'. <BR>Couldn't find all physical volumes for volume group VolGroup00. <BR>Couldn't find device with uuid 'fxlccO-4li0-nmyD-9avZ-Vc60-GGWX-jUhqOv'. <BR>Couldn't find all physical volumes for volume group VolGroup00. <BR>Couldn't find device with uuid 'fxlccO-4li0-nmyD-9avZ-Vc60-GGWX-jUhqOv'. <BR>Couldn't find all physical volumes for volume group VolGroup00. <BR>Volume group "VolGroup00" doesn't exist <BR><BR>[root[at]mythserver ~]# pvcreate -u
 fxlccO-4li0-nmyD-9avZ-Vc60-GGWX-jUhqOv /dev/sda <BR>Device /dev/sda not found. <BR><BR>[root[at]mythserver ~]# vgcfgrestore -tnVolGroup00 /dev/VolGroup00 <BR>Test mode: Metadata will NOT be updated. <BR>Couldn't find device with uuid 'fxlccO-4li0-nmyD-9avZ-Vc60-GGWX-jUhqOv'. <BR>Couldn't find all physical volumes for volume group VolGroup00. <BR>Restore failed.<o:p></o:p></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: black; FONT-FAMILY: Verdana"><o:p> </o:p></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: black; FONT-FAMILY: Verdana"><STRONG>Current Status<o:p></o:p></STRONG></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: black; FONT-FAMILY: Verdana">Based on suggestions made elsewhere, I tried to recover the logical volume which was originally on the two functioning drives.<SPAN style="mso-spacerun: yes">  </SPAN>Since the new drive failed before I had
 made the space available to the group, I believed that all data should be recoverable if the LVM structure could be put back to the way it was prior to the addition of the SATA drive.<SPAN style="mso-spacerun: yes">  </SPAN>First, I tried "vgreduce --removemissing VolGroup00" which seemed to work. Then, I tried "vgchange -ay --partial VolGroup00" which also appeared to complete successfully.<SPAN style="mso-spacerun: yes">  </SPAN>It seems like I was partly successful but I cannot get the logical volume to be recognized.<SPAN style="mso-spacerun: yes">  </SPAN>I tried a few other things shown below, and I have done nothing since.<SPAN style="mso-spacerun: yes">  </SPAN>I’m afraid to try to experiment commands that I don’t fully understand, and some things don’t seem to be working the way I would expect based upon the LVM HowTo.<SPAN style="mso-spacerun: yes">  </SPAN>Please let me know if you can assist me.<SPAN style="mso-spacerun: yes"> 
 </SPAN><U>Thanks in advance for any help you can provide!<o:p></o:p></U></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: black; FONT-FAMILY: Verdana"><o:p> </o:p></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: black; FONT-FAMILY: Verdana">[root[at]mythserver ~]# mount -a <BR>mount: special device /dev/VolGroup00/LogVol00 does not exist<o:p></o:p></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: black; FONT-FAMILY: Verdana"><o:p> </o:p></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: black; FONT-FAMILY: Verdana">[root[at]mythserver ~]# vgchange -a y VolGroup00 <BR>0 logical volume(s) in volume group "VolGroup00" now active <BR><BR>[root[at]mythserver ~]# pvdisplay <BR>--- Physical volume --- <BR>PV Name /dev/hda5 <BR>VG Name VolGroup00 <BR>PV Size 66.12 GB / not usable 0 <BR>Allocatable yes <BR>PE Size (KByte) 4096 <BR>Total
 PE 16926 <BR>Free PE 16926 <BR>Allocated PE 0 <BR>PV UUID 317l2C-oay1-TWFG-5NTX-XJS3-vLal-Xh5bBL <BR><BR>--- Physical volume --- <BR>PV Name /dev/hdb <BR>VG Name VolGroup00 <BR>PV Size 298.09 GB / not usable 0 <BR>Allocatable yes <BR>PE Size (KByte) 4096 <BR>Total PE 76311 <BR>Free PE 76311 <BR>Allocated PE 0 <BR>PV UUID nfLxS1-0u3t-5Zr9-57iu-1oZe-Bkkd-75SERQ <BR><BR>[root[at]mythserver ~]# vgscan <BR>Reading all physical volumes. This may take a while... <BR>Found volume group "VolGroup00" using metadata type lvm2 <BR><BR>[root[at]mythserver ~]# vgck -vv VolGroup00 <BR>Setting global/locking_type to 1 <BR>Setting global/locking_dir to /var/lock/lvm <BR>File-based locking enabled. <BR>Using volume group(s) on command line <BR>Locking /var/lock/lvm/V_VolGroup00 RB <BR>Finding volume group "VolGroup00" <BR>/dev/sda: No label detected <BR>/dev/hda1: No label detected <BR>/dev/hda2: No label detected <BR>/dev/hda3: No label detected <BR>/dev/hda5: lvm2 label detected
 <BR>/dev/hdb: lvm2 label detected <BR>/dev/hda5: lvm2 label detected <BR>/dev/hdb: lvm2 label detected <BR>/dev/hda5: lvm2 label detected <BR>/dev/hdb: lvm2 label detected <BR>/dev/hda5: lvm2 label detected <BR>/dev/hdb: lvm2 label detected <BR>Unlocking /var/lock/lvm/V_VolGroup00<o:p></o:p></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: black; FONT-FAMILY: Verdana"><o:p> </o:p></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: black; FONT-FAMILY: Verdana">[root[at]mythserver ~]# lvchange -vvvay /dev/VolGroup00/LogVol00 <BR>Processing: lvchange -vvvay /dev/VolGroup00/LogVol00 <BR>O_DIRECT will be used <BR>Setting global/locking_type to 1 <BR>Setting global/locking_dir to /var/lock/lvm <BR>File-based locking enabled. <BR>Using logical volume(s) on command line <BR>Locking /var/lock/lvm/V_VolGroup00 WB <BR>Opened /dev/sda RW <BR>/dev/sda: block size is 4096 bytes <BR>/dev/sda: No label detected
 <BR>Opened /dev/hda1 RW <BR>/dev/hda1: block size is 1024 bytes <BR>/dev/hda1: No label detected <BR>Opened /dev/hda2 RW <BR>/dev/hda2: block size is 4096 bytes <BR>/dev/hda2: No label detected <BR>Opened /dev/hda3 RW <BR>/dev/hda3: block size is 4096 bytes <BR>/dev/hda3: No label detected <BR>Opened /dev/hda5 RW <BR>/dev/hda5: block size is 512 bytes <BR>/dev/hda5: lvm2 label detected <BR>lvmcache: /dev/hda5 now orphaned <BR>lvmcache: /dev/hda5 now in VG VolGroup00 <BR>Opened /dev/hdb RW <BR>/dev/hdb: block size is 4096 bytes <BR>/dev/hdb: lvm2 label detected <BR>lvmcache: /dev/hdb now orphaned <BR>lvmcache: /dev/hdb now in VG VolGroup00 <BR>/dev/hda5: lvm2 label detected <BR>/dev/hdb: lvm2 label detected <BR>/dev/hda5: lvm2 label detected <BR>/dev/hdb: lvm2 label detected <BR>Read VolGroup00 metadata (11) from /dev/hda5 at 18944 size 720 <BR>/dev/hda5: lvm2 label detected <BR>/dev/hdb: lvm2 label detected <BR>Read VolGroup00 metadata (11) from /dev/hdb at 16896 size 720
 <BR>One or more specified logical volume(s) not found. <BR>Unlocking /var/lock/lvm/V_VolGroup00 <BR>Closed /dev/sda <BR>Closed /dev/hda1 <BR>Closed /dev/hda2 <BR>Closed /dev/hda3 <BR>Closed /dev/hda5 <BR>Closed /dev/hdb <BR>[root[at]mythserver ~]# lvscan -vvv <BR>Processing: lvscan -vvv <BR>O_DIRECT will be used <BR>Setting global/locking_type to 1 <BR>Setting global/locking_dir to /var/lock/lvm <BR>File-based locking enabled. <BR>Finding all logical volumes <BR>Opened /dev/sda RO <BR>/dev/sda: block size is 4096 bytes <BR>/dev/sda: No label detected <BR>Closed /dev/sda <BR>Opened /dev/hda1 RO <BR>/dev/hda1: block size is 1024 bytes <BR>/dev/hda1: No label detected <BR>Closed /dev/hda1 <BR>Opened /dev/hda2 RO <BR>/dev/hda2: block size is 4096 bytes <BR>/dev/hda2: No label detected <BR>Closed /dev/hda2 <BR>Opened /dev/hda3 RO <BR>/dev/hda3: block size is 4096 bytes <BR>/dev/hda3: No label detected <BR>Closed /dev/hda3 <BR>Opened /dev/hda5 RO <BR>/dev/hda5: block size is 512
 bytes <BR>/dev/hda5: lvm2 label detected <BR>Closed /dev/hda5 <BR>lvmcache: /dev/hda5 now orphaned <BR>Opened /dev/hda5 RO <BR>/dev/hda5: block size is 512 bytes <BR>Closed /dev/hda5 <BR>lvmcache: /dev/hda5 now in VG VolGroup00 <BR>Opened /dev/hdb RO <BR>/dev/hdb: block size is 4096 bytes <BR>/dev/hdb: lvm2 label detected <BR>Closed /dev/hdb <BR>lvmcache: /dev/hdb now orphaned <BR>Opened /dev/hdb RO <BR>/dev/hdb: block size is 4096 bytes <BR>Closed /dev/hdb <BR>lvmcache: /dev/hdb now in VG VolGroup00 <BR>Locking /var/lock/lvm/V_VolGroup00 RB <BR>Opened /dev/hda5 RO <BR>/dev/hda5: block size is 512 bytes <BR>/dev/hda5: lvm2 label detected <BR>Opened /dev/hdb RO <BR>/dev/hdb: block size is 4096 bytes <BR>/dev/hdb: lvm2 label detected <BR>/dev/hda5: lvm2 label detected <BR>/dev/hdb: lvm2 label detected <BR>Read VolGroup00 metadata (11) from /dev/hda5 at 18944 size 720 <BR>/dev/hda5: lvm2 label detected <BR>/dev/hdb: lvm2 label detected <BR>Read VolGroup00 metadata (11) from
 /dev/hdb at 16896 size 720 <BR>Unlocking /var/lock/lvm/V_VolGroup00 <BR>Closed /dev/hda5 <BR>Closed /dev/hdb <BR>[root[at]mythserver ~]# lvdisplay -vvv <BR>Processing: lvdisplay -vvv <BR>O_DIRECT will be used <BR>Setting global/locking_type to 1 <BR>Setting global/locking_dir to /var/lock/lvm <BR>File-based locking enabled. <BR>Finding all logical volumes <BR>Opened /dev/sda RO <BR>/dev/sda: block size is 4096 bytes <BR>/dev/sda: No label detected <BR>Closed /dev/sda <BR>Opened /dev/hda1 RO <BR>/dev/hda1: block size is 1024 bytes <BR>/dev/hda1: No label detected <BR>Closed /dev/hda1 <BR>Opened /dev/hda2 RO <BR>/dev/hda2: block size is 4096 bytes <BR>/dev/hda2: No label detected <BR>Closed /dev/hda2 <BR>Opened /dev/hda3 RO <BR>/dev/hda3: block size is 4096 bytes <BR>/dev/hda3: No label detected <BR>Closed /dev/hda3 <BR>Opened /dev/hda5 RO <BR>/dev/hda5: block size is 512 bytes <BR>/dev/hda5: lvm2 label detected <BR>Closed /dev/hda5 <BR>lvmcache: /dev/hda5 now orphaned
 <BR>Opened /dev/hda5 RO <BR>/dev/hda5: block size is 512 bytes <BR>Closed /dev/hda5 <BR>lvmcache: /dev/hda5 now in VG VolGroup00 <BR>Opened /dev/hdb RO <BR>/dev/hdb: block size is 4096 bytes <BR>/dev/hdb: lvm2 label detected <BR>Closed /dev/hdb <BR>lvmcache: /dev/hdb now orphaned <BR>Opened /dev/hdb RO <BR>/dev/hdb: block size is 4096 bytes <BR>Closed /dev/hdb <BR>lvmcache: /dev/hdb now in VG VolGroup00 <BR>Locking /var/lock/lvm/V_VolGroup00 RB <BR>Opened /dev/hda5 RO <BR>/dev/hda5: block size is 512 bytes <BR>/dev/hda5: lvm2 label detected <BR>Opened /dev/hdb RO <BR>/dev/hdb: block size is 4096 bytes <BR>/dev/hdb: lvm2 label detected <BR>/dev/hda5: lvm2 label detected <BR>/dev/hdb: lvm2 label detected <BR>Read VolGroup00 metadata (11) from /dev/hda5 at 18944 size 720 <BR>/dev/hda5: lvm2 label detected <BR>/dev/hdb: lvm2 label detected <BR>Read VolGroup00 metadata (11) from /dev/hdb at 16896 size 720 <BR>Unlocking /var/lock/lvm/V_VolGroup00 <BR>Closed /dev/hda5 <BR>Closed
 /dev/hdb<o:p></o:p></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: black; FONT-FAMILY: Verdana"><o:p> </o:p></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: black; FONT-FAMILY: Verdana"><o:p> </o:p></SPAN></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt">P.S. A full history of my posts on the MythTV mailing list can be viewed here:</DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><A href="http://www.gossamer-threads.com/lists/mythtv/users/218118">http://www.gossamer-threads.com/lists/mythtv/users/218118</A></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p> </o:p></DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt">Thank you, again. :-)</DIV>  <DIV class=MsoNormal style="MARGIN: 0in 0in 0pt">-Tom-<o:p></o:p></DIV><p>
                <hr size=1><a href="http://us.rd.yahoo.com/evt=43256/*http://advision.webevents.yahoo.com/mailbeta"> All-new Yahoo! Mail </a>- Fire up a more powerful email and get things done faster.