Thanks for the replies -- despite the mixed news on whether I have
hosed my data or not. I guess the lesson is to consult these
mailing lists before diving in and mucking things up.<br>
<br>
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 mistakenly created).
<br>
<br>
I read on this blog:<br>
<a rel="nofollow" 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/26/06, <b class="gmail_sendername">Indulis Bernsteins</b> <<a href="mailto:indulis.b@au1.ibm.com">indulis.b@au1.ibm.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>
<br><tt><font size="2">>>> Any ideas? Have I deleted all my
data?</font></tt>
<br>
<br><tt><font size="2">Argus... sory to say but yes I think you have trashed
your data.</font></tt>
<br>
<br><tt><font size="2">LVM was most likely intact after your FC5 upgrade.
When you ran the pvcreate and vgcreate commands you overwrote all
of the old Volume Group and Physical Volume info that was stored on your
disks. You *should* have run vgscan. You would probably have
found the volume groups, maybe under /dev/mapper/xxxxxx (I dont know as
I don't run FC this is where they appear under Ubuntu). Anyway, the
LVM howtos at <a href="http://www.tldp.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.tldp.org</a> are pretty detailed, and worth consulting
BEFORE you run any LVM "create" commands.</font></tt>
<br>
<br><tt><font size="2">Anyway, try the vgscan now, you should see some info
about what is there.</font></tt>
<br>
<br><tt><font size="2">Sorry to be the bearer of bad tidings...</font></tt>
<br></div><div><span class="sg"><tt><font size="2"><br>
</font></tt><font face="sans-serif" size="2"><br>
</font><font size="3">Indulis</font>
</span></div><br>_______________________________________________<br>mythtv-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br><br><br></blockquote>
</div><br>