Skip to contentSkip to conversation

Writing on DM snapshots, and having no "mainstream" device (was: Re: Fw: [PATCH 1/7] Add dm-snapshot tutorial in Documentation)

DISCUSSION Blaisorblade 2 participants 4 messages Sep 23, 2005 – Sep 27, 2005 2 messages not in the archive User-mode Linux (UML)

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive
Quoted 4 lines · Alasdair G Kergon
Quoted 1 line · Andrew Morton

ack?

Applied some quick corrections to this.

I'm now looking at this, but you've done an error. You say that

You must create the snapshot-origin device before you can create snapshots.

This is totally wrong. The whole point of my document is to show that you can create snapshots *WITHOUT* having a snapshot-origin device (yes, I did it).

And while the LVM setup (with snapshot-origin) is often used and well known, the possibility to do without the snapshot-origin, and more important to write on the snapshots, is something which is not widely known at all.

In fact, UML community has been using an in-house version of the same feature, which cannot be mounted on the host due to missing code.

Quoted 2 lines

See also http://people.redhat.com/agk/talks/FOSDEM_2005/
(slides 15-27)

Not yet had time to look at those, sorry.

Quoted 2 lines

You might like to convert some of those diagrams to ASCII and include them?

If you feel like doing this, ok, but I'm not normally a documentor.

Quoted 1 line

Alasdair

Signature · 11 lines
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade

	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it
#3 lore raw
Quoted 1 line · Blaisorblade

you can create snapshots *WITHOUT* having a snapshot-origin device

Checking the code, yes you're correct.
When that LVM2 code was developed you'd get an oops but it's been fixed.

Alasdair

Signature · 12 lines
[email protected]


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#4 lore raw
Quoted 5 lines · Alasdair G Kergon
Quoted 1 line · Blaisorblade

you can create snapshots *WITHOUT* having a snapshot-origin device

Checking the code, yes you're correct.
When that LVM2 code was developed you'd get an oops but it's been fixed.

You also "fixed" my assertion that snapshot-origin "base device" (parameter n.1) must be a DM device. Should I readd it too?

IIRC I checked the code and it looks up the first param as a DM device, even because the list of snapshot is maintained for DM devices, not for general block devices.

Right?

Quoted 1 line

Alasdair

Signature · 9 lines
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade


		
___________________________________ 
Yahoo! Messenger: chiamate gratuite in tutto il mondo 
http://it.messenger.yahoo.com
#5 lore raw
Quoted 2 lines · Blaisorblade

You also "fixed" my assertion that snapshot-origin "base device" (parameter n.1) must be a DM device. Should I readd it too?

That parameter does not need to be a DM device if you are able to use the start of an existing block device (so you don't require any mappings).

Quoted 1 line

IIRC I checked the code and it looks up the first param as a DM device,

It should only use the device number for reference, not any dm structure.

Try it.

Alasdair

Signature · 11 lines
[email protected]


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel