From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 22 Jul 2013 07:23:48 -0400 From: Kumar amit mehta Message-ID: <20130722112348.GB1570@gmail.com> References: <20130722051502.GA5685@gmail.com> <51ED2268.7030702@redhat.com> <20130722105712.GA1570@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20130722105712.GA1570@gmail.com> Subject: Re: [linux-lvm] lvcreate --thin gives "unknown segment type" error Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Zdenek Kabelac Cc: linux-lvm@redhat.com On Mon, Jul 22, 2013 at 06:57:42AM -0400, Kumar amit mehta wrote: > 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. > > > if (reason) { > DMWARN("Data device (%s) %s: Disabling discard > passdown.", bdevname(data_bdev, buf), reason); > pt->adjusted_pf.discard_passdown = false; > } > > > Seems that we'll reach here if QUEUE_FLAG_DISCARD flag in the request > queue is not set. More information of my setup: issue_discards = 1 I'm invoking these commands on a VM. I do not know, from where these storage were mapped to my VM(were done my some storage admin). However when i invoke sg_inq (from sg3_utils) to get some information, that fails too :( # sg_inq /dev/vde Both SCSI INQUIRY and fetching ATA information failed on /dev/vde !!amit