How to handle if lvm disk fails?
Hello!
I installed linux using LVM logical volumes in /dev/sda, mirror this logical volumes with /dev/sdb Code:
# pvcreate /dev/sdb2 So, linux hands for 2-3 minutes and after it crashed. I'm was suprised-is LVM doesn't support RAID1 mirroring? Or is it required to make some additional configuration to setup LVM RAID1 mirroring? |
Linux LVM doesn't do mirroring itself. It also doesn't do multipathing.
You need to to RAID software mirroring metadisk (see mdadm man page as a start) to setup a mirrored device if these aren't multiple paths to the same device. You then use that mirrored device as your PV in the VG rather than using the individual /dev/sd* devices. You would need to use Linux multipathing (see multipath man page as a start) if these are multiple paths to the same device on an external hardware mirror (e.g. EMC or Hitachi disk array). You'd then present the multipath device as PV rather than the individual /dev/sd* devices. From what you wrote it sounds like you're not using the latter. |
It really does but I have not personally tried it and so it appears that you followed the correct steps. I can only assume that the steps you posted were completed successfully. In addition depending on the size of your VGs it could take many hours to convert and the -b puts this process in the background. Without knowing if this step has completed successfully trying to check the functionality may not work. What linux distribution / version are you running?
Post the output of the command: lvs -a -o +devices |
Quote:
|
All times are GMT -5. The time now is 10:43 PM. |