Monday, May 18, 2009
Reducing an LVM Volume Group that's missing disks
I put in a new hard drive and used "pvmove" to move all the physical extents (all the data) from the old drives to the new one. But then, I removed the drives without running vgreduce! Oops... Fortunately, vgreduce has a "--removemissing" flag that can remove all the missing physical volumes from a volume group and restore consistency. This is exactly what I needed since I was sure that there was no data left on those other volumes.