linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: linux-lvm@redhat.com
Subject: [linux-lvm] Cannot activate LVs in VG xxx while PVs appear on duplicate devices.
Date: Sat, 09 Jun 2018 18:41:33 +0200	[thread overview]
Message-ID: <20180609164133.7EFA8240049@gemini.denx.de> (raw)

oHi,

...and sorry if this has been discussed before; I was not able to
find a searchable archive of this list, and google did not help
either...

After upgrading a system from Fedora 27 to Fedroa 28 it fails to boot
because it cannot find the root file system. The root file system is
in a logical volume; the respective physical volume is a mdadm RAID1
array. The reason for the failure is that the volume group has not
been activated, and trying to do so manually fails as well:

# cat /proc/mdstat
Personalities : [raid10] [raid1] [raid6] [raid5] [raid4]
md0 : active raid6 sdk[10] sdh[13] sdg[11] sdi[8] sdl[14] sdm[15] sde[12]
sdj[9]
      11720301024 blocks super 1.2 level 6, 16k chunk, algorithm 2 [8/8]
[UUUUUUUU]

md1 : active raid1 sda3[1] sdb3[0]
      484118656 blocks [2/2] [UU]

md2 : active raid1 sda1[1] sdb1[0]
      255936 blocks [2/2] [UU]

md3 : active raid10 sdd1[1] sdc1[0]
      234878976 blocks 512K chunks 2 far-copies [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

unused devices: <none>

# lvm vgchange -ay
  WARNING: PV ljJ72U-Nfie-xcXH-cObX-Sh2W-vDLZ-aR05lx on /dev/sda3 was already
found on /dev/md1.
  WARNING: PV ljJ72U-Nfie-xcXH-cObX-Sh2W-vDLZ-aR05lx on /dev/sdb3 was already
found on /dev/md1.
  WARNING: PV ljJ72U-Nfie-xcXH-cObX-Sh2W-vDLZ-aR05lx prefers device /dev/md1
because device size is correct.
  WARNING: PV ljJ72U-Nfie-xcXH-cObX-Sh2W-vDLZ-aR05lx prefers device /dev/md1
because device size is correct.
  Cannot activate LVs in VG atlas1 while PVs appear on duplicate devices.
  Cannot activate LVs in VG atlas1 while PVs appear on duplicate devices.
  Cannot activate LVs in VG atlas1 while PVs appear on duplicate devices.
  Cannot activate LVs in VG atlas1 while PVs appear on duplicate devices.
  0 logical volume(s) in volume group "atlas1" now active
  6 logical volume(s) in volume group "atlas0" now active


When booting the same system (and the same root file system) suing
the previous (Fedora 27) kernel and ramdisk, it works fine.

I wonder if this is a generic LVM issue or a Fedora specific
problem;  given that Fedora 27 has lvm2-2.02.175-1.fc27.x86_64
while Fedora 28 has lvm2-2.02.177-4.fc28.x86_64, which are
essentially the same upstream version, I tend to believe this is a
Fedora thing?

For more information see also [1]

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1589444


Any help how to fix/avoid this problem would be highly appreciated.


Thanks in advance.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Shakespeare's Law of Prototyping: (Hamlet III, iv, 156-160)
        O, throw away the worser part of it,
        And live the purer with the other half.

             reply	other threads:[~2018-06-09 16:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-09 16:41 Wolfgang Denk [this message]
2018-06-09 17:22 ` [linux-lvm] Cannot activate LVs in VG xxx while PVs appear on duplicate devices Xen

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=20180609164133.7EFA8240049@gemini.denx.de \
    --to=wd@denx.de \
    --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).