All of lore.kernel.org
 help / color / mirror / Atom feed
* how to load dm-multisnapshot [with LVM patch]
@ 2010-05-24  9:04 Busby
  2010-05-26  3:52 ` Busby
  0 siblings, 1 reply; 5+ messages in thread
From: Busby @ 2010-05-24  9:04 UTC (permalink / raw)
  To: device-mapper development


[-- Attachment #1.1: Type: text/plain, Size: 1705 bytes --]

Hi All,

I get the patches from:
Linux kernel 2.6.34 patch:
http://people.redhat.com/mpatocka/patches/kernel/new-snapshots/r19/

LVM2-2.02.64 patch:
http://people.redhat.com/msnitzer/patches/multisnap/lvm2/LVM2-2.02.64/



but when I used it, the segment type can not find, can anyone help me?



[root@new-host-34 ~]# pvcreate /dev/sd[bcdef]

[root@new-host-34 ~]# vgcreate vg00 /dev/sd[bcdef]

[root@new-host-34 ~]# lvcreate -L 100G -n lv_test /dev/vg00

[root@new-host-34 ~]# lvcreate -L 200G -c 256 --sharedstore  mikulas -s
/dev/vg00/lv_test

  *WARNING: Unrecognised segment type multisnapshot*

*  Cannot update volume group vg00 with unknown segments in it!*

[root@new-host-34 ~]# lvscan

ACTIVE         '/dev/vg00/lv_test' [100.00 GiB] inherit

  inactive          '/dev/vg00/lv_test-shared' [200.00 GiB] inherit

[root@new-host-34 ~]# lvcreate -s -n lv_test_ss1 /dev/vg00/lv_test

  *Unable to create new logical volume with no extents*





The dm modules in the system:



[root@new-host-34 LVM2.2.02.64]# lsmod |grep dm
dm_snapshot            25583  0
dm_store_daniel        11304  0
dm_store_mikulas       43265  0
dm_multisnapshot       20276  2 dm_store_daniel,dm_store_mikulas
dm_mirror              11564  0
dm_multipath           14594  0
scsi_dh                 5480  1 dm_multipath
dm_region_hash          8233  1 dm_mirror
dm_log                  8158  2 dm_mirror,dm_region_hash
dm_mod                 58855  9 dm_snapshot,*
dm_store_daniel,dm_store_mikulas,dm_multisnapshot*
,dm_mirror,dm_multipath,dm_log





        I just want to use the multisnap by LVM2 command. But I don't know
is there any document about HOW-TO?

        Thank you very much.







Best regards,

Busby

[-- Attachment #1.2: Type: text/html, Size: 6790 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to load dm-multisnapshot [with LVM patch]
  2010-05-24  9:04 how to load dm-multisnapshot [with LVM patch] Busby
@ 2010-05-26  3:52 ` Busby
  2010-05-26  5:12   ` Mike Snitzer
  2010-05-26 11:50   ` Mikulas Patocka
  0 siblings, 2 replies; 5+ messages in thread
From: Busby @ 2010-05-26  3:52 UTC (permalink / raw)
  To: device-mapper development; +Cc: daire.byrne, mpatocka


