Skip to contentSkip to conversation

read-only media in a LVM?

linux-lvm Ami Fischman 2 participants 3 messages May 27, 2002 – May 28, 2002

lore
Share & tools
lore
#0 lore raw

Hi there,
I am wondering whether it is possible to have a read-only fs (CDROM, image, etc) as part of an LVM-managed volume. I see references to COW (copy-on-write, I'm hoping :)) in the kernel drivers/md/ files, but it's not at all clear to me whether or not the current drivers can be used to implement a "translucent" or "inheriting" file system (one where a base fs is given, on r-o media, and changes to it get recorded on another device, presumabely a r-w fs). Please let me know whether this is currently possible, being planned for the future, or if I'm making no sense above & you want me to clarify :). For a not-quite-mature example of what I'm talking about, see translucency.sf.net.

Thanks,

Signature · 3 lines
  Ami Fischman, Ph.D.
  [email protected]
  http://www.bpnetworks.com/
#1 lore raw
Quoted 11 lines · Ami Fischman

Hi there,
I am wondering whether it is possible to have a read-only fs (CDROM, image, etc) as part of an LVM-managed volume. I see references to COW (copy-on-write, I'm hoping :)) in the kernel drivers/md/ files, but it's not at all clear to me whether or not the current drivers can be used to implement a "translucent" or "inheriting" file system (one where a base fs is given, on r-o media, and changes to it get recorded on another device, presumabely a r-w fs). Please let me know whether this is currently possible, being planned for the future, or if I'm making no sense above & you want me to clarify :). For a not-quite-mature example of what I'm talking about, see translucency.sf.net.

LVM2 already contains writeable snapshots, and we are currently working on the other thing that you will need which is the ability to use disks as PVs without having any LVM metadata written to them. Check back at the end of June, we may have done it by then.

- Joe

#2 lore raw
In reply to Ami Fischman
Quoted 11 lines · Ami Fischman

Hi there,
I am wondering whether it is possible to have a read-only fs (CDROM, image, etc) as part of an LVM-managed volume. I see references to COW (copy-on-write, I'm hoping :)) in the kernel drivers/md/ files, but it's not at all clear to me whether or not the current drivers can be used to implement a "translucent" or "inheriting" file system (one where a base fs is given, on r-o media, and changes to it get recorded on another device, presumabely a r-w fs). Please let me know whether this is currently possible, being planned for the future, or if I'm making no sense above & you want me to clarify :). For a not-quite-mature example of what I'm talking about, see translucency.sf.net.

In fact you can do this now if you use just device-mapper/dmsetup :) It's just the LVM2 tools that don't support it yet.

- Joe