All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mikhail Klepachevskyy <mikhailk1@open-e.com>
To: dm-devel@redhat.com
Cc: Sergey Tashkinov <sergeyt1@open-e.com>
Subject: Shared snapshots test
Date: Wed, 10 Mar 2010 14:37:13 +0200	[thread overview]
Message-ID: <20100310123713.GA9341@mick> (raw)

Hello!

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
   CONFIG_DM_MULTISNAPSHOT=m
   CONFIG_DM_MULTISNAPSHOT_MIKULAS=m
   CONFIG_DM_MULTISNAPSHOT_DANIEL=m
   lines added and with patches from http://people.redhat.com/mpatocka/patches/kernel/new-snapshots/r16/
   imposed.

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

             reply	other threads:[~2010-03-10 12:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-10 12:37 Mikhail Klepachevskyy [this message]
2010-03-10 13:11 ` Shared snapshots test Mikulas Patocka
2010-03-10 13:34   ` Mikhail Klepachevskyy
2010-03-11  5:06     ` Busby

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100310123713.GA9341@mick \
    --to=mikhailk1@open-e.com \
    --cc=dm-devel@redhat.com \
    --cc=sergeyt1@open-e.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.