LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-25-2013, 11:18 AM   #1
cowmoo32
Member
 
Registered: May 2007
Posts: 49

Rep: Reputation: 0
Unable to Change UUID of Cloned Drive - "Device Left Open"?


I have a drive that I cloned using clonezilla. I am trying to add the logical volume to a new LV group so I can rsync updated files, but first I need to change the UUID because right now it's showing up the same as the drive on /dev/sda1. I run
Code:
pvchange --uuid /dev/sdb2
and I get the following error message

Code:
  Found duplicate PV 7CBVufOmlK2OnUUVM0O7nAs8I3zvOFKg: using /dev/sda2 not /dev/sdb2
  Unable to find /dev/sdb2 in vg_4brxrc1
  0 physical volumes changed / 0 physical volumes not changed
  Internal error: Volume Group vg_4brxrc1 was not unlocked
  Device '/dev/sda2' has been left open.
  Device '/dev/sdb2' has been left open.
  Device '/dev/sdb2' has been left open.
  Device '/dev/sdb2' has been left open.
  Device '/dev/sda2' has been left open.
  Device '/dev/sdb2' has been left open.
  Device '/dev/sda2' has been left open.
  Device '/dev/sda2' has been left open.
  Device '/dev/sdb2' has been left open.
  Device '/dev/sda2' has been left open.
  You have a memory leak (not released memory pool):
   [0x188a140] format_instance
   [0x1c80c50] read_vg
  Internal error: Unreleased memory pool(s) found.
Some googling lead me to bug reports that say it has been fixed with the newest version of lvm2, which I have.
 
Old 07-25-2013, 02:03 PM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Have you rebooted. A memory leak is RAM, not HDD. Is there swap space available on the system? It's used as virtual ram when physical ram is not available.
 
Old 07-25-2013, 04:08 PM   #3
cowmoo32
Member
 
Registered: May 2007
Posts: 49

Original Poster
Rep: Reputation: 0
Yes, I have tried rebooting. There is plenty of swap and memory available. This is essentially a fresh install that I have cloned.
 
Old 07-26-2013, 01:56 AM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Did you force the UUID when you "cloned" the system? The UUID is partition specific and generated when you mkfs the filesystem. You might use blkid to check the UUID of each component device.

Code:
  Found duplicate PV 7CBVufOmlK2OnUUVM0O7nAs8I3zvOFKg: using /dev/sda2 not /dev/sdb2
  Unable to find /dev/sdb2 in vg_4brxrc1
Seems to be the bulk of the issue. Noticing how it's trying to use device names and not UUIDs. Not that I have any clue how to fix it.
 
Old 07-26-2013, 07:08 AM   #5
modonnell
LQ Newbie
 
Registered: Nov 2010
Posts: 8

Rep: Reputation: 3
You didn't say specifically what is was that you "cloned" (entire physical drive? partition? LV?) so when you say you're trying to "add the logical volume to a new LV group" I'm not sure if you wish to add a partition from a cloned physical drive, or a cloned copy of a partition now residing in another partition, etc, etc...

Anyway, have you tried vgimportclone?

SYNOPSIS
vgimportclone [-n|--basevgname VolumeGroupName] [-i|--import] PhysicalVolume [PhysicalVolume...]

DESCRIPTION
vgimportclone is used to import a duplicated VG (e.g. hardware snapshot). Duplicate VG(s) and PV(s) are not able to be used until they are made to coexist with the origin VG(s) and PV(s). vgimportclone renames the VG associated with the specified PV(s) and changes the associated VG and PV UUIDs.
 
Old 07-26-2013, 02:26 PM   #6
cowmoo32
Member
 
Registered: May 2007
Posts: 49

Original Poster
Rep: Reputation: 0
I cloned the entire drive, two partitions, a small ext4 boot partition and a larger LVM2 partition. I just booted to separate (third) drive and tried pvhcange again

Code:
# pvchange --uuid /dev/sdb2
  Volume group containing /dev/sdb2 has active logical volumes
  0 physical volumes changed / 1 physical volume not change
I'll try booting with both cloned drives in the machine and run vgimportclone and report back.

edit: It seems to have worked. I'll try to mount it to be sure
Code:
# vgimportclone  --basevgname vg_4brxrc1 /dev/sda2 /dev/sdb2
  WARNING: Activation disabled. No device-mapper interaction will be attempted.
  Found duplicate PV 7CBVufOmlK2OnUUVM0O7nAs8I3zvOFKg: using /tmp/snap.vC3D9qKh/vgimport0 not /tmp/snap.vC3D9qKh/vgimport1
  Unable to find /tmp/snap.vC3D9qKh/vgimport1 in vg_4brxrc1
  0 physical volumes changed / 0 physical volumes not changed
  Internal error: Volume Group vg_4brxrc1 was not unlocked
  Device '/tmp/snap.vC3D9qKh/vgimport0' has been left open.
  Device '/tmp/snap.vC3D9qKh/vgimport1' has been left open.
  You have a memory leak (not released memory pool):
   [0x19d7710] format_instance
   [0x1dcd710] read_vg
  Internal error: Unreleased memory pool(s) found.
  WARNING: Activation disabled. No device-mapper interaction will be attempted.
  Found duplicate PV 7CBVufOmlK2OnUUVM0O7nAs8I3zvOFKg: using /tmp/snap.vC3D9qKh/vgimport1 not /tmp/snap.vC3D9qKh/vgimport0
  Volume group "vg_4brxrc1" successfully changed
  Found duplicate PV 7CBVufOmlK2OnUUVM0O7nAs8I3zvOFKg: using /tmp/snap.vC3D9qKh/vgimport1 not /tmp/snap.vC3D9qKh/vgimport0
  Volume group "vg_hallen4brxrc1" successfully renamed to "vg_4brxrc11"
  Reading all physical volumes.  This may take a while...
  Found duplicate PV 7CBVufOmlK2OnUUVM0O7nAs8I3zvOFKg: using /dev/sdb2 not /dev/sda2
  Found volume group "vg_4brxrc11" using metadata type lvm2


edit2:
It worked, thanks for the help. I was able to mount /dev/vg_4brxrc11/lv_root and /dev/vg_4brxrc11/lv_home without any problems.

Last edited by cowmoo32; 07-26-2013 at 03:04 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can longer copy files to my empty USB pen drive on DSL - "no space left on device" misterfever Linux - Newbie 11 03-18-2009 03:42 PM
USB Printer "Unable to open device" Error nuro305 SUSE / openSUSE 3 06-05-2007 02:59 PM
USB Printer "Unable to open device" Error nuro305 SUSE / openSUSE 1 05-23-2007 02:57 PM
konsole problem: "Unable to open a suitable terminal device" Mistreated Linux - Software 2 11-15-2004 03:24 PM
"Unable to open USB device "usb://hp/LaserJet%201000": No such device" lordshipmayhem Mandriva 2 08-08-2004 04:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration