[CentOS] LVM Snapshot Create Error

Mon Aug 1 14:13:12 UTC 2005
Kirk Bocek <t004 at kbocek.com>

Well thank you Peter. Thas was indeed the solution. A simple 'modprobe
dm-snapshot' and now I can create snapshots.

This falls into the category of 'LVM1 to LVM2 Transition Gotcha'. Do you
have any other 'gotchas' to share? I wonder why these modules aren't
loaded when either an LVM device is detected or a command requiring them
is run?

Kirk Bocek

Peter Kjellström wrote:
> On Saturday 30 July 2005 17.01, Kirk Bocek wrote:
> 
>>Just discovered that on CentOS 4.1 when you issue the command:
>>
>>	lvcreate -s -n temp -L2G /dev/vgname/lvname
>>
>>to create a snapshot, you get the error message:
>>
>>	snapshot: Required device-mapper target(s) not detected in your kernel
> 
> 
> I think you need to do:
> 
> modprobe dm-snapshot
> 
> but I haven't tested it myself but almost the same thing happened to me when I 
> tried to move a lv around (it then needs dm-mirror..)
> 
> good luck, 
>  Peter
> 
> 
>>I've checked and recheck my spelling and tried using the device created
>>under /dev/mapper. I've tried it on both x86_64 and on i386. Works as
>>expected under CentOS 3.5.
>>
>>Any ideas what is going on?
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos