0.6 C
Amsterdam
Saturday, December 5, 2020

Remove a Physical Volume listed as an “unknown device”

Must read

How To Install Docker Swarm On Ubuntu 20.04

In this tutorial, you'll learn that how to Install Docker Swarm on Ubuntu 20.04. Docker Swarm is most popular tool that can be used...

How To Install Keeweb Password Manager On Ubuntu 20.04

Today we are going to learn that how to install KeeWeb Passwrod Manager On Ubuntu 20.04. KeeWeb Password Manager provides the best and easy...

How to change the MAC address in Windows 10

Hello! How are you? Today we will see how to change the MAC address on a computer with Windows 10. In fact, it is...

How To Configure Slave BIND DNS Server On Ubuntu 20.04

In our previous guide we covered the setup of Master(Primary) DNS Server. Here we'll learn that how to configure slave bind dns server on...
Mel Khamlichi
Mel Khamlichihttp://www.osradar.com
Founder of Osradar, from Amsterdam Netherlands

Remove a Physical Volume listed as an “unknown device” is one of the most known issues for an Linux administrator, and that happen when LVM has scanned the storage stack, but it is unable to find a required PV UUID . also happen when the physical volume was not removed from the volume group first while the disk was already remove from the system .

Let me tell you. how i have fixed it .

My volume group called vgora and long time i have removed the disk (LUN) and forgot to  remove the disk from the volume group

The missing physical volume is part of  vgora group , you can show that with command  pvscan and pvdisplay

Now please  clean the unknow physical volumes from vgora

# vgreduce <volume_group_name> --removemissing

In my case

#vgreduce vgora --removemissing

Redhat dont advice to use –force option

Now Check again:

Diplay the physical volumes

# pvdisplay
--- Physical volume ---
PV Name /dev/mapper/mpatha2
VG Name vg00
PV Size 49.51 GiB / not usable 3.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 12674
Free PE 898
Allocated PE 11776
PV UUID WApBv4-TU6A-bq7h-HrYz-D76d-Q6Bq-73xOHG

--- Physical volume ---
PV Name /dev/mapper/oracle
VG Name vgora
PV Size 200.00 GiB / not usable 3.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 51199
Free PE 0
Allocated PE 51199
PV UUID 32jutv-K2WS-6ES3-g3pg-ZhhN-m23z-1Q3bz0

--- Physical volume ---
PV Name /dev/mapper/export
VG Name vgexport
PV Size 300.00 GiB / not usable 4.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 76799
Free PE 0
Allocated PE 76799
PV UUID aEfq5E-Qtno-t1ug-TNEB-wyKg-EwSh-YhD0Ov

scan the  physical volumes with command  pvscan 

# pvs
PV VG Fmt Attr PSize PFree
/dev/mapper/export vgexport lvm2 a-- 300.00g 0
/dev/mapper/mpatha2 vg00 lvm2 a-- 49.51g 3.51g
/dev/mapper/oracle vgora lvm2 a-- 200.00g 0

Looks very fine now, the Unknow pv is gone !!.

cheers !!

 

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

-

Latest article

How To Install Docker Swarm On Ubuntu 20.04

In this tutorial, you'll learn that how to Install Docker Swarm on Ubuntu 20.04. Docker Swarm is most popular tool that can be used...

How To Install Keeweb Password Manager On Ubuntu 20.04

Today we are going to learn that how to install KeeWeb Passwrod Manager On Ubuntu 20.04. KeeWeb Password Manager provides the best and easy...

How to change the MAC address in Windows 10

Hello! How are you? Today we will see how to change the MAC address on a computer with Windows 10. In fact, it is...

How To Configure Slave BIND DNS Server On Ubuntu 20.04

In our previous guide we covered the setup of Master(Primary) DNS Server. Here we'll learn that how to configure slave bind dns server on...

Install Fossil on Linux – An alternative to Git

Hello, friends. In this post, we will talk about a serious alternative to Git. In a few words, we'll show you how to install...
x