On Tuesday 27 of March 2018 10:51:06 Gandalf Corvotempesta wrote: > I have to replace all disks (one per time, or, if possible, all at the > same time), by > adding new disks in spare slots (I have 3 free slots in this server). > I know that mdadm is able to replace a disks without bringing offline > the previous one, thus without affecting the redundancy. This is what > I would like to do. > Any suggestions ? I do replacing S with D like that: Copy partition table: sfdisk -d /dev/sdS | sfdisk -L /dev/sdD Add new disk as spare: mdadm /dev/mdX --add /dev/sdDX For each partition start moving data to new disk: mdadm /dev/mdX --replace /dev/sdSX Watch progress: watch cat /proc/mdstat When done, move next disk. > The final configuration should be an increased raid/filesystem, > growing from the current 500GB to a 2TB I grow FS on LVM level with online expandable FSs like ext4. -- Mateusz Korniak "(...) mam brata - poważny, domator, liczykrupa, hipokryta, pobożniś, krótko mówiąc - podpora społeczeństwa." Nikos Kazantzakis - "Grek Zorba" -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html