17 C
Texas
Melhttp://www.osradar.com
Guru Unix /Linux and GNU supporter

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

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”

- Advertisement -
# 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.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article