Fixed : pvcreate Device /dev/mapper/ excluded by a filter.

Windows Articles

How to get Always-on Display feature in any Android

Greetings dear readers, the Always-on Display feature has been included in many Android devices for several years now. But they have been...

Error in Windows 10 preventing them from using the internet

The Windows 10 May 2020 Update brought more problems than solutions. Users around the world are complaining about a new bug. A...

How to install MyWebSQL on Ubuntu 20.04?

Managing a database server with MySQL is not an easy task. Therefore, specialized tools are required to improve the task. In Osradar...

New Office app arrives: free and renewed

Microsoft goes one step further. This time positive. This week the Redmond people launched the new Office app for Windows 10. The...

How to install Gradle on Ubuntu 20.04?

Hi, folks. In this post dedicated to Java, you will learn how to install Gradle on Ubuntu 20.04 Gradle...
Mel Khamlichi
Mel Khamlichihttp://www.osradar.com
Founder of Osradar, from Amsterdam Netherlands

Maybe you will be confronted one day with this strange issue. this happens when you trying to create a physical volume from a normal disk of from multipath

When trying to create a physical volume .

 pvcreate   /dev/mapper/oracle
  Device /dev/mapper/oracle excluded by a filter.

Root Cause

  • This issue may arise if the disk was already used or it has a partition table information on it.
  • It is possible that the disk was used earlier with any other system.
  • GPT disk label has been created earlier.

The Solution is :

you can wipe out the old partition information with “wipefs”

# wipefs -a  /dev/mapper/oracle
/dev/mapper/oracle: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54
/dev/mapper/oracle: 8 bytes were erased at offset 0x18fffffe00 (gpt): 45 46 49 20 50 41 52 54
/dev/mapper/oracle: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa
/dev/mapper/oracle: calling ioclt to re-read partition table: Invalid argument

Try again

]# pvcreate   /dev/mapper/oracle
  Physical volume "/dev/mapper/oracle" successfully created.

Voila. Your problem is solved now.

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

How to get Always-on Display feature in any Android

Greetings dear readers, the Always-on Display feature has been included in many Android devices for several years now. But they have been...

Error in Windows 10 preventing them from using the internet

The Windows 10 May 2020 Update brought more problems than solutions. Users around the world are complaining about a new bug. A...

How to install MyWebSQL on Ubuntu 20.04?

Managing a database server with MySQL is not an easy task. Therefore, specialized tools are required to improve the task. In Osradar...

New Office app arrives: free and renewed

Microsoft goes one step further. This time positive. This week the Redmond people launched the new Office app for Windows 10. The...

How to install Gradle on Ubuntu 20.04?

Hi, folks. In this post dedicated to Java, you will learn how to install Gradle on Ubuntu 20.04 Gradle...