Tuesday, June 11, 2019

lsi megaraid migrate raid 6 to raid 5 without data loss?




I'm using a LSI MegaRAID SAS 9260-8i controller, firmware version 12.15.0-0189 with 8 physical drives. I currently have the main array running on RAID6 with 5 disks and second array on RAID1 with 2 disks. Last one disk slot is hot spare for RAID6.
Now I need run third array RAID1. I'm looking for two vacant slots...



Is there a way to migrate my array from RAID6 to RAID5 with one disk remove without recreating and restore data from backup? After that I would turn it off hot spare and have released the second slot.



Regards.


Answer



In general, there's no RAID controller I'm aware of that can migrate volumes to a configuration with a lower drive count.



MegaRAID is no exception to this, you can either keep the drive number or increase it (i.e. when increasing redundancy level).




MegaRAID supports the following RLM paths with the above in mind:




  • RAID 0 to RAID 1

  • RAID 0 to RAID 5

  • RAID 0 to RAID 6

  • RAID 1 to RAID 0

  • RAID 1 to RAID 5

  • RAID 1 to RAID 6


  • RAID 5 to RAID 0

  • RAID 5 to RAID 6

  • RAID 6 to RAID 0

  • RAID 6 to RAID 5



On a side note, if you are about to RLM a sizable amount of data (few TB) the complete array reconstruction may be a better path performance-wise.



You still need to do a full backup beforehand regardless of the way you choose, but RLM itself would take ages with a huge performance impact and unpredictable outcome, especially if your drives are old and patrol read is not being run on schedule.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...