V
V
vlarkanov2019-05-27 12:54:59
linux
vlarkanov, 2019-05-27 12:54:59

RAID 10: replacing disks with larger ones?

Hello! There is RAID 10 on MDADM. 4 disks on 4Tb. I want to replace disks with 8Tb without deleting data (there is a backup, however).
Will the scheme work:
1) pull out a 4TB disk
2) insert an 8TB disk
3) add a disk to the raid (after creating a partition for the entire available volume)
4) wait for the data to be smeared onto the added disk,
repeat steps 1-4 for the remaining disks
5) stretch the FS md0 to the available volume.
I did almost the same with RAID1 (only I did not replace the existing disks, but inserted new ones side by side, added them to the raid, and when the data was spread over them, I took out the old ones).
Will it take off?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
ky0, 2019-05-27
@ky0

Pull out one of the old disks, insert a large one, creating a new (separate) raid from it, transfer data from the first raid to the second, reboot from the second (if the root is on the first raid), if there are no problems, beat the first raid, pulling out the remaining disks and replacing them to large ones and then adding them to the array.

S
Saboteur, 2019-05-27
@saboteur_kiev

But I suspect that it will not take off.
A raid is not a file system, and its rebuilding is usually only available at the controller level.
Read the instructions for your specific controller to find out if it allows this.

G
gromazeka, 2019-06-05
@gromazeka

Information about the raid has been stored on disks for a long time, and not on the controller, so it's quite a working option.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question