linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Marian Csontos <mcsontos@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>,
	Gang He <GHe@suse.com>
Subject: Re: [linux-lvm] "Unknown feature in status" message when running lvs/lvdisplay against cached LVs
Date: Mon, 8 Jul 2019 10:36:52 +0200	[thread overview]
Message-ID: <fe79eea6-0202-c412-0b3f-19beb3c2157c@redhat.com> (raw)
In-Reply-To: <CH2PR18MB3206304CD1B8DB908666342FCFF50@CH2PR18MB3206.namprd18.prod.outlook.com>

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/
> 

  reply	other threads:[~2019-07-08  8:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-05  9:20 [linux-lvm] "Unknown feature in status" message when running lvs/lvdisplay against cached LVs Gang He
2019-07-08  8:36 ` Marian Csontos [this message]
2019-07-10  6:20   ` Gang He

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=fe79eea6-0202-c412-0b3f-19beb3c2157c@redhat.com \
    --to=mcsontos@redhat.com \
    --cc=GHe@suse.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).