Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • How to properly remove a failed HDD from a logical volume

    Posted on

    I can't seem to find the right information in all of my searches on the actual steps to remove a failed HDD under LVM2. Everything I find assumes you either have another drive to move all of the data to or the underlying physical volume was part of an MD RAID mirror

    Background: A 2TB HDD in a 4TB logical volume has failed on an RHEL5.x system. I need to remove it so I can replace it with a larger 4TB HDD. I do NOT care about the data that was on this LV. The filesystem is ext3. What is the proper order of commands to execute to remove this disk from the logical volume and/or volume group so I can pull the physical HDD?

    I think what I need to do is:

    1. lvreduce -v -r -L 2.0T VolGroupD3/LogVolD3_1
    2. vgreduce -v VolGroupD3 /dev/sdp1
    3. pvremove -v /dev/sdp1
    4. fdisk /dev/sdx (create & mark the partition as the appropriate type for LVM)
    5. pvcreate /dev/sdx1
    6. vgextend -v VolGroupD3 /dev/sdx1
    7. lvextend -v -r -L x.yT VolGroupD3/LogVolD3_1 (where x.y is the available size)
    8. fsck /dev/VolGroupD3/LogVolD3_1

    Is this right? If not, what am I missing?

    Thanks in advance!

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat