linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: L A Walsh <lvm@tlinx.org>
To: linux-lvm@redhat.com
Subject: [linux-lvm] lvm question regarding start and placement of data
Date: Tue, 21 Jul 2020 17:23:47 -0700	[thread overview]
Message-ID: <CALOnQv5gib+tQTBzZBD9QDDNiZcuoybN3HoH_wQVD8rAdsMQKA@mail.gmail.com> (raw)

I have a file in the /etc/lvm/archive dir that seems to be the name of a vg.


I see:
Data {
    seqno = 1933
    format = "lvm2" # informational
    status = ["RESIZEABLE", "READ", "WRITE"]
    extent_size = 8192        # 4 Megabytes
    max_lv = 0
    max_pv = 0
    metadata_copies = 0

    physical_volumes {
        pv0 {
            device = "/dev/sdb1"    # Hint only
            status = ["ALLOCATABLE"]
            flags = []
            dev_size = 93755273216    # 43.6582 Terabytes
            pe_start = 2048
            pe_count = 11444735    # 43.6582 Terabytes
        }
    }

    logical_volumes {
        Home {
            allocation_policy = "contiguous"
            segment_count = 1
            segment1 {
                start_extent = 0
                extent_count = 393216    # 1.5 Terabytes
                type = "striped"
                stripe_count = 1    # linear
                stripes = [ "pv0", 0 ]
            }
        }
----
It appears that the start of the physical vol is at 2048 but not sure
what the units are --
Are those 2048 physical extents of size 8192 and is said to be
equivalent to 4MB?  So the 8192 is a number of 512 byte sectors
(even though they underlying disk is 4K with 512e)?

At the start of the physical volume at 2048 should I see the logical
volume 'Home' as it starts at extent '0'?

So shouldn't I see the start of the Home partition 8MB in from the
front?  Or is there something else before physical volumns?  Does
first logical volume start at pe_start?

I.e. I'm assuming I have something wrong, because I'm not seeing anything
looking like the beginning of a file system at that location...

Thanks....

             reply	other threads:[~2020-07-22  0:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-22  0:23 L A Walsh [this message]
2020-07-22  0:39 ` Alasdair G Kergon
2020-07-22  0:47   ` L A Walsh
2020-07-22  2:37     ` Alasdair G Kergon
2020-07-22  8:46       ` L A Walsh

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=CALOnQv5gib+tQTBzZBD9QDDNiZcuoybN3HoH_wQVD8rAdsMQKA@mail.gmail.com \
    --to=lvm@tlinx.org \
    --cc=linux-lvm@redhat.com \
    --subject='Re: [linux-lvm] lvm question regarding start and placement of data' \
    /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

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).