I've been digging around a bit and I found that /etc/lvm/archive has some information that might be useful for restoring my LVM data.<br><br>I've attached the latest VGforMythTV_00008.vg data (before the versions for the new ones that I created).
<br><br>I read on this blog:<br><a href="http://codeworks.gnomedia.com/archives/2005/general/lvm_recovery/">http://codeworks.gnomedia.com/archives/2005/general/lvm_recovery/</a><br><br>that this information could be used to recreate my physical volumes using a command like this:
<br>[mythtv@localhost archive]# /usr/sbin/pvcreate -u J3hQY6-8yfK-pMPS-dGhN-WFig-ENnC-LSR2nn /dev/hdb1<br> Can't initialize physical volume "/dev/hdb1" of volume group "VGforMythTV" without -ff<br><br>
I am hesitant to use the "-ff" (force) command without knowing what the impact will be. Any advice?<br><br>Thanks,<br><br>-Argus<br><br>VGforMythTV_00008.vg<br>---------------------------------------<br><br># Generated by LVM2: Mon Apr 11 22:59:52 2005
<br><br>contents = "Text Format Volume Group"<br>version = 1<br><br>description = "Created *before* executing '/usr/sbin/lvextend --size +160G /dev/VGforMythTV/video'"<br><br>creation_host = "localhost.localdomain
" # Linux localhost.localdomain 2.6.10-1.737_FC3 #1 Mon Jan 10 13:50:10 EST 20<br>05 i686<br>creation_time = 1113274792 # Mon Apr 11 22:59:52 2005<br><br>VGforMythTV {<br> id = "YKYYOd-PcmN-lGub-gllT-6d0j-IyGp-BweNJY"
<br> seqno = 3<br> status = ["RESIZEABLE", "READ", "WRITE"]<br> extent_size = 131072 # 64 Megabytes<br> max_lv = 0<br> max_pv = 0<br><br> physical_volumes {
<br><br> pv0 {<br> id = "J3hQY6-8yfK-pMPS-dGhN-WFig-ENnC-LSR2nn"<br> device = "/dev/hdb" # Hint only<br><br> status = ["ALLOCATABLE"]
<br> pe_start = 384<br> pe_count = 3038 # 189.875 Gigabytes<br> }<br><br> pv1 {<br> id = "5DR2ds-AXzi-Om4M-Mg1R-KpRQ-swOr-JHQTUa"
<br> device = "/dev/hdc" # Hint only<br><br> status = ["ALLOCATABLE"]<br> pe_start = 384<br> pe_count = 2442 #
152.625 Gigabytes<br> }<br> }<br> logical_volumes {<br><br> video {<br> id = "gscBJa-pCAA-Yv25-kOHu-9U6z-K7iQ-1dpm42"<br> status = ["READ", "WRITE", "VISIBLE"]
<br> segment_count = 1<br><br> segment1 {<br> start_extent = 0<br> extent_count = 3024 # 189 Gigabytes<br><br>
type = "striped"<br> stripe_count = 1 # linear<br><br> stripes = [<br> "pv0", 0
<br> ]<br> }<br> }<br> }<br>}<br><br><br><div><span class="gmail_quote">On 6/23/06, <b class="gmail_sendername">Argus Array</b> <<a href="mailto:argusarray2@gmail.com">
argusarray2@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Terribly sorry for the double post to the mailing list, accidentally hit the google shortcut.
<br><br>I have been using LVM for several months to record video files for my PVR across a 200GB and 160GB disk (hdb and hdc).<br>
<br>Recently I decided to upgrade my FC3 install to FC5. After the install, my LVM mount does not come up. It appeared that all of the LVM information in /dev/ was gone; however, only the non-LVM drive (/dev/hda) should have been touched by the FC5 upgrade.
<br><br>This is my fstab entry:<br>/dev/VGforMythTV/video /var/media xfs defaults 1 1<br><br>This is what fdisk shows:<br>/dev/hdb1 1 24792 199141708+ 8e Linux LVM<br><br>
/dev/hdc1 1 19929 160079661 8e Linux LVM
<br><br>In my attempt to fix this, I think I may have totally fouled things up; I tried to create a new volume group with the same name and more PVs for the new drives, then combine them together into an PV with the old LV name. However, this still does not allow it to mount.
<br><br>Any ideas? Have I deleted all my data?<br><br>Thanks for any help,<br><br>Argus<br><br>I've pasted my history commands below.<br><br> 548 more /etc/fstab<br> 549 vgcreate VGforMythTV -s 64m /dev/hda1<br> 550 /usr/sbin/vgcreate VGforMythTV -s 64m /dev/hda1
<br> 551* <br> 552 /usr/sbin/pvcreate /dev/hdb1<br> 553 /usr/sbin/pvcreate /dev/hdc1<br> 554 /usr/sbin/vgcreate VGforMythTV /dev/hdb1 /dev/hdc1<br> 555 mount /dev/VGforMythTV /var/media<br> 556 mount /dev/VGforMythTV/video /var/media
<br> 557 mount /dev/VGforMythTV/media /var/media<br> 558 lvcreate --name video VGforMythTV<br> 559 /usr/sbin/lvcreate --name video VGforMythTV<br> 560 /usr/sbin/lvcreate --name video -l VGforMythTV<br> 561 /usr/sbin/lvcreate --name video -l ` VGforMythTV
<br> 562 /usr/sbin/lvcreate --name video -l 1 VGforMythTV<br> 563 mount /dev/VGforMythTV/media /var/media<br> 564 mount /dev/VGforMythTV/video /var/media<br> 565 mount -t xfs /dev/VGforMythTV/video /var/media<br>
566 mount /dev/VGforMythTV/video /var/media
<br> 567 /usr/sbin/lvcreate --name video -l 2 VGforMythTV<br> 568 ls<br> 569 /usr/sbin/pvdisplay <br> 570 /usr/sbin/lvmdiskscan <br> 571 mount /dev/VGforMythTV /var/media/<br> 572 mount /dev/VGforMythTV/video /var/media/
<br> 573 mount /dev/VGforMythTV/media /var/media/<br> 574 mount /dev/VGforMythTV/video /var/media/<br> 575 /sbin/fdisk /dev/hdb<br> 576 /sbin/fdisk /dev/hdc<br> 577 /usr/sbin/vgextend <br> 578 more /etc/fstab
<br>
579 /usr/sbin/vgextend VGforMythTV /dev/hdb1<br> 580 /usr/sbin/vgextend VGforMythTV /dev/hdb<br><br>
</div></blockquote></div><br>