All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Teigland <teigland@redhat.com>
To: lvm-devel@redhat.com
Subject: duplicate pv names
Date: Tue, 2 Apr 2013 17:24:08 -0400	[thread overview]
Message-ID: <20130402212408.GA1923@redhat.com> (raw)

My current patch set it having a problem with the test vgimportclone.sh,
which has me questioning the desired pvs output with duplicate pv names.

# dd if=/dev/sdc2 of=/dev/sdc3 bs=256K count=1

# pvs
  Found duplicate PV mPJxALsM0WGwdEZfoE7ewO8inDs1EhyG: using /dev/sdc3 not /dev/sdc2
  PV         VG           Fmt  Attr PSize   PFree  
  /dev/sdc1  vgu          lvm2 a--   32.00g  23.00g
  /dev/sdc3  vgv          lvm2 a--   16.00m  16.00m
  /dev/sdc4  vgv          lvm2 a--   16.00m  16.00m

Do we want to omit /dev/sdc2 from this list?  (Suggest no.)

# pvs -a
  Found duplicate PV mPJxALsM0WGwdEZfoE7ewO8inDs1EhyG: using /dev/sdc3 not /dev/sdc2
  PV                     VG           Fmt  Attr PSize   PFree  
  /dev/sdc1              vgu          lvm2 a--   32.00g  23.00g
  /dev/sdc3              vgv          lvm2 a--   16.00m  16.00m
  /dev/sdc3              vgv          lvm2 a--   16.00m  16.00m
  /dev/sdc4              vgv          lvm2 a--   16.00m  16.00m

Do we want /dev/sdc3 to appear twice, or one of them to be /dev/sdc2, or
omit one like above?  (Suggest both sdc2 and sdc3 appear.)

# pvs /dev/sdc2
  Found duplicate PV mPJxALsM0WGwdEZfoE7ewO8inDs1EhyG: using /dev/sdc3 not /dev/sdc2
  PV         VG   Fmt  Attr PSize  PFree 
  /dev/sdc3  vgv  lvm2 a--  16.00m 16.00m

# pvs /dev/sdc3
  Found duplicate PV mPJxALsM0WGwdEZfoE7ewO8inDs1EhyG: using /dev/sdc2 not /dev/sdc3
  PV         VG   Fmt  Attr PSize  PFree 
  /dev/sdc2  vgv  lvm2 a--  16.00m 16.00m

It seems strange that we use the duplicate that was *not* specified.
Is that what we want?  (Suggest it be reversed.)



             reply	other threads:[~2013-04-02 21:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-02 21:24 David Teigland [this message]
2013-04-03  9:32 ` duplicate pv names Petr Rockai
2013-04-03 15:22   ` David Teigland

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=20130402212408.GA1923@redhat.com \
    --to=teigland@redhat.com \
    --cc=lvm-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.