All of lore.kernel.org
 help / color / mirror / Atom feed
From: Erich Weiler <weiler@soe.ucsc.edu>
To: linux-lvm@redhat.com
Subject: [linux-lvm] How to 'copy' a volume?
Date: Thu, 03 Jan 2008 16:31:17 -0800	[thread overview]
Message-ID: <477D7E55.3050003@soe.ucsc.edu> (raw)

Greetings all-

I have a problem I'm trying to solve, was hoping someone would know how 
to get around it...

I have a 2TB volume group, and one 500GB volume in it.  There is a Xen 
VM in that volume group.  What I'd like to do is 'copy' the volume and 
name it something else so I can use it as a 'template' for other VMs.

I know that LVM has the 'snapshot' capability.  But this doesn't look 
like it's what I need, as I don't want my duplicate volume to have any 
affiliation with the original at all.  I actually want to duplicate VM 
to take up just as much space as the first and be completely independent 
of any changes on the first.  Is there a way of achieving this?  Could I 
maybe simply make sure the volume is unmounted and not in use, then copy 
the /dev/mapper/myvolume file to something else?  I bet it's more 
involved than that...  :)

Thanks in advance for any info!!

-erich

             reply	other threads:[~2008-01-04  0:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-04  0:31 Erich Weiler [this message]
2008-01-04  0:52 ` [linux-lvm] How to 'copy' a volume? Stuart D. Gathman
2008-01-04  8:16 ` David Robinson
2008-01-04 16:15   ` Erich Weiler
2008-01-04 16:30     ` Stuart D. Gathman
2008-01-04 18:42       ` Erich Weiler
2008-01-04 21:08         ` Stuart D. Gathman
2008-01-07 21:35           ` Erich Weiler
2008-01-09 16:39             ` Stuart D. Gathman

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=477D7E55.3050003@soe.ucsc.edu \
    --to=weiler@soe.ucsc.edu \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.