From: Phillip Susi <psusi@cfl.rr.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Cc: KiKouN <kikoun@kikoun.org>
Subject: Re: [linux-lvm] help to recovering my home volume
Date: Mon, 5 Apr 2010 11:45:47 -0400 [thread overview]
Message-ID: <4BBA05AB.7050302@cfl.rr.com> (raw)
In-Reply-To: <1270478709.31665.99.camel@localhost>
On 4/5/2010 10:45 AM, KiKouN wrote:
> I think that size_of_home_part1 is 11008*8192 but I want to know how to
> calculate start_sector_of_home_LV. How to calculate this value ?
It looks like your home lv is split into two segments, one that is 3 GB
long and at the start of the pv, and another segment that is 43 GB long
and elsewhere on the disk. Did you create the home lv first only 3 GB
in size, then extend it later?
The second segment starts at extent 0, which is at sector 384, and is
768 4 MB segments long, or 768 x 4096 x 2 = 6291456 sectors. The first
segment starts at extent 5376, which is at sector 5376 x 4096 x 2 + 384
= 44040576 and is 11008 extents or 90177536 sectors long.
These are all relative to the physical volume, which looks like it was
in /dev/sda7. If you overwrite the partition table then you will need
to figure out where that partition started.
> In the lvm backup file, I don't know what is the value "pe_start" in pv0
> section. What is this value ?
pe_start is the sector where the first physical extent is.
prev parent reply other threads:[~2010-04-05 15:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-05 14:45 [linux-lvm] help to recovering my home volume KiKouN
2010-04-05 15:45 ` Phillip Susi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BBA05AB.7050302@cfl.rr.com \
--to=psusi@cfl.rr.com \
--cc=kikoun@kikoun.org \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).