What I would do is the following, tell me if it's wrong or if there is a better and safer way: - power off - replace one disk (keep the old one safe) - power on and live boot a live image - start the replication - repeat for each disk in the server as long I don't mount the local storage, in case of failure, I still have the old disk identical to the failed one... Il giorno lun 22 apr 2019 alle ore 15:51 Gandalf Corvotempesta <gandalf.corvotempesta@xxxxxxxxx> ha scritto: > > Hi to all. > I have a very very very very very old server with very old disks. > I would like to replace all disks with bigger (and newer) ones. > I *can* shutdown the server > > As these disks are very old, I'm not really sure to simple power off, > replace one disk, power on and do the raid rebuild itself. What If the > "source" disk fails during the rebuild ? > > Any better way to replace everything so that in case of failure, one > of the old disks in the mirror is still usable for replacement? > > I can't add more disks (so, I can't convert a 2-way mirror to a 3-way mirror). > > Another question: how can I know the last time mdadm checked the whole array ? > I have the check scheduled in the cron, but I would like to know the > last check time, just to be 100% sure that someone is checking.... > > # mdadm --detail /dev/md[0-4] > /dev/md0: > Version : 00.90.03 > Creation Time : Wed Dec 5 11:41:05 2007 > Raid Level : raid1 > Array Size : 64128 (62.64 MiB 65.67 MB) > Used Dev Size : 64128 (62.64 MiB 65.67 MB) > Raid Devices : 2 > Total Devices : 2 > Preferred Minor : 0 > Persistence : Superblock is persistent > > Update Time : Mon Apr 22 15:46:44 2019 > State : clean > Active Devices : 2 > Working Devices : 2 > Failed Devices : 0 > Spare Devices : 0 > > UUID : eb8220d3:c502ecc2:2310f28d:32523fcd > Events : 0.608 > > Number Major Minor RaidDevice State > 0 8 1 0 active sync /dev/sda1 > 1 8 17 1 active sync /dev/sdb1 > /dev/md1: > Version : 00.90.03 > Creation Time : Wed Dec 5 11:41:41 2007 > Raid Level : raid1 > Array Size : 48829440 (46.57 GiB 50.00 GB) > Used Dev Size : 48829440 (46.57 GiB 50.00 GB) > Raid Devices : 2 > Total Devices : 2 > Preferred Minor : 1 > Persistence : Superblock is persistent > > Update Time : Mon Apr 22 15:47:15 2019 > State : clean > Active Devices : 2 > Working Devices : 2 > Failed Devices : 0 > Spare Devices : 0 > > UUID : fc5d550c:ad284405:746c2f3c:cd8dab4a > Events : 0.728636 > > Number Major Minor RaidDevice State > 0 8 2 0 active sync /dev/sda2 > 1 8 18 1 active sync /dev/sdb2 > /dev/md2: > Version : 00.90.03 > Creation Time : Wed Dec 5 11:30:47 2007 > Raid Level : raid1 > Array Size : 3903680 (3.72 GiB 4.00 GB) > Used Dev Size : 3903680 (3.72 GiB 4.00 GB) > Raid Devices : 2 > Total Devices : 2 > Preferred Minor : 2 > Persistence : Superblock is persistent > > Update Time : Mon Apr 22 15:46:56 2019 > State : clean > Active Devices : 2 > Working Devices : 2 > Failed Devices : 0 > Spare Devices : 0 > > UUID : 8bd642e1:88162d31:af6aa5d4:0540aa20 > Events : 0.52 > > Number Major Minor RaidDevice State > 0 8 3 0 active sync /dev/sda3 > 1 8 19 1 active sync /dev/sdb3 > /dev/md3: > Version : 00.90.03 > Creation Time : Wed Dec 5 11:30:56 2007 > Raid Level : raid1 > Array Size : 679774272 (648.28 GiB 696.09 GB) > Used Dev Size : 679774272 (648.28 GiB 696.09 GB) > Raid Devices : 2 > Total Devices : 2 > Preferred Minor : 3 > Persistence : Superblock is persistent > > Update Time : Mon Apr 22 15:47:12 2019 > State : clean > Active Devices : 2 > Working Devices : 2 > Failed Devices : 0 > Spare Devices : 0 > > UUID : 02c85a95:a01abf83:035c3537:8166f4a2 > Events : 0.722938 > > Number Major Minor RaidDevice State > 0 8 5 0 active sync /dev/sda5 > 1 8 21 1 active sync /dev/sdb5 > /dev/md4: > Version : 00.90.03 > Creation Time : Wed Oct 29 10:49:44 2008 > Raid Level : raid1 > Array Size : 976759936 (931.51 GiB 1000.20 GB) > Used Dev Size : 976759936 (931.51 GiB 1000.20 GB) > Raid Devices : 2 > Total Devices : 2 > Preferred Minor : 4 > Persistence : Superblock is persistent > > Update Time : Mon Apr 22 15:47:07 2019 > State : clean > Active Devices : 2 > Working Devices : 2 > Failed Devices : 0 > Spare Devices : 0 > > UUID : 50bb5667:325efa5f:a34f4cd3:49df660d > Events : 0.13867758 > > Number Major Minor RaidDevice State > 0 8 33 0 active sync /dev/sdc1 > 1 8 49 1 active sync /dev/sdd1