Thanks. dmsetup status does indeed show the orphan LV's vg04-vz and vg04-swap as active. There seems to be two ways to clear them, dmsetup clear and dmsetup remove - which one is the best to use? Anything I should be particularly careful about to not mess up things? Neither partition are active in Linux, both were unmounted before removing the drive. On Sun, Sep 2, 2012 at 1:01 AM, Keith Keller <kkeller@wombat.san-francisco.ca.us> wrote: > On 2012-09-01, Rene C. <openvz@dokbua.com> wrote: >> We had a disk fail in a server and replaced it before removing the >> drive from LVM. >> >> The server has 4 physical drives (PV's), each with it's own volume >> group (VG). Each VG has 2 or more logical volumes (LV's.) Now LVM is >> complaining about the missing drive. So we have a VG (vg04) with two >> LV's that have become orphans than we need to clear out of the system. >> >> The problem is every time we run any LVM command we get some 'read >> failed' errors. I've tried different commands to try to clear it out >> but so far without luck: > > [snip] > >> The missing VG and LV's are not important, we just want to remove them. > > I believe that you can use dmsetup to remove the vestiges of old unused > LVs and VGs. Of course you *must* be careful that you don't > fumblefingers the command. ;-) I don't recall the exact syntax, so > check out man dmsetup, and if you have questions, hope that someone with > more experience can reply. (I did this safely many months ago, but I do > not recall the exact syntax I used.) > > --keith > > > -- > kkeller@wombat.san-francisco.ca.us > > > _______________________________________________ > linux-lvm mailing list > linux-lvm@redhat.com > https://www.redhat.com/mailman/listinfo/linux-lvm > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/ _______________________________________________ linux-lvm mailing list linux-lvm@redhat.com https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/