Bug 1470562 - [RFE] Please provide a way to clone thin volumes
Summary: [RFE] Please provide a way to clone thin volumes
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: LVM and device-mapper
Classification: Community
Component: lvm2
Version: unspecified
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
: ---
Assignee: LVM and device-mapper development team
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-13 08:24 UTC by Uli Martens
Modified: 2021-11-22 19:26 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-11-22 19:26:01 UTC
Embargoed:
rule-engine: lvm-technical-solution?
rule-engine: lvm-test-coverage?


Attachments (Terms of Use)

Description Uli Martens 2017-07-13 08:24:34 UTC
Description of problem:
Sometimes, I want to clone thin logical volumes, to have two thin logical volumes be independent and not being able to merge them by accident.

For non-thin logical volumes, there is already an old open wishlist bug at https://bugzilla.redhat.com/show_bug.cgi?id=638188

For thin lvs, this can be done by the following commands:

  lvcreate -n vm2  --snapshot /dev/vg/vm1
  lvcreate -n vm1a --snapshot /dev/vg/vm1
  lvremove /dev/vg/vm1 
  lvrename /dev/vg/vm1a vm1 
  lvchange -kn /dev/vg/vm1
  lvchange -kn /dev/vg/vm2

This long list of commands is probably way to error-prone to be practical, when the only effective difference to a plain lvcreate --snapshot is the missing origin link.

Providing a shortcut like the command below to that should not be hard to implement:

  lvcreate -n vm2 --clone /dev/vg/vm1

thanks,
Uli

Comment 1 Jonathan Earl Brassow 2021-11-22 19:26:01 UTC
Closing stale bug.

Unable to determine use beyond preventing user error.


Note You need to log in before you can comment on or make changes to this bug.