Unable to replace failed disk in RAID 10 LVM volume

Solution Verified - Updated -

Issue

  • One of the disks in LVM RAID 10 volume was failed and got replaced, but adding the disk back to LV shows following errors:

    [root@testserver /]# pvs
      PV         VG        Fmt  Attr PSize PFree  
      /dev/sdc   datavg lvm2 a--  1.09t      0 
      /dev/sdd   datavg lvm2 a--  1.09t      0 
      /dev/sde   datavg lvm2 a--  1.09t      0 
      /dev/sdf   datavg lvm2 a--  1.09t      0 
      /dev/sdg   datavg lvm2 a--  1.09t      0 
      /dev/sdh   datavg lvm2 a--  1.09t   1.09t    <--- replaced disk
    
    [root@testserver /]# lvconvert --repair datavg/datalv /dev/sdh
    Attempt to replace failed RAID images (requires full device resync)? [y/n]: y
      Insufficient free space: 858478 extents needed, but only 286160 available
      LV datavg/datalv in not partial.
      Failed to replace faulty devices in datavg/datalv.
    

Environment

  • Red Hat Enterprise Linux 7.2
  • LVM RAID 10 volume
  • lvm2-2.02.130-5.el7_2.5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content