• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

“Couldn’t find device with uuid [UUID]” – error whith pvs command

by admin

The Problem

pvs command shows unknown device and pvs couldn’t find device with UUID for one of the physical volume

# pvs
WARNING: Device for PV [UUID] not found or rejected by a filter.
Couldn't find device with uuid [UUID].
PV VG Fmt Attr PSize PFree
/dev/xvda3 VGExaDb lvm2 a-- <24.50g 508.00m
/dev/xvdd1 VGExaDb lvm2 a-- <62.00g 1020.00m
[unknown] VGExaDb lvm2 a-m <20.00g <20.00g

The Solution

This can happen if a physical disk is deleted from the server before being removed from VG (LVM). Before applying any steps shown below take a backup of the entire system.

Since the physical disk added to the Volume group is removed and unused or unallocated to any LV, it's safe to remove the disk from LVM VG:

# pvs -o+pv_used
WARNING: Device for PV [UUID] not found or rejected by a filter.
Couldn't find device with uuid [UUID].
PV VG Fmt Attr PSize PFree Used
/dev/xvda3 VGExaDb lvm2 a-- <24.50g 508.00m 24.00g
/dev/xvdd1 VGExaDb lvm2 a-- <62.00g 1020.00m 61.00g
[unknown] VGExaDb lvm2 a-m <20.00g <20.00g 0

To fix the error/issue execute vgreduce with --removemissing directive.

# vgreduce VGExaDb --removemissing --test

Then execute without --test

# vgreduce VGExaDb --removemissing 

Verify with below command for unknown error

# pvs

Filed Under: CentOS/RHEL, Linux

Some more articles you might also be interested in …

  1. colrm : command not found
  2. gnome-calculator Command Examples in Linux
  3. CentOS / RHEL : How to find if a network port is open or not?
  4. How to configure apache virtual host on ubuntu
  5. Rpm: Error While Loading Shared Libraries: Libz.so.1: Cannot Open Shared Object File: No Such File
  6. flatpak: command not found
  7. phar Command Examples in Linux
  8. e4defrag: command not found
  9. How to configure DM-Multipath from an iSCSI initiator to an iSCSI target in CentOS / RHEL
  10. chrt Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright