linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zkabelac@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Cc: Kumar amit mehta <gmate.amit@gmail.com>
Subject: Re: [linux-lvm] lvcreate --thin gives "unknown segment type" error
Date: Mon, 22 Jul 2013 14:15:36 +0200	[thread overview]
Message-ID: <51ED2268.7030702@redhat.com> (raw)
In-Reply-To: <20130722051502.GA5685@gmail.com>

Dne 22.7.2013 07:15, Kumar amit mehta napsal(a):
> Hi,
>
> While trying to create thin provisioned volume, I'm getting "unknown
> segment type" error. Please see the logs below:
>
> # cat /etc/redhat-release
> Red Hat Enterprise Linux Server release 6.4 (Santiago)
>
> # uname -r
> 2.6.32-358.el6.x86_64
>
> # dmsetup targets
> thin-pool        v1.5.1
> thin             v1.5.1
> multipath        v1.5.0
> mirror           v1.12.0
> striped          v1.5.6
> linear           v1.1.0
> error            v1.0.1
>
> # lvm version
>    LVM version:     2.02.99(2)-git (2012-10-22)
>    Library version: 1.02.78-git (2012-10-22)
>    Driver version:  4.23.6
>
> # vgs|grep -i testvg
>    testvg          2   0   0 wz--n- 3.99g    3.99g
>
> # pvs -o +devices|grep -i testvg
>    /dev/vdc   testvg        lvm2 a--  2.00g    2.00g
>    /dev/vde   testvg        lvm2 a--  2.00g    2.00g
>
> # lvcreate -L 1G -T testvg/thinlv1 -vvvv
> #libdm-config.c:908       Setting activation/monitoring to 1
> #lvmcmdline.c:1102         Processing: lvcreate -L 1G -T testvg/thinlv1 -vvvv
> #lvmcmdline.c:1105         O_DIRECT will be used
> #libdm-config.c:844       Setting global/locking_type to 1
> #libdm-config.c:908       Setting global/wait_for_locks to 1
> #locking/locking.c:241       File-based locking selected.
> #libdm-config.c:813       Setting global/locking_dir to /var/lock/lvm
> #libdm-config.c:908       Setting global/prioritise_write_locks to 1
> #unknown/unknown.c:102       Initialised segtype: thin
>    WARNING: Unrecognised segment type thin
> #lvcreate.c:746   Unable to create LV with unknown segment type thin. <-
>    Run `lvcreate --help' for more informationat am I missing?
>
> What am I missing?
>

configure --with-thin=internal

(and you will likely miss  '--enable-udev_sync'

Zdenek

  reply	other threads:[~2013-07-22 12:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-22  5:15 [linux-lvm] lvcreate --thin gives "unknown segment type" error Kumar amit mehta
2013-07-22 12:15 ` Zdenek Kabelac [this message]
2013-07-22 10:57   ` Kumar amit mehta
2013-07-22 11:23     ` Kumar amit mehta
2013-07-22 20:18       ` Zdenek Kabelac
2013-07-23  0:52         ` Kumar amit mehta

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=51ED2268.7030702@redhat.com \
    --to=zkabelac@redhat.com \
    --cc=gmate.amit@gmail.com \
    --cc=linux-lvm@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).