Alle 04:34, mercoledì 25 febbraio 2004, Chris Watt ha scritto:
> At 01:16 AM 25/02/2004 +0000, you wrote:
> >I know this page details how to merge a cow and how to create a cow, I
> >didn't see anything stating how to mount a cow outside of uml, I was
> >wondering if this was possible? If so please tell me how.
> You can also mount the COW device in UML and export it with NFS, or you can
> export the raw device with the network block device server (although if I
> recall correctly this will wreak havoc on any existing filesystem on the
> device).
This is, sadly, the only way to go - another way to use a COW file would be
useful, but for now there is no one.
One *possible* workaround could maybe be to replace the COW files with LVM
snapshot feature; however making it work properly could require a lot of
work. Maybe it's just that I should have slept more last night :-)
It is possible to use LVM inside UML, and you can loopmount the backing files
and create a LVM volume on them on the host: when you decide to make a
snapshot of one LVM logical volume the old datas are not changed and the
changes accumulate on other space. So you would use the same space If you
think of the backing file as the "old datas" and of the COW as the "other
space", the situation is the same. However I don't know if you can create
more snapshots from the same volume in the same situation, and the datas of
one snapshot and of the original volume could be split between the different
ubd devices. However, if you feel brave and expert with LVM, you could think
to this.
--
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
|