Evgeny Oleinikov2020-06-04 18:28:53
Evgeny Oleinikov, 2020-06-04 18:28:53

Resize Software RAID 60?

Good day to all!
On the server with Centos, a soft RAID 60 was raised, 2 RAID6 of 4 disks were combined into RAID 0, it was necessary to add space and 1 disk was added to each RAID6, the size of the array increased. Tell me how now to expand RAID0 from these arrays without losing data?
I tried to do the whole RAID60 using mdadm and the RAID6 variant with mdadm, and RAID0 already using lvm. When using lvm, it failed to increase the partition, so far it is not possible with mdadm

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Melkij, 2020-06-05

mdadm --grow /dev/md0 --size=max
As far as I can see the size increase for raid0 is supported. First you command for the underlying arrays, then for the top raid0.
You can check that the array has room to expand at all by requesting -E for each of the array volumes:

sudo mdadm -E /dev/sde2
 Avail Dev Size : 5767168000 (2750.00 GiB 2952.79 GB)
     Array Size : 7759462400 (7400.00 GiB 7945.69 GB)
  Used Dev Size : 3879731200 (1850.00 GiB 1986.42 GB)

If there is a separate line Used Dev Size with a size less than Avail Dev Size - there is room to expand.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question