[-- Attachment #1.1: Type: text/plain, Size: 2383 bytes --]

Hi,
     I have debug the lvm2.02.64 (with the shared-snapshot patches).
     In the last email I mentioned the 'Cannot update volume group vg00 with
unknown segments in it!'
     The debug mesg: " vg_has_unknown_segments  function: snapshot0 has
unknown seg."
      I don't know when the snapshot0 has been created?why its segtype
unkown?
     Hope for your help.
     Thank you.


Best regards,
Busby

在 2010年5月24日 下午5:04,Busby <chaimvy@gmail.com>写道:

> Hi All,
>
> I get the patches from:
> Linux kernel 2.6.34 patch:
> http://people.redhat.com/mpatocka/patches/kernel/new-snapshots/r19/
>
> LVM2-2.02.64 patch:
> http://people.redhat.com/msnitzer/patches/multisnap/lvm2/LVM2-2.02.64/
>
>
>
> but when I used it, the segment type can not find, can anyone help me?
>
>
>
> [root@new-host-34 ~]# pvcreate /dev/sd[bcdef]
>
> [root@new-host-34 ~]# vgcreate vg00 /dev/sd[bcdef]
>
> [root@new-host-34 ~]# lvcreate -L 100G -n lv_test /dev/vg00
>
> [root@new-host-34 ~]# lvcreate -L 200G -c 256 --sharedstore  mikulas -s
> /dev/vg00/lv_test
>
>   *WARNING: Unrecognised segment type multisnapshot*
>
> *  Cannot update volume group vg00 with unknown segments in it!*
>
> [root@new-host-34 ~]# lvscan
>
> ACTIVE         '/dev/vg00/lv_test' [100.00 GiB] inherit
>
>   inactive          '/dev/vg00/lv_test-shared' [200.00 GiB] inherit
>
> [root@new-host-34 ~]# lvcreate -s -n lv_test_ss1 /dev/vg00/lv_test
>
>   *Unable to create new logical volume with no extents*
>
>
>
>
>
> The dm modules in the system:
>
>
>
> [root@new-host-34 LVM2.2.02.64]# lsmod |grep dm
> dm_snapshot            25583  0
> dm_store_daniel        11304  0
> dm_store_mikulas       43265  0
> dm_multisnapshot       20276  2 dm_store_daniel,dm_store_mikulas
> dm_mirror              11564  0
> dm_multipath           14594  0
> scsi_dh                 5480  1 dm_multipath
> dm_region_hash          8233  1 dm_mirror
> dm_log                  8158  2 dm_mirror,dm_region_hash
> dm_mod                 58855  9 dm_snapshot,*
> dm_store_daniel,dm_store_mikulas,dm_multisnapshot*
> ,dm_mirror,dm_multipath,dm_log
>
>
>
>
>
>         I just want to use the multisnap by LVM2 command. But I don't know
> is there any document about HOW-TO?
>
>         Thank you very much.
>
>
>
>
>
>
>
> Best regards,
>
> Busby
>

[-- Attachment #1.2: Type: text/html, Size: 7854 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to load dm-multisnapshot [with LVM patch]
  2010-05-26  3:52 ` Busby
@ 2010-05-26  5:12   ` Mike Snitzer
  2010-05-26 11:50   ` Mikulas Patocka
  1 sibling, 0 replies; 5+ messages in thread
From: Mike Snitzer @ 2010-05-26  5:12 UTC (permalink / raw)
  To: device-mapper development; +Cc: daire.byrne, mpatocka

I'll retest and will share my findings later today (the 2.02.64 patches
on my website were refreshed from 2.02.63+ that was very close to the
final 2.02.64); but I didn't retest them at that time).

But I handed these 2.02.64 patches off to Mikulas and I have to believe
he'd have seen this issue when testing his further development.  To my
knowledge he hasn't.

Anyway, we'll see, but I've seen similar errors when I've created a
shared cow LV using a sandbox lvm2 build (not installed to the system).
And then the system's lvm2 didn't have multisnapshot support.  In that
situation you'll see the same type of unknown segment errors when
running the system's lvm2 commands.

Mike

On Tue, May 25 2010 at 11:52pm -0400,
Busby <chaimvy@gmail.com> wrote:

> Hi,
>      I have debug the lvm2.02.64 (with the shared-snapshot patches).
>      In the last email I mentioned the 'Cannot update volume group vg00 with
> unknown segments in it!'
>      The debug mesg: " vg_has_unknown_segments  function: snapshot0 has
> unknown seg."
>       I don't know when the snapshot0 has been created?why its segtype
> unkown?
>      Hope for your help.
>      Thank you.
> 
> 
> Best regards,
> Busby
> 
> 在 2010年5月24日 下午5:04,Busby <chaimvy@gmail.com>写道:
> 
> > Hi All,
> >
> > I get the patches from:
> > Linux kernel 2.6.34 patch:
> > http://people.redhat.com/mpatocka/patches/kernel/new-snapshots/r19/
> >
> > LVM2-2.02.64 patch:
> > http://people.redhat.com/msnitzer/patches/multisnap/lvm2/LVM2-2.02.64/
> >
> >
> >
> > but when I used it, the segment type can not find, can anyone help me?
> >
> >
> >
> > [root@new-host-34 ~]# pvcreate /dev/sd[bcdef]
> >
> > [root@new-host-34 ~]# vgcreate vg00 /dev/sd[bcdef]
> >
> > [root@new-host-34 ~]# lvcreate -L 100G -n lv_test /dev/vg00
> >
> > [root@new-host-34 ~]# lvcreate -L 200G -c 256 --sharedstore  mikulas -s
> > /dev/vg00/lv_test
> >
> >   *WARNING: Unrecognised segment type multisnapshot*
> >
> > *  Cannot update volume group vg00 with unknown segments in it!*
> >
> > [root@new-host-34 ~]# lvscan
> >
> > ACTIVE         '/dev/vg00/lv_test' [100.00 GiB] inherit
> >
> >   inactive          '/dev/vg00/lv_test-shared' [200.00 GiB] inherit
> >
> > [root@new-host-34 ~]# lvcreate -s -n lv_test_ss1 /dev/vg00/lv_test
> >
> >   *Unable to create new logical volume with no extents*
> >
> >
> >
> >
> >
> > The dm modules in the system:
> >
> >
> >
> > [root@new-host-34 LVM2.2.02.64]# lsmod |grep dm
> > dm_snapshot            25583  0
> > dm_store_daniel        11304  0
> > dm_store_mikulas       43265  0
> > dm_multisnapshot       20276  2 dm_store_daniel,dm_store_mikulas
> > dm_mirror              11564  0
> > dm_multipath           14594  0
> > scsi_dh                 5480  1 dm_multipath
> > dm_region_hash          8233  1 dm_mirror
> > dm_log                  8158  2 dm_mirror,dm_region_hash
> > dm_mod                 58855  9 dm_snapshot,*
> > dm_store_daniel,dm_store_mikulas,dm_multisnapshot*
> > ,dm_mirror,dm_multipath,dm_log
> >
> >
> >
> >
> >
> >         I just want to use the multisnap by LVM2 command. But I don't know
> > is there any document about HOW-TO?
> >
> >         Thank you very much.
> >
> >
> >
> >
> >
> >
> >
> > Best regards,
> >
> > Busby
> >

> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to load dm-multisnapshot [with LVM patch]
  2010-05-26  3:52 ` Busby
  2010-05-26  5:12   ` Mike Snitzer
@ 2010-05-26 11:50   ` Mikulas Patocka
  2010-05-27  1:38     ` Busby
  1 sibling, 1 reply; 5+ messages in thread
From: Mikulas Patocka @ 2010-05-26 11:50 UTC (permalink / raw)
  To: Busby; +Cc: daire.byrne, device-mapper development

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; CHARSET=X-UNKNOWN, Size: 2819 bytes --]

On Wed, 26 May 2010, Busby wrote:

> Hi,
>      I have debug the lvm2.02.64 (with the shared-snapshot patches).
>      In the last email I mentioned the 'Cannot update volume group vg00 with
> unknown segments in it!'
>      The debug mesg: " vg_has_unknown_segments  function: snapshot0 has
> unknown seg."
>       I don't know when the snapshot0 has been created?why its segtype
> unkown?
>      Hope for your help.
>      Thank you.
>
> Best regards,
> Busby

Hi

I think that you didn't run aclocal and autoconf before ./configure and 
make. So the multisnapshot module wasn't compiled in.

Do make distclean, then aclocal, autoconf, ./configure, make

Mikulas

> ÔÚ 2010Äê5ÔÂ24ÈÕ ÏÂÎç5:04£¬Busby <chaimvy@gmail.com>дµÀ£º
> 
> > Hi All,
> >
> > I get the patches from:
> > Linux kernel 2.6.34 patch:
> > http://people.redhat.com/mpatocka/patches/kernel/new-snapshots/r19/
> >
> > LVM2-2.02.64 patch:
> > http://people.redhat.com/msnitzer/patches/multisnap/lvm2/LVM2-2.02.64/
> >
> >
> >
> > but when I used it, the segment type can not find, can anyone help me?
> >
> >
> >
> > [root@new-host-34 ~]# pvcreate /dev/sd[bcdef]
> >
> > [root@new-host-34 ~]# vgcreate vg00 /dev/sd[bcdef]
> >
> > [root@new-host-34 ~]# lvcreate -L 100G -n lv_test /dev/vg00
> >
> > [root@new-host-34 ~]# lvcreate -L 200G -c 256 --sharedstore  mikulas -s
> > /dev/vg00/lv_test
> >
> >   *WARNING: Unrecognised segment type multisnapshot*
> >
> > *  Cannot update volume group vg00 with unknown segments in it!*
> >
> > [root@new-host-34 ~]# lvscan
> >
> > ACTIVE         '/dev/vg00/lv_test' [100.00 GiB] inherit
> >
> >   inactive          '/dev/vg00/lv_test-shared' [200.00 GiB] inherit
> >
> > [root@new-host-34 ~]# lvcreate -s -n lv_test_ss1 /dev/vg00/lv_test
> >
> >   *Unable to create new logical volume with no extents*
> >
> >
> >
> >
> >
> > The dm modules in the system:
> >
> >
> >
> > [root@new-host-34 LVM2.2.02.64]# lsmod |grep dm
> > dm_snapshot            25583  0
> > dm_store_daniel        11304  0
> > dm_store_mikulas       43265  0
> > dm_multisnapshot       20276  2 dm_store_daniel,dm_store_mikulas
> > dm_mirror              11564  0
> > dm_multipath           14594  0
> > scsi_dh                 5480  1 dm_multipath
> > dm_region_hash          8233  1 dm_mirror
> > dm_log                  8158  2 dm_mirror,dm_region_hash
> > dm_mod                 58855  9 dm_snapshot,*
> > dm_store_daniel,dm_store_mikulas,dm_multisnapshot*
> > ,dm_mirror,dm_multipath,dm_log
> >
> >
> >
> >
> >
> >         I just want to use the multisnap by LVM2 command. But I don't know
> > is there any document about HOW-TO?
> >
> >         Thank you very much.
> >
> >
> >
> >
> >
> >
> >
> > Best regards,
> >
> > Busby
> >
> 

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to load dm-multisnapshot [with LVM patch]
  2010-05-26 11:50   ` Mikulas Patocka
@ 2010-05-27  1:38     ` Busby
  0 siblings, 0 replies; 5+ messages in thread
From: Busby @ 2010-05-27  1:38 UTC (permalink / raw)
  To: Mikulas Patocka; +Cc: daire.byrne, device-mapper development


[-- Attachment #1.1: Type: text/plain, Size: 3320 bytes --]

Hi ,
                  I have done as Mikulas said, and it is OK now..
                  My autoconf version seems to be low and I install the
higher one, and it is OK.
                  Thank you.

Best regards,
Busby


2010/5/26 Mikulas Patocka <mpatocka@redhat.com>

> On Wed, 26 May 2010, Busby wrote:
>
> > Hi,
> >      I have debug the lvm2.02.64 (with the shared-snapshot patches).
> >      In the last email I mentioned the 'Cannot update volume group vg00
> with
> > unknown segments in it!'
> >      The debug mesg: " vg_has_unknown_segments  function: snapshot0 has
> > unknown seg."
> >       I don't know when the snapshot0 has been created?why its segtype
> > unkown?
> >      Hope for your help.
> >      Thank you.
> >
> > Best regards,
> > Busby
>
> Hi
>
> I think that you didn't run aclocal and autoconf before ./configure and
> make. So the multisnapshot module wasn't compiled in.
>
> Do make distclean, then aclocal, autoconf, ./configure, make
>
> Mikulas
>
> > 在 2010年5月24日 下午5:04,Busby <chaimvy@gmail.com>写道:
> >
> > > Hi All,
> > >
> > > I get the patches from:
> > > Linux kernel 2.6.34 patch:
> > > http://people.redhat.com/mpatocka/patches/kernel/new-snapshots/r19/
> > >
> > > LVM2-2.02.64 patch:
> > > http://people.redhat.com/msnitzer/patches/multisnap/lvm2/LVM2-2.02.64/
> > >
> > >
> > >
> > > but when I used it, the segment type can not find, can anyone help me?
> > >
> > >
> > >
> > > [root@new-host-34 ~]# pvcreate /dev/sd[bcdef]
> > >
> > > [root@new-host-34 ~]# vgcreate vg00 /dev/sd[bcdef]
> > >
> > > [root@new-host-34 ~]# lvcreate -L 100G -n lv_test /dev/vg00
> > >
> > > [root@new-host-34 ~]# lvcreate -L 200G -c 256 --sharedstore  mikulas
> -s
> > > /dev/vg00/lv_test
> > >
> > >   *WARNING: Unrecognised segment type multisnapshot*
> > >
> > > *  Cannot update volume group vg00 with unknown segments in it!*
> > >
> > > [root@new-host-34 ~]# lvscan
> > >
> > > ACTIVE         '/dev/vg00/lv_test' [100.00 GiB] inherit
> > >
> > >   inactive          '/dev/vg00/lv_test-shared' [200.00 GiB] inherit
> > >
> > > [root@new-host-34 ~]# lvcreate -s -n lv_test_ss1 /dev/vg00/lv_test
> > >
> > >   *Unable to create new logical volume with no extents*
> > >
> > >
> > >
> > >
> > >
> > > The dm modules in the system:
> > >
> > >
> > >
> > > [root@new-host-34 LVM2.2.02.64]# lsmod |grep dm
> > > dm_snapshot            25583  0
> > > dm_store_daniel        11304  0
> > > dm_store_mikulas       43265  0
> > > dm_multisnapshot       20276  2 dm_store_daniel,dm_store_mikulas
> > > dm_mirror              11564  0
> > > dm_multipath           14594  0
> > > scsi_dh                 5480  1 dm_multipath
> > > dm_region_hash          8233  1 dm_mirror
> > > dm_log                  8158  2 dm_mirror,dm_region_hash
> > > dm_mod                 58855  9 dm_snapshot,*
> > > dm_store_daniel,dm_store_mikulas,dm_multisnapshot*
> > > ,dm_mirror,dm_multipath,dm_log
> > >
> > >
> > >
> > >
> > >
> > >         I just want to use the multisnap by LVM2 command. But I don't
> know
> > > is there any document about HOW-TO?
> > >
> > >         Thank you very much.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Best regards,
> > >
> > > Busby
> > >
> >
>

[-- Attachment #1.2: Type: text/html, Size: 5529 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-05-27  1:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-24  9:04 how to load dm-multisnapshot [with LVM patch] Busby
2010-05-26  3:52 ` Busby
2010-05-26  5:12   ` Mike Snitzer
2010-05-26 11:50   ` Mikulas Patocka
2010-05-27  1:38     ` 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.