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

Windows Articles

How to get the Nextcloud desktop client on Linux?

Hello friends. We already know how to install a Nextcloud server but now the client is missing. So in this post, you...

How to Backup your call and SMS history in Android

Many times we find ourselves in the situation of having to change our phone, for different reasons, and one of the questions...

Install and configure Apache Guacamole on Debian 10

Hello, friends in this post, you will learn how to install and configure Apache Guacamole in Debian 10. It will be a...

Ubuntu 20.10 available

The new version of Ubuntu is now available, under the code name "groovy gorilla". Ubuntu 20.10 focuses on improving and refining the...

Monitoring Ubuntu 20.04 with Stacer

Normally if we use Linux on a production server, it is important to monitor it. On the other hand, in everyday use, many users...
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 the Nextcloud desktop client on Linux?

Hello friends. We already know how to install a Nextcloud server but now the client is missing. So in this post, you...

How to Backup your call and SMS history in Android

Many times we find ourselves in the situation of having to change our phone, for different reasons, and one of the questions...

Install and configure Apache Guacamole on Debian 10

Hello, friends in this post, you will learn how to install and configure Apache Guacamole in Debian 10. It will be a...

Ubuntu 20.10 available

The new version of Ubuntu is now available, under the code name "groovy gorilla". Ubuntu 20.10 focuses on improving and refining the...

Monitoring Ubuntu 20.04 with Stacer

Normally if we use Linux on a production server, it is important to monitor it. On the other hand, in everyday use, many users...
x