Skip to contentSkip to conversation

reiserfsck with LVM read-only snapshot

DISCUSSION Roger Lucas 1 participant 1 message Nov 10, 2006 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Thanks - I'll go digging :-)

Quoted 32 lines

-----Original Message-----
From: David Masover [mailto:[email protected]]
Sent: 10 November 2006 17:45
To: Roger Lucas
Cc: [email protected]
Subject: Re: reiserfsck with LVM read-only snapshot

Quoted 1 line · Roger Lucas

Hmmm. I'm not sure about dm_snapshot having not used it before and LVM seems to work pretty well

(at least as far as its

Quoted 1 line

capabilities allow). I'm open to all suggestions, however.

I'm not sure exactly where to point you to, though. The scary thing about dm_snapshot is that there's so little documentation.

No, wait, looks like there is. Check a copy of the kernel source:

Documentation/device-mapper/snapshot.txt

You should be able to get it to work, even on top of LVM. But, if you're only using LVM for snapshots, you might consider using device-mapper directly instead.

Try it out on some loop devices first to get an idea of how it works. You know, little 10 meg files with an ext2 fs, set up with losetup (not mount -o loop), then you can play with dmsetup. As far as I know, any device-mapper device can be created from any block device, period -- dmraid works by creating dm_linear devices to represent the partitions of, say, a dm_stripe device. No performance hit that I can tell.

If you need more help with that, let me know.