From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [10.40.200.18] (ovpn-200-18.brq.redhat.com [10.40.200.18]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tBPIbUJn018115 for ; Fri, 25 Dec 2015 13:37:31 -0500 References: <567BB51A.4070101@redhat.com> From: Zdenek Kabelac Message-ID: <567D8CE9.3030101@redhat.com> Date: Fri, 25 Dec 2015 19:37:29 +0100 MIME-Version: 1.0 In-Reply-To: Content-Transfer-Encoding: 7bit Subject: Re: [linux-lvm] Possible bug in expanding thinpool: lvextend doens't expand the top-level dm-linear device 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"; format="flowed" To: LVM general discussion and development Dne 25.12.2015 v 03:27 M.H. Tsai napsal(a): > Hi, > > Sorry, what's the purpose of commit cd8e95d9337207a8f87a6f68dc9b1db7e3828bbf ? > Ahh my mistake - related to rename... > Another issue is, the current code suspends the first thin volume > (just the first one!) > while extending a thinpool, which is unnecessary and also harms IO performance. > > Also, If the top-level "fake" pool device is unimportant, why not > remove it, or simply > make tp1 as a thin-pool target? It seems that the commit 00a45ca4 want > to do this, > it removes the -tpool layer while activating a new thinpool. But if > there are thin > volumes, the -tpool layer back again. This make me confused -- Do we really need > layers? > It's not so simple - since the user may activate thin-pool without activation of any thin-volume, and keep thin-pool active while thin-volumes are activated and deactivated - so it's different case if user activates thin-pool explicitly or thin-pool is activated as thin volume dependency. Also thin-pool LV has its own cluster lock which is quite complicated to explain, but for now - thin-pool size is unimportant, but it's existence is mandatory :) There is no simple way to avoid using current 'layer' logic, but as said I've already do have some plan how to go without 'extra' layer 'fake' LV, but it will take some time to implement. Regards Zdenek