From time to time you or lvm arent perfectly good at cleaning up after youselves when adding/removing disks for one or another reason
and even though everything works, you get spammed with errors like.
# lvdisplay
Couldn’t find device with uuid ‘dEiMau-Kytn-mEb8-FXpW-MCTQ-yEAf-tFIWmD’.
Couldn’t find all physical volumes for volume group data.
Couldn’t find device with uuid ‘dEiMau-Kytn-mEb8-FXpW-MCTQ-yEAf-tFIWmD’.
Couldn’t find all physical volumes for volume group data.
Volume group “data” not found# pvscan
Couldn’t find device with uuid ‘dEiMau-Kytn-mEb8-FXpW-MCTQ-yEAf-tFIWmD’.
Couldn’t find device with uuid ‘p9fqIr-7F7O-TR3L-sODE-MMKp-3doT-yeNjZ6′.
Couldn’t find device with uuid ‘dEiMau-Kytn-mEb8-FXpW-MCTQ-yEAf-tFIWmD’.
Couldn’t find device with uuid ‘p9fqIr-7F7O-TR3L-sODE-MMKp-3doT-yeNjZ6′.PV /dev/sda1 VG data lvm2 [232.88 GB / 0 free]
PV unknown device VG data lvm2 [233.75 GB / 0 free]
PV unknown device VG data lvm2 [232.88 GB / 0 free]
most of us are lazy when it comes to even thinking about reading the man pages, using –help or simply checking out google. so one have might tried everything from reinstalling lvm, filtering out the disks in /etc/lvm configs to god knows what.
this simple command will check for missing disks and do everything for you. Just remember that this will screw you up if your planning to re-add your disks.
# vgreduce –removemissing data
Couldn’t find device with uuid ‘dEiMau-Kytn-mEb8-FXpW-MCTQ-yEAf-tFIWmD’.
Couldn’t find all physical volumes for volume group data.
Couldn’t find device with uuid ‘dEiMau-Kytn-mEb8-FXpW-MCTQ-yEAf-tFIWmD’.
Couldn’t find all physical volumes for volume group data.
Couldn’t find device with uuid ‘dEiMau-Kytn-mEb8-FXpW-MCTQ-yEAf-tFIWmD’.
Couldn’t find device with uuid ‘p9fqIr-7F7O-TR3L-sODE-MMKp-3doT-yeNjZ6′.
Couldn’t find device with uuid ‘dEiMau-Kytn-mEb8-FXpW-MCTQ-yEAf-tFIWmD’.
Couldn’t find device with uuid ‘p9fqIr-7F7O-TR3L-sODE-MMKp-3doT-yeNjZ6′.Wrote out consistent volume group data
## pvscan
PV /dev/sda1 VG data lvm2 [232.88 GB / 232.88 GB free]