linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] "Unknown feature in status" message when running lvs/lvdisplay against cached LVs
@ 2019-07-05  9:20 Gang He
  2019-07-08  8:36 ` Marian Csontos
  0 siblings, 1 reply; 3+ messages in thread
From: Gang He @ 2019-07-05  9:20 UTC (permalink / raw)
  To: linux-lvm

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] "Unknown feature in status" message when running lvs/lvdisplay against cached LVs
  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
  2019-07-10  6:20   ` Gang He
  0 siblings, 1 reply; 3+ messages in thread
From: Marian Csontos @ 2019-07-08  8:36 UTC (permalink / raw)
  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/
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] "Unknown feature in status" message when running lvs/lvdisplay against cached LVs
  2019-07-08  8:36 ` Marian Csontos
@ 2019-07-10  6:20   ` Gang He
  0 siblings, 0 replies; 3+ messages in thread
From: Gang He @ 2019-07-10  6:20 UTC (permalink / raw)
  To: Marian Csontos, LVM general discussion and development

Hi Marian,

Thank for your helps, the patch is effective to fix this error message.

Thanks
Gang

-----Original Message-----
From: Marian Csontos [mailto:mcsontos@redhat.com] 
Sent: 2019年7月8日 16:37
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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-10  6:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2019-07-10  6:20   ` Gang He

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).