Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] rw-snapshot from ro-device?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
_Razorblade_
n00b
n00b


Joined: 01 Jan 2004
Posts: 30

PostPosted: Mon Oct 25, 2010 7:00 pm    Post subject: [solved] rw-snapshot from ro-device? Reply with quote

I'd like to create a writable snapshot (with cow data on a ramdisk) from a read-only device (accessed as iscsi device).
Classical LVM snapshots are of no help here as the snapshot volume needs to be in the VG of the original data, but I only have read-only access to the volume, so I cannot change the metadata (add the ramdisk to the vg). Even I could, I wouldnt want to do this, as the original volume should be completely unaware that there is a snapshot.

It might be possible using dm-setup to manually create a snapshot, but in the very few examples that I have found this includes suspending the origin volume and moving the tables around which is not possible with ro-access either.

I'm not so worried about writes/data-changes to the origin volume while the snapshot is alive (which is is the primary reason for remapping access to the origin volume to a snapshot-aware volume, right?) and I also do not care about the data that changed during runtime on the snapshot (if I was, I wouldnt use a ramdisk, haha).

Any ideas how to do this?

I also thought about using a union fs, but I dont want heavy kernel-patching and out-of-tree modules...

Edit: I found a few good examples here:
http://linuxgazette.net/114/kapil.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum