FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

LinkBack Thread Tools
Old 03-10-2010, 11:37 AM
Mikhail Klepachevskyy
Default Shared snapshots test


I tried to test multisnapshots but unfortunately got some errors.
Here is what I did:

1) Build vanilla linux-2.6.33 kernel using Ubuntu Desktop 9.10
config-2.6.31-19-generic config file with
lines added and with patches from http://people.redhat.com/mpatocka/patches/kernel/new-snapshots/r16/

2) reboot with new kernel

3) # modprobe dm-store-mikulas

# modprobe dm-multisnapshot

# pvcreate /dev/sdb

# vgcreate vg1 /dev/sdb

# lvcreate --size=500M --name=lv1 vg1

# lvcreate --size=500M --name=lv2 vg1

# dd if=/dev/zero of=/dev/mapper/vg1-lv2 bs=4096 count=1

# echo 0 `blockdev --getsize /dev/mapper/vg1-lv1` multisnapshot
/dev/mapper/vg1-lv1 /dev/mapper/vg1-lv2 16 0 mikulas 0
| dmsetup create ms

# dmsetup message /dev/mapper/ms 0 create

# echo 0 `blockdev --getsize /dev/mapper/vg1-lv1` multisnap-snap
/dev/mapper/vg1-lv1 0 | dmsetup create ms0

At this point I got the next error:
device-mapper: reload ioctl failed: No such file or directory
Command failed

And these lines appeared in dmesg:
[ 6876.506623] device-mapper: table: 252:3: multisnap-snap: Snapshot with this id doesn't exist
[ 6876.506629] device-mapper: ioctl: error adding target to table

Could you check all the steps I performed right and what could cause
those error messages?

Best wishes,
Mikhail Klepachevskyy

dm-devel mailing list

Thread Tools

All times are GMT. The time now is 07:37 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org