[linux-lvm] COW store
Stuart D Gathman
stuart at bmsi.com
Mon Jul 19 13:22:30 UTC 2010
On 07/19/2010 07:14 AM, andiket a wrote:
> Is it possible to specify a different device or to be specific a
> different VG than original VG to create a cow store for snapshot.
> If I have a an LV in VG1 then I don't snapshot to create cow store
> (snapshot LV) on same VG but to use VG2.
Short answer: no
Long answer: support for this would defeat the purpose of volume
groups. VGs have independent metadata so that you can remove them
independently, move between system, and so on. If a misguided soul were
to implement your feature, then the two volume groups would have to be
"locked together" so that removing one or the other would invalidate the
snapshot. For similar reasons, you cannot hardlink files between unix
If you are using volume groups for the naming only, try using a
separator in your LV names. (LVM lawyers - what are legal chars to
use?) For instance, I know '_' is safe, so for example instead of
vgabc/lv1 and vgdef/lv2, where you are willing to "entangle" vgabc and
vgdef because they are always online together, just make a single vgroot and
use vgroot/abc_lv1 vgroot/def_lv2.
BTW, A feature that would make more sense would be hierarchical
namespace for LVs within a VG, i.e. subdirs within the /dev/vg*
directory. Very low priority, and tricky, but would be handy for naming
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the linux-lvm