Linux: "Found duplicate PV XXXXYYYYY: user /dev/sdb1 not /dev/sda1"

8,021

Have you considered trying pvchange -u on the new physical volume to give it a new UUID?

Share:
8,021
7783
Author by

7783

Alex Black's blog Alex Black on LinkedIn

Updated on September 17, 2022

Comments

  • 7783
    7783 over 1 year

    I'm trying to resize my virtual hard disk, so I've cloned it, and right now I have two disks in my virtual machine.

    I'm trying now to boot off the old virtual disk and then resize the new hard disk's partitions, but when I do pvresize complains that there duplicate physical volumes (PV) with the same ID (presumably because I cloned my disk).

    What do I do?

    Can i just change the ID of one of the physical volumes?

  • 7783
    7783 almost 15 years
    I'm booting off the old volume to make changes to the new volume (unmounted)
  • Steve Townsend
    Steve Townsend almost 15 years
    Boot off a live CD instead. Or make the changes in single-user mode, if you can. LVM doesn't cope with having duplicate PV UUIDs.
  • 7783
    7783 almost 15 years
    which live cd would you recommend? are you sure its not simpler just to change the pv id?
  • 7783
    7783 almost 15 years
    Thanks for the suggestion, I wasn't aware of pvchange. I have since scrapped the whole thing and re-installed Ubuntu on a big virtual hard disk.