# LVM Help

**URL:** <https://forums.suse.com/t/lvm-help/29778>\
**Category:** SLES Configure-Administer\
**Created:** [May 10, 2017, 10:21pm UTC](https://forums.suse.com/t/lvm-help/29778 "2017-05-10T22:21:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![romz169](https://avatars.discourse-cdn.com/v4/letter/r/ebca7d/32.png) [@romz169](https://forums.suse.com/u/romz169)\
**Post date:** [May 10, 2017, 10:21pm UTC](https://forums.suse.com/t/lvm-help/29778/1 "2017-05-10T22:21:37Z")

</div>

I have a running system where I have a cloned drive and need to get data off it. This part I can do. where i run into problems is removing the cloned volume. here is what I do:

mount cloned volume.  
rescan-scsibus.sh -a  
vgimportclone /dev/sdc  
vgchange -ay sys1  
mount lv to restore point  
copy data  
lvremove the volumes  
vgchange an sys1 to take it off line  
pvremove /dev/sdc - this is where i have problems.

backuptesting:/ # pvremove -ff /dev/sdc -vv  
Setting activation/monitoring to 1  
Setting global/locking\_type to 1  
Setting global/wait\_for\_locks to 1  
File-based locking selected.  
Setting global/prioritise\_write\_locks to 1  
Setting global/locking\_dir to /run/lvm/lock  
Locking /run/lvm/lock/P\_orphans WB  
Setting response to OK  
Setting response to OK  
Setting id to 5bWrB5-AvEb-cx78-B8pw-WLeJ-tW3f-MNzDPa  
Setting format to lvm2  
Setting device to 2080  
Setting dev\_size to 23622320128  
Setting label\_sector to 1  
Setting size to 1044480  
Setting start to 4096  
Setting ignore to 0  
Setting id to abkzQb-e0gP-bOCw-bFlY-m6Cx-OPHB-uBadrE  
Setting vgid to IhBlfm-lVYZ-q2BK-V363-mXzY-feon-CiMUZE  
Setting vgname to sys  
Setting format to lvm2  
Setting device to 2064  
Setting dev\_size to 21474836480  
Setting label\_sector to 1  
Setting size to 1044480  
Setting start to 4096  
Setting ignore to 0  
Setting response to OK  
Setting response to OK  
Setting name to sys  
Setting metadata/format to lvm2  
Setting id to abkzQb-e0gP-bOCw-bFlY-m6Cx-OPHB-uBadrE  
Setting format to lvm2  
Setting device to 2064  
Setting dev\_size to 46135296  
Setting label\_sector to 1  
Setting size to 1044480  
Setting start to 4096  
Setting ignore to 0  
/dev/sdc: lvm2 label detected at sector 1  
Can’t open /dev/sdc exclusively - not removing. Mounted filesystem?  
Unlocking /run/lvm/lock/P\_orphans

it seems to be setting the id incorrectly the second time it does it and setting it to the active ID that should not be removed.

any assistance on how to do this correctly would be appreciated.

---

<div class="post-metadata">

**Author:** ![Automatic\_Reply](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@Automatic\_Reply](https://forums.suse.com/u/Automatic_Reply)\
**Post date:** [May 15, 2017, 7:30am UTC](https://forums.suse.com/t/lvm-help/29778/2 "2017-05-15T07:30:17Z")

</div>

romz169,

It appears that in the past few days you have not received a response to your  
posting. That concerns us, and has triggered this automated reply.

These forums are peer-to-peer, best effort, volunteer run and that if your issue  
is urgent or not getting a response, you might try one of the following options:

- Visit [http://www.suse.com/support](http://www.suse.com/support) and search the knowledgebase and/or check all  
the other support options available.
- Open a service request: [https://www.suse.com/support](https://www.suse.com/support)
- You could also try posting your message again. Make sure it is posted in the  
correct newsgroup. ([http://forums.suse.com](http://forums.suse.com))

Be sure to read the forum FAQ about what to expect in the way of responses:  
[http://forums.suse.com/faq.php](http://forums.suse.com/faq.php)

If this is a reply to a duplicate posting or otherwise posted in error, please  
ignore and accept our apologies and rest assured we will issue a stern reprimand  
to our posting bot…

Good luck!

Your SUSE Forums Team  
[http://forums.suse.com](http://forums.suse.com)
