* Shared snapshots test
@ 2010-03-10 12:37 Mikhail Klepachevskyy
2010-03-10 13:11 ` Mikulas Patocka
0 siblings, 1 reply; 4+ messages in thread
From: Mikhail Klepachevskyy @ 2010-03-10 12:37 UTC (permalink / raw)
To: dm-devel; +Cc: Sergey Tashkinov
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Shared snapshots test
2010-03-10 12:37 Shared snapshots test Mikhail Klepachevskyy
@ 2010-03-10 13:11 ` Mikulas Patocka
2010-03-10 13:34 ` Mikhail Klepachevskyy
0 siblings, 1 reply; 4+ messages in thread
From: Mikulas Patocka @ 2010-03-10 13:11 UTC (permalink / raw)
To: Mikhail Klepachevskyy; +Cc: dm-devel, Sergey Tashkinov
Hi
You need to suspend and resume the origin device after create message and
before attaching the snapshot.
> 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
dmsetup suspend ms
dmsetup resume ms
> # 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
But rather, you could use userspace support for shared snapshots, it makes
the use much easier, you can use lvcreate, lvremove, lvresize commands:
for lvm-2.02.54:
http://people.redhat.com/mpatocka/patches/userspace/new-snapshots/lvm-2.02.54/
for lvm-2.02.60:
http://people.redhat.com/mpatocka/patches/userspace/new-snapshots/lvm-2.02.60/
for lvm-2.02.62:
http://people.redhat.com/msnitzer/patches/multisnap/lvm2/LVM2-2.02.62/
Mikulas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Shared snapshots test
2010-03-10 13:11 ` Mikulas Patocka
@ 2010-03-10 13:34 ` Mikhail Klepachevskyy
2010-03-11 5:06 ` Busby
0 siblings, 1 reply; 4+ messages in thread
From: Mikhail Klepachevskyy @ 2010-03-10 13:34 UTC (permalink / raw)
To: dm-devel
Hello!
Big thanks! It helped!
On Wed, Mar 10, 2010 at 08:11:11AM -0500, Mikulas Patocka wrote:
>
> You need to suspend and resume the origin device after create message and
> before attaching the snapshot.
>
> > I tried to test multisnapshots but unfortunately got some errors.
> > Here is what I did:
> >
<skip>
> > # 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
>
> dmsetup suspend ms
> dmsetup resume ms
>
> > # 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?
> >
>
> But rather, you could use userspace support for shared snapshots, it makes
> the use much easier, you can use lvcreate, lvremove, lvresize commands:
>
> for lvm-2.02.54:
> http://people.redhat.com/mpatocka/patches/userspace/new-snapshots/lvm-2.02.54/
> for lvm-2.02.60:
> http://people.redhat.com/mpatocka/patches/userspace/new-snapshots/lvm-2.02.60/
> for lvm-2.02.62:
> http://people.redhat.com/msnitzer/patches/multisnap/lvm2/LVM2-2.02.62/
--
Best wishes,
Mikhail Klepachevskyy
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Shared snapshots test
2010-03-10 13:34 ` Mikhail Klepachevskyy
@ 2010-03-11 5:06 ` Busby
0 siblings, 0 replies; 4+ messages in thread
From: Busby @ 2010-03-11 5:06 UTC (permalink / raw)
To: device-mapper development
[-- Attachment #1.1: Type: text/plain, Size: 2239 bytes --]
Hi,
I used the patchs for LVM2.02.54, however, when i compiled it, an err
came:
../lib/liblvm-internal.a(lv_manip.o): In function `lv_extend':
lv_manip.c:(.text+0x629a): undefined reference to `last_seg'
where is the 'last_seg' 's definition?
my linux kernel version is 2.6.18.
thank you!
best regards
Bubsy
2010/3/10 Mikhail Klepachevskyy <mikhailk1@open-e.com>
> Hello!
>
> Big thanks! It helped!
>
>
> On Wed, Mar 10, 2010 at 08:11:11AM -0500, Mikulas Patocka wrote:
>
> >
> > You need to suspend and resume the origin device after create message and
> > before attaching the snapshot.
> >
> > > I tried to test multisnapshots but unfortunately got some errors.
> > > Here is what I did:
> > >
>
> <skip>
>
> > > # 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
> >
> > dmsetup suspend ms
> > dmsetup resume ms
> >
> > > # 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?
> > >
> >
> > But rather, you could use userspace support for shared snapshots, it
> makes
> > the use much easier, you can use lvcreate, lvremove, lvresize commands:
> >
> > for lvm-2.02.54:
> >
> http://people.redhat.com/mpatocka/patches/userspace/new-snapshots/lvm-2.02.54/
> > for lvm-2.02.60:
> >
> http://people.redhat.com/mpatocka/patches/userspace/new-snapshots/lvm-2.02.60/
> > for lvm-2.02.62:
> > http://people.redhat.com/msnitzer/patches/multisnap/lvm2/LVM2-2.02.62/
>
> --
> Best wishes,
> Mikhail Klepachevskyy
>
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
>
[-- Attachment #1.2: Type: text/html, Size: 3550 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-03-11 5:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-10 12:37 Shared snapshots test Mikhail Klepachevskyy
2010-03-10 13:11 ` Mikulas Patocka
2010-03-10 13:34 ` Mikhail Klepachevskyy
2010-03-11 5:06 ` Busby
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.