All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kumar amit mehta <gmate.amit@gmail.com>
To: Zdenek Kabelac <zkabelac@redhat.com>
Cc: linux-lvm@redhat.com
Subject: Re: [linux-lvm] lvcreate --thin gives "unknown segment type" error
Date: Mon, 22 Jul 2013 06:57:42 -0400	[thread overview]
Message-ID: <20130722105712.GA1570@gmail.com> (raw)
In-Reply-To: <51ED2268.7030702@redhat.com>

On Mon, Jul 22, 2013 at 02:15:36PM +0200, Zdenek Kabelac wrote:
> configure --with-thin=internal
> 
> (and you will likely miss  '--enable-udev_sync'
Thank you, it worked!

However, It seems that "discards" behavior for thin pool is not
supported on RHEL 6.4. Please confirm. 
# ./configure --with-thin=internal --enable-debug

# make; make install

# lvcreate --discards passdown -L 1G -T thinvg1/thinlv1
  Logical volume "thinlv1" created

# lvs -o +devices|grep -i thinlv1
  thinlv1       thinvg1       twi-a-tz-   1.00g               0.00
thinlv1_tdata(0)

# dmesg
device-mapper: thin: Data device (dm-3) discard unsupported: Disabling
discard passdown.

<snip>
        if (reason) {
                DMWARN("Data device (%s) %s: Disabling discard
passdown.", bdevname(data_bdev, buf), reason);
                pt->adjusted_pf.discard_passdown = false;
        } 
<snip>

Seems that we'll reach here if QUEUE_FLAG_DISCARD flag in the request
queue is not set.

!!amit

  reply	other threads:[~2013-07-22 10:57 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
2013-07-22 10:57   ` Kumar amit mehta [this message]
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=20130722105712.GA1570@gmail.com \
    --to=gmate.amit@gmail.com \
    --cc=linux-lvm@redhat.com \
    --cc=zkabelac@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 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.