how to remove corrupted disk from LVM?2 min read
There are certain cases either physical /logical disk gets failed due to some reasons. Recently in my case, I was using 3 disks to create a logical volume in my Linux server for storing some data. One I found that my logical volume is not accessible and when I do the pvdisplay command I got below warning.
and found the physical volume showing unknown.
Here I had two options to restore data of that particular disk to another disk from the lvm metadata.
Another option is for me to remove the disk from the logical volume.
My requirement was to remove this smaller disk from the logical volume since I had 2 bigger disks to store data.
Below are the followed steps which I followed.
My_data_vol is the logical volume group
After that when I execute pvdisplay, I can see the corrupted disk is removed.
But now the problem is that my logical volume state is showing as not available.
Now the next option for me make the logical volume available, in order to do that I executed the below command which made the logical volume available and with previous data. After that I’m able to mount the logical volume in the desired mount point.
Its the LV path name