[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

FW: [linux-lvm] Help with LVM reconstruction







Hi,
 
Problem is that I don't  - the card will only refer to it in 2gb - but it could be actually 2tb as in 2 x 1024 x 1024 x 1024 x1024 bytes.
 
I can extract this:
 
̸¶ÿ LVM2 x[5A%r0N*>           ð     
      I      ¬Zí¾                                                                                                                                                                                                                                                                                                                                                                                                                                                                    2terabytes {
id = "ApBoL0-71Q4-e0yC-JyTI-cORC-8Yd1-Wgsf3M"
seqno = 1
status = ["RESIZEABLE", "READ", "WRITE"]
extent_size = 8192
max_lv = 256
max_pv = 256
physical_volumes {
pv0 {
id = "QADZl1-asMf-PyLf-EIw1-qLkv-ZbFI-2goQUD"
device = "/dev/sdb1"
status = ["ALLOCATABLE"]
pe_start = 384
pe_count = 524286
}
}
}
# Generated by LVM2: Mon Apr 30 18:54:48 2007
contents = "Text Format Volume Group"
version = 1
description = ""
creation_host = "r" # Linux r 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686
creation_time = 1177955688 # Mon Apr 30 18:54:48 2007
                                                                                                                                                                                                                                                                                                                                                                                                                                                          2terabytes {
id = "ApBoL0-71Q4-e0yC-JyTI-cORC-8Yd1-Wgsf3M"
seqno = 2
status = ["RESIZEABLE", "READ", "WRITE"]
extent_size = 8192
max_lv = 256
max_pv = 256
physical_volumes {
pv0 {
id = "QADZl1-asMf-PyLf-EIw1-qLkv-ZbFI-2goQUD"
device = "/dev/sdb1"
status = ["ALLOCATABLE"]
pe_start = 384
pe_count = 524286
}
pv1 {
id = "lT0VrQ-uAur-IlZB-htso-Ezqf-nq95-YykdbX"
device = "/dev/sdc1"
status = ["ALLOCATABLE"]
pe_start = 384
pe_count = 12225
}
}
}
# Generated by LVM2: Mon Apr 30 18:55:06 2007
contents = "Text Format Volume Group"
version = 1
description = ""
creation_host = "r" # Linux r 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686
creation_time = 1177955706 # Mon Apr 30 18:55:06 2007
                                                                                                                                                                                                                                                                                                                    2terabytes {
id = "ApBoL0-71Q4-e0yC-JyTI-cORC-8Yd1-Wgsf3M"
seqno = 3
status = ["RESIZEABLE", "READ", "WRITE"]
extent_size = 8192
max_lv = 256
max_pv = 256
physical_volumes {
pv0 {
id = "QADZl1-asMf-PyLf-EIw1-qLkv-ZbFI-2goQUD"
device = "/dev/sdb1"
status = ["ALLOCATABLE"]
pe_start = 384
pe_count = 524286
}
pv1 {
id = "lT0VrQ-uAur-IlZB-htso-Ezqf-nq95-YykdbX"
device = "/dev/sdc1"
status = ["ALLOCATABLE"]
pe_start = 384
pe_count = 12225
}
}
logical_volumes {
2TBData {
id = "Kki2Ar-91IF-IueI-GN62-jD6o-Yl0V-hq5Y3A"
status = ["READ", "WRITE", "VISIBLE"]
segment_count = 2
segment1 {
start_extent = 0
extent_count = 524286
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv0", 0
]
}
segment2 {
start_extent = 524286
extent_count = 12225
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv1", 0
]
}
}
}
}
# Generated by LVM2: Mon Apr 30 18:57:56 2007
contents = "Text Format Volume Group"
version = 1
description = ""
creation_host = "r" # Linux r2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686
creation_time = 1177955876 # Mon Apr 30 18:57:56 2007
 

What should i expect to find on the second PV? (50gb) - there is only 800gb in the total volume - so I wouldn't expect to find any data on it, but should there be any "header information" at the start of the drive?
When i seek to the 2tb byte in the virtual image file - its blank -  no evidence of any data - is this normal?

Robin


> Date: Sun, 5 Oct 2008 21:58:11 +0200
> From: marki marki-online net
> To: linux-lvm redhat com
> Subject: Re: [linux-lvm] Help with LVM reconstruction
>
> Hi Robin,
>
> Sunday, October 5, 2008, 21:09:56, Robin Thompson wrote:
>
> > In short the data is intact, and I have found a program called RAID
> > Reconstructor that will produce an image file of the RAID 5 arrays.
> > This will be hopefully 2.05tb file.
> >
> > I've read that I can use losetup and vgscan to create LVM from 2
> > image files. But i'm unsure of how to proceed with when i have only
> > one file which is combination of both.
> >
> > Anyone out there any advice or help?
>
> I have used losetup few times when doing tests with LVM. Your problem
> is that you have 2 PVs in 1 file (if I understand it correctly). If
> you know the exact size in bytes of the 2tb PV, then you can use dd to
> skip those 2tb and copy only the last 50gb into different file. Then
> truncate the original to 2tb (or copy first 2tb).
> Then you should have 2 files with your 2 PVs. But think of (or test)
> any headers that could be in the begining of those files (for example
> partition table and only inside partition there is PV).
> But generally, it should be possible to use those files as PVs.
>
> --
> bYE, Marki
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm redhat com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/



Win £3000 to spend on whatever you want at Uni! Click here to WIN!

Try Facebook in Windows Live Messenger! Try it Now!

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]