Hello,

We use LVM snapshots a lot during development in order to start the
automatic process of building a Xen guest image from just after the
basic OS install (CentOS, but doesn't matter for this level).

So in order to create an instance, the process include a command like:

# lvcreate -s xen02/orig -n $instance_name -L 2G

Now, I'd like to be able to disconnect the snapshot after the setup is
done so it'll become a "stand-alone" copy of the original.

According to the lvconvert manual page:

"lvconvert will change a linear logical volume to a mirror logical
volume or to a snapshot of linear volume and vice versa."

The part I'm hanging onto is "vice versa", which I interpret as
including "convert a snapshot into a regular logical volume".

But the results I get are:
# lvconvert -m0 xen02/instance
  Can't convert snapshot logical volume "instance"

Do I mis-interpret this? Is there another way to achieve this short of
shutting down the Xen guest and "manually" DD'ing the entire logical
volume snapshot into a regular LV?

Thanks,

--Amos

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to