All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Device XXX excluded by a filter - why??
@ 2018-05-23 15:53 Wyllys Ingersoll
  2018-05-30 10:49 ` Marian Csontos
  0 siblings, 1 reply; 3+ messages in thread
From: Wyllys Ingersoll @ 2018-05-23 15:53 UTC (permalink / raw)
  To: linux-lvm

Using the following lvm2 version on Ubuntu 16.04.3 running kernel 4.16.03
  LVM version:     2.02.176(2) (2017-11-03)
  Library version: 1.02.145 (2017-11-03)
  Driver version:  4.37.0

ceph-volume attempts to create a VG on a raw block device to use as a
bluestore OSD.  The command it uses looks like this:

vgcreate --force --yes ceph-a637b0e7-e54f-4fe9-8afc-a74671d94f6e /dev/sdi

The disk (/dev/sdi) in this case is a blank (no partition table) GPT
label 3.7T drive.

vgcreate complains and fails:
     stderr: Device /dev/sdi excluded by a filter.

I cannot figure out what "filter" is causing this.  The global_filter
in lvm.conf is wide open:
filter = [ "a|.*/|" ]

Turning up debug logging does not show any additional reasons.
Repeatedly running pvscan or vgscan to update the cache does not fix
it either.

What could be blocking this device from being used?

thanks,
   Wyllys Ingersoll
   Keeper Technology, LLC

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

* Re: [linux-lvm] Device XXX excluded by a filter - why??
  2018-05-23 15:53 [linux-lvm] Device XXX excluded by a filter - why?? Wyllys Ingersoll
@ 2018-05-30 10:49 ` Marian Csontos
  2018-05-31  2:17   ` Damon Wang
  0 siblings, 1 reply; 3+ messages in thread
From: Marian Csontos @ 2018-05-30 10:49 UTC (permalink / raw)
  To: LVM general discussion and development, Wyllys Ingersoll

On 05/23/2018 05:53 PM, Wyllys Ingersoll wrote:
> Using the following lvm2 version on Ubuntu 16.04.3 running kernel 4.16.03
>    LVM version:     2.02.176(2) (2017-11-03)
>    Library version: 1.02.145 (2017-11-03)
>    Driver version:  4.37.0
> 
> ceph-volume attempts to create a VG on a raw block device to use as a
> bluestore OSD.  The command it uses looks like this:
> 
> vgcreate --force --yes ceph-a637b0e7-e54f-4fe9-8afc-a74671d94f6e /dev/sdi
> 
> The disk (/dev/sdi) in this case is a blank (no partition table) GPT
> label 3.7T drive.

So is it a GPT device or not? If yes, it HAS a partition table after 
all, and LVM filters such devices out, even if the partition table is empty.

Run `wipefs -a /dev/sdi` first to remove any FS/GPT signatures.

-- Martian
> 
> vgcreate complains and fails:
>       stderr: Device /dev/sdi excluded by a filter.
> 
> I cannot figure out what "filter" is causing this.  The global_filter
> in lvm.conf is wide open:
> filter = [ "a|.*/|" ]
> 
> Turning up debug logging does not show any additional reasons.
> Repeatedly running pvscan or vgscan to update the cache does not fix
> it either.
> 
> What could be blocking this device from being used?
> 
> thanks,
>     Wyllys Ingersoll
>     Keeper Technology, LLC
> 
> _______________________________________________
> 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] Device XXX excluded by a filter - why??
  2018-05-30 10:49 ` Marian Csontos
@ 2018-05-31  2:17   ` Damon Wang
  0 siblings, 0 replies; 3+ messages in thread
From: Damon Wang @ 2018-05-31  2:17 UTC (permalink / raw)
  To: LVM general discussion and development; +Cc: Wyllys Ingersoll

Some additional tips, you can use `partprobe -s /dev/sdi` or `wipefs
/dev/sdi` to find out whether some magic string(filesystem, gpt, etc)
on it.

And use lvmdiskscan to find all available disk on server.

Damon

2018-05-30 18:49 GMT+08:00 Marian Csontos <mcsontos@redhat.com>:
> On 05/23/2018 05:53 PM, Wyllys Ingersoll wrote:
>>
>> Using the following lvm2 version on Ubuntu 16.04.3 running kernel 4.16.03
>>    LVM version:     2.02.176(2) (2017-11-03)
>>    Library version: 1.02.145 (2017-11-03)
>>    Driver version:  4.37.0
>>
>> ceph-volume attempts to create a VG on a raw block device to use as a
>> bluestore OSD.  The command it uses looks like this:
>>
>> vgcreate --force --yes ceph-a637b0e7-e54f-4fe9-8afc-a74671d94f6e /dev/sdi
>>
>> The disk (/dev/sdi) in this case is a blank (no partition table) GPT
>> label 3.7T drive.
>
>
> So is it a GPT device or not? If yes, it HAS a partition table after all,
> and LVM filters such devices out, even if the partition table is empty.
>
> Run `wipefs -a /dev/sdi` first to remove any FS/GPT signatures.
>
> -- Martian
>
>>
>> vgcreate complains and fails:
>>       stderr: Device /dev/sdi excluded by a filter.
>>
>> I cannot figure out what "filter" is causing this.  The global_filter
>> in lvm.conf is wide open:
>> filter = [ "a|.*/|" ]
>>
>> Turning up debug logging does not show any additional reasons.
>> Repeatedly running pvscan or vgscan to update the cache does not fix
>> it either.
>>
>> What could be blocking this device from being used?
>>
>> thanks,
>>     Wyllys Ingersoll
>>     Keeper Technology, LLC
>>
>> _______________________________________________
>> 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/
>>
>
> _______________________________________________
> 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:[~2018-05-31  2:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-23 15:53 [linux-lvm] Device XXX excluded by a filter - why?? Wyllys Ingersoll
2018-05-30 10:49 ` Marian Csontos
2018-05-31  2:17   ` Damon Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.