On Thu, 2 Jan 2025 20:58:36 +0800 Yu Kuai <yukuai1@xxxxxxxxxxxxxxx> wrote: > First of all, an exist md-linear can't switch to raid0, data will be > lost. Yes, I did not mean to switch in place, but try out for new setups. > Then, for the case that disk with different size, for example: > > sda 10T, sdb and sdc 12T. > > Currently, in order to > most home NAS solution will create partition for sdb and sdc, > split it to 10T + 2T, then assemble two raid first: > > md0: sda + sdb1 + sdc1 > md1: sdb2 + sdc2 > > md0 can be 20T raid5, and md1 can be 2T raid1, and finially, assemble > new md-linear: > > md2: md0 + md1 > > I agree that md-linear is better than raid0 in this case, user will > prefer to use the md0 first, and use md1 when md0 is exhausted. Oh yes, in case this is made of the same physical devices under the hood, raid0 of their partitions will bring only harm, not benefits. -- With respect, Roman