From mboxrd@z Thu Jan 1 00:00:00 1970 References: From: Marian Csontos Message-ID: Date: Mon, 8 Jul 2019 10:36:52 +0200 MIME-Version: 1.0 In-Reply-To: Content-Language: en-MW Content-Transfer-Encoding: 7bit Subject: Re: [linux-lvm] "Unknown feature in status" message when running lvs/lvdisplay against cached LVs 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 , Gang He On 7/5/19 11:20 AM, Gang He wrote: > Hi Guys, > > I uses lvm2-2.02.180, I got an error message when running lvs/lvdisplay against cached LVs. > e.g. > linux-v5ay:~ # lvs > Unknown feature in status: 8 1324/8192 128 341/654272 129 151 225 1644 0 341 0 3 metadata2 writethrough no_discard_passdown 2 migration_threshold 2048 smq 0 rw - > LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert > home system -wi-ao---- 17.99g > root system Cwi-aoC--- 20.00g [lvc_root] [root_corig] 0.05 16.16 0.00 > swap system -wi-ao---- 2.00g You need this patch: https://sourceware.org/git/?p=lvm2.git;a=commit;h=adf9bf80a32500b45b37eb24b98fa7c2c933019e Kernel introduced a new feature which is not recognized by lvm versions released before the kernel (which is anything up to latest 2.02.185). This will be included in the next lvm release. -- Marian > > The bug can be reproduced stably with the below steps. > Have a (virtual) machine with 2 disk drives > Install os with LVM as root volume > Then, add the second disk after os is installed. > # pvcreate /dev/sdb > # vgextend system /dev/sdb > # lvcreate --type cache-pool -l 100%FREE -n lvc_root system /dev/sdb > # lvconvert --type cache --cachepool system/lvc_root system/root > then run `lvs` or `lvdisplay` command to trigger the issue > > > Thanks > Gang > > _______________________________________________ > linux-lvm mailing list > linux-lvm@redhat.com > https://www.redhat.com/mailman/listinfo/linux-lvm > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/ >